:root{font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#143949;background:#edf4f7;font-synthesis:none;font-size:16px;--navy:#143949;--orange:#ea713c;--blue:#367eac;--green:#16836e}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:1px solid #d1dee3;background:white;color:var(--navy);border-radius:11px;padding:11px 15px;font-weight:650;transition:background .15s,transform .15s}button:hover{background:#eaf2f5}button:active{transform:translateY(1px)}button:disabled{cursor:default;opacity:.48}button:focus-visible,input:focus-visible{outline:3px solid #e5a12e;outline-offset:3px}header{height:88px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:20px;border-bottom:1px solid #dbe5e9}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-icon{display:grid;place-items:center;width:44px;height:44px;background:var(--navy);color:#ffb44e;font-size:32px;border-radius:14px}.brand strong{font-size:19px;letter-spacing:1.5px}.brand small{display:block;font-size:13px;color:#6c8490;margin-top:3px;letter-spacing:2px}nav{display:flex;gap:4px;background:#f2f6f8;padding:5px;border-radius:14px}nav button{border:0;background:transparent;font-size:14px;white-space:nowrap}nav button.active{background:#143949;color:white;box-shadow:0 2px 5px #1639491a}nav span{font-size:12px;opacity:.6;margin-left:3px}.tools{display:flex;gap:8px}.tools button{font-size:13px;padding:9px 11px}.quiet{border-color:transparent;background:transparent;color:#64808d}main{max-width:1600px;margin:auto;padding:24px 30px 12px}.journey-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:20px}.eyebrow{display:block;color:#6b838e;font-size:12px;font-weight:750;letter-spacing:1.6px}h1{margin:5px 0 0;font-size:25px;letter-spacing:.5px}h2{font-size:24px;line-height:1.35;margin:12px 0}h3{font-size:20px;margin:10px 0}.progress-wrap{min-width:245px;text-align:right}#progress-label{font-size:13px;color:#65808a}#progress{display:flex;gap:5px;margin-top:8px}#progress i{height:5px;flex:1;background:#d8e3e8;border-radius:6px}#progress i.done{background:#58a994}#progress i.current{background:#ef9958}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:20px;align-items:stretch}.map-card{min-width:0;background:#fff;border:1px solid #d9e4e9;border-radius:23px;overflow:hidden;box-shadow:0 10px 30px #233d4708}#scene{position:relative;height:550px;overflow:hidden;background:#d3eaf0}canvas{display:block;width:100%;height:100%}#landmarks{position:absolute;inset:0;pointer-events:none}.place-label{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);padding:5px 9px;border:1px solid #ffffff9c;background:#ffffffee;border-radius:9px;font-size:12px;font-weight:700;white-space:nowrap;box-shadow:0 3px 8px #244a5930;color:#274656;line-height:1.2;z-index:2}.place-label small{display:block;font-weight:500;font-size:11px;color:#62808c;margin-top:3px}.place-label:hover{background:white;z-index:5;outline:2px solid #eea956}.place-label.selected{background:#fff0cf;outline:2px solid #e89c33}.place-label .place-en.hidden{display:none}.place-label.listening{padding:6px 9px}.map-top{position:absolute;top:17px;left:17px;right:17px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;pointer-events:none;z-index:6}.map-badge{font-size:11px;font-weight:800;letter-spacing:1.2px;background:#ffffffd9;padding:9px 11px;border-radius:8px}.label-switch{pointer-events:auto;font-size:12px;border-radius:8px;background:#ffffffdd;padding:8px;display:flex;align-items:center;gap:4px}.label-switch input{accent-color:var(--navy)}.compass{position:absolute;left:22px;top:72px;display:flex;align-items:center;flex-direction:column;color:#3d7581;font-size:12px;line-height:1.05}.compass span{font-size:33px;font-weight:300}.compass small{font-size:10px}#character-label{position:absolute;pointer-events:none;transform:translate(-50%,-100%);font-size:11px;font-weight:750;color:#fff;background:#e87b42;border:2px solid white;box-shadow:0 2px 4px #1439492a;border-radius:15px;padding:5px 9px;white-space:nowrap;z-index:3}#scene-note{position:absolute;bottom:55px;left:50%;transform:translateX(-50%);background:#143949dd;color:#fff;padding:9px 14px;border-radius:20px;font-size:13px;white-space:nowrap;max-width:90%;text-overflow:ellipsis;overflow:hidden}.map-bottom{position:absolute;left:20px;right:20px;bottom:15px;display:flex;justify-content:space-between;color:#35616c;font-size:11px}.hero-dot{display:inline-block;width:8px;height:8px;background:#ee8447;border-radius:50%;margin-right:5px}#route-strip{display:flex;padding:14px 19px;gap:8px;align-items:center;overflow-x:auto;min-height:63px;background:#fff}.route-node{white-space:nowrap;font-size:12px;color:#8499a1}.route-node b{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:7px;background:#edf3f5;margin-right:5px;font-size:11px}.route-node.active{color:#e17b3a;font-weight:750}.route-node.active b{background:#fff0db;color:#e17b3a}.route-line{height:1px;min-width:12px;background:#dce6ea}.lesson-card{background:white;padding:25px 24px 14px;border-radius:23px;border:1px solid #d9e4e9;display:flex;flex-direction:column;min-width:0}.lesson-card p{font-size:15px;line-height:1.75}.chapter-label{display:inline-flex;border:1px solid #f3dfba;color:#ab7221;background:#fffaef;border-radius:7px;padding:5px 9px;font-size:12px;font-weight:700}.lesson-english{font-size:19px!important;font-weight:650;line-height:1.65!important;margin:16px 0 10px}.lesson-chinese{color:#6a818c;font-size:14px!important;margin:8px 0 18px}.mission-tip{background:#f1f6f8;border-left:3px solid #68a8b6;padding:10px 12px;border-radius:3px 9px 9px 3px;font-size:13px;line-height:1.7;color:#4f6c78}.audio-controls{display:flex;gap:8px;margin-top:18px}.audio-controls button{font-size:13px;padding:10px 11px}.audio-btn{flex:1;background:#edf5f8;border-color:#d9e8ee}.audio-controls #slow{font-size:12px}.audio-controls #slow[aria-pressed=true]{background:#143949;color:white}#audio-status{font-size:11px;margin:8px 0 10px;color:#78919b;min-height:18px;line-height:1.6}#feedback{font-size:14px;line-height:1.7;min-height:30px;margin:5px 0;color:#657e8a}#feedback.good{background:#e9f6f0;color:#177260;padding:11px;border-radius:9px}#feedback.wrong{background:#fff2e7;color:#a9672d;padding:11px;border-radius:9px}#actions{margin-top:auto;display:flex;flex-direction:column;gap:9px;padding-top:10px}.primary{background:#e57b42;border-color:#e57b42;color:white;box-shadow:0 4px 10px #e57b4220}.primary:hover{background:#d96a31}.secondary-actions{display:flex;gap:8px}.secondary-actions button{flex:1;font-size:13px;padding:9px}.privacy{font-size:10px!important;color:#96a8af;text-align:center;margin:14px 0 0!important}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0 0}.action-grid button{padding:14px 8px;font-size:14px;min-height:60px}.action-grid .icon{font-size:25px;display:block;margin-bottom:4px}.hint-toggle{font-size:12px;color:#768d97;border:0;background:none;padding:4px 0;text-align:left}.listen-orb{width:65px;height:65px;display:grid;place-items:center;background:#f5a450;color:#fff;font-size:31px;border-radius:22px;margin:17px 0 14px}.listen-prompt{font-size:16px;font-weight:650;margin:8px 0 12px;line-height:1.6}.revealed-text{font-size:14px;background:#f1f6f8;padding:10px;border-radius:8px;line-height:1.6;color:#476c7a}.spelling-input{width:100%;padding:14px;font-size:21px;letter-spacing:1px;border:2px solid #dbe5e8;border-radius:12px;color:var(--navy);margin:14px 0 0;background:#fafcfd}.spelling-input:disabled{background:#eff8f3;border-color:#b3dccc}.score-badge{font-size:12px;color:#659180;margin-top:12px}#word-shelf{display:flex;align-items:flex-start;gap:16px;background:#fff;border:1px solid #dce6eb;border-radius:17px;padding:17px 20px;margin-top:17px;min-height:94px}.shelf-title{min-width:92px;font-size:13px;font-weight:750;padding:7px 0;color:#67818d;line-height:1.7}.shelf-title small{display:block;font-size:11px;font-weight:500;color:#9babb2}.word-chips{display:flex;flex-wrap:wrap;gap:8px}.word-chip{padding:9px 13px;border:1px solid #e3ebef;border-radius:10px;text-align:left;font-size:15px}.word-chip small{display:block;font-size:11px;margin-top:5px;font-weight:400;color:#78929e}.word-chip b{font-size:11px;color:#8fb6c3;margin-left:10px}.concealed{filter:blur(5px)}footer{display:flex;justify-content:space-between;margin-top:18px;font-size:11px;color:#8fa3ad;gap:15px}dialog{border:0;border-radius:24px;color:var(--navy);padding:32px;max-width:465px;width:calc(100% - 32px);box-shadow:0 24px 90px #14394955}dialog::backdrop{background:#12364566;backdrop-filter:blur(5px)}#start-dialog{text-align:center}#start-dialog p{line-height:1.8;font-size:16px;color:#66808d}#start-dialog button{width:100%;margin-top:10px;padding:14px}.dialog-illustration{font-size:56px;margin-bottom:14px}.start-steps{display:flex;gap:8px;justify-content:center;margin:22px 0 10px;font-size:12px;color:#527382}.start-steps span{background:#eff5f7;border-radius:8px;padding:10px 7px}dialog small{display:block;font-size:12px;color:#8fa4af;margin-top:16px}.dialog-actions{display:flex;gap:10px;margin-top:24px}.close{position:absolute;right:15px;top:15px;border:0;font-size:25px;background:transparent}.word-big{font-size:34px;letter-spacing:.5px;margin:16px 0 4px;font-weight:750}.word-zh{font-size:18px;color:#6b8793}.word-hint{padding:16px;background:#eff6f8;border-radius:12px;line-height:1.8;color:#4b6f7f;margin:20px 0;font-size:14px}.word-audio{display:flex;gap:10px}.word-audio button{flex:1}#review-panel{background:#fff;border:1px solid #dce6eb;border-radius:22px;padding:26px;margin-top:18px}.review-header{display:flex;align-items:center;justify-content:space-between}.review-header p{color:#6c8691;font-size:14px}.review-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:20px}.review-grid button{text-align:left;min-height:78px}.review-grid small{display:block;font-weight:400;color:#7e929e;font-size:12px;margin-top:7px}.hidden-words .word-chip span{color:transparent;text-shadow:0 0 8px #748b98}body.review-mode .workspace{display:none}body.review-mode #word-shelf{display:none}.finish-star{font-size:60px;text-align:center;margin-top:12px}.finish-list{font-size:14px;line-height:2;color:#63818e}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1450px){#scene{height:610px}.workspace{grid-template-columns:minmax(0,1fr) 370px}.lesson-card{padding:28px}}@media(max-width:1100px){header{padding:0 18px;gap:8px}.brand strong{font-size:16px}.brand small{font-size:11px}nav button{padding:11px 9px;font-size:12px}main{padding:20px 18px}.workspace{grid-template-columns:minmax(0,1fr) 310px;gap:14px}.lesson-card{padding:20px 18px}#scene{height:520px}.place-label{font-size:10px;padding:4px 6px}.place-label small{font-size:10px}.map-badge{font-size:9px}.label-switch{font-size:10px}.review-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:820px){header{height:auto;min-height:82px;flex-wrap:wrap;padding:15px;gap:12px}.tools{margin-left:auto}nav{order:3;width:100%;justify-content:space-between}nav button{flex:1}.journey-bar{align-items:flex-start}.progress-wrap{min-width:125px}h1{font-size:21px}.workspace{display:flex;flex-direction:column}.map-card{width:100%}#scene{height:490px}.lesson-card{min-height:350px}.lesson-english{font-size:19px!important}.review-grid{grid-template-columns:repeat(3,1fr)}.place-label{font-size:11px}.place-label small{font-size:10px}footer{flex-direction:column;gap:5px}#word-shelf{flex-direction:column;gap:5px}.shelf-title{padding:0}.shelf-title small{display:inline;margin-left:8px}}@media(max-width:500px){main{padding:17px 10px}.journey-bar{gap:10px}.eyebrow{font-size:10px}.progress-wrap{min-width:90px}.map-top{left:10px;right:10px}.map-badge{display:none}.label-switch{margin-left:auto}.place-label{font-size:9px;padding:4px 5px}.place-label small{font-size:9px}#scene{height:380px}#character-label{font-size:9px}#route-strip{padding:13px 12px}.map-bottom{font-size:9px;left:10px;right:10px}.compass{left:12px;top:15px}.review-grid{grid-template-columns:repeat(2,1fr)}.review-header{display:block}.review-header p{font-size:12px}h1{font-size:19px}.brand strong{font-size:15px}.brand-icon{width:36px;height:36px}.start-steps{gap:4px;font-size:10px}dialog{padding:25px}body{min-width:320px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.scene-sync{margin-top:14px;display:flex;align-items:center;gap:10px}.scene-sync progress{width:100%;height:6px;accent-color:#e57b42;border:0}.scene-sync small{font-size:10px;white-space:nowrap;color:#76909b}#pause-story{font-size:13px;padding:10px;background:#edf5f8;border-color:#d9e8ee}
#boot-status{padding:12px 24px;background:#fff1d8;color:#744b1d;font-size:14px}#boot-status[hidden]{display:none}#boot-retry{margin-left:12px;padding:7px 12px}

.view-controls{position:absolute;left:18px;top:68px;z-index:8;display:flex;flex-direction:column;gap:7px;background:#fffffff0;padding:10px;border-radius:12px;box-shadow:0 3px 14px #17374820}.view-controls>span{font-size:12px;font-weight:700}.view-controls small{font-size:11px;color:#637d88}.view-controls button{font-size:11px;padding:7px 9px}.view-controls button[aria-pressed=true]{background:#254959;color:white}.first-person .map-bottom{color:#f5f5ef;text-shadow:0 1px 4px #183c4e}.first-person #scene-note{max-width:94%;font-size:12px}.place-label[hidden],#character-label[hidden]{display:none}.practice-sync{margin-top:14px}.practice-sync button{width:100%;font-size:12px;padding:9px}.map-badge{max-width:55%}@media(max-width:1100px){.view-controls{left:12px}}@media(max-width:500px){.view-controls{top:50px;left:10px;padding:7px}.view-controls>span{font-size:10px}.view-controls button{font-size:10px;padding:6px}.map-top{top:10px}#scene-note{bottom:42px;white-space:normal;border-radius:10px;font-size:11px;text-align:center}.map-bottom{bottom:12px}}

#carried-item{position:absolute;right:20px;bottom:105px;padding:10px 13px;background:#fff8ecf0;border:1px solid #ecd7b6;border-radius:12px;z-index:5;font-size:27px;box-shadow:0 3px 12px #23485920}#carried-item span{font-size:11px;vertical-align:middle;color:#8c6237}#carried-item[hidden]{display:none}.practice-sync progress{width:100%;height:6px;accent-color:#e57b42;margin-bottom:10px}@media(max-width:500px){#carried-item{right:10px;bottom:100px;padding:6px;font-size:22px}#carried-item span{display:none}}

#town{touch-action:none;cursor:grab}#town:active{cursor:grabbing}#town:focus-visible{outline:3px solid #dfab55;outline-offset:-3px}#resume-guide{position:absolute;left:50%;bottom:105px;transform:translateX(-50%);z-index:9;background:#e57b42;color:white;border:1px solid #fff5;font-size:13px;box-shadow:0 3px 14px #132c3940}#resume-guide[hidden]{display:none}@media(max-width:700px){#resume-guide{left:auto;right:10px;bottom:155px;transform:none;font-size:11px}}

@media(max-width:1100px){#resume-guide{bottom:160px}}

#clip-feedback{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}#clip-feedback[hidden],#clip-retry[hidden]{display:none}.word-chip[data-audio-state=loading],.review-grid button[data-audio-state=loading]{border-color:#d79837;background:#fff7df}.word-chip[data-audio-state=playing],.review-grid button[data-audio-state=playing]{border-color:#3a927c;background:#e9f7ef}.word-chip[data-audio-state=error],.review-grid button[data-audio-state=error]{border-color:#c77047;background:#fff0e8}

.listen-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.listen-header .listen-orb{margin:0;flex-shrink:0}#audio-status:empty{display:none}.place-zh{display:block;font-size:12px;font-weight:650}#scene:not(.first-person) #town{cursor:default}#scene.first-person #town{cursor:grab}#scene.first-person #town:active{cursor:grabbing}

/* Four connected memory branches, with the same English-only word player. */
body.review-mode #review-panel{margin-top:0;padding:24px;background:#f8fbfc}
.review-header{gap:24px;align-items:flex-start}.review-header h2{margin:0 0 8px;font-size:23px}.review-header p{margin:0;line-height:1.7}.review-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.review-actions button{font-size:12px;padding:10px 12px;white-space:nowrap}.review-actions button[aria-pressed=true]{background:#254959;color:white;border-color:#254959}
.review-journey{display:flex;list-style:none;padding:0;margin:25px 0;gap:0;align-items:center}.review-journey li{display:flex;align-items:center;flex:1;min-width:0}.review-journey li:not(:last-child)::after{content:'→';flex:1;text-align:center;color:#88a0a9;font-size:23px;padding:0 8px}.review-journey a{display:flex;align-items:center;gap:9px;color:#355966;text-decoration:none;font-size:13px;font-weight:650;line-height:1.5}.review-journey a:hover{color:#b3612f}.review-journey a:focus-visible{outline:3px solid #e5a12e;outline-offset:5px;border-radius:6px}.review-journey b{display:grid;place-items:center;width:28px;height:28px;background:#e5eef2;border-radius:50%;font-size:11px;flex-shrink:0}
.review-atlas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.review-group{--branch:#5590aa;--branch-bg:#edf6fa;--branch-line:#c7dee8;min-width:0;padding:21px;background:white;border:1px solid #dbe6eb;border-radius:18px;scroll-margin-top:18px}.review-group[data-review-group=directions]{--branch:#448876;--branch-bg:#edf7f2;--branch-line:#c2dfd3}.review-group[data-review-group=asking]{--branch:#8d739e;--branch-bg:#f5f0f8;--branch-line:#ddd0e6}.review-group[data-review-group=people]{--branch:#b7793f;--branch-bg:#fff5e8;--branch-line:#f0d9bc}.review-group-head{display:flex;align-items:center;gap:12px;margin-bottom:22px}.review-group-icon{width:43px;height:43px;display:grid;place-items:center;background:var(--branch-bg);color:var(--branch);border-radius:13px;font-size:16px;font-weight:800;flex-shrink:0}.review-group-head h3{font-size:20px;margin:0 0 5px}.review-group-head p{font-size:12px;color:#7b919a;margin:0}.review-group-head>small{margin-left:auto;color:var(--branch);font-size:12px;white-space:nowrap;background:var(--branch-bg);padding:6px 9px;border-radius:12px}
.review-branches{margin-left:20px;border-left:2px solid var(--branch-line);padding-left:20px}.review-branch{position:relative;margin-bottom:25px;min-width:0}.review-branch:last-child{margin-bottom:0}.review-branch::before{content:'';position:absolute;top:10px;left:-22px;width:15px;border-top:2px solid var(--branch-line)}.review-branch h4{margin:0 0 12px;font-size:14px;color:var(--branch);line-height:1.5}.review-group .review-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.review-group .review-word{min-width:0;min-height:74px;padding:10px 11px;border-color:#e0e8ec;border-radius:10px;text-align:left;background:#fff}.review-group .review-word:hover{border-color:var(--branch);background:var(--branch-bg)}.review-word-top{display:flex;gap:5px;justify-content:space-between;align-items:baseline}.review-word-top>.review-en{font-size:14px;line-height:1.4;overflow-wrap:anywhere}.review-word-top b{font-size:12px;color:var(--branch);flex-shrink:0}.review-grid .review-meaning{font-size:11px;line-height:1.5;color:#7b919b;font-weight:400;min-height:17px;margin-top:6px;overflow-wrap:anywhere}.review-link{margin-top:12px;border-radius:9px;background:var(--branch-bg);padding:12px 13px}.review-link-label{font-size:10px;color:var(--branch);font-weight:750;letter-spacing:.7px}.review-example{font-size:14px;line-height:1.65;margin:5px 0 0;color:#274f5e;font-weight:600}.review-translation{font-size:11px;line-height:1.7;color:#69818c;margin:6px 0 0}.review-note{font-size:11px;line-height:1.7;color:#6d828b;margin:8px 0 0;padding-top:8px;border-top:1px solid var(--branch-line)}.review-en.is-covered{letter-spacing:3px;color:#8b9ea6}.review-link .is-covered,.review-grid .is-covered.review-meaning{font-size:11px;font-weight:400;color:#91a1a9;letter-spacing:0}
.review-grid .review-word[data-audio-state=loading]{border-color:#d79837;background:#fff7df}.review-grid .review-word[data-audio-state=playing]{border-color:#3a927c;background:#e9f7ef}.review-grid .review-word[data-audio-state=error]{border-color:#c77047;background:#fff0e8}
@media(max-width:1100px){.review-header{display:block}.review-actions{justify-content:flex-start;margin-top:14px}.review-group{padding:17px}.review-group .review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.review-branches{margin-left:7px;padding-left:17px}.review-branch::before{left:-19px;width:12px}.review-journey a{font-size:12px}}
@media(max-width:820px){.review-atlas{grid-template-columns:minmax(0,1fr)}.review-group .review-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.review-journey{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.review-journey li:not(:last-child)::after{display:none}.review-journey li{background:#edf3f6;border-radius:9px;padding:8px}.review-journey a{font-size:12px}}
@media(max-width:500px){body.review-mode #review-panel{padding:15px}.review-header h2{font-size:20px}.review-header p{font-size:12px}.review-actions{gap:6px}.review-actions button{padding:9px;font-size:11px}.review-group{padding:15px 12px}.review-group-head h3{font-size:18px}.review-group .review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.review-word-top>.review-en{font-size:13px}.review-group .review-word{padding:9px}.review-journey{margin:20px 0;gap:8px}.review-journey a{font-size:11px;gap:7px}.review-journey b{width:24px;height:24px}}

.word-audio-icon{display:inline-grid;place-items:center;width:20px;height:20px;flex:0 0 20px;margin:0!important;line-height:20px;font-size:15px!important;transform-origin:center;color:#718e9b}.word-chip{position:relative;padding-right:40px}.word-chip .word-audio-icon{position:absolute;right:10px;top:9px}.review-word-top{align-items:center}.review-grid .review-word{transition:background .15s,border-color .15s}.word-audio-icon[data-state=playing]{color:#16836e;animation:word-note-pulse .65s ease-in-out infinite alternate}.word-audio-icon[data-state=loading]{color:#aa792a;animation:word-note-spin 1s linear infinite}.word-audio-icon[data-state=error]{color:#b25d36}.word-audio-icon[data-state=muted]{color:#94a2a9}.review-en.is-covered,.review-grid .is-covered.review-meaning{letter-spacing:3px;color:#8b9ea6;font-weight:650}.review-grid .is-covered.review-meaning{font-size:13px}@keyframes word-note-pulse{from{transform:scale(.9) rotate(-9deg)}to{transform:scale(1.15) rotate(9deg)}}@keyframes word-note-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.word-audio-icon{animation:none!important;transform:none!important}.word-audio-icon[data-state=playing]{color:#087258;box-shadow:inset 0 -2px #087258;border-radius:2px}.word-audio-icon[data-state=loading]{color:#aa792a;outline:1px dotted #aa792a;border-radius:50%}}
.review-group .review-word{height:104px}.review-grid .review-meaning{min-height:34px}.review-en.is-covered,.review-grid .is-covered.review-meaning{font-size:14px;line-height:20px;letter-spacing:3px;font-weight:650}.review-word-top{min-height:32px}.review-group .review-word .word-audio-icon{align-self:center}

#spelling-target{position:absolute;transform:translate(-50%,-100%);z-index:4;pointer-events:none;padding:6px 11px;border:2px solid #fff2d7;border-radius:9px;background:#c87713;color:white;font-size:12px;font-weight:750;box-shadow:0 3px 10px #3a32192b}#spelling-target[hidden]{display:none}

.place-en{display:block}.place-en[hidden],.place-zh[hidden]{display:none}.place-label .place-zh{font-size:11px;font-weight:500;color:#68838e}.place-label .place-en[hidden]+.place-zh{margin-top:0;font-size:12px;font-weight:650;color:#274656}



#progress.story-progress{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px;width:360px;max-width:100%;padding:3px}.story-step{height:28px;min-width:0;padding:0;font-size:10px;border-radius:6px;background:#e4edf0;border:2px solid transparent;color:#6c8691;box-shadow:none}.story-step.done{background:#d8eee6;color:#26705f}.story-step.current{border-color:#e57b42;background:#fff2e7;color:#a6542c}.story-step.done.current{background:#d8eee6;color:#26705f;border-color:#e57b42}.story-step:hover{border-color:#899faa}.story-step:focus-visible{outline:3px solid #d99627;outline-offset:2px}.route-caption{font-size:11px;font-weight:750;color:#5c7b86;white-space:nowrap;padding-right:7px;border-right:1px solid #dce6ea;margin-right:2px}.playback-label{font-size:10px;color:#76909b;white-space:nowrap}.scene-sync{gap:7px}.scene-sync progress{min-width:25px}@media(max-width:820px){.journey-bar:has(.story-progress){flex-wrap:wrap}.journey-bar:has(.story-progress) .progress-wrap{width:100%;text-align:left}.journey-bar:has(.story-progress) #progress{width:100%;max-width:480px}}

.inline-word{display:inline;font:inherit;line-height:inherit;padding:0 2px;margin:0;border:0;border-bottom:2px solid #e0aa72;border-radius:3px;color:#a8652f;background:#fff7ec;box-shadow:none;vertical-align:baseline;transform:none!important}.inline-word:hover{background:#ffeacf}.inline-word[data-audio-state=playing]{color:#117158;background:#dff2e8;border-bottom-color:#16836e}.inline-word[data-audio-state=loading]{border-bottom-style:dotted;border-bottom-color:#aa792a}.inline-word[data-audio-state=error]{color:#a6472f;border-bottom-color:#be5941}.inline-word:focus-visible{outline:2px solid #da8c30;outline-offset:2px}

/* Keep the single view switch at the map's top-left; optional Chinese stays top-right. */
.view-controls{top:17px;left:17px;padding:0;background:none;border-radius:0;box-shadow:none}.view-controls button{font-size:12px;padding:10px 12px;background:#fffffff0;border-color:#d3e1e7;border-radius:10px;box-shadow:0 3px 10px #17374816}.map-top{justify-content:flex-end}@media(max-width:500px){.view-controls{top:10px;left:10px;padding:0}.view-controls button{font-size:11px;padding:9px 10px}}

/* View help is revealed only on hover or keyboard focus, without shifting the map. */
.view-controls #view-tooltip{position:absolute;left:0;top:100%;width:min(295px,calc(100vw - 65px));padding:12px 14px;background:#173d4eee;color:#fff;border:1px solid #ffffff45;border-radius:10px;box-shadow:0 5px 18px #17374830;font-size:12px;font-weight:400;line-height:1.75;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease;white-space:normal}.view-controls:is(:hover,:focus-within):not(.tooltip-dismissed) #view-tooltip{opacity:1;visibility:visible;pointer-events:auto}.view-controls:focus-visible{outline:3px solid #dfab55;outline-offset:3px;border-radius:10px}@media(prefers-reduced-motion:reduce){.view-controls #view-tooltip{transition:none}}

/* Shared mode layout: navigation and the content start do not depend on copy length. */
html{scrollbar-gutter:stable}@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
header{display:grid;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr)}
header .brand{min-width:0;max-width:100%;justify-self:start}header .brand-icon{flex-shrink:0}header .brand>div{min-width:0}header .brand strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header nav{justify-self:center}header .tools{justify-self:end;margin-left:0}
.journey-bar{display:grid;grid-template-columns:minmax(0,1fr) 360px;align-items:center;min-height:66px;gap:20px;margin-bottom:18px}
.journey-bar>div:first-child{min-width:0}.journey-bar .eyebrow{line-height:18px}.journey-bar h1{line-height:1.25}
.journey-bar .progress-wrap{width:360px;min-width:0}#progress-label{display:block;line-height:18px}
#progress{min-height:34px;align-items:center}#progress.story-progress{height:34px;width:100%}
@media(max-width:950px){header{height:auto;min-height:82px;grid-template-columns:minmax(0,1fr) auto;padding:15px;gap:12px}header .brand{grid-column:1;grid-row:1}header .tools{grid-column:2;grid-row:1}header nav{grid-column:1/-1;grid-row:2;order:initial;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));justify-self:stretch}header nav button{padding:11px 4px;font-size:12px}}
@media(max-width:820px){.journey-bar,.journey-bar:has(.story-progress){grid-template-columns:minmax(0,1fr);gap:12px;min-height:0;align-items:start}.journey-bar>div:first-child{min-height:52px}.journey-bar .progress-wrap,.journey-bar:has(.story-progress) .progress-wrap{width:100%;text-align:left}.journey-bar #progress,.journey-bar:has(.story-progress) #progress{width:100%;max-width:none}}
@media(max-width:500px){header nav button{font-size:11px}.journey-bar .eyebrow{line-height:16px}}

.resource-breadcrumb{max-width:1600px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 30px;font-size:12px;color:#718994}.resource-breadcrumb a{color:#355f72;text-decoration:none;font-weight:650}.resource-breadcrumb a:hover{text-decoration:underline}.resource-breadcrumb a:focus-visible{outline:3px solid #e5a12e;outline-offset:4px;border-radius:3px}@media(max-width:600px){.resource-breadcrumb{padding:10px 15px;font-size:11px}}
