:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#14374b;background:#063477;font-synthesis:none;--ink:#14374b;--paper:#fffaf0;--accent:#ef7959;--line:#14374b22}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;overscroll-behavior:none}body{overflow:hidden}button,a,input,select{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{border:1px solid var(--line);background:#ffffffc9;color:var(--ink);padding:11px 16px;border-radius:28px;cursor:pointer;font-size:16px;font-weight:650;transition:background .2s,transform .2s}button:hover{background:#ffebca;transform:translateY(-1px)}button:disabled{opacity:.36;cursor:default;transform:none}button.primary{background:#163f55;color:white;border-color:#163f55}button.primary:hover{background:#235d72}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e5fa7a;outline-offset:4px}[hidden]{display:none!important}
#ocean,#fallback-film{position:fixed;inset:0;width:100%;height:100svh;touch-action:none}#fallback-film{object-fit:cover}body[data-graphics="lost"] #ocean{display:none}
#graphics-status{position:fixed;left:50%;top:38%;z-index:25;transform:translateX(-50%);padding:14px 22px;background:#092e56d9;border:1px solid #ffffff33;border-radius:50px;color:white;font-size:16px;backdrop-filter:blur(12px);pointer-events:none;white-space:nowrap}body[data-graphics="ready"] #graphics-status{display:none}body[data-graphics="lost"] #graphics-status{top:auto;bottom:20px;max-width:90%;white-space:normal;text-align:center}
.site-header{position:fixed;z-index:12;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:19px 4vw;gap:24px;pointer-events:none;color:#123449}.site-header>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:800}.brand small{display:block;font:11px Arial;letter-spacing:.19em;margin-top:4px}.monogram{position:relative;display:grid;place-items:center;width:45px;height:45px;border:2px solid #133b53;border-radius:14px;font:bold 18px Arial}.monogram span{position:absolute;right:2px;bottom:0;color:#d6ed6f;font-size:11px}.site-header nav{display:flex;gap:24px;padding-right:64px;font-size:16px;font-weight:650}.site-header nav a{padding:10px 0;border-bottom:2px solid transparent}.site-header nav a[aria-current]{border-color:#164657}
body[data-scene="home"] .site-header,body[data-scene="world"] .site-header,body[data-scene="home"] .site-footer,body[data-scene="world"] .site-footer{display:none}
.scene-controls{position:fixed;z-index:22;right:24px;top:23px;display:flex;gap:10px}.scene-controls button,.scene-controls a,.day-actions button{width:46px;height:46px;padding:12px;border:1px solid #ffffff55;border-radius:50%;display:grid;place-items:center;background:#143e5c55;color:#fff;backdrop-filter:blur(12px)}.scene-controls svg,.day-actions svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none}.scene-controls .play-icon{display:none}.scene-controls button[aria-pressed="true"] .pause-icon{display:none}.scene-controls button[aria-pressed="true"] .play-icon{display:block}body[data-scene="home"] .home-control,body[data-scene="english"] .home-control{display:none}
.scene-panel{position:relative;pointer-events:none;min-height:100svh}.scene-panel a,.scene-panel button,.scene-panel input,.scene-panel select{pointer-events:auto}
.portal{position:fixed;top:75%;width:43%;max-width:440px;transform:translate(-50%,0);text-align:center;color:#fffcf0;text-shadow:0 3px 20px #022441bb;transition:filter .3s,scale .3s}.world-portal{left:22%}.english-portal{left:78%}.portal strong{display:block;font-size:clamp(32px,3.5vw,62px);font-weight:850;line-height:1.14;letter-spacing:-.04em}.portal.selected,.portal:hover,.portal:focus-visible{filter:drop-shadow(0 0 18px #ccf9ffa3);scale:1.06}
.boat-label{position:fixed;transform:translate(-50%,-100%);font:750 clamp(25px,2.7vw,42px)/1.2 "Segoe UI",sans-serif;letter-spacing:-.04em;white-space:nowrap;padding:7px 14px;border:0;border-radius:10px;background:#062c5938;color:white;text-shadow:0 2px 10px #03264a;backdrop-filter:blur(4px)}.boat-label:not(.active){font-size:clamp(21px,2vw,31px);opacity:.75}.boat-label:hover{transform:translate(-50%,-100%) scale(1.045);background:#16476570}.day-actions{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);display:flex;gap:16px}body[data-reading="true"] #boat-labels,body[data-reading="true"] .day-actions{visibility:hidden}
.english-panel{height:100svh;padding:98px 0 57px 3.5vw;display:flex;align-items:center}.lesson-panel{pointer-events:auto;width:min(44vw,660px);max-height:100%;overflow:auto;overscroll-behavior:contain;padding:26px 28px;background:#fffaf0f5;border:1px solid #ffffffb0;border-radius:25px;box-shadow:0 18px 70px #103b5729;backdrop-filter:blur(18px);scrollbar-width:thin;scrollbar-color:#9bb3ac transparent}.lesson-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.eyebrow{font-size:15px;font-weight:750;letter-spacing:.06em;margin:0}.lesson-top span{white-space:nowrap;font-size:14px;color:#627b7b;font-variant-numeric:tabular-nums}#word-title{font-family:Arial,sans-serif;font-size:clamp(40px,4.4vw,65px);font-weight:800;line-height:1.04;letter-spacing:-.045em;overflow-wrap:anywhere;margin:23px 0 12px}#word-ipa{font-size:18px;color:#56717d;margin:0}#word-meaning{font-size:25px;line-height:1.4;margin:11px 0 20px;font-weight:750}.audio-row{display:flex;gap:7px;flex-wrap:wrap}.audio-row button{font-size:15px;padding:10px 14px}.audio-status{font-size:14px;color:#617b7c;line-height:1.4;margin:10px 0 19px;min-height:20px}.quote-box{border-left:3px solid #ef7959;border-radius:0 13px 13px 0;padding:16px 18px;background:#edf2e8}.quote-box small{font-size:14px;color:#5a7475}.quote-box p{font:500 clamp(20px,1.8vw,26px)/1.5 Georgia,serif;margin:9px 0 0}.lesson-actions{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.lesson-actions button{font-size:15px;padding:10px 13px}.musk-dialogue{background:#deeee4;border-radius:17px 17px 17px 4px;padding:16px 18px}.musk-dialogue span{font-size:14px;color:#357064;font-weight:750}.musk-dialogue p{font-size:18px;line-height:1.6;margin:6px 0 0;white-space:pre-line}.ask-options{display:flex;flex-wrap:wrap;gap:4px;margin:10px 0}.ask-options button{font-size:15px;background:transparent;border:none;text-decoration:underline;text-underline-offset:5px;padding:9px 10px}#ask-form{display:flex;gap:7px}#question{min-width:0;flex:1;background:#fffdf6;border:1px solid #14374b2b;border-radius:26px;padding:12px 15px;font-size:16px;color:var(--ink)}#ask-form button{padding:10px 14px}.lesson-pagination{display:flex;gap:7px;align-items:center;margin-top:20px;padding-top:17px;border-top:1px solid var(--line)}.lesson-pagination button{font-size:15px;padding:10px 12px}.lesson-pagination select{min-width:0;flex:1;border:0;border-radius:12px;background:#e9eee4;padding:12px 28px 12px 13px;color:var(--ink);font-size:16px;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#52716e 50%),linear-gradient(135deg,#52716e 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%;background-size:5px 5px;background-repeat:no-repeat}#quiz{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}#quiz button{font-size:16px;background:#fff7dc}
.demo-caption{position:fixed;left:50%;right:3%;bottom:9%;text-align:center;color:#163f4f;text-shadow:0 1px 8px #fff6df60}.demo-caption p{font-size:21px;line-height:1.5;font-weight:750;margin:0 0 7px}.demo-caption span{font-size:14px;color:#345e64}.site-footer{position:fixed;z-index:10;bottom:0;left:0;right:0;display:flex;justify-content:space-between;gap:20px;padding:18px 4vw;font-size:14px;color:#234f5b;pointer-events:none}.site-footer a{pointer-events:auto;text-decoration:underline;text-underline-offset:4px}
.reader-panel{position:fixed;z-index:18;right:2.5%;top:85px;bottom:28px;width:72%;display:flex;flex-direction:column;overflow:hidden;background:#fffaf0;border:1px solid #ffffff80;border-radius:22px;box-shadow:0 20px 85px #052b5a66}.reader-panel header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 20px}.reader-panel header small{font-size:14px;color:#5b7a80}.reader-panel header h2{font-size:22px;line-height:1.3;margin:5px 0 0}.reader-panel header button{white-space:nowrap;font-size:15px}#viewer{flex:1;min-height:0;background:#0c354b;touch-action:none}.reader-panel footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 16px}.zoom-tools,.page-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.reader-panel footer button{font-size:14px;padding:9px 12px}.reader-panel output,.page-tools span{font-size:14px;min-width:43px;text-align:center;font-variant-numeric:tabular-nums}.companion-bubble{position:fixed;z-index:19;left:2.5%;bottom:28px;width:21%;padding:18px;background:#fffaf0f0;border:1px solid #ffffff60;border-radius:18px;box-shadow:0 8px 40px #07385b26}.companion-bubble span{font-size:14px;font-weight:700}.companion-bubble p{font-size:17px;line-height:1.5;margin:10px 0 14px}.companion-bubble button{font-size:14px}#reader-error{position:absolute;top:45%;left:15%;right:15%;padding:20px;background:#fffaf0;border-radius:16px;font-size:18px}
@media(min-width:1700px){.lesson-panel{padding:32px 36px}.english-panel{padding-left:5vw}.musk-dialogue p{font-size:20px}.lesson-panel button{font-size:17px}.demo-caption p{font-size:24px}}
@media(max-width:1000px) and (min-width:760px){.lesson-panel{width:46vw;padding:23px 22px}.english-panel{padding-left:2.5vw}#word-title{font-size:43px}.audio-row button{padding:9px 11px}.lesson-top .eyebrow{font-size:14px}.site-header nav{gap:16px}.reader-panel{width:73%}.reader-panel footer{justify-content:center}}
@media(max-width:759px){
 body[data-scene="english"]{overflow:auto;background:#f2dfb5}body[data-scene="english"] #ocean,body[data-scene="english"] #fallback-film{height:55svh}
 .scene-controls{right:15px;top:17px;gap:8px}.scene-controls button,.scene-controls a{width:42px;height:42px;padding:10px}.portal{top:75%;width:47%;max-width:none}.world-portal{left:25%}.english-portal{left:75%}.portal strong{font-size:clamp(25px,6.7vw,36px);line-height:1.18}.boat-label{font-size:25px}.boat-label:not(.active){font-size:22px}.day-actions{bottom:24px}
 .site-header{padding:16px;gap:8px;background:linear-gradient(#d3e6ebbb,transparent)}.brand{font-size:16px;gap:8px}.brand small{font-size:10px;letter-spacing:.12em}.monogram{height:37px;width:37px;font-size:16px;border-radius:11px}.site-header nav{gap:12px;font-size:14px;padding-right:49px}.site-header nav a{padding:8px 0}
 .english-panel{height:auto;min-height:100svh;padding:54svh 12px 72px;display:block}.lesson-panel{width:100%;max-height:none;overflow:visible;padding:24px 22px;border-radius:23px;background:#fffaf7}.lesson-top .eyebrow{font-size:14px}#word-title{font-size:clamp(38px,10vw,52px);margin-top:23px}#word-meaning{font-size:23px}.quote-box p{font-size:22px}.musk-dialogue p{font-size:18px}.lesson-actions button{font-size:14px;padding:10px 12px}.lesson-pagination button{font-size:14px;padding:10px}.lesson-pagination select{font-size:15px}#ask-form button{font-size:15px}.demo-caption{position:absolute;top:47svh;bottom:auto;left:4%;right:4%}.demo-caption p{font-size:16px;margin-bottom:3px}.demo-caption span{font-size:12px}.site-footer{padding:16px 20px;background:linear-gradient(transparent,#f2dfb5);font-size:13px}
 .reader-panel{top:74px;left:12px;right:12px;bottom:16px;width:auto;border-radius:17px}.reader-panel header{padding:13px;gap:10px}.reader-panel header h2{font-size:18px}.reader-panel header small{font-size:13px}.reader-panel header button{font-size:14px;padding:9px}.reader-panel footer{padding:9px;justify-content:center;gap:8px}.reader-panel footer button{padding:8px 10px}.zoom-tools,.page-tools{gap:5px}.companion-bubble{display:none!important}#reader-error{left:7%;right:7%;font-size:16px}
 body[data-reading="true"] .site-header{visibility:hidden}
}
body[data-scene="english"][data-reading="true"] .lesson-panel,body[data-scene="english"][data-reading="true"] .demo-caption{visibility:hidden}
body[data-reading="true"]{overflow:hidden!important}
@media(max-width:759px){body[data-scene="english"] .site-footer{position:relative;background:#f2dfb5}.english-panel{padding-bottom:24px}.demo-caption{background:#fffaf0e8;border-radius:13px;padding:6px 9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Date dock, foreground companion and a movable portrait reader. */
body[data-reading="true"] #boat-labels,body[data-reading="true"] .day-actions{display:none}
.reader-panel{z-index:20;width:43vw;top:4svh;bottom:3.4svh;border-radius:23px;border-color:#ffffffa8;box-shadow:0 22px 70px #032e4a52;container-type:inline-size}
@media(min-width:900px){body[data-reading="true"] .scene-controls{left:3vw;right:auto;top:18px}}
.reader-panel header{padding:15px 18px;min-height:86px;cursor:grab;touch-action:none;user-select:none;background:#fffaf0}
.reader-panel.is-moving header{cursor:grabbing}.reader-panel header h2{font-size:21px}.reader-panel header small{font-size:15px}
.reader-title{min-width:0}.reader-panel header h2{overflow-wrap:anywhere}.reader-window-actions{display:flex;gap:6px;align-items:center;flex-shrink:0}.reader-panel header button{padding:8px 10px;font-size:14px}.reader-panel #close-reader{font-size:24px;width:36px;height:36px;padding:0;flex-shrink:0}.reader-window-actions .zoom-tools{flex-wrap:nowrap;gap:3px}.reader-window-actions #zoom-label{min-width:50px;padding:8px 4px;font-variant-numeric:tabular-nums}.reader-window-actions #zoom-in,.reader-window-actions #zoom-out{width:30px;padding:8px 0}
.reader-panel footer{padding:10px 20px 12px 14px;gap:9px;justify-content:center}.reader-panel footer button{font-size:14px;padding:8px 11px}.page-tools{justify-content:center}
#viewer-frame{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 16px;grid-template-rows:minmax(0,1fr) 0;background:#dce9e7;overflow:hidden}#viewer-frame.has-horizontal-scroll{grid-template-rows:minmax(0,1fr) 16px}#viewer-frame:not(.has-horizontal-scroll) #image-scroll-x{visibility:hidden}#viewer{background:#10384a;min-width:0;min-height:0;grid-area:1/1}.image-scrollbar{overscroll-behavior:contain;scrollbar-color:#6094a4 #dce9e7;scrollbar-width:auto;outline-offset:-2px}.image-scrollbar::-webkit-scrollbar{width:16px;height:16px}.image-scrollbar::-webkit-scrollbar-thumb{background:#6094a4;border:3px solid #dce9e7;border-radius:12px}.image-scrollbar::-webkit-scrollbar-track{background:#dce9e7}#image-scroll-y{grid-area:1/2;overflow-y:scroll;overflow-x:hidden}#image-scroll-y>div{width:1px}#image-scroll-x{grid-area:2/1;overflow-x:auto;overflow-y:hidden}#image-scroll-x>div{height:1px}.scroll-corner{grid-area:2/2;background:#dce9e7}#reader-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:38px;background:linear-gradient(160deg,#eef7f4,#d1eaf0);color:#255269}
#reader-empty span{font-size:15px;color:#4c7c89}#reader-empty h3{font-size:25px;line-height:1.5;max-width:300px}#reader-empty p{font-size:17px;line-height:1.8;max-width:300px}
#reader-resize{position:absolute;right:2px;bottom:2px;width:20px;height:20px;padding:0;border:0;border-radius:0 0 20px 0;cursor:nwse-resize;touch-action:none;background:repeating-linear-gradient(135deg,transparent 0 4px,#65889588 4px 6px);clip-path:polygon(100% 0,100% 100%,0 100%)}
.companion-bubble{z-index:16;left:3vw;top:9svh;bottom:auto;width:clamp(280px,24vw,360px);height:min(74svh,680px);display:flex;flex-direction:column;padding:24px 30px 22px 24px;background:#fffaf0ed;border:1px solid #ffffffb0;border-radius:25px;box-shadow:0 18px 60px #07385b30;backdrop-filter:blur(14px)}
.companion-bubble .date-eyebrow{font-size:14px;font-weight:650;color:#4b7886}.companion-bubble h2{font-size:clamp(23px,2vw,29px);letter-spacing:-.04em;margin:12px 0 0;white-space:nowrap}.companion-bubble p{font-size:15px;margin:8px 0 18px;color:#5b7b86}
.date-list{display:flex;flex-direction:column;gap:9px;overflow-y:scroll;min-height:0;flex:1;padding:3px 12px 5px 3px;overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:#6094a4 #dce9e7;scrollbar-gutter:stable}
.date-list::-webkit-scrollbar{width:8px}.date-list::-webkit-scrollbar-thumb{background:#6094a4;border-radius:8px}.date-list::-webkit-scrollbar-track{background:#dce9e7;border-radius:8px}
:is(.companion-bubble,#english-date-picker) .reading-date{display:flex;flex-direction:column;align-items:flex-start;flex-shrink:0;gap:5px;width:100%;padding:13px 15px;border-radius:15px;text-align:left;background:#fffdf7;border-color:#719aa33b;transition:background .2s}
.reading-date strong{font-size:18px;font-weight:750;letter-spacing:-.02em}:is(.companion-bubble,#english-date-picker) .reading-date span{font-size:13px;font-weight:500;color:#6c8791}:is(.companion-bubble,#english-date-picker) .reading-date.active{background:#184e65;color:white;border-color:#184e65}:is(.companion-bubble,#english-date-picker) .reading-date.active span{color:#ddf0ec}:is(.companion-bubble,#english-date-picker) .reading-date:hover{transform:none;background:#e7f2ec}:is(.companion-bubble,#english-date-picker) .reading-date.active:hover{background:#205e76}
.date-footer{margin-top:14px;font-size:13px;color:#6b8590;line-height:1.6}
#reading-musk{position:fixed;z-index:19;left:clamp(150px,17vw,325px);top:37svh;width:clamp(210px,24vw,350px);height:52svh;pointer-events:none;touch-action:none}
@media(max-width:899px){
 .companion-bubble{display:flex!important;left:12px;top:66px;width:calc(100% - 110px);height:208px;padding:12px 16px;border-radius:18px}.companion-bubble[hidden]{display:none!important}
 .companion-bubble .date-eyebrow,.date-footer{display:none}.companion-bubble h2{font-size:21px;margin:0}.companion-bubble p{font-size:13px;margin:5px 0 7px}
 .date-list{gap:6px;padding-right:8px}:is(.companion-bubble,#english-date-picker) .reading-date{padding:8px 10px;gap:2px;border-radius:11px}.reading-date strong{font-size:16px}:is(.companion-bubble,#english-date-picker) .reading-date span{font-size:12px}
 #reading-musk{left:auto;right:0;top:76px;width:128px;height:174px}
 .reader-panel header{padding:11px 13px;min-height:77px}.reader-panel header h2{font-size:18px}.reader-panel header small{font-size:13px}.reader-panel header button{padding:7px 9px}.reader-panel footer{padding:8px 15px 10px 9px;gap:6px}.reader-panel footer button{font-size:13px;padding:8px 9px}#reader-empty{padding:22px}#reader-empty h3{font-size:21px}
}
@media(max-width:899px) and (max-height:649px){.companion-bubble{height:152px}.companion-bubble p{display:none}.companion-bubble h2{font-size:19px;margin-bottom:7px}#reading-musk{top:64px;height:142px}}
@container(max-width:580px){.reader-panel header{flex-wrap:wrap;gap:8px;padding:10px 12px;min-height:0}.reader-title{width:100%}.reader-panel header h2{font-size:18px;margin-top:3px}.reader-panel header small{font-size:13px}.reader-window-actions{margin-left:auto;gap:4px}.reader-panel header button{padding:7px 8px}.reader-panel #close-reader{height:34px;width:34px}.reader-window-actions #zoom-label{padding:7px 3px;min-width:45px}.reader-window-actions #zoom-in,.reader-window-actions #zoom-out{width:28px;padding:7px 0}}

/* The image fills the reader; all controls stay in a separate right-hand rail. */
.reader-panel{--reader-tools-width:90px;--reader-tools-gap:12px;border:0;border-radius:12px;background:transparent;overflow:visible}
.reader-description{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.reader-side-tools{position:absolute;z-index:4;left:calc(100% + var(--reader-tools-gap));top:0;width:var(--reader-tools-width);max-height:100%;display:flex;flex-direction:column;gap:8px;padding:8px;background:#fffaf0eb;border:1px solid #ffffffa8;border-radius:20px;box-shadow:0 8px 30px #07385b25;backdrop-filter:blur(14px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6094a4 transparent}
.reader-tool-group{display:flex;flex-direction:column;gap:5px}.reader-tool-group+.reader-tool-group{border-top:1px solid #173b5026;padding-top:8px}
.reader-side-tools button{width:100%;min-height:38px;flex-shrink:0;padding:8px 3px;border-radius:13px;font-size:14px;line-height:1.25;background:#fffdf8;white-space:normal;overflow-wrap:normal}
.reader-side-tools button:hover{background:#e1eee8;transform:none}.reader-side-tools button:focus-visible{outline-offset:-3px}
.reader-side-tools #zoom-in,.reader-side-tools #zoom-out{font-size:23px;padding:3px;line-height:30px}
.reader-side-tools #zoom-label{font-size:14px;font-variant-numeric:tabular-nums}
.reader-side-tools #learn-word{background:#184e65;color:#fff;border-color:#184e65;padding:11px 7px;line-height:1.45}.reader-side-tools #learn-word:hover{background:#24667c}
.reader-side-tools #learn-word span{display:block;white-space:nowrap}
.reader-side-tools #close-reader{width:100%;height:34px;min-height:34px;font-size:23px;padding:0;background:transparent;border-color:transparent}
#image-count{display:block;text-align:center;font-size:13px;line-height:22px;font-variant-numeric:tabular-nums;color:#537884}
#reader-drag{height:24px;flex-shrink:0;display:grid;place-items:center;cursor:grab;touch-action:none;user-select:none;border-radius:8px;color:#628793}
#reader-drag svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.reader-panel.is-moving #reader-drag{cursor:grabbing}#reader-drag:focus-visible{outline:2px solid #6094a4;outline-offset:-2px}
@media(max-width:899px){.reader-panel{--reader-tools-width:68px;--reader-tools-gap:8px}.reader-side-tools{padding:5px;gap:6px;border-radius:16px}.reader-side-tools button{font-size:12px;min-height:36px;padding:8px 1px}.reader-side-tools #learn-word{padding:9px 4px}.reader-tool-group{gap:4px}}
@media(max-width:899px){
 body[data-scene="world"]{--mobile-reading-top:max(23px,env(safe-area-inset-top,0px))}
 body[data-scene="world"][data-reading="true"] .scene-controls,
 body[data-scene="world"] #companion-bubble{top:var(--mobile-reading-top)}
 body[data-scene="world"] .reader-panel{--reader-tools-width:0px;--reader-tools-gap:0px}
 body[data-scene="world"] .reader-side-tools,
 body[data-scene="world"] #reader-resize{display:none}
}
@media(max-width:759px){body[data-scene="world"]{--mobile-reading-top:max(17px,env(safe-area-inset-top,0px))}}
#viewer-frame,#viewer-frame.has-horizontal-scroll{position:absolute;inset:0;display:block;background:transparent;border-radius:inherit}
#viewer{position:absolute;inset:0;background:transparent}
#image-scroll-y{position:absolute;z-index:2;inset:0 0 0 auto;width:16px;background:#dce9e7e8}
#image-scroll-x{position:absolute;z-index:2;inset:auto 0 0;height:16px;background:#dce9e7e8}
#viewer-frame:not(.has-vertical-scroll) #image-scroll-y,#viewer-frame:not(.has-horizontal-scroll) #image-scroll-x{visibility:hidden}
/* Touch reading uses the full image width, with only a thin overlay scroll indicator. */
@media(max-width:899px){
 body[data-scene="world"] .reader-panel,
 body[data-scene="world"] #viewer-frame{background:#e45b4e}
 body[data-scene="world"] #image-scroll-y{width:4px;background:transparent}
 body[data-scene="world"] #image-scroll-x{height:4px;background:transparent}
 body[data-scene="world"] .image-scrollbar{scrollbar-color:#eac56cbf transparent;scrollbar-width:thin}
 body[data-scene="world"] .image-scrollbar::-webkit-scrollbar{width:4px;height:4px;background:transparent}
 body[data-scene="world"] .image-scrollbar::-webkit-scrollbar-thumb{background:#eac56cbf;border:0;border-radius:4px}
 body[data-scene="world"] .image-scrollbar::-webkit-scrollbar-track,
 body[data-scene="world"] .image-scrollbar::-webkit-scrollbar-corner{background:transparent}
 body[data-scene="world"] .image-scrollbar::-webkit-scrollbar-button{display:none;width:0;height:0}
}
.scroll-corner{display:none}#reader-empty{position:absolute;inset:0}
#reader-resize{z-index:5}
#reading-musk:focus{outline:none}#reading-musk:focus-visible{filter:drop-shadow(0 0 4px #e5fa7a)}
@media(min-width:900px){
 .companion-bubble{top:var(--reader-top,max(18px,4svh));height:min(74svh,680px);--date-rolled-height:min(46svh,420px)}
 #reading-musk{left:12px;top:calc(9svh + min(46svh,420px) + 8px);width:40vw;height:calc(100svh - 9svh - min(46svh,420px) - 16px)}
}
/* A fixed dock footprint avoids moving the character when the sheet rolls. */
.companion-bubble{padding:0;background:transparent;border:0;box-shadow:none;backdrop-filter:none;pointer-events:none}
.date-dock-sheet{position:absolute;left:0;right:0;top:0;height:100%;display:flex;flex-direction:column;padding:24px 30px 22px 24px;background:#fffaf0f2;border:1px solid #ffffffb0;border-radius:25px;box-shadow:0 18px 60px #07385b30;backdrop-filter:blur(14px);pointer-events:auto;overflow:hidden;transition:height .28s cubic-bezier(.2,.7,.2,1)}
#date-dock-content{display:flex;flex-direction:column;flex:1;min-height:0}
.date-dock-sheet h2{margin-top:0}
@media(min-width:900px){.date-dock-sheet{padding-top:max(24px,calc(78px - var(--reader-top,4svh)))}}
#date-dock-toggle{display:block;padding:0;border:0;border-radius:5px;background:none;font:inherit;letter-spacing:inherit;white-space:nowrap;color:inherit;text-align:left}
#date-dock-toggle:hover{transform:none;background:none;color:#287184}
.date-roll-edge{position:absolute;left:3px;right:3px;bottom:0;height:12px;border-radius:9px;background:linear-gradient(#fcf7ec 0%,#d0d5cf 40%,#fffdf6 72%,#dedfd3 100%);box-shadow:0 -3px 8px #30494f18;opacity:0;pointer-events:none;transition:opacity .15s}
.companion-bubble.is-rolled .date-dock-sheet{height:var(--date-rolled-height)}
.companion-bubble.is-rolled .date-roll-edge{opacity:1}
.reading-lens-splash{position:fixed;inset:0;z-index:31;pointer-events:none;overflow:hidden;contain:strict}
.reading-lens-drop{position:absolute;left:0;top:0;display:block;border-radius:51% 49% 46% 54% / 66% 61% 39% 34%;background:linear-gradient(120deg,#9ecbdd14,#efffff16 52%,#2b687c28);box-shadow:inset 2px 3px 3px #f2ffff85,inset -3px -4px 5px #004e7860,1px 3px 5px #00314b35;backdrop-filter:blur(2px) saturate(1.2);transform-origin:center;will-change:transform,opacity;pointer-events:none}
.reading-lens-drop::after{content:"";position:absolute;left:17%;top:19%;width:26%;height:5%;border-radius:50%;background:#f1ffffb0;transform:rotate(-38deg);filter:blur(.5px)}
@media(max-width:899px){.date-dock-sheet{padding:12px 16px;border-radius:18px;clip-path:none}.date-roll-edge{display:none}}
/* Match the reading cards while keeping the rolling sheet's fixed footprint. */
#companion-bubble .date-dock-sheet{
 background:linear-gradient(145deg,#ec7963 0%,#df5748 48%,#cf4439 100%);
 border:2px solid #e6c676;
 box-shadow:inset 0 2px 0 #ffe5a775,inset 0 -3px 0 #aa352866,0 5px 0 #936d27,0 16px 36px #062c4852;
}
#companion-bubble h2{margin:0;white-space:normal;letter-spacing:0;font-size:clamp(21px,1.7vw,26px);line-height:1.35}
#companion-bubble #date-dock-toggle{
 width:100%;padding:13px 14px 15px;border:1px solid #efcd73;border-radius:15px;
 background:linear-gradient(140deg,#235c70,#103c50 65%,#0b2f40);color:#f4d57e;
 box-shadow:inset 0 2px 0 #e5f6eb38,0 3px 0 #b48b32,0 7px 12px #71332940;
 text-shadow:0 2px 1px #031d2b;white-space:normal;
}
#companion-bubble #date-dock-toggle span{display:block;font:inherit;font-weight:800}
#companion-bubble #date-dock-toggle:hover{background:linear-gradient(140deg,#2b677b,#17475b 65%,#10384b);color:#ffe8a2}
#companion-bubble #date-dock-content{margin-top:16px}
#companion-bubble #reading-dates{gap:15px;padding:4px 13px 12px 3px;scrollbar-color:#6094a4 #dce9e7;scroll-padding-block:6px}
#companion-bubble #reading-dates::-webkit-scrollbar-thumb{background:#6094a4;border:0;border-radius:8px}
#companion-bubble #reading-dates::-webkit-scrollbar-track{background:#dce9e7;box-shadow:none}
#companion-bubble .reading-date{
 position:relative;padding:15px 16px;border:1px solid #ebcc79;border-radius:15px;
 background:linear-gradient(145deg,#245d72,#113f53 65%,#0b3246);color:#fff5dc;
 box-shadow:inset 0 2px 0 #d8f1ea38,inset 0 -2px 3px #041f375c,0 5px 0 #9e772b,0 8px 12px #642c2f40;
 text-shadow:0 1px 1px #042435;transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
#companion-bubble .reading-date strong{font-size:clamp(17px,1.25vw,20px);font-weight:800}
#companion-bubble .reading-date span{font-size:13px;color:#d4e7e6}
#companion-bubble .reading-date:hover{transform:translateY(-2px);background:linear-gradient(145deg,#2e7185,#19546a 65%,#113f53);box-shadow:inset 0 2px 0 #e9fff34d,0 7px 0 #9e772b,0 11px 15px #642c2f45}
#companion-bubble .reading-date.active{background:linear-gradient(130deg,#ffedaa,#edc565 62%,#dba840);border-color:#ffedab;color:#10394b;text-shadow:0 1px 0 #fff4c77a;box-shadow:inset 0 2px 0 #fff7cf,inset 0 -2px 0 #b7862b50,0 5px 0 #a57024,0 8px 14px #642c2f50}
#companion-bubble .reading-date.active span{color:#345764;font-weight:650}
#companion-bubble .reading-date.active:hover{background:linear-gradient(130deg,#fff4c6,#f5d381 62%,#e7b64d);box-shadow:inset 0 2px 0 #fff7cf,0 7px 0 #a57024,0 11px 15px #642c2f45}
#companion-bubble .reading-date:active{transform:translateY(3px);box-shadow:inset 0 2px 3px #09293633,0 2px 0 #946a22,0 4px 6px #642c2f35}
#companion-bubble :is(.reading-date,#date-dock-toggle):focus-visible{outline:3px solid #fff8d9;outline-offset:3px}
#companion-bubble .date-roll-edge{background:linear-gradient(#f5d58b,#b98432 40%,#ffe7a5 72%,#ce983f);box-shadow:0 -3px 8px #672b2430}
@media(max-width:899px){
 #companion-bubble h2{font-size:18px;line-height:1.3}
 #companion-bubble #date-dock-toggle{padding:8px 10px;border-radius:11px}
 #companion-bubble #date-dock-toggle span{display:inline}
 #companion-bubble #date-dock-content{margin-top:10px}
 #companion-bubble #reading-dates{gap:12px;padding-top:3px;padding-bottom:9px;scrollbar-color:#eac56cbf transparent;scrollbar-width:thin}
 #companion-bubble #reading-dates::-webkit-scrollbar-thumb{background:#eac56cbf}
 #companion-bubble #reading-dates::-webkit-scrollbar-track{background:transparent}
 #companion-bubble .reading-date{padding:10px 12px;border-radius:11px}
 #companion-bubble .reading-date strong{font-size:16px}
 #companion-bubble .reading-date span{font-size:12px}
}
@media(prefers-reduced-motion:reduce){#companion-bubble .reading-date{transition:none}#companion-bubble .reading-date:hover,#companion-bubble .reading-date:active{transform:none}}
@container(max-width:340px){.reader-window-actions{flex-wrap:wrap;justify-content:flex-end}.reader-panel header{padding:9px}.reader-panel header h2{font-size:16px}.reader-panel footer .page-tools{gap:4px}.reader-panel footer button{padding:7px 8px}}

/* Beach classroom: the lesson stays readable while the 3D stage has room to roam. */
body[data-scene="english"] .english-panel{padding:30px 0 55px 2.4vw;align-items:stretch}
body[data-scene="english"] .site-header{justify-content:flex-end}
body[data-scene="english"] .lesson-panel{width:min(36vw,550px);padding:24px;border-radius:26px;background:#fffaf1f5;scrollbar-gutter:stable;box-shadow:0 16px 60px #173f4920}
body[data-scene="english"] .lesson-pagination{margin:15px 0 0;padding:0;border:0;position:sticky;top:-24px;background:#fffaf1;z-index:2;border-radius:13px}
body[data-scene="english"] .lesson-pagination button{width:43px;min-height:44px;font-size:23px;padding:5px}
body[data-scene="english"] .lesson-pagination select{background-color:#e6f0ea;font-size:17px}
body[data-scene="english"] #word-title{font-size:clamp(38px,3.8vw,60px);margin-top:22px}
body[data-scene="english"] #word-meaning{font-size:clamp(21px,1.65vw,27px)}
body[data-scene="english"] .lesson-actions{gap:7px;margin:14px 0 19px}
body[data-scene="english"] #open-card{background:#dcefe6}
body[data-scene="english"] #toggle-quote-translation{background:#dcefe6}
body[data-scene="english"] .translation-actions{margin:18px 0 12px}
.quote-translation-box{border-left:3px solid #35958b;border-radius:0 13px 13px 0;padding:16px 18px;background:#e7f1eb}
.quote-translation-box p{margin:0;font-size:clamp(18px,1.45vw,23px);line-height:1.75;overflow-wrap:anywhere;color:#214c54}
#english-date-toggle{display:flex;align-items:center;gap:9px;border:1px solid #719aa34d;background:#e4f0e9;padding:10px 14px;font-size:clamp(18px,1.5vw,23px);font-weight:800;letter-spacing:-.025em;white-space:nowrap;box-shadow:0 3px 0 #c4d9d2}
#english-date-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .2s}
#english-date-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
#english-date-picker{margin-top:15px;padding:14px;border:1px solid #719aa33b;border-radius:18px;background:#f1f4ee}
#english-date-picker>p{font-size:15px;color:#5b7b86;margin:0 0 12px}
#english-dates{height:clamp(200px,33svh,310px);flex:none}
#english-empty{padding:30px 6px 20px;min-height:250px}
#english-empty h2{font-size:23px;line-height:1.5;margin:6px 0 15px}
#english-empty p{font-size:17px;line-height:1.7;color:#627f88}
#latest-english{margin-top:9px;background:#184e65;color:#fff}
body[data-scene="english"] .lesson-button-3d{color:#fff;background:linear-gradient(#db4438,#b72520);border:1px solid #8f211c;border-radius:14px;box-shadow:0 5px 0 #8c2420,0 8px 15px #a7362826,inset 0 1px 0 #ffb4a4;text-shadow:0 1px 1px #80201c66;font-weight:800;transform:translateY(-2px);margin-bottom:4px;text-decoration:none;transition:transform .15s,box-shadow .15s,background .15s}
body[data-scene="english"] .lesson-button-3d:hover:not(:disabled){background:linear-gradient(#e74a3d,#c52d24);transform:translateY(-3px)}
body[data-scene="english"] .lesson-button-3d:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #8c2420,inset 0 1px 0 #ffb4a4}
body[data-scene="english"] .lesson-button-3d:focus-visible{outline:3px solid #184e65;outline-offset:4px}
body[data-scene="english"] .lesson-button-3d:disabled{opacity:.55;transform:none;box-shadow:0 2px 0 #8c2420;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){body[data-scene="english"] .lesson-button-3d{transition:none}}
body[data-scene="english"] .quote-vocabulary{display:inline;max-width:100%;padding:.12em .3em;margin:0 .06em .15em;font:inherit;font-weight:700;line-height:1.75;border-radius:.34em;vertical-align:baseline;white-space:normal;overflow-wrap:anywhere;box-decoration-break:clone;-webkit-box-decoration-break:clone;box-shadow:0 3px 0 #8c2420,0 4px 8px #a7362826,inset 0 1px 0 #ffb4a4;transform:none}
body[data-scene="english"] .quote-vocabulary:hover:not(:disabled){transform:none}
body[data-scene="english"] .quote-vocabulary:active:not(:disabled){transform:none;box-shadow:0 1px 0 #8c2420,inset 0 2px 3px #80201c55}
body[data-scene="english"] .quote-box p,body[data-scene="english"] .quote-translation-box p{line-height:1.9}
.quote-box small[hidden]+p{margin-top:0}
@media(max-width:400px){#english-date-toggle{font-size:17px;padding:9px 11px;gap:5px}.lesson-top{gap:7px}.lesson-top #word-count{font-size:12px}#english-date-picker{padding:11px}#english-dates{height:250px}.audio-row #replay-demo{font-size:14px;padding:10px 12px}}
body[data-scene="english"] .musk-dialogue{margin-top:20px}
body[data-scene="english"] .demo-caption{left:40%;right:13%;bottom:4.5%;text-shadow:none}
body[data-scene="english"] .demo-caption p{font-size:clamp(17px,1.5vw,22px);margin:8px 0 12px}
.beach-status{display:inline-flex;align-items:center;gap:7px;border-radius:25px;background:#fff9e2d9;padding:8px 14px;backdrop-filter:blur(8px);font-size:13px!important}
.beach-status:before{content:"";height:7px;width:7px;background:#239587;border-radius:50%}
.beach-actions{display:flex;gap:10px;justify-content:center;margin:0 0 12px}.beach-actions button{font-size:16px;min-height:44px;padding:10px 21px;box-shadow:0 4px 12px #294f4810}
.beach-actions select{pointer-events:auto;border:1px solid #14374b22;border-radius:25px;padding:8px 12px;background:#fffaf0;color:#14374b;font-size:15px;max-width:150px}
.stage-side-tools{position:fixed;right:2.5vw;top:40svh;width:120px;display:flex;flex-direction:column;align-items:center;gap:15px;pointer-events:none}
@media(min-width:760px){.stage-side-tools{top:12svh;flex-direction:column-reverse}}
.english-sand-lens{position:fixed;inset:0;z-index:30;pointer-events:none;overflow:hidden;contain:strict}
.english-sand-fleck{position:absolute;left:0;top:0;display:block;border-radius:35% 55% 40% 65%;background:#d0aa6c;box-shadow:1px 1px 1px #6e583d70,4px -3px 0 -1px #ecd39d,-3px 5px 0 -1px #cbb279;pointer-events:none;will-change:transform,opacity}
#card-dock{width:120px;height:154px;pointer-events:none}

body[data-reading="true"] .stage-side-tools{visibility:hidden}
#ocean:focus-visible{outline:3px solid #dafa83;outline-offset:-4px}
@media(max-width:1050px) and (min-width:760px){body[data-scene="english"] .lesson-panel{width:38vw;padding:19px}body[data-scene="english"] .lesson-pagination{top:-19px}.lesson-top .eyebrow{font-size:13px}body[data-scene="english"] #word-title{font-size:38px}.demo-caption>span:last-child{font-size:12px}}
@media(max-width:759px){
 body[data-scene="english"] #ocean{height:58svh}
 body[data-scene="english"] .english-panel{padding:48svh 12px 24px;display:block}
 body[data-scene="english"] .lesson-panel{width:100%;padding:22px;max-height:none;overflow:visible}
 body[data-scene="english"] .lesson-pagination{position:relative;top:0}
 body[data-scene="english"] #word-title{font-size:clamp(38px,10vw,52px)}
 body[data-scene="english"] .demo-caption{top:49svh;bottom:auto;left:3%;right:3%;padding:6px;background:#fff9e2ec;border-radius:16px}
 .stage-side-tools{right:10px;top:13svh;width:76px;gap:8px}#card-dock{width:76px;height:88px}
 body[data-scene="english"] .demo-caption p{display:none}.beach-status{padding:3px 7px;background:transparent;font-size:12px!important}
 .beach-actions{margin:5px 0;gap:8px}.beach-actions button{font-size:14px;min-height:40px;padding:7px 17px}
 .beach-actions select{font-size:12px;max-width:115px;padding:6px}.beach-actions button{padding:7px 12px}
 body[data-scene="english"] .demo-caption>span:last-child{font-size:11px}
}
.catalog-error{position:fixed;z-index:9999;inset:35% 20%;padding:32px;border-radius:24px;background:#fffaf1;color:#153b4b;text-align:center;font:22px system-ui}.catalog-error button{padding:14px 24px;border:0;border-radius:24px;background:#174c60;color:white;font:inherit}

/* English demonstration curtain: the existing lesson UI and real 3D actors stay intact. */
body[data-scene="english"] .lesson-panel{position:relative;z-index:3}
.english-curtain{--curtain-red:#9e303b;--curtain-time:650ms;position:fixed;right:24px;z-index:2;isolation:isolate;overflow:hidden;border-radius:0 26px 26px 0;pointer-events:none;clip-path:inset(0 100% 0 0);transition:clip-path var(--curtain-time) cubic-bezier(.22,.72,.23,1)}
.english-curtain[data-open="true"]{clip-path:inset(0)}
.english-curtain-sheet{position:absolute;inset:0;background:var(--curtain-red);z-index:0}
.english-curtain-roll{position:absolute;z-index:4;top:0;bottom:0;left:0;width:28px;transform:translateX(-100%);background:linear-gradient(90deg,#6b1b2b05,#e5847755 34%,#70202c88 88%);border-radius:50%;opacity:0;pointer-events:none}
.english-curtain[data-open="true"] .english-curtain-roll{animation:english-unroll-right var(--curtain-time) cubic-bezier(.22,.72,.23,1) forwards}
@keyframes english-unroll-right{0%{left:0;opacity:0}8%,88%{opacity:1}100%{left:100%;opacity:0}}
.english-curtain-content{position:absolute;inset:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;padding:54px 24px 24px 32px;z-index:1;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.english-curtain[data-open="true"] .english-curtain-content{opacity:1;visibility:visible;transition-delay:.4s}
.english-curtain-visual{min-height:0;position:relative}
#english-curtain-canvas{display:block;width:100%;height:100%;touch-action:none;pointer-events:auto}
#english-curtain-canvas:focus-visible{outline:2px solid #ffe2a3;outline-offset:-3px;border-radius:10px}
#close-english-curtain{position:absolute;left:28px;top:14px;z-index:3;color:#fff3e9;background:#ffffff0c;border:1px solid #ffffff38;padding:7px 13px;font-size:14px;pointer-events:auto}
#close-english-curtain:hover{background:#ffffff20}
body[data-scene="english"] .english-curtain .demo-caption{position:static;inset:auto;padding:0;background:none;border-radius:0;color:#fff9ef;text-shadow:none;max-height:30svh;overflow:auto;pointer-events:auto;scrollbar-width:thin;scrollbar-color:#e2a09e transparent}
body[data-scene="english"] .english-curtain .demo-caption .beach-status{font-size:14px!important;line-height:1.6;color:#fff0dc;background:#ffffff12;backdrop-filter:none;text-align:left;border-radius:12px;padding:7px 12px}
body[data-scene="english"] .english-curtain .beach-status:before{background:#f0cc94;flex:none}
body[data-scene="english"] .english-curtain .demo-caption p{display:block;font-size:clamp(17px,1.4vw,22px);line-height:1.6;margin:12px 0 0;color:#fff9ef}
body[data-scene="english"] .stage-side-tools{z-index:4}
body[data-reading="true"] .english-curtain{visibility:hidden}
@media(max-width:759px){
 body[data-scene="english"]{overflow-anchor:none}
 body[data-scene="english"][data-english-curtain="open"]{overflow:hidden;height:100dvh}
 body[data-scene="english"][data-english-curtain="open"] .lesson-panel{visibility:hidden}
 .english-curtain{position:fixed;left:12px;right:12px;top:72px;bottom:0;height:calc(100dvh - 72px);width:auto;z-index:14;border-radius:24px 24px 0 0;clip-path:inset(100% 0 0 0);transition:clip-path var(--curtain-time) cubic-bezier(.22,.72,.23,1)}
 .english-curtain[data-open="true"]{clip-path:inset(0);pointer-events:auto}
 .english-curtain-content{inset:0;height:auto;padding:52px 14px 22px;gap:12px}
 .english-curtain-roll{left:0;right:0;top:100%;bottom:auto;width:100%;height:28px;transform:translateY(-50%);background:linear-gradient(180deg,#70202c88,#e5847755 65%,#6b1b2b05)}
 .english-curtain[data-open="true"] .english-curtain-roll{animation-name:english-unroll-up}
 #close-english-curtain{left:16px;top:14px;padding:6px 11px;font-size:13px}
 body[data-scene="english"] .english-curtain .demo-caption{max-height:220px}
 body[data-scene="english"] .english-curtain .demo-caption .beach-status{font-size:13px!important;padding:6px 9px}
 body[data-scene="english"] .english-curtain .demo-caption p{font-size:16px;margin-top:10px;line-height:1.65}
}
@keyframes english-unroll-up{0%{top:100%;opacity:0}8%,88%{opacity:1}100%{top:0;opacity:0}}
@media(prefers-reduced-motion:reduce){.english-curtain{--curtain-time:0ms}.english-curtain-roll{display:none}.english-curtain-content{transition:none!important}}

/* Match the approved demonstration stage: models lead, captions support. */
body[data-english-curtain="open"] .stage-side-tools{display:none}
.english-curtain-content{padding:72px 28px 28px 38px;gap:16px}
.curtain-stage-header{position:absolute;top:22px;left:38px;right:28px;display:flex;align-items:center;gap:18px;color:#fff4e7}
.curtain-stage-header strong{font-size:14px;font-weight:650;letter-spacing:.05em}
.curtain-stage-header span{font-size:12px;color:#f1cbd0}
.english-curtain .curtain-stage-header #close-english-curtain{position:static;margin-left:auto;white-space:nowrap;padding:7px 13px}
body[data-scene="english"] .english-curtain .demo-caption{text-align:left;max-height:32svh}
body[data-scene="english"] .english-curtain .demo-caption .beach-status{background:none;border-radius:0;padding:0;color:#f2cbd0;font-size:13px!important;font-weight:400;line-height:1.55}
body[data-scene="english"] .english-curtain .beach-status:before{display:none}
body[data-scene="english"] .english-curtain .demo-caption p{font-size:clamp(16px,1.2vw,20px);font-weight:550;line-height:1.65;margin:11px 0 22px;color:#fff8ed;min-height:2.8em}
.curtain-controls{display:flex;align-items:center;justify-content:space-between;gap:18px}
.curtain-steps,.curtain-playback{display:flex;gap:18px}
.curtain-controls button{border:0;border-radius:0;background:none;color:#edc0c5;font-size:13px;font-weight:400;padding:3px 0;min-height:24px;white-space:nowrap;box-shadow:none}
.curtain-controls button:hover{transform:none;color:#fff8e6;background:none}
.curtain-steps button:before{content:"";display:inline-block;width:5px;height:5px;background:currentColor;border-radius:50%;margin:0 7px 2px 0}
.curtain-steps button[aria-pressed="true"]{color:#fff7dd}
.curtain-playback button+button{border-left:1px solid #e7b8bd55;padding-left:17px}
.curtain-progress{height:2px;background:#f7cecc30;margin-top:18px;border-radius:2px;overflow:hidden}
.curtain-progress i{display:block;background:#f1d49f;height:100%;width:0;transition:width .1s linear}
@media(max-width:759px){
 .english-curtain-content{padding:66px 16px 24px;gap:14px}
 .curtain-stage-header{left:20px;right:18px;top:19px;gap:10px}
 .curtain-stage-header strong{font-size:13px}.curtain-stage-header span{display:none}
 body[data-scene="english"] .english-curtain .demo-caption{max-height:230px}
 body[data-scene="english"] .english-curtain .demo-caption .beach-status{font-size:12px!important}
 body[data-scene="english"] .english-curtain .demo-caption p{font-size:16px;margin:10px 0 16px;min-height:3.2em;line-height:1.6}
 .curtain-controls{gap:10px;flex-wrap:wrap}.curtain-steps{gap:13px}.curtain-playback{gap:11px;margin-left:auto}
 .curtain-controls button{font-size:12px}.curtain-playback button+button{padding-left:11px}.curtain-steps button:before{margin-right:5px}
}

/* Give the doubled models the stage; keep narration against the lower edge. */
.english-curtain-content{padding-top:66px;padding-bottom:16px;gap:8px}
body[data-scene="english"] .english-curtain .demo-caption p{min-height:0;margin:4px 0 8px;line-height:1.45}
.curtain-progress{margin-top:10px}
@media(max-width:759px){
 .english-curtain-content{padding:60px 12px 16px;gap:8px}
 body[data-scene="english"] .english-curtain .demo-caption p{min-height:0;margin:4px 0 10px;line-height:1.5}
}

/* Desktop lesson header: one date line and prominent word navigation. */
#english-date-toggle{min-width:0;font-size:clamp(15px,1.45vw,22px);padding:10px 12px;gap:8px}
#english-date-toggle strong{font:inherit;font-weight:800}
#english-date-toggle svg{flex:none}
.lesson-pagination button{display:grid;place-items:center}
.lesson-pagination button svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:760px){
 body[data-scene="english"][data-english-curtain="open"] .site-header nav{display:none}
 body[data-scene="english"] .lesson-pagination{margin-top:16px}
}

/* Three learning actions stay on one row, with room for their raised edges. */
body[data-scene="english"] .audio-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.85fr);column-gap:clamp(12px,1.5vw,24px);row-gap:14px;align-items:start;container-type:inline-size;padding-block:2px 6px}
body[data-scene="english"] .audio-row>:is(#say-word,#say-quote,#replay-demo){min-width:0;min-height:46px;padding:10px clamp(5px,2cqi,10px);font-size:clamp(12px,4.4cqi,15px);line-height:1.4;white-space:nowrap;text-align:center}
body[data-scene="english"] .audio-row #stop-speech{grid-column:1/-1;justify-self:start}
body[data-scene="english"] #say-word{color:#fff;background:linear-gradient(#2e7186,#18495f);border-color:#153d4e;box-shadow:0 5px 0 #103746,0 8px 15px #1b50652b,inset 0 1px 0 #8ac6d5;text-shadow:0 1px 1px #092e44}
body[data-scene="english"] #say-word:hover:not(:disabled){background:linear-gradient(#36839a,#20586e)}
body[data-scene="english"] #say-word:active:not(:disabled){box-shadow:0 1px 0 #103746,inset 0 1px 0 #8ac6d5}
body[data-scene="english"] #say-quote{color:#173f52;background:linear-gradient(#ffffff,#e9f1ef);border-color:#b5c9ca;box-shadow:0 5px 0 #b7c7c8,0 8px 15px #294f481f,inset 0 1px 0 #fff;text-shadow:0 1px 0 #fff}
body[data-scene="english"] #say-quote:hover:not(:disabled){background:linear-gradient(#fffef8,#dcebe7)}
body[data-scene="english"] #say-quote:active:not(:disabled){box-shadow:0 1px 0 #b7c7c8,inset 0 1px 0 #fff}

/* Mobile stage fits the visible screen, with breathing room below the narration. */
@media(max-width:759px){
 .english-curtain-content{padding:60px 12px calc(clamp(28px,5dvh,44px) + env(safe-area-inset-bottom,0px));gap:14px}
 body[data-scene="english"] .english-curtain .demo-caption{display:flex;flex-direction:column;min-height:clamp(170px,24dvh,210px);max-height:45dvh;overscroll-behavior:contain}
 body[data-scene="english"] .english-curtain .demo-caption .beach-status{font-size:14px!important;line-height:1.55}
 body[data-scene="english"] .english-curtain .demo-caption p{font-size:18px;line-height:1.55;margin:8px 0 16px;overflow-wrap:anywhere}
 .curtain-controls button{font-size:13px;min-height:30px}
 .curtain-controls{margin-top:auto;flex-shrink:0}
 .curtain-progress{margin-top:12px;flex-shrink:0}
}
