/* Soft mobile-inspired adventure, shared by public and classroom games. */
.adventure-journey{border:2px solid #d4c6df;border-radius:22px;overflow:hidden;background:#faf7ee;color:#372b50;min-width:0;margin:0}
.adventure-caption{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 18px;background:#eee5f8;font-size:1rem}
.adventure-caption span{font-variant-numeric:tabular-nums;white-space:nowrap}
.adventure-landscape{position:relative;aspect-ratio:4/3;background:#d5e9ce url('/adventure/meadow.webp') center/cover no-repeat;overflow:hidden}
.adventure-track{position:absolute;left:7%;right:7%;bottom:19%;display:flex;justify-content:space-between;gap:8px;align-items:center}
.adventure-step{display:grid;place-items:center;flex:1 1 0;max-width:11%;min-width:0;height:18px;border:2px solid #82777f;border-radius:7px;background:#fff5d7;box-shadow:0 5px 0 #b5a0a0;position:relative}
.adventure-step svg{width:min(26px,100%);height:26px;margin-top:-22px;opacity:1;color:#ffd268;filter:drop-shadow(0 2px 0 #fff3c5)}
.adventure-step.earned{background:#f4d384}.adventure-step.earned svg{opacity:0}
.adventure-step.collecting svg{animation:collect-star .3s .65s ease-out both}
@keyframes collect-star{0%{opacity:1;transform:translateY(0) scale(1)}55%{opacity:1;transform:translateY(-14px) scale(1.3)}100%{opacity:0;transform:translateY(-26px) scale(.5)}}
.adventure-momo{position:absolute;bottom:23%;width:20%;height:auto;aspect-ratio:1;object-fit:contain;transform:translateX(-50%);filter:drop-shadow(0 3px 0 #755d6d30);image-rendering:auto}
.adventure-goal{position:absolute;right:3%;bottom:22%;font-size:3rem;color:#dc869e;text-shadow:2px 2px #6b546e}
.adventure-stars{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:13px;font-size:.95rem;font-weight:700}
.adventure-stars svg{width:22px;height:22px;color:#ffd268}
.adventure-hop{animation:momo-hop .65s ease-out both}
@keyframes momo-hop{0%{translate:var(--hop-from) 0}50%{translate:var(--hop-half) -28px}100%{translate:0 0}}
.adventure-game-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px;align-items:start}
.adventure-game-layout>.adventure-journey{grid-column:2;grid-row:1;position:sticky;top:20px}
.adventure-game-layout>.game-cabinet{grid-column:1;grid-row:1;min-width:0}
.adventure-game-layout>.side-panel{display:none}
.adventure-game-layout .game-cabinet{border-radius:24px;box-shadow:4px 5px 0 #d6c8df;border-color:#6b5b7d;background:#fffaf0}
.adventure-game-layout .cabinet-header{background:#e7ddf2}
.adventure-game-layout .game-content{padding:22px}
.adventure-game-layout .game-prompt{font-size:1rem;line-height:1.6}
.adventure-game-layout .choice-card{border-radius:18px}
.adventure-game-layout .auto-next-note{display:none}
.adventure-reward{display:flex;align-items:center;justify-content:center;gap:22px;padding:24px;margin:20px 0;background:#fffaf0;border:2px solid #d8c8e4;border-radius:24px;color:#382b4d}
.adventure-sticker{width:135px;height:135px;object-fit:contain;filter:drop-shadow(0 4px 0 #e1d4eb)}
.adventure-reward-label{font-size:1.2rem;font-weight:800;margin:0 0 14px}.adventure-album{display:flex;gap:8px;justify-content:center}.adventure-album>span{display:grid;place-items:center;width:48px;height:48px;background:#f2eaf8;border:1px dashed #b9a9cb;border-radius:12px}.adventure-album>span.collected{border-style:solid;background:#eadff6}.adventure-album img{width:44px;height:44px;object-fit:contain}.adventure-album svg{width:23px;height:23px;color:#ded3e7;opacity:.6}.adventure-album-note{font-size:.875rem;color:#766580;margin:12px 0 0;text-align:center;line-height:1.5}
.results-wrap .adventure-journey{max-width:620px;margin:0 auto 20px}.results-wrap .adventure-landscape{aspect-ratio:2.4}.results-wrap .adventure-momo{width:16%}.results-wrap .result-banner{background:#eee5f8;padding-bottom:24px}.results-wrap .result-stars{display:none}
.lesson-adventure-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:24px;align-items:start;margin-top:20px}.lesson-adventure-layout .lesson-cabinet{grid-column:1;grid-row:1;margin-top:0;min-width:0}.lesson-adventure-layout>.adventure-journey{grid-column:2;grid-row:1;position:sticky;top:20px}.lesson-finish>.adventure-journey{max-width:620px;margin:0 auto 20px}.lesson-finish .adventure-landscape{aspect-ratio:2.4}.lesson-finish .adventure-momo{width:16%}
@media(min-width:801px){.literacy-game:has(.adventure-game-layout){max-width:none}.nav-actions .mini-nav-icon{width:10rem;flex-basis:10rem}.nav-actions{gap:7px}}
@media(max-width:800px){.adventure-game-layout,.lesson-adventure-layout{display:flex;flex-direction:column;gap:14px}.adventure-game-layout>.adventure-journey,.lesson-adventure-layout>.adventure-journey{position:relative;top:auto;width:100%;order:-1}.adventure-game-layout>.game-cabinet,.lesson-adventure-layout>.lesson-cabinet{width:100%}.adventure-landscape{aspect-ratio:2.65}.adventure-momo{width:17%;bottom:23%}.adventure-caption{padding:10px 14px;font-size:.875rem}.adventure-stars{padding:8px;font-size:.875rem}.adventure-goal{font-size:2.2rem}.adventure-game-layout .game-content{padding:18px 12px}.adventure-reward{padding:20px 12px;gap:12px;flex-direction:column}.adventure-sticker{width:120px;height:120px}.adventure-reward-label{text-align:center}.adventure-album>span{width:42px;height:42px}.adventure-album img{width:38px;height:38px}.game-toolbar{margin-bottom:14px}.nav{padding-bottom:22px}.results-wrap .result-body{padding:18px 12px}}
@media(prefers-reduced-motion:reduce){.adventure-hop{animation:none}.adventure-sticker{animation:none}}

@media(prefers-reduced-motion:reduce){.adventure-step.collecting svg{animation:none;opacity:0}}
/* Approved game worlds. Background art is separate from the measured landing track. */
.adventure-journey{--world-x:0%;--world-y:25%;--world-tint:#e7f0d7;--world-stone:#fff5d7;--world-edge:#82777f}
.adventure-landscape{isolation:isolate;background-color:#d5e9ce;background-image:none;aspect-ratio:2.2}
.adventure-landscape::before{content:"";position:absolute;z-index:-1;inset-block:0;left:50%;height:100%;width:auto;min-width:100%;aspect-ratio:4 / 1;transform:translateX(-50%);background-image:url('/adventure/worlds.png');background-size:200% 500%;background-position:var(--world-x) var(--world-y);background-repeat:no-repeat;pointer-events:none}
.adventure-caption{background:var(--world-tint)}
.adventure-step{background:var(--world-stone);border-color:var(--world-edge)}
.theme-sky{--world-x:0%;--world-y:0%;--world-tint:#e3efff;--world-stone:#f5f6ff;--world-edge:#8a9fc8}.theme-sky .adventure-step{border-radius:50%}
.theme-railway{--world-x:100%;--world-y:0%;--world-tint:#fbe4ed;--world-stone:#edcbe5;--world-edge:#97768d}
.theme-forest{--world-x:0%;--world-y:25%;--world-tint:#e7f0d7;--world-stone:#e4edcd;--world-edge:#889777}
.theme-crystal{--world-x:100%;--world-y:25%;--world-tint:#e9e0ff;--world-stone:#dbcfff;--world-edge:#9b81c2}
.theme-beach{--world-x:0%;--world-y:50%;--world-tint:#ffe4d6;--world-stone:#ffe3dc;--world-edge:#bf9293}.theme-beach .adventure-step{border-radius:50% 50% 7px 7px}
.theme-waterfall{--world-x:100%;--world-y:50%;--world-tint:#dceef1;--world-stone:#e2bd8e;--world-edge:#91735a}
.theme-garden{--world-x:0%;--world-y:75%;--world-tint:#f2e3ef;--world-stone:#f9d2e6;--world-edge:#b68fa9}.theme-garden .adventure-step{border-radius:50%}
.theme-blocks{--world-x:100%;--world-y:75%;--world-tint:#fff0d1;--world-stone:#a7d9f2;--world-edge:#7d99c0}.theme-blocks .adventure-step:nth-child(3n+1){background:#f2b9c8}.theme-blocks .adventure-step:nth-child(3n+2){background:#f5d789}
.theme-castle{--world-x:0%;--world-y:100%;--world-tint:#e7e0fa;--world-stone:#e9dbfd;--world-edge:#a38abb}
.theme-space{--world-x:100%;--world-y:100%;--world-tint:#e3dff7;--world-stone:#d3c8ed;--world-edge:#9787b1}
.adventure-step.earned{background:#f4d384}
@media(max-width:800px){.adventure-landscape{aspect-ratio:2.65}}

/* Preserve the original sprite footprint while fitting saved clothing. */
.adventure-momo.is-dressed>.shop-avatar{display:block;width:90%;height:90%;margin:5%;overflow:visible;image-rendering:pixelated}
