:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#334b41;background:#f2f5eb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:4px solid #b66d4f;outline-offset:5px}[hidden]{display:none!important}.app{max-width:1200px;margin:auto;padding:24px 36px 20px}header{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:52px}.home,.sound{display:flex;align-items:center;gap:9px;border:1px solid #dce4d8;background:#fafcf5;border-radius:20px;padding:12px 17px;font-size:14px;font-weight:650;min-height:48px}.home>span{font-size:24px;line-height:20px}.sound{color:#466253}.brand{font-size:18px;letter-spacing:1px;font-weight:750}.brand>span{display:block;text-align:center;font-size:10px;letter-spacing:3px;font-weight:500;margin-top:5px;color:#829081}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:31px 0 24px}.eyebrow{color:#8c967c;font-size:12px;letter-spacing:3px;margin:0 0 9px}h1{font-size:clamp(25px,3.1vw,36px);font-weight:750;letter-spacing:1px;line-height:1.35;margin:0}.steps{display:flex;gap:8px;flex-wrap:wrap}.steps>span{font-size:13px;background:#e5edde;padding:10px 12px;border-radius:20px;white-space:nowrap}.game{overflow:hidden;border-radius:29px;background:#fffcf3;box-shadow:0 10px 35px #52653a0b;border:1px solid #e0e5d5}.scene-heading{padding:21px 29px;display:flex;align-items:center;justify-content:space-between;gap:14px}.scene-label{font-size:18px;font-weight:730}.scene-heading p{font-size:13px;color:#7d8373;margin:7px 0 0;line-height:1.5}.dots{display:flex;gap:8px;flex-shrink:0}.dots i{width:8px;height:8px;background:#dce3d3;border-radius:99px;transition:width .3s}.dots i.current{width:26px;background:#8eac92}.room{position:relative;background:#f6eddd;border-top:1px solid #eee7d8;border-bottom:1px solid #eee0cd;overflow:hidden}.room svg{width:100%;display:block;max-height:49vh;min-height:235px}.scene-tag{position:absolute;top:14px;right:18px;font-size:10px;color:#8c8d78;letter-spacing:1px;pointer-events:none}.scene-tag span{font-size:17px;margin-left:5px}.controls{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 29px;min-height:123px}.prompt{display:flex;align-items:center;gap:15px}.prompt>span{font-size:29px;background:#edf1df;border-radius:19px;width:58px;height:58px;display:grid;place-items:center;flex-shrink:0}h2{font-size:21px;line-height:1.45;margin:0 0 5px;font-weight:750}.prompt p{font-size:13px;color:#899080;line-height:1.55;margin:0}.actions{display:flex;gap:12px;flex-shrink:0}.action{display:flex;align-items:center;justify-content:center;gap:9px;min-height:66px;min-width:150px;border-radius:20px;padding:14px 22px;border:0;font-weight:750;font-size:19px;transition:transform .15s,background .2s,opacity .2s}.action span{font-size:25px}.primary{color:#fffdf5;background:#668b72;box-shadow:0 4px 0 #4f725b}.secondary{color:#734f40;background:#efd4b9;box-shadow:0 4px 0 #dec1a4}.action:not(:disabled):active{transform:translateY(3px);box-shadow:none}.action:disabled{background:#eeeee3;color:#989e8f;box-shadow:none;opacity:.65}.action:not(:disabled):hover{filter:brightness(1.04)}footer{margin-top:18px;color:#8b927e;font-size:12px;line-height:1.8;display:flex;align-items:flex-start;justify-content:space-between;gap:24px}footer>p{margin:0}details{max-width:450px;text-align:right}summary{cursor:pointer;min-height:30px}details p{text-align:left;background:#e9eee1;padding:14px 18px;border-radius:14px;color:#69775f}#child{transition:transform 1.1s cubic-bezier(.25,.8,.25,1)}#adult{transition:opacity .9s,transform .9s;transform:translate(100px,208px)}#safeBubble{transition:opacity .5s}.room.retreated #child{transform:translate(355px,280px)}.room.retreated #safeBubble{opacity:1}.room.arrived #adult{opacity:1;transform:translate(210px,208px)}.room.arrived #safeBubble{opacity:0}@media(max-width:900px){.app{padding:18px 22px}.intro{margin:25px 0 19px}.steps{max-width:280px;justify-content:flex-end}.steps>span{font-size:11px;padding:8px 10px}.controls{padding:22px;gap:15px}.action{min-width:125px;padding:12px 16px;font-size:17px}h2{font-size:18px}.prompt>span{width:48px;height:48px;font-size:25px}.prompt{gap:10px}}@media(max-width:680px){.app{padding:14px 14px 22px}.brand{font-size:15px}.brand>span{font-size:9px;letter-spacing:2px}.home,.sound{font-size:12px;padding:10px 12px;border-radius:16px}.home{gap:6px}.sound{gap:5px}.intro{display:block;margin:26px 5px 19px}.eyebrow{font-size:10px;margin-bottom:7px}h1{font-size:28px}.steps{max-width:none;justify-content:flex-start;margin-top:15px;gap:6px}.steps>span{font-size:12px;padding:8px 11px}.game{border-radius:23px}.scene-heading{padding:19px 19px 16px}.scene-label{font-size:16px}.scene-heading p{font-size:12px;max-width:270px}.room svg{height:300px;min-height:0;max-height:none;width:calc(100% + 130px);margin-left:-65px}.scene-tag{font-size:8px;top:8px;right:11px}.controls{display:block;padding:21px 18px 24px;min-height:200px}.prompt{min-height:63px}.prompt p{font-size:12px}.actions{margin-top:18px;gap:12px}.action{flex:1;min-height:68px;min-width:0;font-size:18px;padding:12px 10px}footer{display:block;margin:16px 7px 0;font-size:11px}details{margin-top:8px;text-align:left;max-width:none}}@media(max-width:370px){.brand>span{display:none}.home,.sound{padding:9px;font-size:11px}h1{font-size:25px}.steps>span{font-size:11px;padding:8px}.room svg{height:260px}.prompt>span{width:42px;height:42px}h2{font-size:16px}.action{font-size:16px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}@media(max-height:600px) and (min-width:681px){.app{padding-top:10px}.intro{margin:13px 0}.eyebrow{display:none}h1{font-size:25px}.scene-heading{padding:12px 22px}.room svg{max-height:46vh;min-height:180px}.controls{padding:15px 22px;min-height:92px}.action{min-height:56px}footer{margin-top:10px}}

