/* Optional Help Kitten / Help Puppy collection. Load after legacy scene CSS. */
.workbook-discoveries{position:absolute;inset:0;z-index:24;pointer-events:none!important;user-select:none}
.workbook-discoveries *{pointer-events:none!important}
.workbook-discoveries>.workbook-find,.quest-world-finds>.workbook-find{position:absolute;width:64px;height:56px;min-width:44px;min-height:44px;padding:0;border:0;background:none;border-radius:12px;cursor:pointer;pointer-events:auto!important;touch-action:manipulation;rotate:var(--find-angle,0deg);transform:none}
.quest-find-patio{left:76%!important;top:68%!important;--find-angle:-8deg}
.quest-world-finds{position:absolute;inset:0;pointer-events:none!important}
#outside-world .quest-find-trail{left:34%;top:67%;--find-angle:8deg}
#outside-world .quest-find-fork{left:47%;top:29%;--find-angle:-6deg}
#outside-world .quest-find-bridge{left:27%;top:35%;--find-angle:5deg}
#outside-world .quest-find-garden{left:75.25%;top:36%;--find-angle:-9deg}
.workbook-find-art{position:absolute;left:0;bottom:1px;width:100%;height:100%;max-height:none;object-fit:contain;filter:brightness(.76) saturate(.9);opacity:.9;translate:none;transition:filter .3s,opacity .3s}
#journey-viewport .workbook-find:after{content:"";position:absolute;z-index:2;left:-36%;bottom:-22%;width:145%;height:105%;background:url('assets/trail-v11/fern-fringe-v11.webp') center bottom/100% 100% no-repeat;transform-origin:48% 91%;pointer-events:none!important;rotate:-13deg;transition:rotate .55s,translate .55s;opacity:1}
.quest-find-bridge:after{scale:-1 1;rotate:9deg}.quest-find-garden:after{rotate:-5deg}
#journey-viewport .workbook-find:is(.is-near,.is-peeked,:focus-visible):after{rotate:-29deg;translate:-14% 5%}
.workbook-find:is(.is-near,.is-peeked,:focus-visible)>.workbook-find-art{filter:none;opacity:1}
.workbook-find:focus-visible{outline:3px dashed #ffe99a;outline-offset:4px;background:#fff1bf18}
.workbook-find-caption{position:absolute;left:50%;bottom:65px;translate:-50% 0;width:max-content;max-width:150px;padding:6px 9px;border:1px solid #a6814c;border-radius:7px;background:#fff1ccee;color:#4d2c4c;font:400 12px/1.15 "Quest Display",sans-serif;text-align:center;opacity:0;z-index:5;pointer-events:none;box-shadow:0 3px 0 #60432f55}
.workbook-find:is(.is-near,.is-peeked,:focus-visible)>.workbook-find-caption{opacity:1}
.workbook-find.is-found>.workbook-find-art{opacity:.32;filter:grayscale(1)}
.workbook-find.is-found:before{content:"✓";position:absolute;right:-2px;top:0;z-index:5;width:21px;height:21px;border-radius:50%;background:#fff1bb;color:#355c41;border:1px solid #46684b;display:grid;place-items:center;font:800 15px "Segoe UI",sans-serif;pointer-events:none}
.find-sparkles{position:absolute;inset:-8px;z-index:6;pointer-events:none!important}
.find-sparkles i{position:absolute;left:50%;top:50%;width:7px;height:7px;background:#ffe6a2;opacity:0;clip-path:polygon(50% 0,62% 35%,100% 50%,62% 65%,50% 100%,38% 65%,0 50%,38% 35%);--sx:-34px;--sy:-28px}
.find-sparkles i:nth-child(2){--sx:36px;--sy:-22px}.find-sparkles i:nth-child(3){--sx:-29px;--sy:22px}.find-sparkles i:nth-child(4){--sx:31px;--sy:29px}
.is-newly-found .find-sparkles i{animation:quest-find-spark .8s ease-out both}
@keyframes quest-find-spark{0%{opacity:0;transform:scale(.3)}20%{opacity:1}100%{opacity:0;transform:translate(var(--sx),var(--sy)) scale(.6)}}
.quest-collection{position:absolute;left:var(--discovery-pouch-left,134px);bottom:var(--discovery-pouch-bottom,15px);z-index:59;max-width:none;color:#493046}
.quest-collection>summary{display:flex;align-items:center;gap:4px;width:97px;height:54px;min-width:44px;min-height:44px;position:relative;padding:4px 7px 4px 3px;border:1px solid #ba9459;background:linear-gradient(#fff2c7,#e8c48a);border-radius:9px 13px;list-style:none;cursor:pointer;filter:drop-shadow(0 4px 3px #18362c77);box-sizing:border-box}
.quest-collection>summary::-webkit-details-marker{display:none}.quest-collection>summary::marker{content:""}
.quest-collection>summary>svg{display:block;flex:0 0 31px;width:31px;height:39px;pointer-events:none}
.quest-collection-label{display:block;font:700 10px/1.2 "Segoe UI",sans-serif;color:#684335;text-align:center;pointer-events:none}
.quest-collection-label>strong{display:block;font:800 19px/1.1 "Segoe UI",sans-serif;color:#492b47}
.quest-collection>summary:focus-visible{outline:3px solid #ffe78d;outline-offset:3px}
.quest-collection .workbook-pouch-sheet{position:absolute;left:0;bottom:66px;width:min(360px,calc(100vw - 28px));max-height:calc(100svh - 155px);box-sizing:border-box;overflow:auto;padding:18px;border:2px solid #9d784b;border-radius:10px 15px 9px 12px;background:linear-gradient(100deg,#e7ca92,#fff0c9 9%,#fff4d6 85%,#e8ca94);box-shadow:0 6px 0 #6b4e3955,0 14px 25px #18372c66}
.workbook-pouch-kicker{font:800 8px/1.2 "Segoe UI",sans-serif;letter-spacing:.12em;color:#8d5f4e;margin:0 0 5px}
.quest-collection h2{font:400 26px/1.1 "Quest Display",sans-serif;margin:0 0 10px;color:#4d2c4c}
.quest-collection p{font:400 12px/1.5 "Segoe UI",sans-serif;margin:9px 0;color:#634753}
.help-quest-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.help-quest-choices button,#workbook-find-reset{min-height:44px;padding:8px 10px;border:1px solid #886640;border-radius:6px 9px;background:#ffe2a0;color:#4d2c4c;font:400 14px/1.1 "Quest Display",sans-serif;cursor:pointer}
.help-quest-choices button[aria-pressed=true]{background:#63435c;color:#fff1c5;box-shadow:inset 0 0 0 2px #e9c780}
.quest-collection .quest-switch-note{font-size:10px;line-height:1.4;color:#775f52}
.quest-collection-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:14px 0}
.quest-collection-slots>li{min-height:86px;position:relative;display:grid;grid-template-rows:53px auto;align-items:center;justify-items:center;padding:5px;border:1px dashed #af8c60;border-radius:8px;background:#d4b98722;text-align:center;box-sizing:border-box}
.quest-collection-slots>li.is-filled{background:#fff9e2;border-style:solid;border-color:#8c8954}
.quest-collection-slots .unfound-mark{font:400 33px "Quest Display",sans-serif;color:#aa8c66;grid-row:1}.quest-collection-slots img{width:56px;height:51px;object-fit:contain;grid-row:1}
.quest-collection-slots [data-slot-name]{font:600 10px/1.2 "Segoe UI",sans-serif;color:#725642}
.quest-thanks{display:flex;align-items:center;gap:10px;padding:9px;background:#e0e7b8;border:1px solid #a9af74;border-radius:9px;margin:10px 0}
.quest-thanks img{width:74px;height:74px;object-fit:contain;flex:0 0 74px}.quest-thanks p{font-weight:700;color:#445239}
.quest-find-toast{position:absolute;z-index:58;left:50%;bottom:165px;translate:-50% 0;max-width:calc(100vw - 40px);width:max-content;padding:9px 15px;border:1px solid #d6b56c;border-radius:20px;background:#fff1ccef;color:#4e2d4b;box-shadow:0 4px 9px #173b3455;font:600 13px/1.3 "Segoe UI",sans-serif;pointer-events:none!important;text-align:center}
@media(max-width:1050px) and (min-width:601px){.quest-collection{left:var(--discovery-pouch-left,82px);bottom:7px}.quest-collection>summary{width:93px;height:48px}}
@media(max-width:600px){.quest-collection{left:var(--discovery-pouch-left,103px);bottom:13px}.quest-collection>summary{width:96px;height:47px}.quest-collection>summary>svg{width:28px;height:35px;flex-basis:28px}.quest-collection .workbook-pouch-sheet{left:-90px;bottom:59px;max-height:calc(100svh - 145px)}.quest-find-patio{left:76%!important;top:65%!important}.workbook-discoveries>.workbook-find{width:52px;height:48px}.workbook-find-caption{font-size:11px;max-width:130px;bottom:57px}.quest-find-toast{bottom:220px;font-size:12px}}
#journey-app[data-motion=still] .workbook-find:after,#journey-app[data-motion=still] .workbook-find-art{transition:none;animation:none}
#journey-app[data-motion=still] .find-sparkles{display:none}
@media(prefers-reduced-motion:reduce){.workbook-find:after,.workbook-find-art{transition:none!important;animation:none!important}.find-sparkles{display:none!important}}
/* Keep the collection below the fixed scene header; its own contents scroll. */
#workbook-pouch.quest-collection .workbook-pouch-sheet{max-height:calc(100svh - 220px)}
@media(max-width:600px){#workbook-pouch.quest-collection .workbook-pouch-sheet{max-height:calc(100svh - 230px)}}
@media(max-width:600px){.quest-world-finds>.workbook-find{width:52px;height:48px}}
