@font-face{font-family:Nunito;src:url(assets/nunito.woff2) format('woff2');font-display:swap}@font-face{font-family:Lora;src:url(assets/lora.woff2) format('woff2');font-display:swap}
:root{--ink:#4c3d60;--pink:#ee99b8;--cream:#fffaf0;--mint:#b9e7d5;--violet:#9173b0;--yellow:#ffda7e;font-family:Nunito,ui-rounded,sans-serif;color:var(--ink);background:#dcefe2;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:48px;border:0;border-radius:18px;background:var(--cream);color:var(--ink);font-weight:800;padding:12px 20px;box-shadow:0 3px 0 #a785ad22}button:hover{filter:brightness(1.03);transform:translateY(-1px)}button:active{transform:translateY(2px);box-shadow:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:4px solid #785aa8;outline-offset:4px}button:disabled{cursor:default;filter:saturate(.4);opacity:.65;transform:none}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Lora,Georgia,serif;font-weight:700}h1{font-size:clamp(2.4rem,5vw,4.8rem);letter-spacing:-.045em;line-height:1.12}h2{font-size:1.8rem}h3{font-size:1.2rem}p{line-height:1.6}small{font-size:.8rem}.screen{min-height:100svh}[hidden]{display:none!important}.home{height:100svh;min-height:680px;position:relative;isolation:isolate;overflow:hidden;background:url(assets/hero.webp) center center/cover no-repeat}.home:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#e9f8f2f7 0%,#e9f8f2db 25%,#e9f8f255 46%,transparent 62%)}.home-head{display:flex;align-items:center;justify-content:space-between;padding:25px 4.5vw;position:relative;z-index:2}.brand{display:inline-flex;align-items:baseline;font-family:Lora,serif;font-style:italic;font-size:2rem;font-weight:700;color:#a96287;position:relative;min-height:52px}.brand span{font-size:1.15rem;color:#88709e}.brand small{font-family:Nunito,sans-serif;font-style:normal;font-weight:700;position:absolute;bottom:-2px;left:2px;font-size:.7rem;color:#745b80;white-space:nowrap}.head-actions{display:flex;gap:20px;align-items:center}.head-actions button{width:48px;padding:8px;font-size:1.4rem;background:#fffbeddd}.quiet-link{background:#fffbeddd;padding:14px 18px;border-radius:16px;font-weight:800;min-height:48px}.home-copy{position:relative;margin:4.5vh 0 0 6vw;max-width:490px;width:43vw}.storybook{color:#876680;font-size:.95rem;font-weight:800;margin-bottom:22px}.home h1{font-size:clamp(3.7rem,6.6vw,7rem);color:#604777;line-height:1.03;margin-bottom:25px}.title-flower{font-family:Nunito,sans-serif;display:inline-block;font-size:.75em;color:#e690ad;margin-left:8px;transform:rotate(-12deg);vertical-align:middle}.home-lead{font-weight:900;font-size:clamp(1.3rem,2.2vw,2rem);line-height:1.4;margin:0 0 15px;color:#706181}.home-description{font-size:1.07rem;color:#665b75}.home-buttons{display:flex;flex-wrap:wrap;gap:13px;margin-top:25px;align-items:center}.primary{background:linear-gradient(#ffdc86,#f6c962);color:#62486c;border:2px solid #fff3c7;box-shadow:0 5px 0 #bf9a5499,0 10px 18px #745b6d1a;font-size:1.05rem}.primary.big{min-height:64px;padding:15px 34px;border-radius:23px;font-size:1.3rem}.primary span{font-size:.8em;margin-right:10px}.secondary{background:#fffcf0e8;border:2px solid #e6d3df;font-size:.95rem;box-shadow:0 3px 0 #ad90aa22}.book-link{background:transparent;box-shadow:none;color:#826a93;text-align:left;padding:12px 0;margin-top:14px;font-size:.95rem}.home-note{font-size:.82rem;color:#806e84;margin:15px 0 0}.home-ground{position:absolute;bottom:-20px;right:-10px;left:58%;height:100px;background:linear-gradient(transparent,#ffcee629);pointer-events:none}.panel-head{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:22px 5vw;position:sticky;top:0;z-index:3;background:#eaf5eeeb;backdrop-filter:blur(12px)}.back{margin-right:auto}.map{background:linear-gradient(#e6f4ecbb,#f9eedddd),url(assets/rainbow.webp) center/cover fixed}.map-inner{max-width:1180px;margin:auto;padding:32px 35px 70px;text-align:center}.map-inner h1{margin-bottom:18px}.worlds{position:relative;display:grid;grid-template-columns:repeat(5,1fr);gap:28px 22px;margin:45px auto}.world-card{text-align:left;border:3px solid #fff8e8;padding:0;border-radius:26px;overflow:hidden;background:#fffbf1;box-shadow:0 6px 0 #cabbc599,0 14px 30px #68587618;position:relative;min-height:230px}.world-card:nth-child(2n){transform:translateY(20px)}.world-card:nth-child(2n):hover{transform:translateY(18px)}.world-art{height:125px;position:relative;background-position:center;background-size:cover;border-bottom:3px solid #f0dbdf}.world-num{position:absolute;top:10px;left:10px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#fffbeb;font-weight:900;font-size:1rem}.world-lock{position:absolute;inset:0;display:grid;place-items:center;background:#edeaf266;font-size:2rem}.world-text{padding:15px}.world-text strong{display:block;line-height:1.4;font-size:.96rem;margin-bottom:8px}.stars{font-size:1.25rem;letter-spacing:4px;color:#e6b54e;white-space:nowrap}.unearned{color:#d9c9d5}.world-card:disabled{opacity:.85;filter:saturate(.45)}.journal{background:#f3ebdc}.journal-inner{max-width:1060px;margin:20px auto 0;padding:35px 40px 75px;background:#fffaf0;box-shadow:0 0 60px #795f7212;border-radius:35px 35px 0 0;border:1px solid #e9dcce}.journal h1{margin-bottom:15px}.journal h2{margin-top:40px}.powers{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.power-card{border:2px solid #e9ddec;background:#fff6fb;border-radius:22px;padding:18px 13px;text-align:center;min-height:190px}.power-card.locked{opacity:.7;background:#f4f1ed}.power-icon{display:block;font-size:2.2rem;margin-bottom:10px;color:#a479c2}.power-card h3{font-size:.95rem;line-height:1.35;margin-bottom:8px}.power-card p{font-size:.8rem;line-height:1.5;margin-bottom:10px}.power-card button{font-size:.8rem;min-height:44px;padding:8px 12px}.stickers{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}.sticker-page{padding:18px 12px;border:1px dashed #d4b7c5;border-radius:20px;text-align:center}.sticker-page strong{font-size:.85rem;display:block;min-height:42px}.sticker-icons{display:flex;justify-content:center;gap:9px}.sticker-icons span{font-size:1.8rem;color:#b991c5}.sticker-icons .empty{color:#e6dae0}.trails{display:flex;gap:15px;flex-wrap:wrap}.trail{border:2px solid #d8bfda}.trail.active{border-color:#9070aa;background:#eedcf5}.play{height:100svh;min-height:320px;display:flex;flex-direction:column;background:#e2efde;overflow:hidden}.hud{height:73px;flex:none;padding:9px max(14px,env(safe-area-inset-right)) 9px max(14px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(#fff7ec,#f6e7e4);border-bottom:4px solid #dbc1d6;box-shadow:0 2px 16px #5b4d7222;z-index:2}.hud-left,.hud-right,.hud-collect{display:flex;gap:14px;align-items:center}.hud button{min-width:46px;min-height:46px;padding:8px;font-size:1.3rem;border:2px solid #dfcedd}.world-label small{display:block;color:#9f7a93;font-weight:900}.world-label strong{font-size:1.05rem;display:block}.seed-counter,.petal-counter{display:flex;gap:6px;align-items:center;font-size:1.2rem}.petal-counter span{color:#dda551;font-size:1.65rem}.seed-counter img{object-fit:contain}#hearts{letter-spacing:3px;color:#e285a3;font-size:1.6rem;white-space:nowrap}.game-stage{position:relative;flex:1;min-height:0;overflow:hidden}canvas{width:100%;height:100%;display:block;touch-action:none;outline-offset:-4px!important}#toast{position:absolute;top:18px;left:50%;transform:translateX(-50%);max-width:min(90%,620px);text-align:center;font-weight:900;padding:13px 25px;background:#fffbedee;border:2px solid #f0d5db;border-radius:22px;box-shadow:0 5px 20px #73527122;opacity:0;transition:opacity .2s;pointer-events:none}#toast.visible{opacity:1}#power-status{position:absolute;right:18px;top:20px;font-size:.8rem;color:#634d72;font-weight:900;background:#fffbedc9;border-radius:15px;padding:7px 12px;max-width:180px}#power-status:empty{display:none}.touch-controls{position:absolute;bottom:20px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}.directions,.touch-actions{display:flex;gap:12px;align-items:flex-end}.touch-controls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;min-width:68px;min-height:64px;padding:10px;font-size:1.8rem;background:#fffbefcc;border:3px solid #ffffffb0;box-shadow:0 4px 0 #73547c55;backdrop-filter:blur(5px)}.touch-controls .jump-control{border-radius:50%;width:83px;height:83px;background:#ffd778df;color:#755173;display:grid;place-content:center;line-height:.85;font-size:2.4rem}.jump-control small{font-size:.8rem;margin-top:8px}.power-control{border-radius:50%;width:60px;height:60px;min-width:60px!important;min-height:60px!important;color:#9673b4;background:#eed7f5dd!important}.touch-controls button.held{transform:translateY(3px);background:#eacdeb}.play-foot{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 20px calc(4px + env(safe-area-inset-bottom));font-size:.76rem;font-weight:800;background:#fffbef}#voice-hint{min-height:32px;padding:5px 10px;box-shadow:none;background:transparent;font-size:.76rem}.keyboard-hint{color:#927b98;font-size:.72rem}dialog{border:3px solid #ffeccc;border-radius:32px;max-width:min(92vw,650px);width:600px;padding:0;color:var(--ink);background:#fffaf0;box-shadow:0 25px 80px #3c334c66;max-height:90svh;overflow:auto}dialog::backdrop{background:#46365388;backdrop-filter:blur(7px)}.dialog-body{padding:36px;text-align:center}.dialog-body h2{font-size:2.25rem;margin-bottom:18px}.dialog-body p{font-size:.95rem}.dialog-close{position:absolute;right:10px;top:10px;min-width:44px;padding:10px;font-size:1.3rem;box-shadow:none;background:transparent}.hero-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:26px 0}.hero-option{padding:20px 10px 15px;background:#f4efe0;border:3px solid #e1d2d5;border-radius:25px}.hero-option.active{border-color:#c297cc;background:#f0e0f4}.hero-option img{width:100%;height:145px;object-fit:contain;display:block;margin-bottom:15px}.hero-option strong{font-size:1.3rem}.hero-option small{display:block;font-weight:600;margin-top:4px}.mode-choice{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:25px}.mode-choice button{font-size:.85rem;min-height:48px;border:2px solid #e0d4dc;padding:10px 17px}.mode-choice .active{border-color:#a086b5;background:#e8dcf1}.dialog-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.settings-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #e8dcd4;text-align:left;gap:15px}.settings-row input[type=checkbox]{appearance:none;width:50px;height:30px;border-radius:18px;background:#d6cbd4;position:relative;cursor:pointer;flex:none}.settings-row input:checked{background:#aacaab}.settings-row input[type=checkbox]:before{content:'';position:absolute;top:4px;left:4px;width:22px;height:22px;border-radius:50%;background:white;box-shadow:0 2px 4px #80647d22}.settings-row input:checked:before{left:24px}.settings-row input[type=range]{max-width:160px;min-height:44px;accent-color:#a788b6}.save-tools{display:flex;gap:12px;margin:24px 0;justify-content:center;flex-wrap:wrap}.save-tools button{font-size:.85rem;padding:10px 15px;border:1px solid #e1d0df}.storage-note{font-size:.76rem!important;color:#8b7892}.dialog-art{height:160px;object-fit:contain;max-width:90%;margin:10px auto 20px}.complete-stars{font-size:3rem;letter-spacing:10px;color:#dfad4d;margin:15px 0}.completion-stats{display:flex;gap:25px;justify-content:center;margin:20px 0;font-weight:900}.ending-art{width:100%;height:210px;object-fit:cover;border-radius:22px;margin-bottom:24px}.loading{position:fixed;inset:0;background:#eef5e9;display:grid;place-content:center;text-align:center;z-index:20;justify-items:center;gap:20px}.loading strong{font-family:Lora,serif;font-size:1.5rem}.loading p{font-size:.85rem}.load-track{height:8px;width:220px;overflow:hidden;border-radius:10px;background:#dfd9df}.load-track span{display:block;width:60%;height:100%;background:#d598b6;border-radius:10px;animation:load 2s ease-in-out infinite}.no-script{position:fixed;inset:0;background:var(--cream);display:grid;place-content:center;z-index:99}body.reduced *{animation:none!important;transition:none!important;scroll-behavior:auto!important}@keyframes load{0%{transform:translateX(-90%)}100%{transform:translateX(180%)}}
@media(pointer:fine) and (min-width:1000px){.touch-controls{opacity:.6;bottom:15px}.touch-controls:hover{opacity:1}.touch-controls button{min-width:52px;min-height:48px;font-size:1.35rem}.touch-controls .jump-control{width:65px;height:65px;font-size:1.8rem}}
@media(max-width:1000px){.worlds{grid-template-columns:repeat(3,1fr)}.powers{grid-template-columns:repeat(3,1fr)}.stickers{grid-template-columns:repeat(3,1fr)}.home-copy{width:48vw;margin-top:2vh}.home-buttons{flex-direction:column;align-items:flex-start}.home h1{font-size:clamp(3.7rem,7vw,5.7rem)}.home{min-height:700px;background-position:58% center}}
@media(max-width:600px){.home{height:auto;min-height:100svh;background-position:64% top;background-size:auto 65svh;background-color:#eaf5ec;padding-bottom:25px}.home:before{background:linear-gradient(0deg,#edf7ed 26%,#edf7eddd 39%,#edf7ed25 58%,#e8f6f199 100%)}.home-head{padding:18px 20px}.brand{font-size:1.7rem}.brand span{font-size:1rem}.quiet-link{font-size:.8rem;padding:12px}.head-actions{gap:9px}.home-copy{width:auto;max-width:none;margin:37svh 25px 0;text-align:center}.storybook{margin-bottom:13px;font-size:.82rem}.home h1{font-size:3.4rem;margin-bottom:18px;line-height:1.02}.home h1 br{display:none}.title-flower{display:none}.home-lead{font-size:1.25rem;margin-bottom:10px}.home-lead br{display:none}.home-lead br:after{content:' '}.home-description{font-size:.92rem}.home-description br{display:none}.home-buttons{margin-top:18px;flex-direction:row;justify-content:center;gap:12px;align-items:center}.primary.big{min-height:58px;padding:14px 32px;font-size:1.15rem}.home-buttons .secondary{font-size:.85rem;min-height:50px}.book-link{margin-top:12px}.home-note{font-size:.72rem}.panel-head{padding:14px 15px;gap:8px}.panel-head button{font-size:.8rem;padding:10px 13px}.map-inner{padding:25px 16px 55px}.map-inner h1{font-size:2.7rem}.worlds{grid-template-columns:repeat(2,1fr);gap:20px 13px;margin-top:25px}.world-card{min-height:205px;border-radius:21px}.world-art{height:105px}.world-text{padding:12px}.world-text strong{font-size:.87rem}.world-card:nth-child(2n){transform:translateY(14px)}.journal-inner{padding:28px 20px;margin:0;border-radius:0}.journal h1{font-size:2.4rem}.powers{grid-template-columns:repeat(2,1fr);gap:11px}.stickers{grid-template-columns:repeat(2,1fr);gap:12px}.hud{height:71px;padding:8px 9px;gap:6px}.hud-left,.hud-right,.hud-collect{gap:6px}.hud button{min-width:42px;width:42px;min-height:44px;padding:7px}.world-label strong{font-size:.77rem;max-width:95px}.world-label small{font-size:.67rem}.seed-counter{font-size:.86rem;gap:1px;white-space:nowrap}.seed-counter img{width:24px;height:34px}.petal-counter{font-size:.8rem;gap:1px}.petal-counter span{font-size:1.15rem}#hearts{font-size:.9rem;letter-spacing:0;position:absolute;top:52px;right:110px}.hud-right #full{display:none}.play-foot{padding:5px 9px calc(5px + env(safe-area-inset-bottom));font-size:.64rem;gap:4px}.keyboard-hint{display:none}.touch-controls{left:12px;right:12px;bottom:24px}.directions,.touch-actions{gap:8px}.touch-controls button{min-width:58px;min-height:58px;font-size:1.5rem}.touch-controls .jump-control{width:75px;height:75px;font-size:2rem}.touch-controls .power-control{width:51px;height:51px;min-width:51px!important;min-height:51px!important;font-size:1.3rem}#toast{top:12px;font-size:.82rem;padding:10px 17px}#power-status{top:60px;font-size:.68rem;padding:5px 10px}.dialog-body{padding:32px 20px}.dialog-body h2{font-size:1.9rem}.hero-option img{height:125px}.hero-option{padding:16px 7px}.hero-option small{font-size:.7rem}.completion-stats{gap:15px;font-size:.8rem}.settings-row{font-size:.87rem}.ending-art{height:170px}}
@media(max-height:560px) and (orientation:landscape){.hud{height:56px}.world-label small{font-size:.65rem}.world-label strong{font-size:.85rem}.hud-collect{font-size:.8rem}.hud button{min-height:42px;min-width:44px;padding:5px}.touch-controls{bottom:12px;left:15px;right:15px}.touch-controls button{min-width:54px;min-height:48px;font-size:1.3rem}.touch-controls .jump-control{width:62px;height:62px;font-size:1.6rem}.touch-controls .power-control{width:49px;height:49px;min-width:49px!important;min-height:49px!important}.play-foot{min-height:28px;font-size:.65rem;padding:1px 15px}.home{min-height:560px}.home-copy{margin-top:0}.home h1{font-size:3.7rem}.home-description{margin-bottom:10px}.hero-option img{height:90px}.dialog-body{padding:22px}.hero-options{margin:15px 0}.dialog-body h2{margin-bottom:10px}.mode-choice{margin-bottom:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* A quiet, persistent soundtrack strip; game controls retain their own space. */
:root{--music-bar-height:56px}
::selection{background:#ead0e8;color:var(--ink)}
.music-bar{position:sticky;top:0;z-index:10;height:var(--music-bar-height);background:var(--cream);border-bottom:1px solid #4c3d6024}
.music-inner{display:flex;align-items:center;gap:10px;height:100%;max-width:1280px;margin:auto;padding:0 24px}
.music-bar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.music-note{color:#886088;margin-right:2px}
#music-song{min-height:44px;width:260px;max-width:45%;min-width:0;flex:1;appearance:auto;background:transparent;color:var(--ink);border:0;border-radius:6px;padding:5px 5px 5px 0;font-size:.83rem;font-weight:800;text-overflow:ellipsis;cursor:pointer}
.music-status{font-size:.75rem;color:#735574;margin-left:auto;white-space:nowrap;min-width:82px;text-align:right}
.music-controls{display:flex;align-items:center;gap:2px;margin-left:12px}
.music-controls button{width:44px;min-width:44px;height:44px;min-height:44px;padding:12px;border-radius:10px;box-shadow:none;background:transparent;display:grid;place-items:center;transition:background .15s ease-out;transform:none}
.music-controls button:hover{background:#eee0ef;filter:none;transform:none}.music-controls button:active{background:#e5cce1;transform:none}.music-controls button:disabled{opacity:.32;background:transparent}
.music-controls button:focus-visible,#music-song:focus-visible{outline:2px solid #785aa8;outline-offset:-2px}
.music-controls [aria-pressed=true]{background:#eee0ef}
.sound-off,[aria-pressed=true] .sound-waves{display:none}[aria-pressed=true] .sound-off{display:block}
.screen{min-height:calc(100svh - var(--music-bar-height))}.home{height:calc(100svh - var(--music-bar-height))}.play{height:calc(100svh - var(--music-bar-height))}.panel-head{top:var(--music-bar-height)}.loading{top:var(--music-bar-height)}
@media(max-width:600px){.music-inner{padding:0 8px;gap:6px}.music-note{width:18px!important;margin:0}#music-song{font-size:.75rem;width:150px;max-width:none}.music-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;min-width:0}.music-controls{margin-left:0}.home{height:auto}}
@media(max-height:560px) and (orientation:landscape){:root{--music-bar-height:48px}.music-inner{padding:0 16px}}
/* Keep small labels legible against the established garden palette. */
.brand span{color:#745b80}.brand small{font-size:.75rem}.storybook{color:#785b72}.book-link,.home-note{color:#745b80}.keyboard-hint{font-size:.75rem}.play-foot{font-size:.875rem}
#music-song{font-size:.875rem}
@media(max-width:600px){.home-note,.hero-option small{font-size:.75rem}.play-foot,#voice-hint{font-size:.75rem}.world-label small{font-size:.75rem}.world-label strong{font-size:.8rem}#music-song{font-size:.875rem}}
.home{height:auto;padding-bottom:28px}.hud{position:relative}
@media(max-width:600px){.home{padding-bottom:25px}}
/* Upgrades remain small, leaving the painted adventure in view. */
#upgrade-status{position:absolute;top:18px;left:18px;background:#fffaf0e6;border-radius:14px;padding:8px 12px;font-size:13px;font-weight:900;color:#654563;pointer-events:none}
.forms{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:25px 0 40px}.forms button{text-align:left;display:flex;flex-direction:column;gap:8px;font-size:15px;padding:20px;box-shadow:none;background:#f4e8eb}.forms button[aria-pressed=true]{background:#efd9e8;outline:2px solid #947398}.forms button>span{font-size:26px;color:#ae5876}.forms button small{font-size:13px;line-height:1.5;font-weight:600}
.play.hurt #hearts{color:#9c355a;background:#ffe0e5;border-radius:8px;box-shadow:0 0 0 5px #ffe0e5}.play.hurt .game-stage:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 55px #ed8ea144}
@media(max-width:600px){#upgrade-status{top:12px;left:10px;font-size:11px;padding:6px 9px}#toast{top:48px}.keyboard-hint{display:none}#power-status{top:12px;font-size:11px}.forms{grid-template-columns:repeat(2,minmax(0,1fr))}.forms button{padding:14px}}
