/* Three linked scenes: numbers, spoken words and helping a friend. */
.journey-screen{max-width:820px;text-align:center}
.journey-progress{display:flex;justify-content:center;gap:10px;margin:2px 0 14px}
.journey-progress span{width:28px;height:8px;border-radius:99px;background:#d5e4df}
.journey-progress .on{background:#3d9585}
.journey-voice{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:64px;margin:0 0 14px;padding:10px 16px;border:0;border-radius:18px;background:#e1f0eb;color:#1a414b;font-size:clamp(18px,3vw,25px);font-weight:750;line-height:1.3;letter-spacing:-.04em}
.journey-voice span{font-size:18px;color:#3e837c}
.journey-scene{position:relative;isolation:isolate;overflow:hidden;height:390px;border-radius:27px;background:#a9d6e7 url('assets/world-block-v110.webp') center/cover;box-shadow:inset 0 0 0 1px #ffffff99}
.journey-scene:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#173c4622,transparent 35%);pointer-events:none}
.journey-scene img{position:absolute;object-fit:contain;pointer-events:none;filter:drop-shadow(0 9px 7px #244a4930)}
.journey-dino{left:7%;bottom:11%;width:34%;height:62%;animation:journey-breathe 2.5s ease-in-out infinite alternate}
.journey-car{right:7%;bottom:5%;width:39%;height:50%;transition:transform .45s ease}
.journey-intro .journey-car{animation:journey-arrive 1.6s ease-out both}
.journey-intro .journey-dino{animation:journey-wave 1.8s ease-in-out 2}
.journey-intro-copy h1,.journey-complete h1{margin:18px 0 6px;font-size:clamp(28px,4vw,40px);letter-spacing:-.05em}
.journey-intro-copy p,.journey-complete p{margin:0;color:#507174;font-size:16px;line-height:1.55}
.journey-primary,.journey-actions button{min-width:180px;min-height:58px;margin-top:20px;padding:10px 26px;border:0;border-radius:18px;background:#2c897c;color:white!important;font-size:21px;font-weight:750;box-shadow:0 5px 14px #2e77633d}
.journey-feedback{min-height:31px;margin:13px auto 0;color:#315c61;font-size:17px;font-weight:650}
.journey-math .journey-dino{left:5%;bottom:27%;width:26%;height:49%}
.journey-math .journey-car{right:6%;bottom:25%;width:35%;height:42%}
.journey-load{position:absolute;top:22px;right:22px;display:flex;align-items:center;gap:10px;padding:7px 14px;border-radius:20px;background:#fffdf4ec}
.journey-load strong{font-size:30px;line-height:1;color:#245968}
.journey-slots{display:flex;gap:5px}.journey-slots span{width:23px;height:29px;border:2px solid #9ebdb7;border-radius:50% 50% 45% 45%;background:#fffefa88}
.journey-slots span.filled{background:#ffe6a2;border-color:#e0b966}
.journey-slots span.filled{animation:journey-egg-land .38s cubic-bezier(.2,1.5,.45,1) both}
.journey-motion-ghost{position:fixed;z-index:1002;object-fit:contain;pointer-events:none;filter:drop-shadow(0 9px 7px #244a4930)}
.journey-load-bump .journey-car{animation:journey-car-catch .52s ease-out}
.journey-eggs{position:absolute;left:5%;right:5%;bottom:10px;display:flex;justify-content:center;gap:5px}
.journey-egg{display:grid;place-items:center;width:78px;height:84px;min-width:75px;border:0;border-radius:17px;background:#fffdf3ed;box-shadow:0 3px 8px #1d4b4b33;transition:transform .2s,opacity .2s}
.journey-egg img{position:static;width:66px;height:72px;filter:none}
.journey-egg:active{transform:scale(.92)}
.journey-egg.journey-picked{transform:translateY(-80px) scale(.55);opacity:0;pointer-events:none}
.journey-count .journey-car{right:28%;bottom:8%;width:44%;height:60%}
.journey-cargo{position:absolute;z-index:2;left:50%;top:27%;display:flex;justify-content:center;gap:1px;width:42%;transform:translateX(-50%)}
.journey-cargo img{position:static;width:25%;height:75px;filter:none}
.journey-choices{display:flex;justify-content:center;gap:14px;margin:15px 0 0}
.journey-choices button{display:grid;place-items:center;width:min(44%,220px);min-height:135px;padding:9px;border:2px solid #e1eae5;border-radius:22px;background:#fffdfa;transition:transform .15s,border-color .15s,background .15s}
.journey-choices button:active{transform:scale(.96)}
.journey-choices button img{width:100%;height:125px;object-fit:contain}
.journey-choices button.journey-help{border-color:#3e9c83;background:#ecf7e9;animation:journey-hint 1s ease-in-out infinite}
.journey-choices button:disabled{opacity:1}
.journey-number-choices button{display:flex;flex-direction:column;gap:6px}
.journey-number-choices strong{font-size:46px;line-height:1;color:#205464}
.journey-number-choices span{display:flex;gap:5px;justify-content:center}
.journey-number-choices i{width:17px;height:23px;border-radius:50%;background:#f4d593}
.journey-language .journey-dino{left:9%;bottom:5%;width:35%;height:61%}
.journey-letter{position:absolute;top:16%;right:15%;display:grid;place-items:center;width:37%;aspect-ratio:1;border-radius:36px;background:#fffaf0e8;color:#245668;font-size:clamp(80px,15vw,120px);font-weight:800;line-height:1;box-shadow:0 9px 25px #1d4b4b22}
.journey-social .journey-dino{left:5%;bottom:6%;width:33%;height:62%}
.journey-social .journey-car{right:5%;bottom:5%;width:42%;height:54%}
.journey-social .journey-loose-wheel{right:7%;bottom:4%;width:16%;height:19%;transform:rotate(-12deg)}
.journey-faces img{height:110px!important}
.journey-travel .journey-car,.journey-finish .journey-car{animation:journey-drive 1.35s ease-in-out both}
.journey-travel .journey-dino{animation:journey-wave 1.2s ease-in-out both}
.journey-repaired .journey-car{animation:journey-restart .82s ease-out both}
.journey-repaired .journey-dino{animation:journey-cheer .82s ease-out both}
.journey-complete{padding-bottom:18px}
.journey-badges{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:19px auto 0}
.journey-badges span{padding:8px 12px;border-radius:99px;background:#e2f0e9;color:#356c6b;font-size:13px;font-weight:700}
.journey-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.journey-actions button{min-width:145px;font-size:17px}
.journey-actions button:last-child{background:#fffdfa;color:#235b64!important;border:1px solid #d9e8e1;box-shadow:none}
.journey-complete small{display:block;margin:18px auto;color:#617979;font-size:13px}
@keyframes journey-arrive{from{transform:translateX(-55%) scale(.9);opacity:.4}to{transform:translateX(0) scale(1);opacity:1}}
@keyframes journey-drive{0%,100%{transform:translateY(0)}35%{transform:translateY(-7px)}68%{transform:translateY(2px)}}
@keyframes journey-egg-land{from{transform:translateY(-16px) scale(.5);opacity:.2}to{transform:translateY(0) scale(1);opacity:1}}
@keyframes journey-car-catch{35%{transform:translateY(5px) rotate(-2deg)}70%{transform:translateY(-3px) rotate(1deg)}}
@keyframes journey-restart{35%{transform:translateY(-10px) rotate(-2deg)}70%{transform:translateX(10px)}to{transform:translateX(14px)}}
@keyframes journey-cheer{45%{transform:translateY(-13px) rotate(-4deg)}to{transform:translateY(0) rotate(0)}}
@keyframes journey-wave{50%{transform:rotate(-6deg) translateY(-8px)}to{transform:rotate(0)}}
@keyframes journey-breathe{to{transform:translateY(-5px)}}
@keyframes journey-hint{50%{box-shadow:0 0 0 7px #9ed1aa88}}
@media(max-width:650px){
 .journey-screen{padding:14px 16px}.journey-scene{height:390px}
 .journey-voice{min-height:62px;font-size:19px}
 .journey-dino{width:39%;left:3%}.journey-car{width:45%;right:2%}
 .journey-math .journey-dino{width:30%;left:2%}.journey-math .journey-car{width:42%;right:2%}
 .journey-load{top:12px;right:12px}.journey-load strong{font-size:26px}.journey-slots span{width:19px;height:26px}
 .journey-eggs{left:2%;right:2%;gap:3px}.journey-egg{width:76px;min-width:70px;height:82px}.journey-egg img{width:65px;height:70px}
 .journey-cargo{top:29%;width:48%}.journey-cargo img{height:57px}
 .journey-letter{right:10%;width:42%;border-radius:28px;font-size:80px}
 .journey-choices button{min-height:122px}.journey-choices button img{height:110px}
}
@media(max-width:360px){.journey-scene{height:290px}.journey-egg{min-width:66px;width:66px;height:72px}.journey-egg img{width:58px;height:64px}.journey-load{padding:6px 9px}.journey-voice{font-size:17px}}
/* v103: a single dimensional toy world, with large objects as the interaction. */
.journey-scene{background:#a9d6e7 url('assets/world-block-v110.webp') center/cover}
.journey-scene:after{z-index:0;background:linear-gradient(0deg,#123d5433,transparent 45%)}
.journey-scene>img,.journey-scene>.journey-car-target,.journey-scene>.journey-letter,.journey-scene>.journey-eggs,.journey-scene>.journey-load,.journey-scene>.journey-cargo{z-index:1}
.journey-scene img{filter:drop-shadow(0 10px 8px #143b4b55)}
.journey-dino{left:-2%;bottom:4%;width:51%;height:77%}
.journey-car{right:-2%;bottom:3%;width:59%;height:68%}
.journey-car-target{position:absolute;right:1%;bottom:3%;display:block;width:59%;height:68%;padding:0;border:0;background:transparent;cursor:pointer}
.journey-car-target .journey-car{position:static;width:100%;height:100%}
.journey-car-target.journey-ready{border-radius:24px;animation:journey-hint 1s ease-in-out infinite}
.journey-math .journey-dino{left:-3%;bottom:22%;width:40%;height:65%}
.journey-math .journey-car-target{right:1%;bottom:17%;width:58%;height:67%}
.journey-count .journey-car{right:16%;bottom:4%;width:68%;height:77%}
.journey-cargo{top:41%;left:72%;z-index:2;width:28%}
.journey-cargo img{height:56px}
.journey-egg{border:2px solid #fff8e5;background:#fffaf2e8;box-shadow:0 6px 12px #16394e4d}
.journey-egg.journey-selected,.journey-choices button.journey-selected{border-color:#ffcf69;box-shadow:0 0 0 5px #ffdc7c88;transform:translateY(-7px)}
.journey-language .journey-dino{left:-2%;bottom:2%;width:50%;height:77%}
.journey-letter{right:10%;width:40%;border:3px solid #fff9eb;background:#fff8ebef;box-shadow:0 12px 24px #17405c44}
.journey-language+.journey-choices button{width:min(31%,170px)}
.journey-language:has(.journey-letter[aria-label='공룡']) .journey-letter{font-size:clamp(45px,8vw,80px)}
.journey-social .journey-dino{left:-3%;bottom:3%;width:48%;height:76%}
.journey-social .journey-car-target{right:0;bottom:2%;width:57%;height:69%}
.journey-social .journey-loose-wheel{right:5%;bottom:1%;width:20%;height:25%}
.journey-faces img{height:115px!important}
.journey-slots span.filled{background:#f5c977;border-color:#d29649}
.journey-screen .journey-voice{background:#fff8ec;box-shadow:0 3px 12px #23444d16}
.journey-progress .on{background:#e1a83b}
/* Keep both the scene and its answer buttons on a landscape phone. */
@media(max-height:500px) and (min-width:650px){
 .world-screen:has(.journey-screen) .world-bar{height:44px;padding:0 16px}
 .world-screen:has(.journey-screen) .world-bar button{width:36px;height:36px;font-size:21px}
 .journey-screen{padding:5px 16px}
 .journey-progress{display:none}
 .journey-voice{min-height:40px;margin-bottom:5px;padding:4px 12px;border-radius:12px;font-size:18px}
 .journey-scene{height:158px;border-radius:17px}
 .journey-load{top:7px;right:8px;padding:3px 8px}
 .journey-load strong{font-size:21px}
 .journey-slots span{width:15px;height:20px}
 .journey-eggs{bottom:4px}
 .journey-egg{width:64px;min-width:60px;height:62px;border-radius:12px}
 .journey-egg img{width:55px;height:55px}
 .journey-cargo img{height:45px}
 .journey-choices{gap:9px;margin-top:5px}
 .journey-choices button{min-height:75px;width:min(42%,145px);padding:3px;border-radius:14px}
 .journey-choices button img,.journey-faces img{height:67px!important}
 .journey-number-choices strong{font-size:30px}
 .journey-number-choices i{width:11px;height:15px}
 .journey-feedback{min-height:20px;margin-top:3px;font-size:14px}
 .journey-letter{width:125px;border-radius:20px;font-size:68px}
 .journey-intro-copy h1,.journey-complete h1{margin:5px 0 2px;font-size:23px}
 .journey-intro-copy p,.journey-complete p{font-size:13px;line-height:1.2}
 .journey-primary,.journey-actions button{min-height:37px;margin-top:4px;padding:3px 18px;font-size:17px}
 .journey-badges{margin-top:5px}
 .journey-badges span{padding:3px 8px}
 .journey-complete small{margin:4px auto}
 .journey-language+.journey-choices button{width:min(30%,130px)}
}
@media(prefers-reduced-motion:reduce){.journey-screen *{animation:none!important;transition:none!important}.journey-motion-ghost{display:none!important}}

/* The story itself is now the learning menu: three large toy props preview the
   count, word and helping tasks before the child starts. */
.journey-scene-label{position:absolute;z-index:2;top:16px;left:18px;padding:7px 12px;border:2px solid #fff9e9;border-radius:99px;background:#fffaf0ed;color:#245665;font-size:clamp(12px,2vw,16px);font-weight:850;box-shadow:0 5px 12px #254e5633}
.journey-intro-goals{display:flex;justify-content:center;gap:12px;margin:16px auto 0}
.journey-intro-goals span{display:flex;align-items:center;gap:7px;min-width:120px;padding:5px 12px 5px 5px;border:2px solid #fff;border-radius:18px;background:#fffaf0;box-shadow:0 6px 13px #1f4b4a24;color:#235262;font-size:14px;font-weight:850}
.journey-intro-goals img{width:48px;height:48px;object-fit:contain}
.journey-number-choices span img{width:clamp(28px,5vw,38px);height:clamp(34px,6vw,45px);object-fit:contain;filter:drop-shadow(0 3px 2px #35504b33)}
.journey-number-choices button{background:#fffaf0;border:3px solid #fff;box-shadow:0 7px 0 #67927b55,0 12px 19px #254e5633}
.journey-choices button:focus-visible,.journey-primary:focus-visible{outline:4px solid #e5ae3d;outline-offset:3px}
@media(max-width:650px){
 .journey-intro-goals{gap:5px;margin-top:11px}
 .journey-intro-goals span{min-width:0;gap:2px;flex:1;padding:4px 3px;font-size:11px;white-space:nowrap}
 .journey-intro-goals img{width:34px;height:36px}
 .journey-scene-label{top:10px;left:9px;padding:5px 8px;font-size:11px}
}
@media(max-height:500px) and (min-width:650px){
 .journey-intro-goals{margin-top:4px;gap:8px}
 .journey-intro-goals span{padding:2px 7px;min-width:90px;font-size:11px}
 .journey-intro-goals img{width:25px;height:25px}
 .journey-scene-label{top:6px;left:8px;padding:3px 6px;font-size:10px}
 .journey-number-choices span img{width:20px;height:24px}
}

/* v109: a grounded toy stage with a separate, unobstructed answer tray. */
.journey-scene{border:3px solid #fff9e9;box-shadow:0 7px 0 #8daa85,0 16px 24px #234c4e26;background-position:center 56%}
.journey-scene:before{content:'';position:absolute;z-index:0;left:-8%;right:-8%;bottom:-9%;height:33%;border-radius:50% 50% 0 0;background:linear-gradient(180deg,#edcf9e99,#c8a677cc);box-shadow:0 -3px 0 #fff3c94d;pointer-events:none}
.journey-scene img{filter:drop-shadow(0 8px 4px #28473f55)}
.journey-intro .journey-dino,.journey-social .journey-dino{left:0;bottom:5%;width:47%;height:72%}
.journey-intro .journey-car{right:0;bottom:5%;width:55%;height:63%}
.journey-social .journey-car-target{right:0;bottom:5%;width:55%;height:64%}
.journey-choices{padding:10px 8px 14px;border-radius:24px;background:#e7eddf;border:2px solid #fff9ec;gap:12px}
.journey-choices button{border:3px solid #fffdf2;background:#fffaf0;box-shadow:0 5px 0 #afbd9f,0 8px 12px #294a3f18}
.journey-choices button:active{transform:translateY(3px) scale(.97)}
.journey-choices button.journey-help{border-color:#e0ac42;background:#fff3ce}
.journey-letter{background:#fff8e9;border-color:#f0d9a7;box-shadow:0 7px 0 #b9c2a4,0 14px 20px #17405c22}
@media(max-height:500px) and (min-width:650px){.journey-choices{padding:3px 6px 6px;border-radius:16px;gap:9px}.journey-scene{border-width:2px;box-shadow:0 3px 0 #8daa85}}

/* v110: expressive characters stand on the new open activity courtyard. */
.journey-scene:before{display:none}
.journey-scene:after{background:linear-gradient(0deg,#855b251c,transparent 40%)}
.journey-intro .journey-dino,.journey-social .journey-dino{left:1%;bottom:8%;width:45%;height:69%}
.journey-intro .journey-car{right:0;bottom:7%;width:54%;height:59%}
.journey-social .journey-car-target{right:0;bottom:7%;width:54%;height:60%}
.journey-voice{border:2px solid #ffe4a4}

/* v111: picture steps and a visible success response, without extra controls. */
.journey-progress{gap:13px;margin:0 0 10px;align-items:center}
.journey-progress span{display:grid;place-items:center;width:52px;height:34px;border:2px solid #dce7d8;border-radius:14px;background:#e8eddf;opacity:.55}
.journey-progress span img{width:31px;height:28px;object-fit:contain}
.journey-progress span.on{background:#fff0bf;border-color:#e1b855;opacity:1}
.journey-progress span[aria-current='step']{box-shadow:0 3px 0 #be9448;transform:translateY(-2px)}
.journey-choices button.journey-answer-good{background:#e5f3cd;border-color:#70a56b;box-shadow:0 5px 0 #56884f,0 0 0 4px #9acb7955}
.journey-success .journey-feedback{color:#397443;font-weight:850}
.journey-slots span.filled{background:#fff6d5 url('assets/egg-block-v103.png') center/contain no-repeat;border-color:#e0b966}
.journey-scene img{transform-origin:50% 90%}
@media(max-height:500px) and (min-width:650px){.journey-progress{display:none}}
@media(prefers-reduced-motion:reduce){.journey-progress span[aria-current='step']{transform:none}}
