/* Little Bag, Big Adventure: one tactile stage, three embodied story moments. */
body.bag-flagship{background:#f2ead8}
body.bag-flagship #playScreen .story-window,body.bag-flagship #gameBoard>.mini-heading,body.bag-flagship #gameBoard>#feedback{display:none!important}
body.bag-flagship #playScreen .play-world{display:block!important;height:100%!important}
body.bag-flagship #gameBoard{display:block!important;width:100%!important;height:100%!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
body.bag-flagship #roundBoard{display:block!important;height:100%!important;width:100%!important;min-height:0!important;padding:0!important}
.ff-game{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 76px 24px;gap:6px;max-width:1300px;margin:auto;color:#214f49}
.ff-world{position:relative;container-type:size;min-height:0;overflow:hidden;border-radius:30px;background:#e4cba5 url('art/flagship-stage-v1.webp') center/cover no-repeat;box-shadow:inset 0 0 0 2px #fff6e5,0 5px 0 #a8855b33;isolation:isolate}
.ff-title{position:absolute;z-index:8;left:10%;right:10%;top:4%;text-align:center;font:clamp(22px,4.6cqh,38px)/1.1 Froople,'Trebuchet MS',sans-serif;text-shadow:0 2px #fff8e9,0 0 15px #fff9e4;margin:0!important;pointer-events:none}
.ff-trail{position:absolute;top:13%;left:38%;right:38%;height:12px;display:flex;align-items:center;z-index:5;gap:6px;pointer-events:none}.ff-trail i{width:10px;height:10px;flex:none;border:2px solid #b49b71;border-radius:50%;background:#fff1c9}.ff-trail span{height:2px;flex:1;background:#cab388}.ff-trail .done{background:#edb647;box-shadow:0 0 10px #fff0ab;border-color:#b68328}
.ff-world img{pointer-events:none;user-select:none;-webkit-user-drag:none;object-fit:contain}
body.bag-adventure .ff-world button,body.bag-adventure .ff-controls button{touch-action:none!important;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;min-width:48px;min-height:48px;cursor:grab}
body.bag-adventure .ff-world button{padding:0!important;margin:0;border:0!important;background:transparent!important;box-shadow:none!important;transform:none}
.ff-world button:focus-visible{outline:3px solid #fff7c6!important;outline-offset:4px}
.ff-chair{position:absolute;left:14%;width:72%;height:74%;top:18%;filter:drop-shadow(0 12px 7px #69431d40)}
.ff-seat{position:absolute;top:48%;width:21%;height:25%;transform:translateX(-50%);z-index:4;display:grid;place-items:center}
.ff-seat .ff-bag,.ff-treasure{width:85%;height:92%;filter:drop-shadow(0 4px 5px #6f481c66)}
body.bag-adventure .ff-world .ff-cover{position:absolute;inset:0;width:100%;height:100%;transition:translate .45s cubic-bezier(.2,1.3,.4,1),rotate .45s,opacity .4s;translate:0 calc(var(--lift,0) * -125%);rotate:calc(var(--lift,0) * -12deg);opacity:calc(1 - var(--lift,0) * .82);z-index:3}
.ff-cover img{width:100%;height:100%;filter:drop-shadow(0 7px 3px #68432266)}
.ff-lift-tab{position:absolute;bottom:1%;left:calc(50% - 24px);width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#fff6d6;border:2px solid #e0b65d;color:#946f37;font-size:26px;box-shadow:0 3px #b89150;animation:ff-hint 2s ease-in-out infinite}
.ff-uncovered .ff-cover{pointer-events:none}.ff-uncovered .ff-lift-tab{display:none}
.ff-rescue-bag{position:absolute;left:33%;top:37%;width:34%;height:35%;z-index:4;filter:drop-shadow(0 0 15px #fff0a1);transition:translate .08s linear}
body.bag-adventure .ff-world .ff-rescue-handle{position:absolute;left:calc(50% - 30px);top:35%;width:60px;height:60px;border:3px solid #fff3c3!important;border-radius:50%;background:#edc45b!important;z-index:6;color:#73512d;font-size:30px;box-shadow:0 0 22px #ffe79a!important;animation:ff-hint 2s infinite}
.ff-sun-rays{position:absolute;inset:17% 10%;background:conic-gradient(from 10deg,#ffe8a688,transparent 20deg,#ffe8a688 40deg,transparent 60deg);opacity:0;pointer-events:none;mask:radial-gradient(ellipse,#000,transparent 70%);z-index:-1}
.ff-controls{display:flex;align-items:center;justify-content:center;gap:18px;padding:5px 8px;min-height:0}
body.bag-adventure .ff-controls button{border-radius:50px!important;min-height:60px;padding:12px 28px;font:clamp(20px,2.4vw,27px)/1 Froople,'Trebuchet MS',sans-serif;background:linear-gradient(#fff2ae,#ffd96b);border:3px solid #fff8dd;box-shadow:0 5px #bc9651;color:#24534b;letter-spacing:.02em}
body.bag-adventure .ff-controls button:active,.ff-pressed{scale:.96}
.ff-status{font:700 clamp(13px,1.4vw,17px)/1.2 'Trebuchet MS',sans-serif;text-align:center;color:#5b7364;margin:0;padding:0 6px;min-height:20px}
.ff-friend{position:absolute;width:min(28cqw,32cqh);aspect-ratio:.75;overflow:hidden;bottom:21%;z-index:3;filter:drop-shadow(0 7px 5px #51381230)}
.ff-friend-sheet{display:block!important;position:relative;width:200%!important;max-width:none!important;height:auto!important;object-fit:fill!important}
.ff-dodu .ff-friend-sheet{left:-100%}.ff-waiting{left:8%}.ff-helper{right:8%}
.ff-road{position:absolute;left:4%;right:4%;top:53%;height:32%;z-index:1}.ff-road svg{width:100%;height:100%;overflow:visible}.ff-road path{stroke:#ffe4a1;stroke-width:18;stroke-dasharray:5 24;stroke-linecap:round;fill:none;filter:drop-shadow(0 2px #bda579)}
.ff-car{position:absolute;width:min(20cqw,29cqh);height:23%;transform:translate(-50%,-50%);z-index:5;filter:drop-shadow(0 6px 3px #66462455)}
.ff-garage{position:absolute;left:74%;top:58%;width:20%;height:27%;border-radius:50% 50% 18px 18px;background:#cddbb3a6;border:5px dashed #fff3b8;display:grid;place-items:center;font-size:clamp(40px,10cqh,90px);color:#657e56;z-index:2;box-shadow:0 0 20px #fff5c099}.ff-glow{background:#ffe8a6e0;box-shadow:0 0 40px #fff0a4}
.ff-car.ff-parked{rotate:0deg!important}.ff-ribbon{position:absolute;inset:39% 5% 5%;pointer-events:none;z-index:2}.ff-ribbon svg{width:100%;height:100%}.ff-ribbon path{fill:none;stroke:#efc75d;stroke-width:9;stroke-dasharray:3 5;stroke-linecap:round;filter:drop-shadow(0 3px 2px #96672a66)}
.ff-delivery-bag{position:absolute;width:min(18cqw,25cqh);height:23%;left:68%;top:61%;z-index:5;transform:translateX(-50%);filter:drop-shadow(0 0 12px #fff0ac)}
body.bag-adventure .ff-world .ff-ribbon-handle{position:absolute;left:73%;top:77%;width:60px;height:60px;border-radius:50%;border:3px solid #fff3c9!important;background:#eec765!important;box-shadow:0 5px #a77c40!important;z-index:6;font-size:30px;color:#72532b;translate:-50% 0}
.ff-thank-you{animation:ff-thanks .7s ease-in-out 2}
.ff-zip-bag{position:absolute;left:22%;top:20%;width:56%;height:65%;filter:drop-shadow(0 12px 8px #6b461e50)}
.ff-zip-track{position:absolute;left:27%;top:51%;width:46%;height:26px;border:3px solid #d1ac5b;border-radius:12px;background:#283f61;z-index:5;box-shadow:0 3px 4px #15254144}
.ff-zip-teeth{position:absolute;inset:0;border-radius:10px;background:repeating-linear-gradient(90deg,#fff1bc 0 4px,transparent 4px 9px);clip-path:inset(0 calc((1 - var(--zipped,0))*100%) 0 0)}
body.bag-adventure .ff-world .ff-zipper{position:absolute;left:0;top:-20px;width:58px;height:62px;background:linear-gradient(#fff5bf,#dbac45)!important;border:3px solid #fff1b0!important;box-shadow:0 4px 4px #77602f55!important;border-radius:14px;font-size:27px;color:#745127}
.ff-zipped{filter:drop-shadow(0 0 15px #fff0a8)}
.ff-walkers{position:absolute;left:9%;bottom:22%;width:min(26cqw,39cqh);aspect-ratio:1.5;z-index:6;transition:left .08s linear}
.ff-walkers .ff-friend{width:50%;bottom:0;left:0;max-width:none}.ff-walkers .ff-dodu{left:50%;right:auto}.ff-carried-bag{position:absolute;width:27%;height:38%;left:19%;top:50%;z-index:8}
.ff-puddle{position:absolute;top:75%;width:10%;height:6%;border-radius:50%;background:radial-gradient(ellipse,#a8dfeb,#83bccf 65%,#dfebc5 70%);border-bottom:4px solid #bbd5cf;z-index:2;box-shadow:inset 0 2px #ffffff99}
.ff-walking-path{position:absolute;left:5%;right:5%;top:79%;height:3px;border-top:4px dashed #e8c98c;z-index:1}
.ff-stepping .ff-ray{animation:ff-step .6s ease-in-out infinite}.ff-stepping .ff-dodu{animation:ff-step .6s .3s ease-in-out infinite}
body.bag-adventure .ff-controls .ff-jump-control{background:linear-gradient(#e8f1d9,#c2dbb9)}.ff-jump-control:disabled{opacity:.4}.ff-at-puddle .ff-jump-control{box-shadow:0 0 20px #fff0a8}
.ff-pop{position:absolute;z-index:20;pointer-events:none;font:clamp(28px,7cqh,54px) Froople,sans-serif;color:#fff0a1;text-shadow:0 3px #b37b2f,0 0 15px #fff1a4}
.ff-success .ff-title{color:#417945}.ff-paused *{animation-play-state:paused!important}
@keyframes ff-step{50%{translate:0 -9px;rotate:2deg}}@keyframes ff-thanks{50%{rotate:5deg;translate:0 -8px}}@keyframes ff-hint{50%{translate:0 -5px;filter:brightness(1.13)}}
.feeder-mouth .feeder-plus{position:absolute;left:50%;top:20%;font:clamp(32px,6vw,64px) Froople,sans-serif;color:#fff0a5;text-shadow:0 3px #9f6628;pointer-events:none;animation:ff-feed-plus 1.25s ease-out both;z-index:10}
@keyframes ff-feed-plus{0%{opacity:0;translate:-50% 0;scale:.6}25%{opacity:1;scale:1.2}80%{opacity:1}100%{opacity:0;translate:-50% -75px;scale:1}}
@media(max-width:700px) and (orientation:portrait){.ff-game{grid-template-rows:minmax(0,1fr) 70px 32px;gap:4px}.ff-world{border-radius:24px;background-position:65% center}.ff-title{top:5%;left:5%;right:5%;font-size:clamp(23px,6cqw,31px)}.ff-trail{top:16%;left:33%;right:33%}.ff-chair{left:0;width:100%;height:61%;top:23%}.ff-seat{top:49%;width:27%;height:21%}.ff-rescue-bag{left:28%;width:44%;top:45%;height:26%}body.bag-adventure .ff-world .ff-rescue-handle{top:42%}.ff-friend{width:min(34cqw,26cqh);bottom:35%}.ff-waiting{left:0}.ff-helper{right:0}.ff-road{top:59%;height:23%}.ff-garage{top:65%;height:20%;width:22%;left:74%}.ff-car{width:24%;height:20%}.ff-ribbon{inset:43% 0 0}.ff-delivery-bag{top:59%;height:21%;width:23%}body.bag-adventure .ff-world .ff-ribbon-handle{top:78%}.ff-zip-bag{left:5%;width:90%;height:55%;top:27%}.ff-zip-track{left:17%;width:66%;top:53%}.ff-walkers{width:38%;bottom:24%}.ff-walkers .ff-friend{width:50%;bottom:0}.ff-walking-path{top:76%}.ff-puddle{top:72%;width:12%}body.bag-adventure .ff-controls button{min-height:56px;padding:10px 19px;font-size:19px}.ff-controls{gap:10px}.ff-status{font-size:13px}}
@media(orientation:landscape) and (max-height:540px){.ff-game{grid-template-rows:minmax(0,1fr) 50px 18px;gap:2px}.ff-title{top:3%;font-size:21px}.ff-trail{display:none}body.bag-adventure .ff-controls button{min-height:44px;padding:6px 25px;font-size:20px}.ff-status{font-size:12px}.ff-chair{top:12%;height:84%}.ff-seat{top:49%}.ff-lift-tab{width:36px;height:36px;left:calc(50% - 18px);font-size:22px}}
@media(prefers-reduced-motion:reduce){.ff-game *,.feeder-plus{animation:none!important;transition:none!important}}
body.reduce-motion .ff-game *,body.reduce-motion .feeder-plus{animation:none!important;transition:none!important}

.feeder-mouth{overflow:visible!important}

.ff-no-controls{grid-template-rows:minmax(0,1fr) 24px!important}.ff-no-controls .ff-controls{display:none}.ff-seat{width:17%}.ff-seat>.ff-bag,.ff-seat>.ff-treasure{opacity:var(--peek,0)}
@media(max-width:700px) and (orientation:portrait){.ff-seat{width:23%}.ff-no-controls{grid-template-rows:minmax(0,1fr) 32px!important}}

.ff-dodu .ff-friend-sheet{left:-108%}.ff-ray .ff-friend-sheet{width:190%!important}.ff-friend{width:min(28cqw,38cqh)}.ff-cover{opacity:calc(1 - var(--lift,0))!important}

.ff-game[data-chapter="5"] .ff-walkers{width:min(44cqw,60cqh)}
@media(max-width:700px) and (orientation:portrait){.ff-game[data-chapter="5"] .ff-world{background-position:right center}.ff-game[data-chapter="5"] .ff-walkers{width:52%}}

.ff-puddle{width:8%!important}
/* Keep the mouth usable on short landscape screens; the guide already carries the title. */
body.bag-adventure .feeder-scene{container-type:size}
body.bag-adventure .feeder-character{height:min(95cqh,90cqw);width:auto!important;max-height:100%;aspect-ratio:1}
body.bag-adventure .feeder-heading{left:3%;top:3%;width:auto;max-width:94%;padding:7px 12px;display:flex;align-items:center;gap:12px;border-radius:20px}
body.bag-adventure .feeder-title h2{display:none}
body.bag-adventure .feeder-cue{font-size:clamp(17px,2vw,25px);margin:0}
body.bag-adventure .feeder-bites{margin:0}
body.bag-adventure .feeder-food{touch-action:none!important;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.feeder-paused .feeder-plus{animation-play-state:paused!important}

body.bag-adventure .ff-world .ff-zip-track{left:38%;top:48%;width:24%;height:9px;border:1px solid #f8d27b;border-radius:9px;background:#263e62;box-shadow:0 2px 5px #192a53b0;--zipped:0}
.ff-zip-track::before{content:"";position:absolute;inset:-5px -1px;border:2px dotted #ffe89c;border-radius:12px;pointer-events:none}
.ff-zip-teeth{inset:1px;clip-path:inset(0 calc((1 - var(--zipped,0))*100%) 0 0);background:repeating-linear-gradient(90deg,#ffde86 0 3px,#765042 3px 5px)}
body.bag-adventure .ff-world .ff-zipper{top:50%;translate:-50% -50%;width:40px;height:44px;border:0!important;background:transparent!important;box-shadow:none!important;padding:0}
.ff-zipper::before{content:"";display:block;width:16px;height:23px;margin:auto;border:3px solid #a46c2e;border-radius:7px;background:linear-gradient(#ffecad,#e99436);box-shadow:inset 0 1px #fff9d3,0 2px 2px #241a3a77;transform:translateY(6px)}
.ff-zip-hint{position:absolute;bottom:11px;left:50%;color:#fff6b4;font:30px Froople,sans-serif;text-shadow:0 2px #635137;pointer-events:none;animation:bag-zip-hint 1.3s ease-in-out infinite}.ff-zip-used .ff-zip-hint{display:none}
@keyframes bag-zip-hint{50%{translate:16px 0}}
.ff-game[data-chapter="5"] .ff-controls{position:relative}.ff-at-puddle .ff-main-control{opacity:.45}.ff-puddle.ff-puddle-ready{outline:3px solid #fff4a4;outline-offset:3px;box-shadow:0 0 16px #ffe380;width:12%!important}
body.bag-adventure .ff-status,body.bag-adventure .bc-status,body.bag-adventure .tt-status{position:absolute;clip-path:inset(50%);width:1px;height:1px;margin:0;overflow:hidden;white-space:nowrap}
@media(max-width:700px) and (orientation:portrait){body.bag-adventure .ff-world .ff-zip-track{left:31%;width:38%;top:50%}}

.ff-zip-bag-shell{position:absolute;left:50%;top:51%;width:min(89cqh,88cqw,540px);aspect-ratio:1;translate:-50% -50%;filter:drop-shadow(0 12px 8px #5d431846);--zip-edge:0%}
.ff-zip-bag-shell>img,.ff-zip-seam,.ff-zip-seam svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ff-zip-closed{mask-image:linear-gradient(to right,#000 calc(var(--zip-edge) - 2%),transparent calc(var(--zip-edge) + 2%))}
.ff-zip-complete .ff-zip-closed{mask-image:none}
.ff-zip-complete .ff-zip-open{visibility:hidden}
.ff-zip-seam path{fill:none;stroke:none}
.ff-zip-bag-shell .ff-zipper{position:absolute!important;z-index:8;translate:-50% -50%;min-width:48px;min-height:48px;top:auto;left:auto}
.ff-zip-bag-shell .ff-zipper::before{width:17px;height:28px;border-radius:6px 6px 11px 11px;transform:translate(0,8px) rotate(10deg)}
.ff-zip-bag-shell .ff-zipper:disabled{opacity:1!important}
.ff-zip-bag-shell .ff-zip-hint{left:34%;top:34%;bottom:auto;rotate:-20deg;z-index:9}
.ff-zip-used .ff-zip-hint{visibility:hidden}
.ff-zip-complete{filter:drop-shadow(0 0 14px #ffef9d)}
.ff-puddle-world{background:#c8d284 url('art/puddle-path-225442.webp') left center/100% 100% no-repeat!important}
.ff-puddle-world .ff-trail{display:none}
.ff-puddle-world .ff-walkers{bottom:15%;width:min(32cqw,57cqh);aspect-ratio:1.43;isolation:isolate}
.ff-walkers img{position:absolute;bottom:0;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 3px #513a3444)}
.ff-walk-ray{left:0;width:59%}.ff-walk-dodu{right:0;width:49%;height:91%!important}
.ff-stepping .ff-walk-ray{animation:bag-walk-step .4s ease-in-out infinite alternate}.ff-stepping .ff-walk-dodu{animation:bag-walk-step .4s .2s ease-in-out infinite alternate}
@keyframes bag-walk-step{from{transform:translateY(-5%) rotate(-4deg)}to{transform:translateY(0) rotate(3deg)}}
.ff-puddle-world .ff-puddle{top:80%;translate:-50% 0;border-radius:43% 52% 55% 42% / 58% 43% 57% 40%;background:radial-gradient(ellipse at 40% 34%,#eefaf9 0 8%,#afd9e0 11% 31%,#7dabbd 68%);border:2px solid #add4d9;border-bottom-color:#668f9e;box-shadow:0 2px 3px #5c624e50}
@media(max-width:700px) and (orientation:portrait){.ff-puddle-world .ff-walkers{width:40%}}
@media(prefers-reduced-motion:reduce){.ff-stepping img,.ff-zip-hint{animation:none!important}}