.start-overlay{position:absolute;inset:0;z-index:2;background:#f7f4e5b8;backdrop-filter:blur(5px);display:grid;place-items:center;padding:15px}.start-card{text-align:center;background:#fffcf2f5;border:1px solid #e2e5d4;border-radius:27px;padding:25px 32px;box-shadow:0 12px 50px #4e68501a}.start-icon{font-size:35px;display:block;margin-bottom:8px}.start-card h2{font-size:25px}.start-card p{font-size:14px;color:#75816c}.start-card .action{margin:17px auto 0;min-width:240px}.start-card .audio-note{font-size:11px;margin-bottom:0}.listen{min-width:66px;min-height:66px;width:66px;flex-direction:column;gap:1px;padding:7px;background:#e7eddd;color:#526e56;font-size:11px}.listen .listen-label{font-size:11px}.controls{flex-wrap:wrap}.actions{margin-left:auto}.brand{letter-spacing:0}.brand>span{letter-spacing:2px}@media(max-width:680px){.brand{font-size:12px}.brand>span{font-size:8px}.actions{margin-left:0}.listen{flex:0 0 62px}.listen .listen-label{font-size:10px}.start-card{padding:17px 21px}.start-icon{font-size:27px}.start-card h2{font-size:22px}.start-card .action{min-width:215px;min-height:60px}.start-card p{font-size:12px}}@media(max-height:600px) and (min-width:681px){.start-card{padding:12px 25px}.start-icon{display:none}.start-card h2{font-size:20px}.start-card p{margin:6px}.start-card .action{min-height:48px;margin-top:10px}.start-card .audio-note{font-size:10px}}
/* Keep the story and its touch actions together on tablet and phone screens. */
@media(min-height:600px){.app{height:100vh;height:100dvh;display:flex;flex-direction:column;padding-top:14px;padding-bottom:12px}.app>header{flex-shrink:0}.app>main{flex:1;min-height:0;display:flex;flex-direction:column}.intro{flex-shrink:0;margin:18px 0 16px}.game{flex:1;min-height:290px;display:flex;flex-direction:column}.scene-heading{flex-shrink:0;padding:17px 24px}.room{flex:1;min-height:160px}.room>svg{height:100%;width:100%;max-height:none;min-height:0;margin:0}.controls{flex-shrink:0;flex-wrap:nowrap;min-height:108px;padding:18px 24px;gap:16px}.prompt{flex:1;min-width:0}.prompt h2{font-size:19px}.prompt p{font-size:12px}.actions{gap:10px}.action{min-width:138px;font-size:18px;padding:13px 16px}.listen{min-width:60px;width:60px;padding:7px}.app footer{flex-shrink:0;margin-top:11px;font-size:10px}.app details{max-width:400px}.app details[open]{position:absolute;left:5%;right:5%;bottom:10px;max-width:none;z-index:5;background:#f4f5ea;border:1px solid #d7dfca;border-radius:18px;padding:15px 20px;text-align:left;box-shadow:0 8px 40px #47634322}.app details[open] p{margin-bottom:0}}
@media(min-height:600px) and (max-width:900px){.controls{flex-direction:column;align-items:stretch;padding:17px 22px;gap:12px}.prompt{flex:none}.prompt>span{height:44px;width:44px;font-size:23px}.actions{margin:0;justify-content:center}.actions .action{flex:1}.actions .listen{flex:0 0 62px}.room>svg{min-height:0}.scene-heading{padding:16px 22px}}
@media(min-height:600px) and (max-width:680px){.intro{margin:14px 5px 12px}.intro h1{font-size:25px}.steps{margin-top:10px}.steps>span{font-size:11px;padding:7px 10px}.scene-heading{padding:12px 17px}.scene-label{font-size:15px}.scene-heading p{margin-top:4px;font-size:11px}.controls{padding:13px 16px 18px;min-height:0;gap:11px}.prompt{min-height:51px}.prompt h2{font-size:17px}.prompt p{font-size:11px}.actions{margin:0;gap:8px}.action{min-width:0;padding:11px 8px;min-height:64px;font-size:17px}.actions .listen{flex-basis:53px;width:53px}.action>span{font-size:23px}.listen .listen-label{font-size:10px}.app footer{margin:9px 4px 0;font-size:9px;line-height:1.6}.app footer details{margin-top:3px}.app footer summary{min-height:22px}.room>svg{width:100%;height:100%;min-height:0}.start-card{padding:13px 19px}.start-icon{font-size:24px;margin-bottom:3px}.start-card h2{font-size:20px}.start-card p{font-size:11px;margin:8px 0}.start-card .action{min-height:54px;min-width:205px;margin-top:10px}.start-card .audio-note{font-size:10px}}
@media(max-height:599px) and (min-width:681px){.app{padding:8px 18px 10px}.app>header{min-height:42px}.home,.sound{min-height:40px;padding:8px 12px}.intro{margin:9px 0}.intro h1{font-size:21px}.steps>span{font-size:10px;padding:7px 9px}.game{display:grid;grid-template-columns:1.18fr 1fr;grid-template-rows:auto 1fr;min-height:247px}.scene-heading{grid-column:1 / -1;padding:10px 18px}.scene-heading p{display:none}.scene-label{font-size:14px}.room{grid-column:1;grid-row:2;min-height:190px}.room>svg{height:100%;width:100%;min-height:0;max-height:none}.scene-tag{display:none}.controls{grid-column:2;grid-row:2;flex-direction:column;justify-content:center;align-items:stretch;gap:13px;padding:15px;min-height:0}.prompt>span{width:36px;height:36px;font-size:20px}.prompt h2{font-size:16px}.prompt p{font-size:11px}.actions{margin:0;gap:7px;justify-content:center}.action{min-width:0;flex:1;font-size:14px;min-height:56px;padding:8px}.action>span{font-size:19px}.listen{flex:0 0 44px;width:44px;min-width:44px;padding:4px}.listen .listen-label{font-size:9px}.start-card{padding:10px 15px}.start-card h2{font-size:17px}.start-card p{font-size:10px}.start-card .action{min-width:170px;font-size:15px}.start-card .audio-note{font-size:8px}.app footer{font-size:9px;margin-top:6px}}
