:root{--ink:#345448;--cream:#fffaf0;--leaf:#4e7158;--gold:#e4b759;--soft:#f2e8d1;--line:#ded3b9;--shadow:0 12px 36px #51412b16;font-family:Trebuchet MS,Verdana,sans-serif;color:var(--ink);background:#f7f0e0;font-size:16px}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:radial-gradient(ellipse at top,#fffdf5,#eee4cc)}button,a,input{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button{border:1px solid var(--line);background:var(--cream);border-radius:16px;min-height:48px;padding:10px 17px;transition:background .15s,transform .15s}button:hover{background:#f6e5b8}button:active{transform:scale(.96)}button:focus-visible,a:focus-visible,input:focus-visible{outline:4px solid #2b789d;outline-offset:3px}button:disabled{opacity:.55;cursor:default}button.primary{background:var(--leaf);color:white;border:0;box-shadow:0 4px 0 #2d4b37;padding:15px 25px;font-weight:bold}.quiet{border:0;background:transparent}.small{font-size:.78rem;line-height:1.6;opacity:.7}.hidden{display:none!important}.topbar{height:66px;padding:10px 30px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4d9c2;background:#fffcf3e8;gap:14px}.return{color:var(--ink);font-size:.8rem;text-decoration:none;min-height:44px;display:flex;align-items:center;gap:7px}.wordmark{font-family:Georgia,serif;font-size:1.5rem;letter-spacing:-.5px}.wordmark span{font-size:.85rem;margin-left:4px;letter-spacing:0}.icon-button{width:46px;padding:6px;font-size:1.3rem}.welcome{height:calc(100dvh - 66px);display:grid;grid-template-columns:1.25fr 1fr;max-width:1440px;margin:auto;padding:32px;gap:50px;align-items:center}.cover-art{height:min(73vh,780px);overflow:hidden;border-radius:48% 48% 35% 35%;box-shadow:var(--shadow);border:10px solid #fff9ec}.cover-art img{height:100%;width:100%;object-fit:cover;object-position:49% center}.welcome-card{text-align:center;max-width:500px}.eyebrow{font-size:.65rem;font-weight:bold;letter-spacing:2px}.welcome h1{font-family:Georgia,serif;font-size:clamp(2.8rem,4.6vw,5rem);font-weight:normal;line-height:1.06;margin:20px 0;color:#3f5b47}.subtitle{font-family:Georgia,serif;font-style:italic;font-size:1.2rem;margin-top:0;color:#90734b}.welcome-card>p{line-height:1.7}.welcome-card>button{display:block;margin:14px auto;min-width:240px}.welcome-pictures{display:flex;justify-content:center;gap:25px;font-size:1.8rem;margin:20px}.game{height:calc(100dvh - 66px);max-width:1440px;margin:auto;display:grid;grid-template-rows:64px minmax(0,1fr) 84px 76px;padding:0 30px 12px}.scene-heading{display:flex;align-items:center;gap:18px}.scene-heading h1{font-family:Georgia,serif;font-weight:normal;font-size:1.7rem;margin:0}.route-dots{margin-left:auto;display:flex;gap:6px}.route-dots span{width:7px;height:7px;background:#d6cfbc;border-radius:100%}.route-dots .done{background:#92a68b}.route-dots .current{background:#ad793c;box-shadow:0 0 0 4px #ebdfbd}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:28px;min-height:0}.stage-shell{min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.stage{aspect-ratio:4/3;width:100%;max-height:100%;position:relative;overflow:hidden;border-radius:24px;border:5px solid #fff9ed;box-shadow:var(--shadow);background:#dce6c7;isolation:isolate;container-type:size}.stage>img{width:100%;height:100%;object-fit:fill;position:absolute;inset:0;user-select:none}.stage-caption{display:none}.goal-panel{padding:22px 15px 10px;text-align:center;background:#fffaf2b8;border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #e8dfcc;min-height:0}.goal-label,.memory-label{font-size:.65rem;letter-spacing:1.8px;font-weight:bold;color:#90734b}.goal-picture{width:88px;height:88px;display:flex;align-items:center;justify-content:center;margin-top:18px}.goal-picture>img,.goal-picture>svg{width:100%;height:100%;object-fit:cover;border-radius:18px}.goal{font-size:1.22rem;line-height:1.5;max-width:210px;margin:14px 0}.step-progress{display:flex;gap:5px;margin-bottom:25px;flex-wrap:wrap;justify-content:center}.step-progress span{height:5px;width:16px;border-radius:3px;background:#e3dccb}.step-progress .done{background:#6e9572}.memory-label{margin:5px 0 12px}.clue-strip{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.clue-strip button{padding:3px;width:42px;min-height:42px;height:42px;border-radius:12px}.clue-strip img,.clue-strip svg{width:100%;height:100%;object-fit:cover;border-radius:8px}.empty-clue{opacity:.35;font-size:1.5rem}.save-status{font-size:.65rem;color:#8b917f;margin:18px 0 0}.speech-row{display:flex;align-items:center;gap:14px;padding:12px 5px;max-width:950px;width:100%;margin:0 auto;min-height:0}.speech-row img{width:52px;height:52px;border:3px solid #fffaf0;border-radius:50%;object-fit:cover}.speech-row p{font-family:Georgia,serif;font-size:1.08rem;line-height:1.5;margin:0;flex:1}.speaking{opacity:0;font-size:1.5rem}.speaking.active{opacity:1;animation:bob 2s infinite}.toolbar{display:flex;align-items:center;justify-content:center;gap:13px;border-top:1px solid #e4d9c2;padding:7px 0 0}.toolbar button{border:0;background:transparent;min-width:77px;padding:3px 10px;height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.toolbar button>span{font-size:1.65rem;line-height:1.1}.toolbar small{font-size:.65rem}.toolbar .help{position:relative;width:80px;color:#fff}.help svg{position:absolute;inset:0;width:100%;height:100%;fill:#587c60;z-index:-1}.toolbar .help{isolation:isolate}.help small{font-weight:bold;font-size:.82rem;margin-top:20px}.target{position:absolute;transform:translate(-50%,-50%);width:clamp(48px,8cqw,90px);height:clamp(48px,8cqw,90px);min-height:48px;padding:5px;background:#fffaf0ee;border:3px solid #fff;box-shadow:0 3px 12px #203b3744;border-radius:50%;z-index:6;display:grid;place-items:center}.target img,.target svg{width:100%;height:100%;border-radius:50%;object-fit:cover;pointer-events:none}.target>span{font-size:clamp(28px,4cqw,50px);pointer-events:none}.target.important::after{content:'';position:absolute;inset:-6px;border:2px dashed #fff5ce;border-radius:inherit;pointer-events:none;animation:cue 4s ease-in-out infinite}.target.optional{width:clamp(44px,6cqw,63px);height:clamp(44px,6cqw,63px);min-height:44px;opacity:.94;border-width:2px;z-index:5}.target.optional::before{content:'✧';position:absolute;right:-6px;top:-7px;font-size:18px;color:#fdf9d2;text-shadow:0 1px 3px #526d42}.target.found::before{content:'♥';color:#8d5965}.target.choice{width:clamp(92px,21cqw,190px);height:clamp(95px,22cqw,195px);border-radius:22px;padding:10px;background:#fffcf3;z-index:8}.target.choice img,.target.choice svg{border-radius:14px}.target.choice>span{font-size:clamp(50px,9cqw,96px)}.target .target-label{display:none}.target.highlight{outline:7px solid #f5cd70;outline-offset:5px;z-index:10;animation:gentle 2s infinite}.stage.locked .target{pointer-events:none}.stage.locked .target:not(.optional){opacity:.8}.pippa{position:absolute;width:clamp(70px,15cqw,150px);height:clamp(70px,15cqw,150px);left:25%;top:80%;transform:translate(-50%,-78%);z-index:4;pointer-events:none;transition:left .85s ease-in-out,top .85s ease-in-out}.pippa .kitten{width:100%;height:100%;background-image:url('assets/sprites/pippa-idle.png');background-size:contain;background-position:center bottom;background-repeat:no-repeat;position:relative;z-index:2;transform-origin:center 83%;animation:breathe 4s ease-in-out infinite}.pippa-shadow{position:absolute;width:65%;height:10%;background:#41432524;filter:blur(3px);bottom:7%;left:17%;border-radius:50%}.pippa.facing-left .kitten{scale:-1 1}.pippa.walk .kitten{animation:walk .8s steps(1) infinite}.pippa.sniff .kitten{background-image:url('assets/sprites/pippa-sniff.png');animation:sniff 1.5s infinite}.pippa.listen .kitten,.pippa.look .kitten{background-image:url('assets/sprites/pippa-listen.png');animation:listen 2s infinite}.pippa.curl .kitten{background-image:url('assets/sprites/pippa-curl.png');animation:breathe 5s infinite}.pippa.wriggle .kitten{animation:wriggle 1.2s}.pippa.purr .kitten,.pippa.hug .kitten{animation:breathe 1s infinite}.pippa.step .kitten,.pippa.climb .kitten{animation:hop .9s}.actor{position:absolute;width:clamp(65px,13cqw,140px);height:clamp(75px,20cqw,190px);transform:translate(-50%,-85%);object-fit:contain;z-index:3;pointer-events:none;animation:breathe 5s infinite}.actor.small{width:clamp(45px,9cqw,90px);height:clamp(45px,9cqw,90px)}.weather{position:absolute;inset:0;pointer-events:none;opacity:.25;z-index:2}.weather.rain{background-image:repeating-linear-gradient(108deg,transparent 0 30px,#e0f5fa 31px 33px,transparent 34px 60px);background-size:90px 130px;animation:rain 2s linear infinite}.weather.pond:after{content:'';position:absolute;inset:35% 0 10%;background:repeating-radial-gradient(ellipse at 40% 60%,transparent 0 40px,#ffffff20 42px 44px,transparent 46px 90px);animation:water 8s ease-in-out infinite}.sparkle{display:none;position:absolute;transform:translate(-50%,-50%);color:#fff5ad;font-size:4rem;z-index:10;pointer-events:none;text-shadow:0 0 15px #926d31}.sparkle.active{display:block;animation:sparkle .9s both}.visual-event{position:absolute;left:50%;top:20%;transform:translate(-50%,-50%);font-size:clamp(30px,6cqw,75px);z-index:9;pointer-events:none;white-space:nowrap}.visual-event:empty{display:none}.paused *{animation-play-state:paused!important}dialog{max-width:min(92vw,700px);width:620px;max-height:90dvh;border:1px solid var(--line);border-radius:28px;background:var(--cream);color:var(--ink);padding:28px;box-shadow:0 25px 100px #20332955}dialog::backdrop{background:#2c443d91;backdrop-filter:blur(4px)}dialog h2{font-family:Georgia,serif;font-size:2rem;font-weight:normal;margin:5px 0 15px}dialog p{line-height:1.6}dialog .dialog-top{display:flex;justify-content:space-between;align-items:center;gap:20px}dialog .close{width:48px;padding:0;font-size:1.5rem}dialog .actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 4px;justify-content:center}dialog .actions button{flex:1;min-width:140px}.hint-picture{height:100px;width:100px;margin:10px auto}.hint-picture>*{width:100%;height:100%;object-fit:cover;border-radius:18px}.settings-row{display:grid;grid-template-columns:1fr 95px;align-items:center;margin:10px 0;gap:10px;min-height:48px}.settings-row input[type=range]{width:100%;grid-column:1/-1;accent-color:#4d755b}.settings-row button[aria-pressed=true]{background:var(--leaf);color:white}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.gallery button{padding:7px;overflow:hidden}.gallery img{width:100%;border-radius:9px;aspect-ratio:4/3;object-fit:cover}.gallery small{display:block;line-height:1.4;font-size:.72rem;margin-top:4px}.memory-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}.memory-card{width:110px;text-align:center;padding:6px}.memory-card img,.memory-card svg{width:95px;height:95px;border-radius:15px;object-fit:cover}.memory-card p{font-size:.8rem;margin:6px 0}.ending-art{width:100%;max-height:30vh;object-fit:cover;object-position:center 65%;border-radius:18px}.big-pictures{text-align:center;font-size:3rem}.caption-off #caption{visibility:hidden}.reduced *{animation:none!important;transition:none!important}.reduced .pippa.walk .kitten{background-image:url('assets/sprites/pippa-walk1.png')}.reduced .sparkle.active{display:block}@keyframes breathe{50%{transform:scale(1.015, .985)}}@keyframes bob{50%{transform:translateY(-3px)}}@keyframes cue{0%,70%,100%{opacity:.4}85%{opacity:1}}@keyframes gentle{50%{outline-color:#fff1b5}}@keyframes walk{0%,100%{background-image:url('assets/sprites/pippa-walk1.png')}25%{background-image:url('assets/sprites/pippa-walk2.png')}50%{background-image:url('assets/sprites/pippa-walk3.png')}75%{background-image:url('assets/sprites/pippa-walk4.png')}}@keyframes sniff{50%{transform:translateX(3px) rotate(3deg)}}@keyframes listen{50%{transform:rotate(-3deg)}}@keyframes wriggle{25%,75%{transform:rotate(8deg) scale(.85)}50%{transform:rotate(-8deg) scale(.8)}}@keyframes hop{50%{transform:translateY(-15px)}}@keyframes rain{to{background-position:-30px 130px}}@keyframes water{50%{opacity:.4;transform:scale(1.04)}}@keyframes sparkle{from{opacity:0;scale:.5}40%{opacity:1}to{opacity:0;scale:1.5}}
@media(min-width:1000px) and (max-height:800px){.game{grid-template-rows:52px minmax(0,1fr) 70px 68px}.goal-picture{width:65px;height:65px;margin-top:8px}.goal{font-size:1rem;margin:10px 0}.step-progress{margin-bottom:12px}.toolbar button{height:58px}.stage{width:auto;height:100%;max-width:100%}}
@media(max-width:700px) and (orientation:portrait){.topbar{height:52px;padding:5px 12px;gap:6px}.wordmark{font-size:1.15rem}.wordmark span{display:none}.return{font-size:.69rem}.icon-button{min-height:42px;width:42px}.welcome{height:calc(100dvh - 52px);display:flex;flex-direction:column;gap:6px;padding:12px 20px;justify-content:center}.cover-art{height:28dvh;min-height:140px;width:90%;border:5px solid #fff9ec;border-radius:45% 45% 25% 25%}.cover-art img{object-position:50% 64%}.welcome-card .eyebrow{font-size:.5rem;letter-spacing:1.5px}.welcome h1{font-size:2.6rem;margin:10px 0}.welcome .subtitle{font-size:.95rem;margin-bottom:6px}.welcome-card>p:not(.subtitle):not(.small){font-size:.85rem;line-height:1.4;margin:10px}.welcome-pictures{font-size:1.3rem;margin:7px;gap:22px}.welcome-card>button{min-height:48px;padding:10px 20px;margin:10px auto}.welcome-card>.small{font-size:.65rem;margin:5px}.welcomeSettings{margin:0}.game{height:calc(100dvh - 52px);padding:0 10px max(8px,env(safe-area-inset-bottom));grid-template-rows:51px minmax(0,1fr) 74px 73px}.scene-heading{gap:8px;flex-wrap:wrap;align-content:center}.scene-heading>.eyebrow{font-size:.5rem;letter-spacing:1px}.scene-heading h1{font-size:1.22rem}.route-dots{width:100%;justify-content:center;margin:3px 0;gap:8px}.route-dots span{width:5px;height:5px}.play-layout{display:flex;flex-direction:column-reverse;gap:8px;justify-content:center;min-height:0}.goal-panel{padding:8px 10px;display:grid;grid-template-columns:52px 1fr;grid-template-rows:auto auto;background:#fffaf0;border-radius:16px;min-height:82px;max-height:110px;flex-shrink:0;text-align:left;gap:0 10px}.goal-label{font-size:.5rem;letter-spacing:1.2px;grid-column:2;grid-row:1}.goal-picture{width:46px;height:46px;margin:0;grid-column:1;grid-row:1/3}.goal{font-size:.94rem;line-height:1.35;max-width:none;margin:4px 0;grid-column:2;grid-row:2}.step-progress{grid-column:1/-1;margin:4px 0 0;gap:4px}.step-progress span{height:3px;width:16px}.memory-label,.clue-strip,.save-status{display:none}.stage-shell{flex:0 1 auto;width:100%;min-height:0}.stage{width:100%;max-height:100%;border-radius:20px;border-width:3px;flex-shrink:1}.speech-row{gap:9px;padding:6px 3px}.speech-row p{font-size:.89rem;line-height:1.4}.speech-row img{width:42px;height:42px;flex-shrink:0}.speaking{font-size:1rem}.toolbar{justify-content:space-between;gap:0;padding-top:5px}.toolbar button{min-width:0;width:20%;padding:3px 4px;height:64px}.toolbar button>span{font-size:1.5rem}.toolbar small{font-size:.6rem}.toolbar .help{width:72px;flex-shrink:0}.toolbar .help small{font-size:.76rem}.target{width:48px;height:48px}.target.optional{width:44px;height:44px}.target.choice{width:100px;height:108px;padding:8px}.pippa{width:82px;height:82px}.gallery{grid-template-columns:repeat(2,1fr)}dialog{padding:20px;max-height:88dvh}dialog h2{font-size:1.6rem}.settings-row{margin:7px 0}.settings-row input[type=range]{margin:0}.hint-picture{height:85px;width:85px}}
@media(orientation:landscape) and (max-height:600px){.topbar{height:42px;padding:3px 14px}.wordmark{font-size:1.1rem}.wordmark span{font-size:.7rem}.return{font-size:.68rem}.icon-button{min-height:34px;height:34px;width:40px}.game{height:calc(100dvh - 42px);padding:0 12px 4px;grid-template-rows:32px minmax(0,1fr) 47px}.scene-heading h1{font-size:1.15rem}.scene-heading .eyebrow{font-size:.5rem}.route-dots{gap:5px}.play-layout{grid-template-columns:minmax(0,1fr) 190px;gap:14px;padding-right:72px}.stage{height:100%;width:auto;max-width:100%;border-width:3px;border-radius:17px}.goal-panel{padding:6px 10px;border-radius:15px}.goal-label{font-size:.5rem}.goal-picture{width:46px;height:46px;margin-top:6px}.goal{font-size:.83rem;margin:6px 0;line-height:1.35}.step-progress{margin:2px 0 8px}.memory-label{font-size:.5rem;margin:0 0 6px}.clue-strip button{width:30px;height:30px;min-height:30px}.save-status{display:none}.speech-row{padding:4px;max-width:700px;margin-left:0}.speech-row p{font-size:.82rem;line-height:1.3}.speech-row img{width:34px;height:34px}.toolbar{position:absolute;right:9px;top:79px;bottom:8px;width:66px;flex-direction:column;border:0;padding:0;gap:0}.toolbar button{min-width:0;width:62px;height:45px;min-height:42px;padding:0;gap:1px}.toolbar button>span{font-size:1.18rem}.toolbar small{font-size:.52rem}.toolbar .help{height:55px;width:64px}.toolbar .help small{font-size:.62rem;margin-top:16px}.pippa{width:70px;height:70px}.target{width:44px;height:44px;min-height:44px;border-width:2px}.target.choice{width:87px;height:92px;min-height:44px}.target.optional{width:44px;height:44px}.welcome{height:calc(100dvh - 42px);padding:12px 40px;gap:30px}.cover-art{height:82dvh;border-width:5px}.welcome h1{font-size:2.6rem;margin:9px 0}.welcome-card .subtitle{font-size:.95rem;margin-bottom:5px}.welcome-card>p:not(.subtitle){font-size:.75rem;line-height:1.3;margin:6px}.welcome-pictures{font-size:1.2rem;margin:7px}.welcome-card>button{min-height:40px;margin:9px auto;padding:9px}.welcome-card .eyebrow{font-size:.5rem}.welcome-card .small{display:none}dialog{padding:18px;max-height:92dvh}dialog h2{font-size:1.45rem}.hint-picture{width:70px;height:70px}.settings-row{margin:0}.settings-row button{min-height:36px}.settings-row input[type=range]{grid-column:auto}.settings-row{grid-template-columns:1fr 75px 160px}.gallery{grid-template-columns:repeat(4,1fr)}}
@media(max-height:700px) and (orientation:portrait){.game{grid-template-rows:45px minmax(0,1fr) 65px 67px}.goal-panel{min-height:73px;padding:5px 9px}.goal{font-size:.85rem}.stage-shell{flex:1;min-height:0}.stage{height:100%;width:auto;max-width:100%;aspect-ratio:4/3}.speech-row p{font-size:.8rem}.toolbar button{height:58px}.welcome .cover-art{height:22dvh;min-height:100px}.welcome h1{font-size:2.2rem}.welcome-card .small{display:none}.welcome-card>button{margin:8px auto}.target.choice{width:88px;height:90px}.target.optional{width:40px;height:40px;min-height:40px}}
.welcome{overflow-y:auto;min-height:0}.goal-picture{border:0;padding:0;background:transparent;flex-shrink:0}.goal-picture:hover{background:#f4e4b6}.pippa.idle .kitten{animation:blink 7s steps(1) infinite,breathe 4s ease-in-out infinite}.actor.react{animation:reaction 1s ease-in-out}.stage{width:min(100%,calc((100dvh - 310px)*1.333333));height:auto;flex-shrink:0}.target.choice{max-width:28cqw}.welcome-card{flex-shrink:0}.cover-art{flex-shrink:1}.memory-card>span{font-size:3rem}@keyframes blink{0%,94%,98%,100%{background-image:url('assets/sprites/pippa-idle.png')}95%,97%{background-image:url('assets/sprites/pippa-blink.png')}}@keyframes reaction{30%{transform:translate(-50%,-90%) rotate(-4deg)}70%{transform:translate(-50%,-90%) rotate(4deg)}}
@media(max-width:700px) and (orientation:portrait){.stage{width:min(100%,calc((100dvh - 385px)*1.333333));height:auto;flex-shrink:0}.stage-shell{min-height:0;flex:1;justify-content:center}.goal-panel{flex-shrink:0}.stage-caption{display:none}.goal-picture{width:46px;height:46px}}
@media(orientation:landscape) and (max-height:600px){.stage{width:min(100%,calc((100dvh - 130px)*1.333333));height:auto;flex-shrink:0}.goal-panel .goal-picture{width:46px;height:46px}.settings-row input[type=range]{grid-column:auto}.cover-art{min-width:0}}
.target:active{transform:translate(-50%,-50%) scale(.96)}.target.friend{width:clamp(55px,12cqw,125px);height:clamp(65px,17cqw,175px);border:0;box-shadow:none;border-radius:30%;background:transparent;opacity:1}.target.friend::before{display:none}.target.friend>span{position:absolute;right:-5px;top:0;background:#fffaf0e8;border:1px solid #efdfbe;border-radius:45%;width:26px;height:24px;font-size:18px;color:#628068}.target.friend:focus-visible{background:#fff8c236}.target.friend:hover{background:#fff8c218}.target.friend.found{opacity:1}
.welcome-pictures>span{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center}.welcome-pictures img,.welcome-pictures svg{width:100%;height:100%;border-radius:12px;object-fit:cover}.ui-symbol{display:inline-flex;width:1.3em;height:1.3em;vertical-align:middle;align-items:center;justify-content:center;margin-right:.2em}.ui-symbol>svg,.ui-symbol>img{width:100%;height:100%;object-fit:cover;border-radius:6px}.visual-event>svg,.visual-event>img{width:clamp(40px,8cqw,85px);height:clamp(40px,8cqw,85px);border-radius:18px;object-fit:cover;box-shadow:0 3px 20px #eee4c699}@media(max-width:700px){.welcome-pictures>span{width:29px;height:29px}}
@media(prefers-reduced-motion:reduce){*:not(.force-motion){animation:none!important;transition:none!important}}
