:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans",sans-serif;color:#20494b;background:#f3dfc6;font-synthesis:none;--gold:#f5ce7d;--mint:#d9e8df;--ink:#20494b}*{box-sizing:border-box}body{margin:0;height:100dvh;min-height:650px;display:flex;flex-direction:column;overflow:hidden}button,a,select{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit;border:0}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #bc673b;outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}header{height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 22px;background:#fff7e9;border-bottom:1px solid #d3dfd5}header a{color:inherit;font-size:13px;text-decoration:none}header a:before{content:'← ';font-size:18px}.brand-title{font-weight:700;letter-spacing:.05em}.languages{display:flex;background:#e5ece4;padding:3px;border-radius:25px;gap:2px}.languages button{background:none;border-radius:20px;padding:7px 11px;font-size:12px}.languages button.selected{background:white;box-shadow:0 1px 4px #163f481b}#toolbar{display:flex;justify-content:center;align-items:center;gap:20px;flex-wrap:wrap;padding:10px 16px;background:#faf0df;font-size:13px;z-index:2}.segmented{display:flex;gap:4px;background:#e1e9df;border-radius:24px;padding:4px}.segmented button{background:none;border-radius:20px;padding:8px 16px;min-height:38px}.segmented button.selected{background:#285355;color:white}.view-select{display:flex;align-items:center;gap:7px}.view-select select{font:inherit;color:var(--ink);background:#fffdf4;border:1px solid #cfdbcf;border-radius:15px;padding:9px;max-width:170px}#stage{position:relative;flex:1;min-height:260px;overflow:hidden;background:#edb794}#town{width:100%;height:100%;display:block;touch-action:none}#load-note{position:absolute;top:15px;left:50%;transform:translateX(-50%);font-size:12px;color:#244e4a;background:#fffaf0e8;border:1px solid #e6e8d3;border-radius:22px;padding:9px 16px;max-width:85%;text-align:center}#load-note.loaded{opacity:0;pointer-events:none;transition:opacity .6s}#world-hint{position:absolute;left:20px;top:20px;color:#f8f5d8;text-shadow:0 1px 5px #162f3d;font-size:13px;pointer-events:none}#overview{position:absolute;right:17px;top:15px}.round{width:42px;height:42px;border-radius:50%;background:#fffbecd9;font-size:23px;box-shadow:0 2px 10px #0002}#nearby{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);border-radius:28px;background:#f9d685;box-shadow:0 4px 20px #16393c4a;padding:13px 25px;font-weight:700;white-space:nowrap;min-height:48px}#conversation{background:#fff7e9;box-shadow:0 -7px 32px #243f401a;z-index:3;max-height:48dvh;overflow:auto;scrollbar-width:thin}#conversation:empty{display:none}.talk-inner{max-width:850px;margin:auto;padding:17px 24px 20px}.talk-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.speaker{font-size:12px;letter-spacing:.06em;font-weight:650}.talk-tools{display:flex;gap:8px;align-items:center}.talk-tools button{background:#e6ede4;border-radius:24px;padding:7px 12px;font-size:12px;min-height:36px}.line{font-size:24px;line-height:1.55;margin:6px 0}.meaning{color:#637875;font-size:13px;line-height:1.6;margin:5px 0 12px}.pinyin{font-size:14px;color:#8c6950;line-height:1.5;margin:0 0 5px}.ears-prompt{font-size:17px;padding:8px 0 16px;color:#46635f}.choices{display:flex;gap:9px;flex-wrap:wrap}.choice-wrap{display:flex;flex:1 1 220px;gap:4px}.choice{flex:1;background:#edf2e7;border:1px solid #d4dfcf;border-radius:15px;padding:13px 15px;text-align:left;min-height:54px;display:flex;gap:11px;align-items:center}.choice:hover{background:#e5efd9}.choice .symbol{font-size:29px;flex:none}.choice .zh{font-size:17px;display:block;line-height:1.5}.choice .gloss{font-size:11px;color:#61766f;display:block;line-height:1.6;margin-top:3px}.preview{width:38px;flex:none;background:#e1e9df;border-radius:14px;font-size:18px}.primary{border-radius:22px;background:#f5d286;font-weight:650;padding:13px 22px;min-height:47px}.secondary{border-radius:22px;background:#e7ede3;padding:12px 18px;min-height:45px}.step-note{font-size:13px;line-height:1.7;margin:3px 0 13px;color:#60776e}.section-label{font-size:12px;letter-spacing:.02em;margin:12px 0 7px}.ingredients{display:flex;gap:7px;flex-wrap:wrap}.ingredients button{display:flex;align-items:center;gap:8px;flex:1;background:#ebf0e5;border:2px solid transparent;border-radius:15px;padding:10px 12px;min-height:50px;font-size:13px;white-space:nowrap}.ingredients button.selected{border-color:#578f79;background:#e1edd8}.ingredients .symbol{font-size:23px}.order-summary{display:flex;gap:5px;align-items:center;margin-top:12px}.order-summary span{background:#e5ecd9;border-radius:20px;padding:5px 10px;font-size:12px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:13px}.audio-note{font-size:11px;color:#7d7160;margin:10px 0 0;line-height:1.6}#walkbar{background:#faf0df;flex:none;padding:12px 20px calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:104px}#walkbar.hidden{display:none}.destinations{display:flex;gap:9px;flex-wrap:wrap}.destinations button{background:#fffdf5;border:1px solid #d6dfcf;border-radius:19px;padding:12px 17px;min-height:44px}.walk-note{font-size:12px;color:#6b7a6e;margin:7px 0 0}.pad{width:88px;height:88px;position:relative;touch-action:none;user-select:none;flex:none}.pad button{width:32px;height:32px;position:absolute;background:#dce8d7;border-radius:11px;font-size:19px;touch-action:none}.pad .up{top:0;left:28px}.pad .down{bottom:0;left:28px}.pad .left{top:28px;left:0}.pad .right{top:28px;right:0}#notice{position:fixed;bottom:18px;left:50%;transform:translate(-50%,20px);background:#1e4847ed;color:#fff9e9;border-radius:20px;padding:12px 18px;max-width:90%;font-size:13px;z-index:20;opacity:0;pointer-events:none;transition:.2s}#notice.show{opacity:1;transform:translate(-50%,0)}.intro-title{font-size:20px;margin:0 0 7px}.success{font-size:18px;line-height:1.6}.lesson-note{font-size:11px;color:#778372;padding:0 10px}.mini-progress{font-size:11px;background:#e7eddc;border-radius:12px;padding:5px 10px}@media(max-width:600px){header{padding:0 12px;height:52px;flex-basis:52px;gap:6px}.brand-title{font-size:13px}header a{font-size:11px}.languages button{padding:7px 8px;font-size:11px}#toolbar{gap:8px;padding:7px 8px;justify-content:space-between}.segmented button{padding:7px 13px;font-size:12px;min-height:34px}.view-select{font-size:11px}.view-select select{font-size:11px;padding:8px;max-width:139px}.talk-inner{padding:13px 16px 16px}.line{font-size:21px}.choice-wrap{flex-basis:160px}.choice{padding:10px 12px}.choice .zh{font-size:16px}.choice .symbol{font-size:24px}.meaning{font-size:12px}.talk-tools{gap:5px}.talk-tools button{padding:7px 10px;font-size:11px}#world-hint{left:13px;top:13px;font-size:11px}#walkbar{padding:10px 13px calc(9px + env(safe-area-inset-bottom));gap:8px}.destinations{gap:6px}.destinations button{padding:10px 12px;font-size:12px}.walk-note{font-size:10px;max-width:215px}.ingredients button{font-size:12px;padding:8px;gap:5px}.ingredients .symbol{font-size:21px}.primary{font-size:13px;padding:12px 17px}.secondary{font-size:12px}.audio-note{font-size:10px}.intro-title{font-size:18px}#conversation{max-height:48dvh}.talk-head{margin-bottom:5px}#stage{min-height:230px}.step-note{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Short practices keep one goal in view and let the town remain visible. */
.world-options{position:relative;font-size:12px}.world-options summary{cursor:pointer;padding:10px 12px;border-radius:18px;background:#e3eadd;list-style:none}.world-options[open]>div{position:absolute;right:0;top:45px;width:min(320px,90vw);padding:18px;display:grid;gap:14px;background:#fffdf4;border:1px solid #ccd6c8;box-shadow:0 8px 28px #244b4b22;border-radius:17px;z-index:10}.world-options label{display:grid;gap:6px}.world-options select{width:100%;padding:10px;font:inherit;border:1px solid #c3d1c0;border-radius:9px;background:#f5f8ef;color:#285250}.world-options small{font-size:10px;line-height:1.6;color:#657567}#toolbar{gap:9px}#stage{min-height:190px}.view-select select{max-width:150px}.speech-pace{border:0;background:#e8ede0;border-radius:15px;padding:8px 10px;font-size:11px;color:#285250}
dialog{padding:0;border:0;border-radius:24px;background:#fbf9ef;color:#244b48;max-height:94dvh;width:min(740px,94vw);box-shadow:0 18px 70px #152d4266}dialog::backdrop{background:#203c4777;backdrop-filter:blur(4px)}#scene-modal form{padding:14px 18px;display:flex;justify-content:flex-end}#scene-modal>img{width:100%;height:auto;display:block}#scene-modal h2{font-size:19px;margin:20px 22px 10px}#scene-modal>p{font-size:12px;line-height:1.8;padding:0 22px 20px;margin:0}
#music-practice{width:min(480px,94vw);scrollbar-width:thin}.bite-shell{padding:17px 23px 21px}.bite-header{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:650}.bite-header button{padding:9px 12px;background:#e7eddf;border-radius:20px;font-size:11px}.bite-kicker{text-transform:uppercase;font-size:10px;letter-spacing:.11em;color:#8b7451;margin:21px 0 8px}.bite-shell h2{font-size:22px;line-height:1.5;margin:0 0 6px;font-family:serif;font-weight:650}.bite-intro{font-size:12px;color:#6f7b69;margin:0 0 16px;line-height:1.6}.bite-card{position:relative;width:100%;height:310px;overflow:hidden;border:3px solid #d9dfca;padding:0;border-radius:24px;background:#d0d6b9;isolation:isolate;box-shadow:0 5px 17px #4b542019;touch-action:manipulation;transition:border-color .1s,box-shadow .1s}.bite-card:disabled{opacity:1;cursor:default}.bite-card img{display:block;width:100%;height:100%;object-fit:cover;opacity:.95}.bite-card:after{content:'';position:absolute;inset:30% 0 0;background:linear-gradient(transparent,#173f29cc);z-index:0}.bite-word{position:absolute;bottom:39px;left:0;right:0;font-family:serif;font-size:61px;font-weight:700;line-height:1.2;color:#fff8dc;text-shadow:0 3px 8px #172f2870;letter-spacing:.09em;z-index:2}.bite-meaning{position:absolute;bottom:17px;left:0;right:0;color:#fff4cb;font-size:14px;z-index:2}.bite-card.singing{border-color:#ffc74d;box-shadow:0 0 0 6px #fbd97955,0 0 35px #dba84755}.bite-card.singing .bite-word{color:#ffe192;text-shadow:0 0 20px #ffb94375,0 2px 3px #30462b}.bite-card.approaching{border-color:#ead78e}.bite-ripple{position:absolute;inset:15px;z-index:1;border:3px solid #fff1a7;border-radius:50%;opacity:0;pointer-events:none}.bite-card.tapped .bite-ripple{animation:tap-wave .38s ease-out}.bite-lyric{text-align:center;font-size:16px;line-height:1.6;padding:14px 0 8px;min-height:45px;color:#557662}.bite-progress{height:4px;background:#e4e8d6;overflow:hidden;border-radius:4px}.bite-progress i{display:block;height:100%;background:#6b9a77;width:0}.bite-feedback{font-size:12px;min-height:38px;line-height:1.65;margin:12px 0 7px;color:#597353}.bite-actions{display:flex;gap:9px;flex-wrap:wrap}.bite-actions .primary{flex:1}.bite-foot{font-size:11px;color:#7b806c;line-height:1.8;margin:13px 0 0}.bite-help{font-size:10px;color:#7a7d6d;margin-top:10px;line-height:1.7}.bite-help summary{cursor:pointer}.bite-help p{margin:5px 0 0}@keyframes tap-wave{from{transform:scale(.65);opacity:.9}to{transform:scale(1.3);opacity:0}}
@media(max-width:600px){#toolbar{justify-content:center;gap:6px;padding:7px 9px}.view-select{gap:4px}.view-select select{max-width:134px}.segmented button{padding:7px 10px}.world-options summary{padding:9px;font-size:10px}.world-options[open]>div{right:0;top:35px}#conversation{max-height:43dvh}.talk-inner{padding:12px 15px}.intro-title{font-size:18px}.step-note{font-size:12px}.bite-shell{padding:13px 17px 19px}.bite-card{height:min(310px,34dvh)}.bite-kicker{margin-top:14px}.bite-shell h2{font-size:20px}.bite-word{font-size:54px}.bite-intro{margin-bottom:12px}.bite-foot{font-size:10px}.world-options[open]{position:static}.world-options[open]>div{right:10px;top:133px}.brand-title{display:none}}
@media(prefers-reduced-motion:reduce){.bite-card.tapped .bite-ripple{animation:none}.bite-card.tapped{outline:3px solid #efd076;outline-offset:3px}}
