*{box-sizing:border-box}body{margin:0;font-family:ui-rounded,'Trebuchet MS',sans-serif;color:#392b57;background:#e8f2ef}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;border:0;cursor:pointer;border-radius:24px;padding:13px 19px;background:#fffaf5;color:#563c7c;box-shadow:0 4px 18px #3e27551c;font-weight:700}button:hover{background:#eee2ff}button:focus-visible,a:focus-visible{outline:3px solid #ffbd60;outline-offset:4px}button:disabled{opacity:.5;cursor:wait}#game,#canvas{position:absolute;inset:0;overflow:hidden}canvas{display:block;width:100%;height:100%}header{position:absolute;top:26px;left:30px;right:30px;display:flex;justify-content:space-between;align-items:center}header a{font-size:26px;font-weight:900;text-decoration:none;color:#4f376f;text-shadow:0 1px white}header span{display:block;font-size:10px;letter-spacing:3px;margin-top:5px}#mission{position:absolute;top:120px;left:30px;width:255px;background:#fffcf4ed;border-radius:22px;padding:22px;box-shadow:0 8px 30px #5d49751a}small{font-size:10px;letter-spacing:2px;font-weight:800;color:#9575ad}h1{font-size:22px;margin:10px 0}p{line-height:1.6;font-size:14px}#stars{color:#a073ce;font-size:24px}#notice{position:absolute;bottom:125px;left:50%;transform:translateX(-50%);border-radius:20px;padding:12px 24px;background:#fffcf4ed;text-align:center;max-width:90%;min-width:230px;font-size:14px}footer{position:absolute;bottom:24px;left:30px;right:30px;display:flex;justify-content:space-between;align-items:end;gap:16px}.controls{display:grid;gap:6px;font-size:11px;background:#fffcf4e8;padding:15px 20px;border-radius:18px}.controls b{font-size:15px}.actions{display:flex;gap:8px}#loading{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(140deg,#efe6faf2,#eaf7eff2)}.card{text-align:center;background:#fffcf6;border:1px solid white;box-shadow:0 24px 100px #71538d24;padding:35px 55px;border-radius:36px;width:min(440px,92vw)}.card small{display:block}.flower{font-size:66px;color:#a17bca}.card h2{font-size:40px;letter-spacing:-2px;margin:12px 0}.card button{background:#7954a8;color:white;width:100%;margin-top:8px}.hint{font-size:11px;color:#988ca0}progress{accent-color:#9569bd;width:100%;height:8px}#fallback{position:absolute;inset:28% 20%;text-align:center;background:#fff9f0ee;border-radius:30px;padding:35px;overflow:auto}#fallback a{color:#7853a8}#game:has(#fallback:not([hidden])){background:linear-gradient(140deg,#dfefdc,#ebe1f7)} .touch{display:none;position:absolute;bottom:135px;left:18px;text-align:center}.touch button{padding:15px;margin:2px;touch-action:none}@media(pointer:coarse){.touch{display:block}}@media(max-width:700px){header{top:15px;left:18px;right:18px}header a{font-size:20px}#mission{top:92px;left:18px;width:210px;padding:16px}footer{bottom:16px;left:16px;right:16px}.controls{display:none}.actions{width:100%;justify-content:center}.actions button{padding:12px}#notice{bottom:80px}.card{padding:26px}#fallback{inset:22% 5%}}

#mission{width:270px}#objective{display:block;font-size:14px;color:#7853a8;line-height:1.4}#treats{display:flex;flex-wrap:wrap;gap:6px;font-size:11px}#treats span{background:#eee6f4;padding:6px 8px;border-radius:9px}#treats .collected{background:#dfefde;color:#3f6847}#mission #guide,#mission #replay{font-size:12px;padding:10px 14px;margin-top:10px;background:#7954a8;color:white;box-shadow:none}#guide[hidden],#replay[hidden]{display:none}@media(max-width:700px){#mission{width:220px}#mission h1{font-size:20px}#mission p{font-size:12px;margin:8px 0}#treats{font-size:10px}#stars{font-size:19px}}

.activities{display:flex;gap:7px;margin-bottom:19px}.activities button{flex:1;font-size:12px;padding:10px 5px;background:#eee7f5;box-shadow:none}.activities button[aria-pressed="true"]{background:#7954a8;color:white}#picnic-panel[hidden],#fishing-panel[hidden],#fish-reward[hidden]{display:none}#fish-action{width:100%;background:#7954a8;color:white;padding:12px}#dock-guide{font-size:11px;padding:10px 12px;margin-top:12px}#fish-count{font-size:11px;color:#8a729b;margin:12px 0 8px}#fish-colours{display:flex;flex-wrap:wrap;gap:7px;font-size:11px}#fish-reward{display:flex;align-items:center;gap:12px;margin-top:12px;background:#f1e8f8;padding:10px;border-radius:12px}#fish-reward span{font-size:34px}#fish-colour{text-transform:capitalize;font-size:17px}.fish-hint{font-size:10px;color:#96899f;margin-bottom:0}@media(max-width:700px){.activities{margin-bottom:12px}.fish-hint{font-size:9px}#fishing-panel h1{font-size:17px}#mission{max-height:calc(100dvh - 185px);overflow:auto}}

#bike-panel[hidden]{display:none}#bike-action{width:100%;background:#7954a8;color:white;font-size:13px}#bike-guide,#bike-bell{font-size:11px;padding:10px 12px;margin-top:9px}#bike-checkpoints{color:#9872ba;font-size:19px;letter-spacing:1px}#bike-count{font-size:12px;color:#8b729f}.activities button{padding:9px 3px;font-size:11px}#bike-panel h1{font-size:22px}@media(max-width:700px){#bike-panel h1{font-size:20px}#bike-checkpoints{font-size:17px;letter-spacing:0}}

.activities{flex-wrap:wrap}.activities button{flex:1 1 40%}#kitchen-panel[hidden],#oven-progress[hidden]{display:none}#cook-action{width:100%;background:#7954a8;color:white;font-size:12px}#cook-guide,#cook-door{font-size:11px;padding:10px;margin-top:8px}.flavours{display:flex;gap:6px}.flavours button{font-size:11px;padding:9px 12px;box-shadow:none;background:#eee5f5}.flavours [aria-pressed="true"]{background:#ba9bd9;color:#fff}#cook-steps{font-size:11px;color:#836797}#oven-progress{width:100%;accent-color:#e8b362}#kitchen-panel h1{font-size:22px}

.top-actions{display:flex;gap:8px}.top-actions button{font-size:12px}#friends-panel[hidden]{display:none}#friends-panel label{display:block;margin:15px 0 7px;font-size:12px;font-weight:bold}#move-picker{width:100%;border:1px solid #d8c3e8;border-radius:12px;padding:10px;background:#fff9f3;color:#604677;font:inherit;font-size:13px}.friend-visits{display:flex;gap:6px}.friend-visits button,#friend-hello,#friend-trick,#do-move{font-size:11px;padding:10px 11px;margin-top:8px}#do-move{background:#7954a8;color:white}#mission{max-height:calc(100dvh - 245px);overflow:auto}@media(max-width:700px){.top-actions{gap:5px}.top-actions button{font-size:10px;padding:10px}header a{font-size:17px}#mission{max-height:calc(100dvh - 185px)}}

#story-panel[hidden],#story-guide[hidden],#story-back[hidden],#story-replay[hidden]{display:none}#story-panel h1{font-size:22px}#story-goal{font-size:13px;color:#8663a8}#story-action{background:#7954a8;color:white;width:100%;margin-top:14px;padding:12px;font-size:13px}#story-read,#story-guide,#story-back,#story-replay{font-size:11px;padding:9px 11px;margin-top:8px}#story-progress,#story-purple{font-size:12px}#story-save{font-size:10px;color:#8c7c96}.chapter-map{font-size:11px;margin-top:12px}.chapter-map p{font-size:11px}

/* Readable controls and a calm parent-accessible pause menu. */
button{transition:background .15s ease,transform .15s ease}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:default}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #edb659;outline-offset:3px}#mission{scrollbar-width:thin;scrollbar-color:#c8b2df transparent;overscroll-behavior:contain}.activities button{min-height:38px}.chapter-map{border-top:1px solid #e1d5eb;padding-top:14px}.chapter-map b{display:block;margin-bottom:9px}.chapter-map button{display:block;width:100%;text-align:left;font-size:11px;margin:7px 0;padding:11px 12px;background:#eee5f6;box-shadow:none}#story-blue{font-size:12px;color:#397da1;margin:6px 0}#story-purple{margin-top:8px}#notice{font-size:15px;line-height:1.5;box-shadow:0 5px 24px #57406b14;max-width:min(620px,90vw);pointer-events:none}#pause-menu{border:1px solid #fff;border-radius:28px;background:#fffaf3;color:#503766;width:min(460px,92vw);max-height:90dvh;padding:25px;box-shadow:0 20px 100px #32204255}#pause-menu::backdrop{background:#33234488;backdrop-filter:blur(5px)}.pause-heading{text-align:center}.pause-heading span{font-size:40px;color:#a17bca}.pause-heading small{display:block}.pause-heading h2{margin:6px 0;font-size:28px}.pause-heading p{margin:5px 0 20px}fieldset{border:1px solid #decee9;border-radius:16px;padding:16px}legend{font-weight:bold;font-size:14px}fieldset label{display:flex;justify-content:space-between;font-size:12px;font-weight:bold;margin-top:13px}fieldset select{width:100%;padding:10px;margin-top:7px;border:1px solid #d7c1e6;border-radius:10px;background:#fff;color:#563c7c}fieldset input{width:100%;accent-color:#9470b7;margin:12px 0}fieldset button{font-size:12px;padding:11px;margin:5px 4px 0 0}#narrator-status{font-size:11px;line-height:1.5;margin:0;color:#82718b}.pause-controls{font-size:12px;color:#82718b;text-align:center}#resume{width:100%;color:white;background:#7954a8}#pause{white-space:nowrap}@media(max-width:900px){header{left:20px;right:20px}.top-actions button{font-size:10px;padding:11px}#mission{left:20px;width:245px;padding:18px}}@media(max-width:600px){header{flex-wrap:wrap;gap:10px;top:12px}.top-actions{margin-left:auto}header a{font-size:17px}.top-actions button{font-size:9px;padding:9px}#mission{top:103px;left:12px;width:210px;max-height:calc(100dvh - 205px);padding:14px}#notice{bottom:87px;font-size:12px;padding:10px 15px}footer{bottom:14px}.actions button{font-size:11px;min-height:42px;padding:10px 13px}.touch{left:auto;right:10px;bottom:142px}.touch button{background:#fffaf5dd}}@media(prefers-reduced-motion:reduce){button{transition:none}}
.chapter-map button[aria-pressed="true"]{background:#7954a8;color:white}

#garden-panel[hidden],#garden-enter[hidden],#garden-back[hidden]{display:none}#garden-enter{background:#7954a8;color:white;width:100%;font-size:13px}.garden-paths{display:grid;gap:8px;margin-top:12px}.garden-paths button,#garden-back{padding:11px 12px;font-size:12px;text-align:left;box-shadow:none;background:#eee5f4}.garden-paths button[aria-pressed="true"]{background:#d9e9cc;color:#456036}#garden-back{margin-top:12px}

.garden-places{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:15px}.garden-places button{font-size:10px;padding:11px 7px;text-align:left;background:#eee5f4;box-shadow:none}.garden-places button[aria-pressed="true"]{background:#7954a8;color:white}.garden-section{font-size:10px;letter-spacing:1px;text-transform:uppercase;margin:16px 0 4px;color:#9179a4}#garden-crossroads,#garden-bedroom{font-size:11px;padding:10px 12px;margin-top:10px}#garden-crossroads[hidden],#garden-bedroom[hidden]{display:none}

#skate-panel[hidden],#skate-replay[hidden],#bike-checkpoints[hidden],#bike-count[hidden]{display:none}#skate-action{width:100%;background:#7954a8;color:white;font-size:13px}#skate-guide,#skate-replay,[data-meadow-guide]{font-size:11px;padding:10px 12px;margin-top:9px}#skate-count{font-size:12px;color:#8b729f}#bike-panel .flavours{margin:10px 0 14px}#bike-panel .flavours button{flex:1;padding:9px 6px}
