/* The hand journal stays out of the meadow until the player opens it. */
body[data-view="farm"] .garden-chip{position:absolute;left:139px;top:149px;min-height:48px;display:flex;align-items:center;gap:4px;padding:3px 12px 8px 5px;border:2px solid #725a32;border-radius:10px 13px 10px 12px;background:#f8e8ac;box-shadow:inset 0 3px 0 #fff5cd,0 3px 0 #775a30;color:#725333;rotate:2deg}
.garden-chip>svg{width:35px;height:35px}.garden-chip>span{font-size:12px;font-weight:800;text-align:left;line-height:1.3}.garden-chip small{display:block;font-size:10px;color:#89904c}
.garden-chip-progress{position:absolute;left:12px;right:10px;bottom:3px;height:3px;border-radius:3px;overflow:hidden;background:#dfcc90}.garden-chip-progress>i{display:block;height:100%;background:#8ba64a}
.wish-badge{position:absolute;right:-6px;top:-7px;min-width:21px;height:21px;border:2px solid #fff0bf;border-radius:50%;background:#d98643;color:#fff9d6;font-size:11px;line-height:17px;box-shadow:0 1px 2px #64451d77}
.garden-chip.has-reward>svg{animation:journal-nudge 5s ease-in-out infinite}
.garden-decorations{position:absolute;inset:0;pointer-events:none;z-index:3}.garden-decoration{position:absolute;transform-origin:50% 90%;pointer-events:none}.garden-decoration svg{display:block;width:100%;height:100%;filter:drop-shadow(0 2px 1px #37512420)}
.decor-sunflowers{width:clamp(90px,8vw,150px);bottom:18%;left:2%;rotate:-3deg}
.decor-pinwheel{width:clamp(75px,7vw,125px);right:15%;top:32%;rotate:3deg}
.decor-bunting{width:clamp(105px,13vw,210px);left:37%;top:24%}
.pinwheel-blades{transform-origin:95px 63px;animation:garden-spin 15s linear infinite}.garden-decoration .flower-head{transform-origin:0 18px;animation:garden-sway 5s ease-in-out infinite alternate}.garden-decoration .bunting-flags{transform-origin:95px 45px;animation:garden-sway 4s ease-in-out infinite alternate}
.scene.is-dusk .garden-decorations{filter:brightness(.73) saturate(.85)}
body:has(dialog[open]) .garden-decorations *{animation-play-state:paused!important}
body[data-view="farm"] dialog.garden-sheet{width:min(470px,calc(100% - 32px));max-height:90dvh;padding:0;background:#fff1cb}
.garden-sheet .dialog-content h2{font-size:23px;letter-spacing:.06em;margin-bottom:16px}
.garden-summary{display:flex;align-items:center;gap:11px;margin:0 0 20px}.garden-level{position:relative;width:51px;flex-shrink:0}.garden-level>svg{width:49px;height:49px;rotate:-5deg}.garden-level>b{position:absolute;left:0;bottom:-3px;border:1.5px solid #766034;border-radius:5px;background:#e2e6a1;color:#626f32;padding:1px 6px;font-size:11px;rotate:-5deg}
.garden-growth{flex:1;min-width:0}.garden-growth>strong{font-size:13px;color:#66552e}.garden-growth>small{display:block;margin-top:5px;font-size:10px;line-height:1.6;color:#99824b}.growth-track{height:8px;margin-top:8px;background:#e4d6a6;border:1px solid #c3b67b;border-radius:8px;overflow:hidden}.growth-track>i{display:block;height:100%;background:linear-gradient(#b3c96e,#8eaa4a);border-radius:8px;transition:width .4s}
.garden-stars{display:flex;align-items:center;gap:2px;flex-shrink:0;align-self:flex-start;background:#f7e5ae;border:1px solid #d4b674;border-radius:16px;padding:3px 8px 3px 3px;color:#805e2b}.garden-stars svg{width:25px;height:25px}.garden-stars b{font-size:15px;font-variant-numeric:tabular-nums}
.garden-tabs{display:flex;border-bottom:2px solid #d8c28a;gap:19px;margin-bottom:17px}.garden-tabs>button{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;background:none;border:0;border-radius:0;padding:8px 2px 12px;color:#a28c59;font-weight:750;font-size:14px;min-height:44px}.garden-tabs>button[aria-pressed="true"]{color:#686c30}.garden-tabs>button[aria-pressed="true"]:after{content:"";position:absolute;bottom:-3px;left:0;right:0;height:4px;background:#8ca349;border-radius:4px}.garden-tabs span{font-size:10px;font-weight:500}.garden-tabs i{font-size:10px;width:17px;height:17px;border-radius:50%;line-height:17px;background:#d58b4a;color:#fff5cf;font-style:normal}
.wish-date{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#937e48;margin-bottom:6px}.wish-date small{font-size:10px;color:#ac9867}
.wish-row{display:flex;align-items:center;gap:13px;padding:17px 0;border-bottom:1px dashed #d7c28c}.wish-art{width:49px;height:55px;display:grid;place-items:center;background:radial-gradient(ellipse,#f4df9f,transparent 70%);flex-shrink:0}.wish-art .game-prop{width:47px;height:47px}.wish-copy{flex:1;min-width:0}.wish-copy>strong{display:block;font-size:14px;color:#6b542e}.wish-copy>span{display:block;font-size:11px;color:#9a824d;margin:4px 0 6px}.wish-progress{display:flex;align-items:center;gap:8px;max-width:180px}.wish-progress>i{height:5px;flex:1;background:#e8d9ae;border-radius:4px;overflow:hidden}.wish-progress>i>i{height:100%;display:block;background:#9bb25c;border-radius:4px}.wish-progress>small{font-size:10px;color:#8f804e;white-space:nowrap;font-variant-numeric:tabular-nums}.wish-reward{display:flex;align-items:center;gap:2px;margin-top:5px;color:#a57b35;font-size:10px}.wish-reward svg{width:15px;height:15px}.wish-reward>span{margin-left:6px;color:#a48b51}
.wish-button{min-height:44px;min-width:58px;padding:6px 9px;border:1.5px solid #bda36b;border-radius:10px;background:#f3e3b2;color:#8b713d;font-size:12px;font-weight:700;box-shadow:0 2px 0 #c6ae77}.wish-button.claim-button{background:#91ad4e;border-color:#647634;color:#fff9d4;box-shadow:inset 0 2px #bbd577,0 3px #627635}.wish-button:disabled{background:none;border-color:transparent;box-shadow:none;color:#8e9c55;display:flex;flex-direction:column;align-items:center;opacity:1}.wish-button:disabled .icon{width:20px;height:20px}.wish-button:disabled small{font-size:10px}.wish-row.is-claimed .wish-art{opacity:.65}.wish-row.is-claimed .wish-copy>strong{color:#9a8a5e}
.wish-finale{display:flex;align-items:center;gap:10px;margin-top:17px;padding:13px 10px;border-radius:10px;background:#f2e2b3}.finale-star{display:block;flex-shrink:0;rotate:-9deg}.finale-star>svg{width:31px;height:31px}.wish-finale b{display:block;font-size:12px;color:#826638}.wish-finale small{display:block;font-size:10px;color:#a08a52;margin-top:4px}.wish-finale>.icon{margin-left:auto;color:#778d41;width:20px;height:20px;flex-shrink:0}.wish-finale.is-complete{background:#e6e6b0}.wish-stamps{display:flex;gap:3px;margin-left:auto}.wish-stamps>i{width:8px;height:8px;border:1px solid #b6a069;border-radius:50%;background:#e8d7a6}.wish-stamps>i.stamped{background:#92a94e;border-color:#879e46}
.garden-footnote{font-size:10px;text-align:center;line-height:1.8;color:#a58e57;margin:16px 0 0}.garden-next{color:#73823a!important;font-weight:700}.decor-intro{font-size:12px;color:#9b834e;margin:0 0 4px}.decor-item{display:flex;align-items:center;gap:14px;padding:11px 0;border-bottom:1px dashed #d7c28c}.decor-preview{position:relative;width:114px;height:100px;flex-shrink:0;border-radius:50%;background:radial-gradient(ellipse at 50% 75%,#dce6a6 0,transparent 68%)}.decor-preview>.decoration-art{width:100%;height:100%}.decor-preview>span{position:absolute;bottom:-2px;left:50%;translate:-50% 0;white-space:nowrap;font-size:9px;color:#7c8a43;background:#f7efc9;border:1px solid #b2bd7a;border-radius:8px;padding:2px 6px}.decor-copy{flex:1;min-width:0}.decor-copy>strong{font-size:14px;color:#6b542e}.decor-copy>p{font-size:10px;color:#a08a55;margin:5px 0 10px;line-height:1.6}.decor-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;border:1.5px solid #9a9e55;background:#e4e8ae;color:#71803a;border-radius:9px;min-height:38px;padding:7px 13px;font-size:11px;font-weight:750;box-shadow:0 2px #b1b16c}.decor-button svg{width:17px;height:17px}.decor-button:disabled{color:#a49360;border-color:#d8c695;background:#f0e4bf;box-shadow:none}.decor-button.is-placed{background:none;border-color:#c9ba87;color:#998851;box-shadow:none}.decor-item.is-locked .decor-preview{filter:saturate(.55);opacity:.72}.decor-tip{display:flex;align-items:flex-start;gap:5px;font-size:10px;line-height:1.8;color:#a18a53;margin:14px 0}.decor-tip .icon{width:15px;height:15px;flex-shrink:0;margin-top:1px}.garden-return{margin-top:3px}
.garden-notice{display:flex;align-items:center;gap:8px;border:1px solid #c1cb83;background:#eff0bc;border-radius:10px;padding:10px 12px;font-size:12px;line-height:1.6;color:#7b793d;margin:0 0 14px;animation:garden-reward-in .3s ease-out}.garden-notice>svg{width:26px;height:26px;flex-shrink:0}.garden-notice.is-error{background:#f5e3b9;border-color:#d8bd82;color:#a17b45}
@keyframes garden-spin{to{transform:rotate(360deg)}}@keyframes garden-sway{from{rotate:-2deg}to{rotate:3deg}}@keyframes journal-nudge{0%,83%,100%{rotate:0deg}87%{rotate:-8deg}92%{rotate:5deg}96%{rotate:-3deg}}@keyframes garden-reward-in{from{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}
@media(max-width:700px){
 body[data-view="farm"] .garden-chip{left:auto;right:15px;top:130px;min-height:44px;padding:1px 10px 6px 4px}.garden-chip>svg{width:31px;height:31px}.garden-chip>span{font-size:11px}.garden-chip small{font-size:9px}.garden-chip-progress{bottom:3px;height:2px}
 .decor-sunflowers{left:3%;width:76px;top:23%;bottom:auto;rotate:1deg}.decor-pinwheel{right:2%;top:26%;width:74px;rotate:4deg}.decor-bunting{left:38%;top:20.5%;width:110px}
 body[data-view="farm"] dialog.garden-sheet{width:100%;max-height:90dvh;padding:0 0 env(safe-area-inset-bottom);border-bottom:0;border-radius:23px 22px 0 0}
 .garden-sheet .dialog-content h2{font-size:22px;margin-bottom:17px}.garden-summary{gap:9px}.garden-growth>strong{font-size:12px}.garden-growth>small{font-size:9px}.garden-stars{padding-right:7px}.garden-stars>svg{width:23px;height:23px}
}
@media(max-width:370px){body[data-view="farm"] dialog.garden-sheet{padding-left:0;padding-right:0}.garden-summary{gap:7px}.garden-level{width:43px}.garden-level>svg{width:42px;height:42px}.garden-growth>strong{font-size:11px}.garden-stars{gap:0}.garden-stars>b{font-size:13px}.wish-row{gap:9px;padding:15px 0}.wish-art{width:38px}.wish-art .game-prop{width:38px;height:38px}.wish-copy>strong{font-size:12px}.wish-copy>span{font-size:10px}.wish-button{min-width:52px;padding:6px 7px}.decor-preview{width:96px;height:89px}.decor-item{gap:10px}.wish-finale{gap:7px;padding:11px 8px}.wish-finale b{font-size:11px}.wish-finale small{font-size:9px}.wish-stamps{gap:2px}.wish-stamps>i{width:6px;height:6px}}
@media(prefers-reduced-motion:reduce){.garden-chip>svg,.garden-decoration *,.decor-preview *,.garden-notice{animation:none!important}.growth-track>i{transition:none}}

body[data-view="farm"] .garden-sheet .dialog-content{padding:25px 26px 23px}
@media(max-width:700px){body[data-view="farm"] .garden-sheet .dialog-content{padding:14px 24px 25px}}
@media(max-width:370px){body[data-view="farm"] .garden-sheet .dialog-content{padding-left:17px;padding-right:17px}}

body[data-view="farm"] .garden-sheet .dialog-close{position:sticky;top:12px;float:right;right:auto;margin:12px 14px -52px 0;z-index:4}
@media(max-width:700px){body[data-view="farm"] .garden-sheet .dialog-close{margin-top:8px;margin-bottom:-48px}}
@media(max-width:700px) and (max-height:690px){.decor-sunflowers{top:31%;left:0;width:64px}.decor-pinwheel{left:52%;right:auto;top:23%;width:56px}.decor-bunting{top:29%;left:30%;width:86px}}
