.language-picker{border:0;padding:0;margin:12px 0 0;min-width:0;color:var(--ink,#614b50)}
.language-picker legend{font-size:12px;opacity:.7;margin-bottom:8px;padding:0}
.language-picker>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.language-picker button{font-family:inherit;font-size:12px!important;min-height:35px;justify-content:center!important;padding:5px 3px!important;border:1px solid #b5986966!important;border-radius:4px;background:transparent;color:inherit;cursor:pointer}
.language-picker button[aria-pressed=true]{background:#47776e;color:#fff6dc;border-color:#a88b50!important}
.language-picker button:focus-visible{outline:2px solid #568c81;outline-offset:3px}
:lang(en) .game-shell{font-family:Georgia,'Times New Roman',serif}
:lang(ja) .game-shell{font-family:'Hiragino Mincho ProN','Yu Mincho','Noto Serif CJK JP','Noto Serif SC',serif}
:lang(ko) .game-shell{font-family:'AppleMyungjo','Batang','Noto Serif CJK KR','Noto Serif SC',serif}
:lang(en) .folded-heading h1{font-size:clamp(18px,2.1vw,32px);letter-spacing:.02em}
:lang(en) .paper-goal{font-size:clamp(18px,1.7vw,27px);line-height:1.3;letter-spacing:0}
:lang(en) .paper-primary{font-size:clamp(17px,1.7vw,26px);line-height:1.2;min-height:58px;padding:12px 23px;white-space:normal}
:lang(en) .paper-context h3{font-size:clamp(22px,2vw,31px);letter-spacing:0}
:lang(en) .chapter-kicker{font-size:clamp(12px,1.2vw,20px)}
:lang(en) .chapter-select-tabs button{font-size:12px;line-height:1.35}
:lang(en) .chapter-list strong{font-size:clamp(14px,1.3vw,20px);line-height:1.2}
:lang(en) .chapter-list small{font-size:10px;letter-spacing:0}
:lang(en) .journal-page-heading h2{font-size:clamp(22px,2.1vw,34px);letter-spacing:0}
:lang(en) .journal-notes h3{font-size:clamp(16px,1.5vw,22px);letter-spacing:0}
:lang(en) .journal-notes p{line-height:1.6;letter-spacing:0}
:lang(ko) .paper-goal,:lang(ja) .paper-goal{font-size:clamp(18px,1.65vw,26px);line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
:lang(ko) .paper-primary,:lang(ja) .paper-primary{font-size:clamp(17px,1.65vw,25px);white-space:normal;line-height:1.3}
:lang(ko) .journal-notes p{word-break:keep-all;overflow-wrap:anywhere}
:lang(en) .tool-list>button{font-size:16px;letter-spacing:0}
@media(max-width:900px){:lang(en) .paper-goal{font-size:19px}:lang(en) .paper-primary{font-size:19px;min-height:53px}:lang(en) .paper-context h3{font-size:24px}:lang(en) .chapter-kicker{font-size:13px}:lang(en) .folded-heading h1{font-size:18px}:lang(en) .journal-notes p{font-size:12px;line-height:1.6}:lang(en) .journal-cta{font-size:15px}:lang(ko) .paper-goal,:lang(ja) .paper-goal{font-size:20px}.language-picker{margin-top:8px}.language-picker button{min-height:37px}}
:lang(en) .journal h2,:lang(en) .journal h3{font-family:Georgia,'Times New Roman',serif}
:lang(ja) .journal h2,:lang(ja) .journal h3{font-family:'Hiragino Mincho ProN','Yu Mincho','Noto Serif CJK JP',serif}
:lang(ko) .journal h2,:lang(ko) .journal h3{font-family:'AppleMyungjo','Batang','Noto Serif CJK KR',serif}
:lang(en) .paper-goal.compact-goal,:lang(ja) .paper-goal.compact-goal,:lang(ko) .paper-goal.compact-goal{white-space:normal}
:lang(en) .paper-stats>span{white-space:normal;font-size:18px;line-height:1.3}
:lang(en) .topology-paper .paper-stats>span{font-size:23px;white-space:nowrap}
:lang(en) .paper-tab span{writing-mode:vertical-rl;letter-spacing:.05em}
:lang(ko) .paper-tab span{letter-spacing:0}
@media(max-width:900px){:lang(en) .paper-stats>span{font-size:15px}:lang(en) .topology-paper .paper-stats>span{font-size:17px}}
.language-picker button[aria-pressed=true]{background:#47776e!important;color:#fff6dc!important;border-color:#a88b50!important}
/* Translation length must never push content outside the book's page. */
.journal-right{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#af946d80 transparent;padding-right:8px}
.journal-right>.journal-page-heading,.journal-right>.journal-cta,.journal-right>.journal-source,.journal-right>.journal-text-button{flex-shrink:0}
.journal-principle .journal-notes{flex:1 1 auto;min-height:0;overflow-y:auto;justify-content:flex-start;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#af946d80 transparent}
.journal-principle .journal-note{flex-shrink:0}
:lang(en) .journal-caption p,:lang(ja) .journal-caption p,:lang(ko) .journal-caption p{white-space:normal;letter-spacing:.03em;font-size:clamp(17px,1.7vw,24px)}
:lang(en) .journal-page-heading h2,:lang(ja) .journal-page-heading h2,:lang(ko) .journal-page-heading h2{white-space:normal}
@media(max-width:680px){.journal-right{overflow:visible;padding-right:0}.journal-principle .journal-notes{overflow:visible;flex:initial}.journal-principle .journal-note{flex-shrink:initial}}
:lang(ko) .paper-bottom span{word-break:keep-all}
@media(max-width:680px){.language-picker button{min-height:44px}.tool-view-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px 36px;gap:5px}.tool-view-row button{min-width:0;min-height:40px;padding:6px;font-size:12px;gap:4px;justify-content:center}}
@media(max-width:680px){.journal-backdrop{overflow:hidden}.journal{max-height:calc(100dvh - 40px)}}
@media(max-width:680px){.game-shell .journal-backdrop{overflow:hidden}.game-shell .journal{max-height:calc(100dvh - 40px)}.game-shell .tool-view-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px 36px;gap:5px}.game-shell .tool-view-row button{min-width:0;min-height:40px;padding:6px;font-size:12px;gap:4px;justify-content:center}}
/* Shared long-copy rules cover every Latin locale, rather than English alone. */
html[data-script=latin] :is(.game-shell,.journal,.opening-screen,.settings-dialog){font-family:Georgia,'Times New Roman',serif}html[data-script=latin] :is(.journal h2,.journal h3){font-family:Georgia,'Times New Roman',serif}html[data-script=latin] :is(.folded-heading h1,.journal-page-heading h2,.chapter-list strong){letter-spacing:0;white-space:normal;overflow-wrap:anywhere}html[data-script=latin] .folded-heading h1{font-size:clamp(17px,1.8vw,28px)}html[data-script=latin] .paper-goal{font-size:clamp(18px,1.65vw,26px);line-height:1.45;white-space:normal;letter-spacing:0}html[data-script=latin] .paper-context h3{font-size:clamp(20px,1.8vw,28px);letter-spacing:0}html[data-script=latin] :is(.paper-primary,.journal-cta,.teaching-primary){font-size:clamp(16px,1.45vw,24px);line-height:1.4;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;padding-inline:24px;box-sizing:border-box}html[data-script=latin] .paper-stats>span{white-space:normal;font-size:18px;line-height:1.4}html[data-script=latin] .topology-paper .paper-stats>span{font-size:23px;white-space:nowrap}html[data-script=latin] .journal-page-heading h2{font-size:clamp(21px,2vw,32px)}html[data-script=latin] .journal-notes h3{font-size:clamp(16px,1.5vw,22px);letter-spacing:0}html[data-script=latin] .journal-notes p{line-height:1.65;letter-spacing:0}html[data-script=latin] .journal-imprint p{white-space:normal;letter-spacing:.02em}html[data-script=latin] .journal-caption p{white-space:normal;letter-spacing:.02em;font-size:clamp(16px,1.5vw,23px)}html[data-script=latin] .tool-list>button{font-size:15px;letter-spacing:0;line-height:1.45}html[data-script=latin] .chapter-select-tabs button{font-size:12px;line-height:1.4}html[data-script=latin] .chapter-list small{font-size:10px;letter-spacing:0}html[data-script=latin] .teaching-content h2{font-size:23px;letter-spacing:0}html[data-script=latin] .teaching-content h3{font-size:18px;letter-spacing:0}html[data-script=latin] .teaching-copy p{font-size:15px;line-height:1.8}.paper-primary svg,.teaching-primary svg{flex-shrink:0}.journal-cta>span{min-width:0;overflow-wrap:anywhere}.journal-settings.settings-trigger{border-radius:5px;justify-content:space-between;color:#755b45!important;font-size:15px!important;min-height:44px!important;padding:9px 5px!important}.teaching-settings.settings-trigger{border-radius:22px;min-width:100px;min-height:40px;margin:12px auto 0;display:flex;width:max-content;color:#806343;font-size:12px;padding:7px 14px}.read-aloud{display:flex;align-items:center;gap:6px;background:none;border:0;color:#8b6d43;font:inherit;font-size:11px;min-height:34px;align-self:flex-start;flex:none;margin-top:8px;padding:4px 2px;cursor:pointer}.read-aloud>svg{flex:none}
@media(max-width:900px){html[data-script=latin] .paper-stats>span{font-size:15px}html[data-script=latin] .topology-paper .paper-stats>span{font-size:17px}html[data-script=latin] .paper-primary{font-size:17px}html[data-script=latin] .journal-cta{font-size:16px}html[data-script=latin] .journal-notes p{font-size:12px}html[data-script=latin] .folded-heading h1{font-size:17px}html[data-script=latin] .chapter-kicker{font-size:13px}}
/* Keep journal actions on the page; scroll the menu entries between them. */
@media(min-width:681px){.journal-tools .journal-right,.journal-menu .journal-right{overflow:hidden}.journal-tools .tool-list{flex:1 1 0;min-height:0;overflow-y:auto;justify-content:flex-start;padding-right:5px;margin-top:12px;scrollbar-width:thin;scrollbar-color:#af946d80 transparent}.journal-tools .tool-list>button{flex-shrink:0;min-height:44px}.journal-menu .chapter-list{min-height:0;overflow-y:auto;justify-content:flex-start;scrollbar-width:thin;scrollbar-color:#af946d80 transparent}.journal-menu .chapter-list>button{flex-shrink:0}.journal-tools .journal-page-heading,.journal-menu .journal-page-heading,.journal-menu .chapter-select-tabs,.journal-menu .chapter-pagination,.journal-menu .chapter-progress{flex-shrink:0}}
.save-tools{border-top:1px solid #bfa37a55;margin-top:24px;padding-top:22px}.save-tools h3{margin-bottom:12px}.save-tools-status{font-size:12px;line-height:1.7;color:#7e6a5c;margin:0 0 9px}.save-tools-count{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0;color:#5e6350;font-size:13px;line-height:1.6}.save-tools-count>span{font-size:11px;color:#47776e}.save-tools-date{font-size:11px;line-height:1.6;color:#9a8572;margin:7px 0}.save-tools-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.save-tools-actions>button{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #bfa37a70;border-radius:6px;min-height:42px;padding:8px 5px;background:transparent;font:inherit;font-size:12px;color:#755a41;line-height:1.4;overflow-wrap:break-word}.save-tools-actions svg{flex:none}.save-preview{margin-top:18px;padding-top:15px;border-top:1px solid #bfa37a55}.save-preview>strong{font-size:15px;font-weight:500;line-height:1.5}.save-preview>p{font-size:12px;line-height:1.7;color:#89766a;margin:8px 0}.save-preview>div{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}.save-preview button{display:flex;align-items:center;justify-content:center;gap:7px;background:none;border:1px solid #bfa37a70;border-radius:6px;font:inherit;font-size:12px;min-height:39px;line-height:1.4;padding:8px 12px;color:#755a41}.save-preview button:last-child{color:#f8eddb;background:#47776e;border-color:#47776e}.save-tools-message{font-size:12px;line-height:1.7;color:#7d6a59;margin:13px 0 0}
.settings-trigger{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #c5a66a70;border-radius:50%;background:transparent;color:#d9c395;min-width:46px;min-height:46px;padding:9px;cursor:pointer;font:inherit;flex:none}.settings-trigger:hover{background:#dcc18a12;border-color:#dcc18a}.settings-trigger svg{flex:none}.settings-trigger:focus-visible{outline:2px solid #edd9ae;outline-offset:4px}.settings-trigger:disabled{opacity:.5;cursor:default}
.settings-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:26px;background:#21182cb5;backdrop-filter:blur(14px);font-family:MathSong,'Songti SC',Georgia,serif;color:#513e47;animation:settings-in .18s ease-out}
.settings-dialog{width:min(890px,100%);max-height:calc(100dvh - 52px);display:flex;flex-direction:column;position:relative;overflow:hidden;background:#f4ead9 url('./limestone.webp') center/100% 100% no-repeat;border:2px solid #c3a06b;border-radius:20px;box-shadow:0 30px 100px #170f2460,0 0 0 5px #8d77954a,inset 0 0 0 5px #f8f0df}
.settings-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:29px 34px 22px;border-bottom:1px solid #bfa37a55;flex:none}.settings-eyebrow{display:flex;align-items:center;gap:8px;font-size:12px;color:#8b6c40;letter-spacing:.08em}.settings-heading h2{font-size:31px;font-weight:500;margin:8px 0 6px;line-height:1.3}.settings-heading p{margin:0;font-size:13px;color:#856b61;line-height:1.7}.settings-close{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid #b5976940;border-radius:50%;background:transparent;color:#82623f;cursor:pointer}
.settings-body{display:grid;grid-template-columns:1fr 1.1fr;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bfa37a90 transparent;min-height:0;padding:26px 34px 22px;gap:34px}.settings-body h3{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:500;margin:0 0 13px;line-height:1.5}.settings-help{font-size:12px;line-height:1.7;color:#89766a;margin:10px 0}.settings-languages{border-right:1px solid #bfa37a55;padding-right:30px;min-width:0}.settings-sound{min-width:0}.settings-languages .language-picker{margin-top:17px}.settings-languages .language-picker legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.settings-languages .language-picker>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.settings-languages .language-picker button{min-height:45px!important;font-size:13px!important;padding:8px 5px!important;border-radius:7px;background:#fff9ed36;font-family:Georgia,MathSong,'Songti SC',serif;line-height:1.4;letter-spacing:0;overflow-wrap:anywhere}.settings-languages .language-picker button[aria-pressed=true]{box-shadow:0 2px 6px #30635422}.settings-motion{border-top:1px solid #bfa37a55;padding-top:22px;margin-top:26px}
.settings-control{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.settings-control>div{min-width:0}.settings-control strong{font-size:15px;font-weight:500;line-height:1.5}.settings-control p{font-size:12px;line-height:1.7;color:#89766a;margin:7px 0 0}.settings-toggle{width:46px;height:26px;min-width:46px;min-height:26px;padding:3px;border:1px solid #a68e75;border-radius:20px;background:#cfc2b0;position:relative;cursor:pointer;flex:none}.settings-toggle>span{display:block;width:18px;height:18px;border-radius:50%;background:#fff5df;box-shadow:0 1px 3px #452e3a25;transform:translateX(0);transition:transform .2s}.settings-toggle[aria-checked=true]{background:#47776e;border-color:#47776e}.settings-toggle[aria-checked=true]>span{transform:translateX(19px)}.settings-toggle>svg{display:none;position:absolute;left:7px;top:6px;color:#f6e9c8}.settings-toggle[aria-checked=true]>svg{display:block}
.settings-volume{display:block;margin:15px 0 10px}.settings-volume>span{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#856e60;margin-bottom:10px}.settings-volume output{font-family:Georgia,serif;color:#7b6a55;font-variant-numeric:tabular-nums}.settings-volume input{width:100%;accent-color:#497a6e;cursor:pointer;margin:0;min-height:20px}.settings-track{display:flex;gap:8px;font-size:12px;line-height:1.7;color:#856e60;margin:0 0 14px}.settings-track svg{flex:none;color:#b08b4e;margin-top:2px}.settings-track small{display:block;color:#a28b70;font-size:10px}.settings-divider{height:1px;background:#bfa37a55;margin:22px 0}.settings-audio-error{font-size:12px;line-height:1.7;color:#8e5144}.settings-audio-error button{border:0;background:none;font:inherit;text-decoration:underline;color:inherit}
.settings-footer{padding:16px 34px 22px;border-top:1px solid #bfa37a55;display:flex;justify-content:flex-end;flex:none}.settings-footer>button{min-height:48px;display:flex;align-items:center;justify-content:center;gap:14px;min-width:158px;border:0;background:transparent url('./limestone.webp') center/100% 100% no-repeat;color:#f5e4bb;font:inherit;font-size:16px;padding:12px 27px;cursor:pointer;line-height:1.5}.settings-dialog :is(button,input):focus-visible{outline:2px solid #4b7c70;outline-offset:3px}
@keyframes settings-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:680px){.settings-backdrop{padding:16px}.settings-dialog{max-height:calc(100dvh - 32px);border-radius:14px}.settings-heading{padding:22px 23px 18px}.settings-heading h2{font-size:26px}.settings-body{display:flex;flex-direction:column;padding:22px 23px;gap:24px}.settings-languages{border-right:0;border-bottom:1px solid #bfa37a55;padding-right:0;padding-bottom:23px}.settings-languages .language-picker>div{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-languages .language-picker button{font-size:12px!important}.settings-motion{margin-top:22px;padding-top:18px}.settings-footer{padding:14px 23px 18px}.settings-footer>button{width:100%}.settings-sound{padding-bottom:2px}}@media(prefers-reduced-motion:reduce){.settings-backdrop{animation:none}.settings-toggle>span{transition:none}}
/* Real generated book, illustration and button assets; all lesson text stays semantic. */
.journal-backdrop{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:24px;background:#24193170;backdrop-filter:blur(10px);animation:journal-reveal .3s ease-out;color:#422d43}
.journal{--paper-ink:#422d43;--paper-secondary:#69504e;--paper-gold:#ae8146;position:relative;width:min(1240px,calc(100vw - 64px),calc((100dvh - 48px)*1.5));aspect-ratio:3/2;flex:none;color:var(--paper-ink);font-family:MathSong,'Songti SC',serif}
.journal-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.journal-pages{position:absolute;inset:10.5% 7% 15%;display:grid;grid-template-columns:1fr 1fr;gap:0}
.journal-left{display:flex;flex-direction:column;align-items:center;min-width:0;padding:1% 8% 0 1%;text-align:center}
.journal-imprint{display:flex;flex-direction:column;align-items:center;gap:15px;color:#9d733f}
.journal-imprint p{position:relative;color:#644748;font-size:18px;letter-spacing:3px;margin:0;line-height:1.5;white-space:nowrap}
.journal-figure{margin:15px -10% 5px;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;width:120%}
.journal-figure img{display:block;max-height:100%;width:100%;height:100%;object-fit:contain;user-select:none}
.journal-caption{width:100%;display:flex;flex-direction:column;align-items:center;gap:11px;color:var(--paper-gold);padding:6px 0 0}
.journal-caption p{border-top:1px solid #b98a4b66;padding-top:15px;font-size:25px;letter-spacing:2px;color:#5d3f4e;margin:0;line-height:1.6;white-space:nowrap}
.journal-right{display:flex;flex-direction:column;min-width:0;padding:8% 1% 0 10%}
.journal-page-heading h2{font-size:30px;font-weight:600;line-height:1.5;letter-spacing:1px;white-space:nowrap;margin:0;color:var(--paper-ink)}
.journal-heading-rule{display:flex;align-items:center;gap:12px;color:#b38c51;margin:20px 0 0}.journal-heading-rule::before,.journal-heading-rule::after{content:'';height:1px;flex:1;background:#b98a4b88}
.journal-notes{list-style:none;padding:0;margin:15px 0 20px;flex:1;display:flex;flex-direction:column;justify-content:space-evenly}
.journal-note{display:grid;grid-template-columns:37px 1fr;gap:9px;border-bottom:1px solid #ba976642;padding:17px 0 21px}.journal-note:last-child{border-bottom:0;padding-bottom:13px}
.note-number{font-size:31px;font-style:italic;line-height:1.35;color:var(--paper-gold);font-family:Georgia,'Times New Roman',serif}
.journal-note h3{font-size:23px;font-weight:600;letter-spacing:1px;line-height:1.4;margin:0 0 5px}.journal-note p{font-size:16px;line-height:1.9;letter-spacing:.2px;margin:0;color:#614850}
.journal-cta{width:100%;min-height:72px;flex:none;border:0;position:relative;color:#f8e4af;background:transparent url('./limestone.webp') center/100% 100% no-repeat!important;display:flex;align-items:center;justify-content:center;gap:19px;padding:16px 25px;font-size:22px;letter-spacing:1px;line-height:1.4;transition:filter .2s,transform .2s}
.journal-cta:hover{filter:brightness(1.08);transform:translateY(-1px)}.journal-cta:active{filter:brightness(.98);transform:translateY(1px)}.journal-cta svg{color:#e6bb69;flex:none}
.journal button:focus-visible{outline:2px solid #9b713c;outline-offset:3px}.journal-close{position:absolute;z-index:2;top:9%;right:7%;display:flex;align-items:center;justify-content:center;padding:6px;width:43px;height:43px;border:0;background:none;border-radius:50%;color:#86653d}.journal-close:hover{background:#b58a4b12!important}
.journal-page-number{font-size:11px;color:#9b7e6a;letter-spacing:2px;text-align:right;margin:14px 2px 0}.journal-lead{font-size:20px;line-height:1.9;letter-spacing:1px;margin:25px 0 20px;color:#755752}
.journal-chapter{display:flex;align-items:center;gap:22px;text-align:left;border:0;border-block:1px solid #b58a4b55;background:transparent;width:100%;padding:25px 4px;color:var(--paper-ink)}.journal-chapter:hover{background:#ac7d3c0a!important}.chapter-number{font-size:40px;font-family:Georgia,serif;color:#ac7d3c}.journal-chapter>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:7px}.journal-chapter strong{font-size:24px;font-weight:500;letter-spacing:1px}.journal-chapter small{font-size:15px;color:#82645e}.journal-chapter>svg{color:#a27d45}.journal-unwritten{display:flex;align-items:center;gap:9px;font-size:14px;color:#8a7069;margin:23px 0 auto;padding-bottom:28px;line-height:1.5}
.journal-text-button{align-self:center;display:flex;align-items:center;gap:8px;border:0;background:transparent;border-radius:5px;padding:5px 7px;font-size:14px;color:#826440;margin:7px 0 0;line-height:1.5}.journal-text-button:hover{background:#ac7d3c0a!important}
.journal-success-tag{display:flex;align-items:center;gap:8px;font-size:13px;color:#8c7345;letter-spacing:2px;margin:15px 0 0}.recap-notes{margin-top:5px;margin-bottom:7px}.recap-notes .journal-note{padding-block:12px}.recap-notes .journal-note h3{font-size:21px}.recap-notes .journal-note p{font-size:15px}.hint-notes{margin-top:0;margin-bottom:5px}.journal-hint .journal-lead{font-size:18px;margin:18px 0 8px}.journal-hint .journal-note h3{font-size:22px}.journal-success .journal-page-heading h2{font-size:27px}.journal-error .journal-lead{flex:1}
@keyframes journal-reveal{from{opacity:0}to{opacity:1}}
@media(max-width:1100px),(max-height:760px){.journal-pages{inset:10.5% 7% 15%}.journal-imprint{gap:8px}.journal-imprint p{font-size:14px;letter-spacing:1.5px}.journal-figure{margin-top:8px}.journal-caption p{font-size:20px;padding-top:10px}.journal-caption{gap:5px}.journal-right{padding-top:7%}.journal-page-heading h2{font-size:24px;letter-spacing:.5px}.journal-heading-rule{margin-top:12px}.journal-note{grid-template-columns:30px 1fr;gap:5px;padding:10px 0 12px}.note-number{font-size:26px}.journal-note h3{font-size:19px;margin-bottom:3px}.journal-note p{font-size:14px;line-height:1.8}.journal-notes{margin:9px 0 8px}.journal-cta{min-height:57px;padding:12px 17px;gap:12px;font-size:18px}.journal-cta svg{width:22px}.journal-page-number{font-size:9px;margin-top:8px}.journal-close{width:36px;height:36px;top:8%;right:6.5%}.journal-close svg{width:24px}.journal-lead{font-size:16px;line-height:1.8;margin:16px 0 15px}.journal-chapter{gap:14px;padding:16px 3px}.chapter-number{font-size:32px}.journal-chapter strong{font-size:20px}.journal-chapter small{font-size:13px}.journal-unwritten{font-size:12px;margin-top:15px;padding-bottom:15px}.journal-text-button{font-size:12px;margin-top:4px}.journal-hint .journal-lead{font-size:15px;margin:12px 0 5px}.journal-hint .journal-note h3{font-size:18px}.journal-success .journal-page-heading h2{font-size:22px}.journal-success-tag{font-size:11px;margin-top:8px}.recap-notes .journal-note h3{font-size:18px}.recap-notes .journal-note p{font-size:13px}.recap-notes .journal-note{padding-block:7px}}
@media(max-width:680px){.journal-backdrop{padding:16px;overflow:auto;align-items:center}.journal{width:min(480px,calc(100vw - 24px));aspect-ratio:auto;max-height:calc(100dvh - 28px);overflow:auto;border-radius:14px;background:#f5ead9 url('./limestone.webp') center/100% 100% no-repeat;box-shadow:0 18px 65px #160f2f55;border:5px solid #9a86a4}.journal-frame{display:none}.journal-pages{position:relative;display:flex;flex-direction:column;inset:auto;padding:25px 24px 20px;gap:18px}.journal-left{padding:0;gap:0}.journal-imprint{gap:7px}.journal-imprint>svg{width:18px;height:18px}.journal-imprint p{font-size:13px;letter-spacing:2px}.journal-figure{width:80%;height:175px;flex:none;margin:4px 0 0}.journal-caption{display:none}.journal-right{padding:0}.journal-page-heading h2{font-size:23px;white-space:normal;text-align:center;letter-spacing:0}.journal-heading-rule{margin-top:13px}.journal-notes{margin:7px 0 8px}.journal-note{grid-template-columns:27px 1fr;padding:12px 0 13px;gap:7px}.note-number{font-size:25px}.journal-note h3{font-size:19px}.journal-note p{font-size:14px}.journal-cta{min-height:56px;font-size:17px;gap:10px;padding:12px 16px}.journal-close{position:sticky;top:10px;right:auto;left:calc(100% - 43px);margin-bottom:-36px;width:33px;height:33px;z-index:3;background:#f7eddbe0}.journal-page-number{margin-top:10px;font-size:10px}.journal-lead{text-align:center;font-size:16px;margin:17px 0}.journal-chapter{padding:18px 1px;gap:14px}.journal-chapter strong{font-size:20px}.journal-chapter small{font-size:13px}.journal-unwritten{font-size:12px;margin:17px 0 20px;padding:0}.journal-text-button{font-size:13px;margin-top:9px}.journal-menu .journal-figure{height:160px}.journal-hint .journal-figure{height:140px}.journal-success .journal-figure{height:140px}.journal-success .journal-page-heading h2{font-size:22px}.journal-success-tag{justify-content:center;margin-top:10px}.recap-notes .journal-note p{font-size:14px}.journal-hint .journal-lead{font-size:15px;line-height:1.8;margin:14px 0 7px}.journal-error .journal-lead{margin-bottom:27px}}
@media(prefers-reduced-motion:reduce){.journal-backdrop{animation:none}}
/* Keep intrinsic raster dimensions from expanding the two facing page tracks. */
.journal-pages{grid-template-rows:minmax(0,1fr);min-height:0}
.journal-left,.journal-right{min-height:0}
.journal-figure{overflow:hidden}
/* Match the selected journal's larger book-to-viewport and editorial type scale. */
@media(min-width:1101px) and (min-height:761px){
.journal{width:min(1400px,88vw,calc((100dvh - 48px)*1.5))}
.journal-pages{bottom:19%}
.journal-page-heading h2{font-size:34px}
.journal-imprint p{font-size:20px}
.journal-note h3{font-size:26px}
.journal-note p{font-size:19px;line-height:1.8}
.note-number{font-size:36px}
.journal-note{grid-template-columns:40px 1fr}
.journal-caption p{font-size:28px}
.journal-cta{font-size:24px;min-height:75px}
.journal-success .journal-page-heading h2{font-size:30px}
.recap-notes .journal-note h3{font-size:23px}
.recap-notes .journal-note p{font-size:17px}
}
@media(min-width:681px){.journal-close{right:9%}}

.journal h2,.journal h3{font-family:JournalInk,MathSong,'Songti SC',serif}
@media(max-width:680px){.journal-backdrop{overflow-x:hidden;overflow-y:auto}.journal{width:min(480px,calc(100vw - 40px))}}

.chapter-turn-nav {
 display:grid;
 grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
 align-items:center;
 gap:8px;
 margin:6px 0 0;
 border-top:1px solid #b8996a55;
 flex:none;
 color:#806343;
 font-size:13px;
}
.chapter-turn-nav button {
 display:flex;
 align-items:center;
 justify-self:start;
 align-self:stretch;
 gap:5px;
 min-width:0;
 min-height:44px;
 padding:4px;
 border:0;
 background:transparent;
 color:#715438;
 font:inherit;
 text-align:start;
 overflow-wrap:anywhere;
}
.chapter-turn-nav button:last-child {justify-self:end;text-align:end}
.chapter-turn-nav button svg {flex:none}
.chapter-turn-nav button[aria-disabled=true] {opacity:.45;cursor:default}
.chapter-turn-nav button:not([aria-disabled=true]):hover {color:#347267}
.chapter-turn-nav button:focus-visible {outline:2px solid #347267;outline-offset:-2px}
/* Each chapter is printed on a two-sided leaf hinged at the spine. */
.chapter-leaf {
 position:absolute;
 z-index:2;
 inset:4% 4% 10% 50%;
 pointer-events:none;
 transform-origin:left center;
 transform-style:preserve-3d;
 animation:chapter-leaf-turn 560ms cubic-bezier(.45,.05,.3,1) both;
}
.chapter-leaf[data-direction="-1"] {animation-direction:reverse}
.chapter-leaf-face {
 position:absolute;
 inset:0;
 display:flex;
 flex-direction:column;
 overflow:hidden;
 border-radius:3px 10px 10px 3px;
 background:#f3e6d2 url('./limestone.webp') center/100% 100% no-repeat;
 box-shadow:6px 6px 18px #422d4340;
 backface-visibility:hidden;
}
.chapter-leaf-content {
 position:absolute;
 inset:7.55% 6.52% 5.81% 0;
 display:flex;
 flex-direction:column;
 overflow:hidden;
 padding:8% 1% 0 10%;
}
.chapter-leaf-back {transform:rotateY(180deg)}
@keyframes chapter-leaf-turn {
 0% {transform:perspective(2300px) rotateY(0);opacity:1}
 42% {transform:perspective(2300px) rotateY(-76deg) skewY(-4deg)}
 82% {opacity:1}
 100% {transform:perspective(2300px) rotateY(-178deg);opacity:0}
}
@media(max-width:1100px),(max-height:760px) {
 .chapter-leaf-content {padding-top:7%}
}
@media(max-width:680px) {
 .chapter-leaf {inset:0 0 0 50%;animation-duration:1ms;visibility:hidden}
}
@media(prefers-reduced-motion:reduce) {
 .chapter-leaf {animation-duration:1ms}
}

.journal :is(.chapter-turn-nav,.chapter-pagination) button[aria-disabled=true],
.journal button:disabled {cursor:default}
@media(hover:hover) {
 .journal-menu .journal-chapter:hover {
  background-color:#b98a4b16;
  color:#28695f;
 }
 .journal-menu .chapter-pagination button:hover:not(:disabled),
 .journal-menu .chapter-turn-nav button:hover:not([aria-disabled=true]),
 .journal-menu .journal-text-button:hover,
 .journal-menu .journal-close:hover {
  background-color:#b98a4b19;
  color:#28695f;
  border-radius:5px;
 }
}
.journal-menu :is(.journal-chapter,.chapter-turn-nav button:not([aria-disabled=true]),.chapter-pagination button:not(:disabled)):active {
 background-color:#b98a4b29;
}
.journal-menu .journal-right[aria-busy=true] :is(.journal-chapter,.chapter-pagination button) {cursor:default}

.journal-menu .chapter-list .journal-chapter {padding-block:clamp(6px,1vh,12px)}

/* A hint is a short note. Reserve room for both actions on the same spread. */
.journal.journal-hint .journal-right {
 padding-top:3%;
}
.journal.journal-hint .journal-page-heading h2 {
 font-size:clamp(18px,2.15vh,26px);
 line-height:1.35;
 letter-spacing:.025em;
 white-space:normal;
}
.journal.journal-hint .journal-heading-rule {margin-top:8px}
.journal.journal-hint .journal-lead,
.journal.journal-hint .journal-note p {
 font-size:clamp(13px,1.55vh,16px);
 line-height:1.55;
 letter-spacing:0;
 overflow-wrap:anywhere;
}
.journal.journal-hint .journal-lead {margin:12px 0 4px}
.journal.journal-hint .hint-notes {
 flex:none;
 margin:0 0 8px;
}
.journal.journal-hint .hint-notes .journal-note {
 grid-template-columns:26px minmax(0,1fr);
 gap:7px;
 padding:8px 0;
}
.journal.journal-hint .note-number {font-size:20px}
.journal.journal-hint .journal-note h3 {
 font-size:clamp(15px,1.8vh,18px);
 line-height:1.35;
 margin:0 0 3px;
}
.journal.journal-hint .journal-cta {
 min-height:44px;
 padding:7px 14px;
 font-size:clamp(14px,1.75vh,18px);
}
.journal.journal-hint .journal-text-button {margin-top:3px}
@media(max-width:680px) {
 .journal.journal-hint .journal-left {display:none}
 .journal.journal-hint .journal-pages {padding-top:37px}
 .journal.journal-hint .journal-right {padding-top:0}
 .journal.journal-hint .journal-lead {text-align:start}
}
.folded-shell{--paper-width:clamp(320px,27vw,460px);--paper-space:calc(var(--paper-width) + 16px)}.folded-shell.paper-closed{--paper-space:35px}.folded-shell .world,.folded-shell .world-hud{right:var(--paper-space)}
.folded-heading{position:absolute;top:28px;left:34px;display:flex;align-items:center;gap:27px;z-index:5;color:#f0ddbc}.quiet-menu{display:flex;align-items:center;justify-content:center;width:58px;height:45px;border:1px solid #ccb183;border-radius:18px;background:transparent}.folded-heading-divider{height:30px;width:1px;background:#bea480}.folded-heading h1{font-size:25px;font-weight:400;letter-spacing:2px;line-height:1.5}.folded-paper{position:absolute;z-index:6;right:8px;top:8px;bottom:8px;width:var(--paper-width);transform:translateX(calc(100% - 18px));transition:transform .35s ease;filter:drop-shadow(-7px 5px 12px #20112f35)}.folded-paper.is-open{transform:translateX(0)}.paper-art{position:absolute;width:100%;height:100%;inset:0;pointer-events:none;user-select:none}.paper-content{position:absolute;inset:8% 8% 8% 18%;display:flex;flex-direction:column;color:#59364b;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b29a7680 transparent}.paper-heading{font-size:20px;letter-spacing:3px;padding-bottom:10px;border-bottom:1px solid #b5926170;line-height:1.6}.paper-goal{font-size:23px;line-height:1.65;letter-spacing:1px;font-weight:600;margin:18px 0 18px}.paper-goal.compact-goal{font-size:clamp(21px,1.9vw,32px);line-height:1.65;white-space:nowrap;letter-spacing:0}.paper-stats{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#69424d;min-height:38px;margin:9px 4px 0}.paper-stats>span{display:flex;align-items:center;gap:10px;font-size:21px;white-space:nowrap}.paper-stats b{font-weight:400}.paper-stats svg{color:#ad8042;flex-shrink:0}.paper-stats i{height:31px;width:1px;background:#b68c5c85}.paper-context{margin-top:clamp(22px,5.7vh,60px);padding-top:clamp(20px,3.7vh,40px);border-top:1px solid #b5926170}.paper-context h3{font-size:26px;line-height:1.5;letter-spacing:1px;font-weight:600;margin:0 0 12px;padding-left:12px;border-left:4px solid #c6a05e}.context-copy{font-size:18px;line-height:1.65;color:#8f6e62;margin:0 0 23px 10px}.paper-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;border:0;background:url('./limestone.webp') center/100% 100% no-repeat!important;color:#f9eac7;font-size:24px;line-height:1.5;padding:13px 20px;filter:drop-shadow(0 3px 2px #78502d24)}.paper-primary:hover:not(:disabled){filter:brightness(1.12) drop-shadow(0 3px 3px #78502d30)}.paper-primary:focus-visible{outline-color:#36726b;outline-offset:4px}.paper-text{display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;color:#876c5b;border:0;background:none;width:100%;margin-top:12px;padding:7px}.paper-feedback{font-size:12px;line-height:1.8;color:#8f6e62;margin:12px 4px 0;overflow-wrap:anywhere}.paper-feedback.is-tested{color:#866030}.paper-bottom{margin-top:auto;padding-top:26px}.paper-bottom>p{display:flex;gap:14px;align-items:center;border-top:1px solid #b5926170;padding-top:25px;margin:0 0 25px;font-size:18px;line-height:1.6;color:#947661}.paper-bottom>p svg{color:#b68c58;flex-shrink:0}.paper-book{display:flex;align-items:center;justify-content:center;gap:13px;background:transparent;border:1px solid #b59059;border-radius:28px;box-shadow:inset 0 0 0 3px #fff6dd80,0 2px 3px #88623e22;min-height:53px;padding:7px 25px;color:#704d4a;font-size:22px;margin:0 auto;width:87%}.paper-book:hover{background-color:#e0c79936!important}.paper-book:focus-visible,.paper-tab:focus-visible{outline-color:#34776e}.paper-tab{position:absolute;left:-14px;top:45%;width:34px;height:70px;border:1px solid #b99c6b;border-right:0;border-radius:17px 0 0 17px;background:#58405e;color:#f7deb2;display:flex;align-items:center;justify-content:center;padding:3px}.paper-tab span{display:none}.folded-paper:not(.is-open) .paper-tab{left:-25px}.compass-dock{position:absolute;bottom:35px;left:39px;display:flex;align-items:center;z-index:5;color:#e8cc97}.compass-face{width:104px;height:104px;position:relative;display:flex;align-items:center;justify-content:center;margin:0 -10px;pointer-events:none}.compass-face img{position:absolute;width:100%;height:100%;inset:0}.compass-face span{font:38px Georgia,serif;margin-top:-2px;color:#f1dcaa}.compass-arrow,.compass-undo{background:none;border:1px solid #c7a66b9c;border-radius:18px;min-width:56px;height:44px;padding:7px 13px;display:flex;align-items:center;justify-content:center;position:relative}.compass-arrow kbd,.compass-undo kbd{position:absolute;top:46px;left:0;right:0;font:13px Georgia,serif;opacity:.75;text-align:center}.compass-divider{height:36px;width:1px;margin:0 25px;background:#b0946670}.compass-undo{min-width:56px}.paper-routes{display:flex;flex-direction:column;margin-top:10px;border-top:1px solid #b5926130}.paper-routes button{border:0;border-bottom:1px solid #b5926130;background:none;display:flex;align-items:center;justify-content:space-between;padding:9px 5px;font-size:14px;color:#76534f}.paper-gate{display:flex;align-items:center;justify-content:space-between;border:1px solid #ac8d6470;border-radius:12px;padding:3px 8px;margin:0 0 17px;font-size:20px}.paper-gate button{border:0;background:none;color:#775848;display:flex;align-items:center;justify-content:center;width:38px;height:36px}.paper-route{font-size:14px;line-height:1.8;color:#6e534c;overflow-wrap:anywhere}.paper-segment{display:flex;border:1px solid #b39b7a;border-radius:9px;margin-bottom:15px;padding:2px}.paper-segment button{width:50%;border:0;background:none;font-size:13px;padding:7px;color:#866e61;border-radius:6px}.paper-segment button[aria-pressed=true]{background:#91744b1c;color:#3b746c}
.folded-shell .world-hud button{pointer-events:none}.folded-shell .node-marker{opacity:0!important;background:transparent!important;border:0!important}.folded-shell .node-marker:focus-visible,.folded-shell.show-structure .node-marker:not(.portal-overlapped),.folded-shell .node-marker.math-node{opacity:1!important;background:#3523498a!important;border:1px solid #d0b38d55!important;width:30px;height:30px;font-size:14px;pointer-events:auto}.folded-shell .node-marker:focus-visible{pointer-events:auto}.folded-shell .node-marker.source-side{color:#ffe29b;border-color:#d2ad69!important}.folded-shell .edge-marker{pointer-events:none;background:none!important;border:0!important;min-width:24px;min-height:22px;padding:2px;border-radius:4px;font-size:12px;text-shadow:0 1px 4px #241933}.folded-shell .edge-marker.math-edge{pointer-events:auto}.folded-shell .edge-marker.selected{color:#ffdb8d;background:#352349b8!important;outline:1px solid #c7a66b70}.folded-shell .edge-marker.knob-hit{opacity:0}.folded-shell .edge-marker.knob-hit:focus-visible{opacity:1;pointer-events:auto}.folded-shell .edge-marker small{font-size:9px}.folded-shell .world-hud .capacity-marker{height:34px}.folded-shell .portal-marker,.folded-shell .station-marker{opacity:0;pointer-events:none!important}.folded-shell .portal-marker:focus-visible,.folded-shell .station-marker:focus-visible{opacity:1;pointer-events:auto!important}.folded-shell .portal-overlapped{display:none}.journal-tools .tool-list{display:flex;flex-direction:column;gap:4px;flex:1;justify-content:center}.tool-list>button{display:flex;align-items:center;justify-content:space-between;background:none;border:0;border-bottom:1px solid #b99a6a40;color:#78574e;font-size:18px;padding:13px 2px}.tool-view-row{display:flex;gap:8px;padding:13px 0;flex-wrap:wrap}.tool-view-row button{border:1px solid #b99a6a70;background:none;border-radius:8px;color:#78574e;min-height:36px;padding:7px 10px;display:flex;align-items:center;gap:6px;font-size:13px}.journal-tools .journal-cta{margin-top:16px}
@media(max-width:1200px),(max-height:760px){.folded-heading{top:22px;left:27px;gap:21px}.folded-heading h1{font-size:23px}.quiet-menu{width:51px;height:40px}.paper-content{inset:8% 8% 7% 18%}.paper-heading{font-size:17px;letter-spacing:2px;padding-bottom:8px}.paper-goal{font-size:19px;margin:16px 0 14px}.paper-goal.compact-goal{font-size:23px}.paper-stats{gap:10px;margin-top:5px}.paper-stats>span{font-size:18px;gap:7px}.paper-stats svg{width:23px}.paper-context{margin-top:33px;padding-top:23px}.paper-context h3{font-size:23px;margin-bottom:10px}.context-copy{font-size:16px;margin-bottom:20px}.paper-primary{font-size:21px;min-height:57px}.paper-bottom{padding-top:16px}.paper-bottom>p{padding-top:19px;font-size:15px;gap:10px;margin-bottom:21px}.paper-book{font-size:20px;min-height:49px;padding-inline:15px}.paper-feedback{font-size:11px;margin-top:8px}.compass-dock{left:32px;bottom:24px}.compass-face{width:91px;height:91px}.compass-face span{font-size:33px}.compass-arrow,.compass-undo{min-width:50px;height:40px}.compass-divider{margin:0 20px;height:30px}.paper-text{font-size:11px;margin-top:7px}}
@media(max-width:900px){.folded-shell{--paper-width:320px;--paper-space:0px}.folded-shell.paper-closed{--paper-space:0px}.folded-heading{left:18px;top:18px;gap:15px;max-width:calc(100% - 60px)}.folded-heading h1{font-size:19px;letter-spacing:1px;display:block}.folded-heading-divider{height:25px}.quiet-menu{width:45px;min-width:45px;height:39px;border-radius:14px}.folded-paper{top:76px;bottom:12px;max-height:680px}.folded-paper:not(.is-open){transform:translateX(calc(100% + 3px))}.folded-paper:not(.is-open) .paper-tab{left:-39px;top:14px;height:83px;flex-direction:column;gap:5px}.paper-tab span{display:block;writing-mode:vertical-rl;font-size:12px;letter-spacing:2px}.folded-paper.is-open .paper-tab span{display:none}.compass-dock{left:19px;bottom:22px}.compass-face{width:82px;height:82px}.compass-face span{font-size:30px}.compass-arrow,.compass-undo{min-width:44px;height:39px;padding:6px 10px}.compass-divider{margin:0 16px}.paper-content{inset:8% 8% 7% 18%}.paper-goal.compact-goal{font-size:22px}.paper-context{margin-top:25px;padding-top:21px}.paper-stats>span{font-size:17px}}
@media(max-height:620px){.paper-heading{font-size:15px}.paper-goal{margin:10px 0;font-size:17px}.paper-goal.compact-goal{font-size:20px}.paper-context{margin-top:16px;padding-top:15px}.paper-context h3{font-size:20px;margin-bottom:5px}.context-copy{font-size:14px;margin-bottom:12px}.paper-primary{min-height:48px;font-size:18px}.paper-bottom>p{padding-top:13px;margin-bottom:12px;font-size:13px}.paper-book{min-height:40px;font-size:17px}.paper-stats{min-height:27px}.paper-feedback{max-height:42px;overflow:auto}.paper-text{padding:4px}.compass-dock{bottom:13px}.paper-content{inset:7% 8% 7% 18%}}

.folded-shell .world-hud .portal-marker,.folded-shell .world-hud .station-marker{opacity:0!important}.folded-shell .world-hud .portal-marker:focus-visible,.folded-shell .world-hud .station-marker:focus-visible{opacity:1!important}.folded-shell .paper-primary{border-radius:29px}
@media(min-width:1201px) and (min-height:761px){.folded-heading{left:37px;gap:30px}.folded-heading h1{font-size:30px}.quiet-menu{width:66px;height:51px}.folded-heading-divider{height:33px}.paper-content{left:20%;bottom:10%}.paper-heading{font-size:24px;padding-bottom:10px}.paper-goal{margin-top:22px;margin-bottom:22px}.paper-stats{margin-top:14px;min-height:44px}.paper-stats>span{font-size:26px;gap:13px}.paper-stats svg{width:32px;height:32px}.paper-context{margin-top:56px;padding-top:36px}.paper-context h3{font-size:30px;margin-bottom:15px}.context-copy{font-size:22px;margin-bottom:27px}.paper-primary{min-height:80px;font-size:30px}.paper-bottom>p{font-size:22px;padding-top:39px;margin-bottom:28px;gap:15px}.paper-book{font-size:26px;min-height:66px;border-radius:35px}.compass-dock{left:46px;bottom:34px}.compass-face{width:114px;height:114px}.compass-face span{font-size:40px}.compass-arrow,.compass-undo{height:51px;min-width:65px}.compass-divider{margin:0 28px;height:40px}.compass-arrow kbd,.compass-undo kbd{top:54px;font-size:15px}}

.paper-content>*{flex-shrink:0}.paper-bottom{flex-shrink:0}.paper-context .paper-text{margin-bottom:0}

.folded-shell .paper-primary{background-image:url('./limestone.webp')!important;background-size:100% 180%!important;border-radius:0}

.math-paper .paper-goal{font-size:20px;line-height:1.7;margin:16px 0}.math-paper .paper-stats{margin-top:5px;min-height:35px}.math-paper .paper-stats>span{font-size:19px;gap:9px}.math-paper .paper-context{margin-top:26px;padding-top:24px}.math-paper .paper-context h3{font-size:24px;margin-bottom:11px}.math-paper .context-copy{font-size:16px;margin-bottom:18px}.math-paper .paper-primary{min-height:64px;font-size:24px}.math-paper .paper-bottom{padding-top:20px}.math-paper .paper-bottom>p{font-size:17px;padding-top:23px;margin-bottom:20px}.math-paper .paper-book{font-size:21px;min-height:52px}.math-paper .paper-feedback{font-size:12px}
.folded-shell .world-hud .edge-marker{background:transparent!important;border:0!important}.folded-shell .world-hud .edge-marker.selected{background:#352349b8!important;outline:1px solid #c7a66b70}.folded-shell .world-hud .node-marker.math-node{min-width:34px;min-height:34px}
@media(max-height:760px){.math-paper .paper-goal{font-size:17px;margin:12px 0}.math-paper .paper-context{margin-top:18px;padding-top:17px}.math-paper .paper-context h3{font-size:21px}.math-paper .context-copy{font-size:14px;margin-bottom:13px}.math-paper .paper-primary{min-height:52px;font-size:20px}.math-paper .paper-bottom{padding-top:16px}.math-paper .paper-bottom>p{font-size:14px;padding-top:16px;margin-bottom:16px}.math-paper .paper-book{font-size:18px;min-height:44px}.math-paper .paper-feedback{font-size:11px}.math-paper .paper-gate{margin-bottom:12px;font-size:17px}}


.paper-constraint{font-size:13px;line-height:1.8;color:#82634f;margin:0 5px 17px}
.folded-shell .world-hud .edge-marker.math-edge{background:#352349c4!important;text-shadow:none;border-radius:5px}.folded-shell .world-hud .edge-marker.math-edge.selected{background:#65513ceb!important;outline:1px solid #c7a66ba0}

@media(pointer:coarse){.compass-undo kbd{display:none}}
@media(max-height:620px){.compass-undo kbd{top:100%;font-size:11px}}
/* The selected notebook: fixed masthead and actions around paginated paper. */
.folded-shell{--paper-width:clamp(358px,30vw,470px)}
.paper-content.paper-notebook{inset:6.5% 7.5% 5.7% 17.5%;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:0;overflow:visible;min-width:0;min-height:0;color:#593d49;scrollbar-width:none}
.notebook-heading{min-width:0;padding:0 0 13px;border-bottom:1px solid #b08d565c}.notebook-kicker{margin:0 0 10px;font-size:10px;line-height:1.45;color:#8e6b4d;letter-spacing:.13em;font-weight:500;overflow-wrap:break-word;text-transform:uppercase}.notebook-goal{font-size:clamp(19px,1.7vw,26px);font-weight:600;line-height:1.4;letter-spacing:0;margin:0;overflow-wrap:break-word;hyphens:auto;text-wrap:balance}
.notebook-stats{min-height:48px;padding:11px 1px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;line-height:1.4;color:#75525a}.notebook-stats>span{display:flex;gap:8px;align-items:center;min-width:0}.notebook-stats svg{flex:none;width:20px;height:20px;color:#b48b48}.notebook-stats b{font-weight:400;min-width:0;overflow-wrap:break-word}.notebook-stats>i{width:1px;align-self:stretch;background:#b08d565c;flex:none;margin:3px 0}.notebook-stats .notebook-budget{font-size:11px;white-space:normal}
.notebook-tabs{display:grid;grid-template-columns:1fr 1fr;position:relative;gap:3px;flex:none;padding-top:3px;z-index:1}.notebook-tabs>button{position:relative;min-height:43px;border:1px solid #c5ac8355;border-bottom:0;border-radius:12px 12px 0 0;background:#f5e9d7 url('./limestone.webp') center/cover;color:#8b7263;font:inherit;font-size:16px;line-height:1.3;padding:9px 5px;box-shadow:inset 0 1px 1px #fff9ef;letter-spacing:0;white-space:normal;overflow-wrap:break-word}.notebook-tabs>button[aria-selected=true]{color:#513644;font-weight:600;background-color:#fbf0df}.notebook-tabs>button[aria-selected=true]::after{content:'';position:absolute;height:2px;bottom:0;left:15%;right:15%;background:#b98b3b}
.notebook-reader{min-width:0;min-height:0;position:relative}.notebook-sheet{height:100%;display:grid;grid-template-rows:minmax(0,1fr) 34px;min-height:0;padding:18px 15px 4px;background:#f5e9d7 url('./limestone.webp') center/cover;border:1px solid #c5ac8370;border-radius:5px 5px 12px 12px;box-shadow:0 3px 4px #76533618,inset 0 0 0 2px #fff8e84a}
.notebook-viewport{position:relative;min-width:0;min-height:0;overflow:hidden;scrollbar-width:none;overflow-anchor:none}.notebook-flow{height:100%;width:100%;column-count:1;column-fill:auto;column-gap:24px;overflow:visible;transform-origin:top left;font-size:14px;line-height:1.8;letter-spacing:0;overflow-wrap:break-word;hyphens:auto}.notebook-flow>*{max-width:100%;min-width:0}.notebook-leaf{break-before:column;min-width:0}.notebook-leaf:first-child{break-before:auto}.notebook-flow h3{font-size:18px;line-height:1.45;letter-spacing:0;font-weight:600;margin:0 0 12px;padding:0 0 0 10px;border-left:2px solid #bd9655;break-after:avoid;overflow-wrap:break-word;text-wrap:balance}.notebook-flow p{font-size:14px;line-height:1.8;letter-spacing:0;margin:0 0 12px;color:#8b6e61;orphans:2;widows:2}.notebook-flow .notebook-formula{font-family:Georgia,'Times New Roman',serif;font-size:23px;line-height:1.5;text-align:center;margin:13px 0 0;color:#603b4f;break-inside:avoid;letter-spacing:0}.notebook-diagram{display:block;object-fit:contain;width:100%;height:clamp(80px,16vh,150px);margin:12px auto 0;break-inside:avoid}.notebook-flow .notebook-quiet{font-size:12px;color:#9b8270}.notebook-flow button{break-inside:avoid;max-width:100%;white-space:normal;overflow-wrap:break-word;font-size:13px;line-height:1.45}.notebook-flow :is(.paper-routes,.topology-alternatives){display:contents}.notebook-flow :is(.paper-routes,.topology-alternatives)>button{display:flex;width:100%;margin:7px 0;min-height:36px}.notebook-flow .proof-word{display:block;overflow:visible}.notebook-flow .proof-word button{display:inline-flex;margin:3px;min-width:30px;min-height:32px;font-family:Georgia,serif}.notebook-flow .seam-choices{display:block}.notebook-flow .seam-choices>button{display:flex;align-items:center;width:100%;min-height:37px;gap:7px;margin:5px 0}.notebook-flow .topology-verdict{display:block}.notebook-flow .topology-verdict>button{display:block;width:100%;min-height:39px;margin:7px 0}.notebook-flow :is(.paper-segment,.paper-gate){break-inside:avoid;margin:10px 0}.notebook-flow .paper-feedback{font-size:13px;line-height:1.8;max-height:none;overflow:visible;padding:0;margin:12px 0}.notebook-flow .topology-checkpoints,.notebook-flow .topology-reference,.notebook-flow .topology-word,.notebook-flow .paper-constraint,.notebook-flow .paper-route{font-size:13px;line-height:1.7;max-height:none;overflow:visible;margin:9px 0;letter-spacing:0}
.notebook-pagination{display:flex;justify-content:center;align-items:center;gap:18px;min-width:0;min-height:34px;color:#7f594c}.notebook-pagination>button{border:0;background:none;display:grid;place-items:center;min-width:32px;min-height:32px;padding:4px;color:#9c775e}.notebook-pagination>button:disabled{opacity:.25}.notebook-pagination output{font-family:Georgia,'Times New Roman',serif;font-size:12px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:1px}.notebook-pagination output>span{color:#b2947b;margin:0 4px}
.notebook-footer{padding:15px 0 0;margin-top:13px;border-top:1px solid #b08d5670;min-width:0}.paper-notebook .notebook-action.paper-primary{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:54px;height:auto;border:0;border-radius:0;background:transparent url('./limestone.webp') center/100% 150% no-repeat!important;font-family:inherit;font-size:18px;line-height:1.3;font-weight:500;letter-spacing:0;padding:11px 30px;margin:0;overflow:visible;filter:none}.notebook-action>span{max-width:100%;min-width:0;white-space:normal;overflow-wrap:break-word;hyphens:none;text-wrap:balance}.paper-notebook .notebook-book.paper-book{border:0!important;background:none!important;box-shadow:none;filter:none;display:flex;justify-content:center;align-items:center;gap:9px;min-height:42px;font-family:inherit;font-size:15px;font-weight:400;line-height:1.4;letter-spacing:0;padding:9px 2px 0;margin:0;color:#725143;width:100%;overflow-wrap:break-word}.notebook-book svg{width:22px;height:22px;flex:none}.notebook-book>span{min-width:0;text-wrap:balance}.paper-notebook :is(button):focus-visible{outline:2px solid #47776e;outline-offset:2px}
html[data-script=latin] .paper-notebook{font-family:Georgia,'Times New Roman',serif}html[data-script=latin] .notebook-kicker{font-size:10px}html[data-script=latin] .notebook-goal{font-size:clamp(18px,1.55vw,24px);line-height:1.4}html[data-script=latin] .notebook-tabs>button{font-size:15px}html[data-script=latin] .notebook-flow h3{font-size:17px}html[data-script=latin] .notebook-flow p{font-size:14px;line-height:1.7}html[data-script=latin] .paper-notebook .notebook-action{font-size:17px}html[data-script=latin] .paper-notebook .notebook-book{font-size:14px}
@media(max-height:680px){.paper-content.paper-notebook{top:6%;bottom:5%}.notebook-heading{padding-bottom:8px}.notebook-kicker{margin-bottom:6px;font-size:9px}.notebook-goal,html[data-script=latin] .notebook-goal{font-size:18px;line-height:1.35}.notebook-stats{min-height:38px;padding-block:7px;font-size:12px}.notebook-tabs>button{min-height:36px;padding-block:7px;font-size:14px}.notebook-sheet{padding:12px 12px 2px;grid-template-rows:minmax(0,1fr) 30px}.notebook-flow h3,html[data-script=latin] .notebook-flow h3{font-size:16px;margin-bottom:8px}.notebook-flow p,html[data-script=latin] .notebook-flow p{font-size:13px;line-height:1.65;margin-bottom:10px}.notebook-diagram{height:75px}.notebook-footer{margin-top:10px;padding-top:10px}.paper-notebook .notebook-action.paper-primary{min-height:48px;font-size:16px;padding-block:9px}.paper-notebook .notebook-book.paper-book{min-height:35px;font-size:13px;padding-top:7px}.notebook-pagination{min-height:30px}}
@media(max-width:900px){.folded-shell{--paper-width:min(390px,calc(100vw - 24px))}.folded-paper{top:74px;bottom:12px;max-height:none}.paper-content.paper-notebook{left:17.5%;right:7.5%}.notebook-goal{font-size:21px}html[data-script=latin] .notebook-goal{font-size:20px}.notebook-heading{padding-bottom:10px}.notebook-stats{min-height:43px}.notebook-footer{padding-top:12px;margin-top:11px}}
@media(max-width:680px){.folded-paper{top:70px;bottom:10px;right:4px}.folded-heading h1{font-size:17px}.notebook-goal,html[data-script=latin] .notebook-goal{font-size:20px;line-height:1.4}.notebook-sheet{padding-inline:13px}.notebook-flow p,html[data-script=latin] .notebook-flow p{font-size:14px}.notebook-tabs>button{min-height:41px}.notebook-kicker{font-size:10px}.notebook-flow{font-size:14px}.notebook-pagination>button{min-width:38px;min-height:34px}.notebook-stats{font-size:13px}}

/* Match the chosen editorial scale, including the mathematical display line. */
@media(min-height:681px){.notebook-flow p,html[data-script=latin] .notebook-flow p{font-size:16px;line-height:1.65}.notebook-flow h3,html[data-script=latin] .notebook-flow h3{font-size:20px;line-height:1.4}.notebook-diagram{height:clamp(100px,20vh,180px)}}
.paper-notebook .notebook-flow .notebook-formula{font-size:25px;line-height:1.5;color:#603b4f}.paper-notebook .notebook-flow .notebook-quiet{font-size:12px}

@media(min-height:681px){.notebook-heading{padding-bottom:10px}.notebook-kicker{margin-bottom:7px}.notebook-stats{min-height:40px;padding-block:7px}.notebook-tabs>button{min-height:40px;padding-block:8px}.notebook-footer{margin-top:9px;padding-top:10px}.paper-notebook .notebook-action.paper-primary{min-height:50px;padding-block:10px;background-size:100% 180%!important}.paper-notebook .notebook-book.paper-book{min-height:36px;padding-top:7px}.notebook-flow h3{margin-bottom:10px}.notebook-flow p{margin-bottom:10px}.notebook-diagram{height:130px;margin-top:8px}.paper-notebook .notebook-flow .notebook-formula{margin:10px 0 0}}
@media(min-width:901px){.notebook-goal,html[data-script=latin] .notebook-goal{font-size:22px;line-height:1.35}}

.notebook-goal-line{display:block;text-wrap:pretty}
/* Prefer complete words; only a single word wider than the page may break. */
.notebook-goal,.notebook-flow{hyphens:none}
.expansion-controls{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.expansion-controls button{flex:1 1 62px;min-width:0;min-height:42px;border:1px solid #b69b6d80;border-radius:6px;background:#e3d1ad38;color:#604155;padding:8px;font:inherit;font-size:13px;overflow-wrap:anywhere;cursor:pointer}.expansion-controls button small{display:block;color:#8f7658;font-size:10px;margin-top:3px}.expansion-controls button:hover,.beacon-controls button:hover{background:#ba9a5820}.expansion-controls button:disabled{opacity:.45;cursor:default}.expansion-controls button:focus-visible,.beacon-controls button:focus-visible{outline:2px solid #39796d;outline-offset:2px}.beacon-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:13px 0;break-inside:avoid}.beacon-controls button{border:1px solid #af966e80;border-radius:7px;background:#f4e9cf55;color:#624b59;padding:6px;min-height:54px;font:inherit;cursor:pointer}.beacon-controls button>span{display:flex;justify-content:space-between;font-size:11px;gap:4px}.beacon-controls small{color:#a08250;font-size:9px}.beacon-controls b{display:block;font-size:19px;font-family:Georgia,serif;font-weight:400}.beacon-controls button[aria-pressed=true]{color:#eee6ce;background:#286b62}.beacon-controls button[aria-pressed=true] small{color:#e7c77c}.beacon-controls button:disabled{opacity:.5;cursor:default}.expansion-records{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.expansion-records code{padding:3px 7px;color:#377769;border:1px solid #7d9d7b66;border-radius:4px;white-space:nowrap;font-size:12px}.expansion-received code{font:14px ui-monospace,monospace;letter-spacing:.08em;overflow-wrap:anywhere}.chapter-select-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px!important}.chapter-select-tabs button{min-width:0;white-space:normal;overflow-wrap:anywhere}
.chapter-kicker{font-size:15px;color:#78574f;letter-spacing:1.5px;margin:0 0 16px}.topology-paper{top:6.5%;bottom:8%}.topology-paper .paper-heading{font-size:18px;letter-spacing:2px}.topology-paper .paper-goal{font-size:24px;line-height:1.6;margin:18px 0}.topology-paper .paper-stats{margin:6px 3px 0}.topology-paper .paper-stats>span{font-size:23px}.topology-budget{display:flex;align-items:center;gap:5px;color:#8b705a;font-size:11px;line-height:1.7;margin:13px 3px 0}.topology-budget>span{margin-left:auto}.topology-paper .paper-context{margin-top:28px;padding-top:26px}.topology-paper .paper-context h3{font-size:27px}.topology-paper .context-copy{font-size:18px;line-height:1.7;margin:15px 6px 22px}.topology-checkpoints,.topology-reference,.topology-word{font-size:12px;line-height:1.9;color:#81624f;margin:7px 3px;overflow-wrap:anywhere}.topology-checkpoints .done{color:#397c70}.topology-reference{color:#70504f}.topology-word{margin-bottom:12px;color:#685449}.topology-paper .paper-primary{min-height:68px;font-size:24px}.topology-submit{display:flex;gap:8px;align-items:center;justify-content:center;border:0;background:none;color:#73574b;width:100%;font-size:12px;padding:7px}.topology-alternatives{display:flex;flex-direction:column;border-top:1px solid #b798642f;margin-top:4px}.topology-alternatives button{border:0;border-bottom:1px solid #b798642f;background:none;padding:8px 5px;text-align:left;color:#785748;font-size:13px}.topology-alternatives button[aria-pressed=true]{color:#2f736b}.topology-paper .paper-bottom{padding-top:18px}.topology-paper .paper-bottom>p{font-size:17px;line-height:1.6;padding-top:24px;margin-bottom:22px}.topology-paper .paper-book{font-size:22px;min-height:54px}.topology-instructions{font-size:14px;line-height:1.85;color:#876552;margin:10px 3px 14px}.proof-word{display:flex;gap:5px;flex-wrap:wrap;margin:12px 2px 18px}.proof-word button{font:17px Georgia,serif;min-width:31px;height:32px;padding:4px 5px;border:1px solid #bba07880;border-radius:5px;background:transparent;color:#77534d}.proof-word button[aria-pressed=true]{background:#367d7025;border-color:#367d70;color:#2f6f64}.proof-word button:disabled{opacity:.9}.topology-verdict{display:flex;flex-direction:column;gap:6px;margin:12px 2px 18px}.topology-verdict button{border:1px solid #b99d7680;border-radius:7px;background:none;padding:9px;font-size:14px;color:#76534e}.topology-verdict button[aria-pressed=true]{background:#367d7020;border-color:#367d70;color:#326e65}.seam-choices{display:flex;flex-direction:column;gap:6px;margin:14px 3px 20px}.seam-choices button{border:1px solid #b99d7660;border-radius:7px;background:none;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;color:#795b48;font-size:14px}.chapter-select-tabs{display:flex;gap:18px;margin-top:14px}.chapter-select-tabs button{border:0;border-bottom:1px solid transparent;background:none;padding:7px 0;color:#9b7d65;font-size:13px}.chapter-select-tabs button[aria-pressed=true]{border-color:#428477;color:#39766d}.journal-menu .chapter-select-tabs+.chapter-pagination{margin-top:9px}.journal-menu .chapter-list.three-levels{gap:12px}.journal-menu .chapter-list.three-levels .journal-chapter{padding-block:16px}
@media(max-height:800px),(max-width:1200px){.topology-paper{top:6.5%;bottom:7%}.chapter-kicker{font-size:12px;margin-bottom:12px}.topology-paper .paper-heading{font-size:16px;padding-bottom:8px}.topology-paper .paper-goal{font-size:20px;margin:13px 0;line-height:1.6}.topology-paper .paper-stats>span{font-size:18px;gap:8px}.topology-budget{font-size:10px;margin-top:9px}.topology-paper .paper-context{margin-top:20px;padding-top:19px}.topology-paper .paper-context h3{font-size:22px;margin-bottom:10px}.topology-paper .context-copy{font-size:15px;margin:10px 4px 15px}.topology-checkpoints,.topology-reference,.topology-word{font-size:11px;margin-block:5px}.topology-paper .paper-primary{font-size:20px;min-height:55px}.topology-paper .paper-bottom>p{font-size:14px;padding-top:17px;margin-bottom:17px}.topology-paper .paper-book{font-size:19px;min-height:46px}.topology-paper .paper-feedback{font-size:11px}.topology-submit{font-size:11px;padding:5px}.topology-instructions{font-size:12px;margin:8px 3px 11px}.proof-word{gap:4px;margin-block:8px 13px}.proof-word button{font-size:15px;min-width:28px;height:29px}.seam-choices{gap:5px;margin-block:10px 15px}.seam-choices button{font-size:12px;padding:7px}.topology-verdict button{font-size:12px;padding:7px}}
@media(max-width:680px){.chapter-select-tabs{margin-top:12px}.journal-menu .chapter-list.three-levels{gap:6px}.journal-menu .chapter-list.three-levels .journal-chapter{padding-block:17px}.topology-paper .paper-goal{font-size:21px}.topology-paper .paper-context{margin-top:23px}.topology-paper .context-copy{font-size:15px}.topology-paper .paper-bottom>p{font-size:14px}.topology-paper .paper-book{font-size:20px}}

@media(min-width:1201px) and (min-height:801px){.chapter-kicker{font-size:19px;margin-bottom:17px}.topology-paper{bottom:10%}.topology-paper .paper-heading{font-size:20px}.topology-paper .paper-goal{font-size:26px}.topology-paper .paper-stats>span{font-size:25px}.topology-paper .paper-primary{font-size:26px;min-height:70px}.topology-paper .paper-bottom>p{font-size:18px;padding-top:28px}.topology-paper .paper-book{font-size:24px;min-height:60px}}

@media(min-width:1201px) and (min-height:801px){.topology-paper .paper-context{margin-top:19px;padding-top:22px}.topology-checkpoints,.topology-reference,.topology-word{font-size:14px}.topology-budget{font-size:12px}.topology-paper .context-copy{margin-top:12px;margin-bottom:17px}.chapter-kicker{font-size:21px}}

.topology-paper .paper-goal{letter-spacing:0}.topology-paper .paper-bottom{flex-shrink:0}

@media(max-width:680px){.topology-paper .chapter-kicker{font-size:11px;margin-bottom:8px}.topology-paper .paper-heading{font-size:15px;padding-bottom:6px}.topology-paper .paper-goal{font-size:19px;margin:10px 0}.topology-paper .paper-stats{min-height:28px;margin-top:2px}.topology-paper .paper-stats>span{font-size:17px}.topology-paper .paper-context{margin-top:12px;padding-top:12px}.topology-paper .paper-context h3{font-size:20px}.topology-paper .context-copy:not(.topology-instructions){display:none}.topology-checkpoints,.topology-reference,.topology-word{margin-block:3px}.topology-paper .paper-text{padding-block:4px;margin-top:2px}.topology-paper .paper-bottom{padding-top:12px}.topology-paper .paper-bottom>p{font-size:13px;padding-top:12px;margin-bottom:12px}.topology-paper .paper-book{font-size:18px;min-height:42px}}
.topology-paper{overflow:hidden}.topology-paper>.paper-context{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#af946d80 transparent}.topology-paper>.paper-bottom{flex:0 0 auto}
.teaching-overlay{position:absolute;inset:0;z-index:30;background:#35264f;color:#432e43;font-family:MathSong,'Songti SC',serif;--teaching-paper:410px}
.teaching-scene{position:absolute;inset:0 var(--teaching-paper) 0 0}.teaching-scene canvas{display:block;width:100%;height:100%}.teaching-pins{position:absolute;inset:0 var(--teaching-paper) 0 0;pointer-events:none;overflow:hidden}.teaching-pin{position:absolute;left:0;top:0;display:flex;align-items:center;justify-content:center;min-width:27px;height:27px;border-radius:50%;background:#f5ead9e8;border:1px solid #bd965c;color:#543b54;font:13px Georgia,serif;opacity:.8;box-shadow:0 2px 8px #20112944}.teaching-pin.is-target{background:#f8d99b;border:2px solid #fff1bc;min-width:38px;height:38px;opacity:1;box-shadow:0 0 0 9px #e5b95725,0 0 35px #e5b95770}
.teaching-heading{position:absolute;top:30px;left:34px;display:flex;gap:13px;align-items:center;color:#f0dfc9;pointer-events:none}.teaching-heading>span{font-size:21px;letter-spacing:2px}.teaching-heading small{display:block;letter-spacing:.6px;font-size:12px;margin-top:8px;opacity:.65}.teaching-evidence{position:absolute;left:28px;bottom:28px;max-width:calc(100% - var(--teaching-paper) - 56px);background:#241b37b8;border:1px solid #baa16c55;border-radius:12px;padding:12px 18px;color:#efdab3;font-size:17px;font-family:Georgia,serif;overflow-wrap:anywhere}
.teaching-paper{position:absolute;top:18px;right:12px;bottom:18px;width:var(--teaching-paper)}.teaching-paper-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;object-fit:fill}.teaching-content{position:absolute;inset:7% 8% 7% 18%;display:flex;flex-direction:column;gap:17px;overflow:auto;padding:2px 4px}.teaching-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#987443;font-size:12px;letter-spacing:.7px}.teaching-skip{display:flex;gap:3px;align-items:center;border:0;background:transparent;color:#6a5359;min-height:34px;font:inherit;letter-spacing:0}.teaching-content h2{font-size:26px;line-height:1.5;letter-spacing:1px;margin:0;font-weight:500}.teaching-progress{display:flex;gap:6px;list-style:none;padding:0;margin:0}.teaching-progress li{height:3px;flex:1;border-radius:2px;background:#b3997840}.teaching-progress li span{display:none}.teaching-progress li[aria-current],.teaching-progress li.is-done{background:#a4824b}.teaching-copy{flex:1;min-height:0}.teaching-copy h3{font-size:19px;line-height:1.6;font-weight:500;margin:12px 0}.teaching-copy p{font-size:16px;line-height:1.95;margin:0 0 15px;color:#6b5154}.teaching-copy .teaching-quiet{font-size:13px;line-height:1.8;color:#897265}.teaching-principle{border-top:1px solid #b99a6a50;margin-top:25px;padding-top:16px}.teaching-principle>span{color:#987443;font-size:12px;letter-spacing:1px}.teaching-principle p{font-size:14px;margin-top:8px}.teaching-actions{flex:none}.teaching-primary{width:100%;min-height:58px;display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 19px;border:0;background:transparent url('./limestone.webp') center/100% 100% no-repeat;color:#f5e4b8;font-family:inherit;font-size:18px;line-height:1.5}.teaching-primary:disabled{opacity:.65}.teaching-primary.is-guided{filter:drop-shadow(0 0 7px #c29c6360)}.teaching-secondary{background:none;border:0;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;color:#785c43;font:inherit;font-size:13px;min-height:38px;margin:6px 0}.teaching-playback{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:10px}.teaching-playback button{border:0;background:none;color:#7b6249;display:flex;align-items:center;gap:4px;font:inherit;font-size:12px;min-height:34px;padding:2px}.teaching-footnote{font-size:11px;line-height:1.8;text-align:center;color:#95816c;margin:14px 0 0}.teaching-actions .language-picker{margin:14px 0 0}.teaching-overlay button:focus-visible{outline:2px solid #b88b49;outline-offset:3px}.teaching-copy>*{overflow-wrap:anywhere}
@media(max-width:1100px),(max-height:760px){.teaching-overlay{--teaching-paper:355px}.teaching-content{gap:12px;inset:6% 7% 6% 18%}.teaching-content h2{font-size:23px}.teaching-copy p{font-size:14px;line-height:1.85}.teaching-copy h3{font-size:17px}.teaching-principle{margin-top:15px;padding-top:12px}.teaching-principle p{font-size:13px}.teaching-primary{font-size:16px;min-height:53px}.teaching-heading{top:22px;left:25px}.teaching-heading>span{font-size:18px}.teaching-heading small{font-size:11px}.teaching-footnote{margin-top:10px}.teaching-evidence{font-size:15px;left:20px;bottom:24px}}
@media(max-width:680px){.teaching-overlay{overflow:auto;display:flex;flex-direction:column}.teaching-scene{position:relative;inset:auto;flex:none;width:100%;height:38dvh;min-height:220px}.teaching-pins{right:0;height:38dvh;min-height:220px;bottom:auto}.teaching-heading{top:14px;left:18px}.teaching-heading>span{font-size:16px}.teaching-heading small{font-size:10px}.teaching-evidence{top:calc(38dvh - 42px);bottom:auto;left:15px;max-width:calc(100% - 30px);font-size:13px;padding:6px 11px}.teaching-paper{position:relative;inset:auto;margin:0 10px 12px;width:calc(100% - 20px);min-height:450px;flex:1;background:#f4e9d9;border:3px solid #b496b5;border-radius:13px}.teaching-paper-art{display:none}.teaching-content{position:relative;inset:auto;padding:19px 23px 20px;gap:11px;overflow:visible;min-height:100%;box-sizing:border-box}.teaching-copy{min-height:auto}.teaching-content h2{font-size:24px}.teaching-copy p{font-size:15px}.teaching-principle{margin-top:13px}.teaching-primary{min-height:53px}.teaching-footnote{font-size:11px}.teaching-content .language-picker{margin-top:9px}}
@media(max-height:600px) and (min-width:681px){.teaching-content{overflow:auto}.teaching-copy{flex:none}.teaching-content h2{font-size:20px}.teaching-copy h3{margin:5px 0;font-size:16px}.teaching-copy p{font-size:13px;margin-bottom:9px}.teaching-footnote{margin-top:7px}.teaching-content{gap:9px}.teaching-primary{min-height:46px}}
@media(prefers-reduced-motion:reduce){.teaching-overlay *{scroll-behavior:auto}}
.teaching-pin.teaching-edge{border-radius:8px;padding:5px 9px;white-space:nowrap;font-size:11px;height:auto;min-height:26px;background:#f3e8d6eb}.teaching-edge.is-selected{border-color:#4d8e7e;box-shadow:0 0 0 3px #75b6a840;color:#285b51;opacity:1}
@media(max-width:680px){.teaching-paper{flex:none;min-height:0}.teaching-content{min-height:0}}

.teaching-heading .teaching-settings-global{margin-left:8px;width:44px;height:44px;min-width:44px;min-height:44px;color:#d6be91}.teaching-heading>span{min-width:0}.teaching-heading>span small{white-space:normal}.teaching-heading{max-width:calc(100% - var(--teaching-paper) - 50px)}@media(max-width:680px){.teaching-heading{max-width:calc(100% - 36px)}.teaching-heading .teaching-settings-global{margin-left:5px}}
.topbar h1{font-size:23px;letter-spacing:1px}.chapter-tools{position:absolute;top:102px;left:38px;display:flex;gap:15px;align-items:center;color:#baa5cb;font-size:12px;z-index:4}.chapter-tools button{display:flex;align-items:center;gap:7px;padding:6px 9px;color:#c6b1d4;background:none;border:1px solid #a88cb244;border-radius:9px;font-size:12px}.chapter-tools button[aria-pressed=true]{color:#f0d296;border-color:#ceb87f88}.world-hud{position:absolute;inset:0;pointer-events:none;z-index:3}.world-hud button{pointer-events:auto;position:absolute;left:0;top:0;touch-action:none}.node-marker{width:45px;height:45px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:transparent!important;border:0;opacity:0;color:#fff2c7;font-family:Georgia,serif;font-size:17px;text-shadow:0 1px 4px #34234f}.node-marker.visible{opacity:1;background:#35264fb8!important;border:1px solid #c8afdb66;width:33px;height:33px}.node-marker.visible:hover{background:#655079!important}.node-marker.sealed{background:#764458d9!important;border-color:#c18c97}.node-marker.source-side{background:#87703ee0!important;border-color:#ead190}.edge-marker{height:40px;min-width:40px;padding:5px 9px;border:0;background:transparent!important;border-radius:12px;color:#f4deb2;font-size:12px;white-space:nowrap}.edge-marker.visible{background:#35264fdb!important;border:1px solid #b8a0c266}.edge-marker.knob-hit{width:52px;height:52px}.edge-marker.capacity-marker{min-width:40px;height:28px;padding:2px 7px;background:#35264fe8!important;border:1px solid #b8a0c266;color:#ebd7aa;border-radius:7px;font-variant-numeric:tabular-nums;font-size:12px;line-height:1.4}.edge-marker.selected.capacity-marker{border-color:#e9c36f;background:#65513ce8!important}.test-in-world{display:flex;align-items:center;gap:6px;background:#35264fc9!important;border:1px solid #d1b88088;border-radius:10px;padding:7px 11px;white-space:nowrap;font-size:14px;color:#f0d296}.chapter-footer{gap:8px;bottom:26px}.chapter-footer .lesson-copy{max-width:1000px}.chapter-footer .lesson-copy h2{font-size:21px;letter-spacing:1px}.chapter-feedback{font-size:13px;line-height:1.8;color:#c5afd2;margin:6px 0 0;min-height:24px}.chapter-feedback.tested{color:#f1d596}.mechanic-controls{pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:15px;min-height:20px;flex-wrap:wrap;color:#d8c3d9;font-size:12px}.mechanic-controls>button,.gate-control>button{border:1px solid #9e83b44d;background:transparent;border-radius:8px;padding:6px 9px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px}.control-segment{display:flex;border:1px solid #a58ab35c;border-radius:9px;padding:2px;gap:2px}.control-segment button{padding:5px 10px;border:0;border-radius:7px;font-size:12px;background:none;color:#b9a6c9}.control-segment button[aria-pressed=true]{background:#bfa37629;color:#f1d6a0}.flow-status{color:#e1c787;white-space:nowrap;font-variant-numeric:tabular-nums}.gate-control{display:flex;align-items:center;gap:8px}.gate-control b{font-weight:500;color:#e1c787;margin-left:4px}.route-status{font-family:MathSong,Georgia,serif;color:#e1c787}.play-test{font-size:16px!important;min-height:40px!important;padding-inline:15px!important}.chapter-footer .lesson-actions{gap:16px}.chapter-footer .principle-button{font-size:13px}.chapter-pagination{display:flex;align-items:center;justify-content:space-between;margin:17px 0 6px;gap:10px}.chapter-pagination button{display:flex;align-items:center;justify-content:center;background:none;border:0;border-radius:7px;padding:8px;color:#87663e}.chapter-pagination>span{display:flex;align-items:center;gap:13px;color:#755652;font-size:15px}.chapter-pagination small{font-size:11px;color:#a48d70}.chapter-list{flex:1;display:flex;flex-direction:column;justify-content:center}.chapter-list .journal-chapter{padding:13px 1px;gap:16px}.chapter-list .chapter-number{font-size:28px;min-width:32px}.chapter-list .journal-chapter strong{font-size:19px}.chapter-list .journal-chapter small{font-size:12px}.chapter-list .journal-chapter>span:nth-child(2){gap:4px}.chapter-list .journal-chapter.current{color:#35726a}.chapter-progress{font-size:11px;color:#9b8067;margin:10px 0 4px;text-align:center}.journal-source{font-size:10px;color:#987e6b;line-height:1.6;margin:8px 0 0;text-align:center}.chapter-success-detail{font-size:15px;line-height:1.9;color:#715456;margin:15px 0 4px}.journal-secondary-actions{display:flex;align-items:center;justify-content:center;gap:25px}.scene-figure{width:122%!important;margin-left:-11%!important;margin-right:-11%!important}.journal-principle .journal-note p{font-size:16px}.journal-principle .journal-page-heading h2{white-space:normal;font-size:29px}.journal-hint .journal-lead{font-size:17px}.journal-success .journal-note p{font-size:15px}.journal-success .journal-page-heading h2{font-size:29px}.journal-menu .journal-page-heading h2{font-size:29px}
@media(max-width:1100px),(max-height:760px){.topbar h1{font-size:20px}.journal-principle .journal-page-heading h2,.journal-menu .journal-page-heading h2,.journal-success .journal-page-heading h2{font-size:22px}.journal-principle .journal-note p,.journal-success .journal-note p{font-size:13px}.journal-principle .journal-note h3{font-size:18px}.journal-hint .journal-lead{font-size:14px;line-height:1.7}.chapter-list .journal-chapter{padding:8px 1px;gap:10px}.chapter-list .chapter-number{font-size:23px;min-width:27px}.chapter-list .journal-chapter strong{font-size:16px}.chapter-list .journal-chapter small{font-size:11px}.chapter-pagination{margin-top:12px;margin-bottom:3px}.chapter-pagination>span{font-size:12px;gap:8px}.chapter-progress{font-size:10px;margin:6px 0 2px}.chapter-success-detail{font-size:13px;margin-top:10px}.journal-source{font-size:9px}.chapter-pagination button{padding:5px}}
@media(max-width:680px){.topbar{left:16px;right:16px;top:18px}.topbar h1{font-size:15px;max-width:225px}.topbar .level-heading{gap:12px}.topbar .outline-button{font-size:14px;min-height:37px;padding:6px 9px}.topbar .outline-button svg{width:20px}.chapter-tools{left:18px;top:94px;font-size:10px}.chapter-tools button{font-size:11px}.chapter-footer{bottom:20px;left:18px;right:18px;gap:7px}.chapter-footer .lesson-copy h2{font-size:17px;line-height:1.7}.chapter-feedback{font-size:12px;max-width:360px}.mechanic-controls{gap:8px;font-size:11px}.mechanic-controls>button,.gate-control>button{font-size:11px;padding:5px 7px}.chapter-footer .lesson-actions{gap:9px}.play-test{font-size:14px!important;min-height:37px!important}.chapter-footer .principle-button{font-size:12px;gap:5px}.node-marker.visible{width:30px;height:30px;font-size:15px}.edge-marker.capacity-marker{min-width:32px;height:24px;font-size:10px;padding:2px 4px}.test-in-world{font-size:11px;padding:5px 7px}.journal-principle .journal-note p,.journal-success .journal-note p{font-size:14px}.journal-principle .journal-page-heading h2,.journal-menu .journal-page-heading h2,.journal-success .journal-page-heading h2{font-size:23px}.scene-figure{width:100%!important;height:160px!important;margin:5px 0!important}.chapter-list .journal-chapter{padding:14px 1px}.chapter-list .journal-chapter strong{font-size:17px}.chapter-list .journal-chapter small{font-size:12px}.chapter-pagination{margin-block:14px 5px}.chapter-pagination>span{font-size:14px}.chapter-list .chapter-number{font-size:26px}.chapter-progress{font-size:11px;margin-top:15px}.journal-source{font-size:10px}.journal-hint .journal-lead{font-size:15px}.journal-hint .journal-note p{font-size:14px}.chapter-success-detail{font-size:14px}}
.game-shell{background:radial-gradient(ellipse at 53% 43%,#493263 0,#352349 65%,#291c3d 100%)}.world-hud .edge-marker.knob-hit{pointer-events:none}
.world-hud .capacity-marker{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;height:38px;line-height:1.15}.gate-direction{font-size:9px;opacity:.8;letter-spacing:.3px}.node-marker:not(.visible){pointer-events:none}@media(max-width:680px){.world-hud .capacity-marker{height:32px}.gate-direction{font-size:8px}}
.world-hud .edge-marker.knob-hit{pointer-events:auto;cursor:grab}.world-hud .edge-marker.knob-hit:active{cursor:grabbing}
.chapter-tools{top:101px;align-items:flex-start;flex-direction:column;gap:12px}.act-badge{display:flex;gap:9px;align-items:center;color:#d7c19b;font-size:12px}.act-badge>span{font-family:Georgia,serif;font-size:21px;color:#e7ca83}.act-badge b{font-weight:500;letter-spacing:2px}.act-badge small{font-size:9px;letter-spacing:2px;color:#c2a66e}.chapter-tools>button{font-size:11px;padding:5px 8px}.view-dock{position:absolute;right:32px;top:102px;z-index:5;color:#d8c1a3;text-align:center;user-select:none}.view-main{display:flex;align-items:center;gap:13px}.view-main>button{display:flex;align-items:center;gap:3px;justify-content:center;min-width:40px;min-height:36px;border:0;background:transparent;border-radius:9px}.view-main kbd{font:9px Georgia,serif;color:#ad97b9}.view-main>span{display:flex;align-items:center;gap:7px}.view-main strong{font-size:13px;font-weight:400;min-width:35px}.view-secondary{display:flex;align-items:center;justify-content:center;gap:3px;margin-top:5px}.view-secondary>button{display:flex;gap:5px;align-items:center;justify-content:center;border:1px solid #b19eb12b;background:transparent;border-radius:8px;padding:5px 7px;min-height:29px;font-size:11px}.view-secondary>button[aria-pressed=true]{color:#f1d99d;border-color:#ceb071a0}.view-dock>small{display:block;font-size:9px;color:#a994b7;margin-top:9px;letter-spacing:.5px}.phase-track{display:flex;gap:10px}.phase-track>span{display:flex;gap:5px;align-items:center;border-bottom:1px solid #ab91bf33;padding:0 0 5px;font-size:11px;color:#9f8aac}.phase-track>span.current{color:#f1d7a4;border-color:#cdb17e}.phase-track>span.done{color:#7fbcaa}.chapter-footer{bottom:20px;gap:6px}.chapter-footer .lesson-copy h2{font-size:19px}.chapter-footer .lesson-copy{max-width:min(1000px,85vw)}.chapter-feedback{font-size:12px;margin-top:4px;min-height:21px}.chapter-footer .lesson-phase{font-size:10px;margin-bottom:5px}.mechanic-controls{gap:12px;min-height:20px;font-size:11px}.spatial-footer .lesson-copy h2{font-size:18px}.spatial-footer .lesson-actions{position:absolute;right:18px;bottom:0}.journey-status{display:flex;gap:22px;align-items:center;justify-content:center;color:#d8c5df;font-size:12px;letter-spacing:1px;margin-bottom:5px}.journey-status>span{display:flex;gap:6px;align-items:center}.seal-list{gap:10px!important}.seal-list>span{display:flex;align-items:center;gap:3px;color:#8f7a9e}.seal-list>span.collected{color:#81c4af}.journey-status .energy-low{color:#e9b08b}.local-switchboard{display:flex;gap:5px;align-items:center;color:#ccb6d4;font-size:11px}.local-switchboard>span{margin-right:5px}.local-switchboard button{display:flex;align-items:center;gap:5px;border:1px solid #b29bb64d;background:transparent;border-radius:8px;padding:5px 9px;font-size:11px}.local-switchboard button[aria-pressed=true]{color:#f0d295;border-color:#c5ad6f;background:#b2965b12}.world-hud .node-marker.visible{width:30px;height:30px;font-size:14px;background:#35264fc9!important;opacity:.82;gap:2px}.world-hud .node-marker.traveler-here{background:#92794ce8!important;box-shadow:0 0 12px #d6b57433;border-color:#e5cd8b;opacity:1}.world-hud .node-marker.can-reach{border-color:#8cc1b2;background:#3a6b64e0!important;opacity:1}.world-hud .station-marker{min-width:38px;height:32px;border:1px solid #c3a56988;border-radius:12px;background:#3d2b4fda!important;display:flex;align-items:center;justify-content:center;gap:3px;color:#dfc38b;font:18px Georgia,serif}.station-marker small{font:9px Georgia,serif;color:#a795bc}.station-marker.nearby{background:#846b44e8!important;border-color:#e9cd8f;box-shadow:0 0 18px #e2c28824}.world-hud .portal-marker{display:flex;align-items:center;gap:3px;border:1px solid #a495b05c;border-radius:7px;background:#35264fce!important;color:#a995b8;font-size:9px;min-height:24px;padding:4px 6px;white-space:nowrap}.world-hud .portal-marker.aligned{border-color:#b8ceab;color:#c3e1c7;background:#3a685ed9!important}.world-hud .cost-marker{background:#35264fe8!important;border:1px solid #c3a66e75;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:13px;height:37px;min-width:36px;padding:3px 6px}.cost-marker small{font:8px Georgia,serif;opacity:.7}.cost-marker b{font-weight:500;color:#e5cb8a}.world-hud .capacity-marker{font-size:10px;height:33px;min-width:32px;padding:2px 5px}.world-hud .gate-direction{font-size:8px}.chapter-rank{display:inline-flex;font:9px Georgia,serif;color:#b79a61;letter-spacing:1px;margin-left:9px}.act-description{font-size:11px;color:#9d8167;text-align:center;margin:3px 0 10px}.chapter-pagination>span{gap:8px}.chapter-list .journal-chapter{padding-block:12px}.chapter-list .journal-chapter strong{font-size:17px}.chapter-list .journal-chapter small{font-size:11px}.chapter-list .chapter-number{font-size:27px}.journal-hint .journal-lead{font-size:16px;line-height:1.9}.journal-source{font-size:9px}
@media(max-height:780px) and (min-width:681px){.chapter-tools,.view-dock{top:90px}.chapter-tools{gap:8px}.chapter-footer .lesson-copy h2,.spatial-footer .lesson-copy h2{font-size:16px}.chapter-feedback{font-size:11px;line-height:1.6;min-height:18px}.journey-status{font-size:11px;margin-bottom:1px}.chapter-footer{bottom:15px;gap:4px}.view-dock>small{display:none}.chapter-footer .lesson-phase{font-size:9px}.mechanic-controls{font-size:10px;gap:10px}.chapter-footer .lesson-actions{gap:13px}}
@media(max-width:680px){.chapter-tools{top:90px;left:16px;gap:8px}.act-badge{font-size:10px;gap:5px;flex-wrap:wrap;max-width:155px}.act-badge>span{font-size:17px}.act-badge b{letter-spacing:1px}.act-badge small{font-size:8px;letter-spacing:1px}.view-dock{top:92px;right:12px}.view-main{gap:4px}.view-main>button{min-width:29px;min-height:28px;padding:2px}.view-main>span{gap:3px}.view-main>span svg{width:15px}.view-main strong{font-size:11px;min-width:27px}.view-main kbd{display:none}.view-secondary>button{font-size:9px;min-height:26px;padding:4px}.view-dock>small{display:none}.chapter-footer{bottom:16px;left:14px;right:14px;gap:4px}.chapter-footer .lesson-copy{max-width:100%}.chapter-footer .lesson-copy h2,.spatial-footer .lesson-copy h2{font-size:15px;line-height:1.7}.chapter-feedback{font-size:10px;line-height:1.8;max-width:360px}.journey-status{gap:12px;font-size:10px;letter-spacing:0}.seal-list{gap:5px!important}.spatial-footer .lesson-actions{position:static;gap:10px}.phase-track{gap:7px}.phase-track>span{font-size:9px}.world-hud .node-marker.visible{width:27px;height:27px;font-size:12px}.world-hud .portal-marker{font-size:8px;padding:3px 4px;min-height:22px}.world-hud .station-marker{min-width:31px;height:29px;font-size:16px}.world-hud .cost-marker{height:32px;min-width:30px}.world-hud .capacity-marker{min-width:29px;height:29px;font-size:9px}.chapter-list .journal-chapter{padding-block:13px}.chapter-rank{font-size:8px}.local-switchboard{gap:4px}.local-switchboard button{font-size:10px;padding:5px 7px}.mechanic-controls{gap:8px;font-size:10px}.chapter-tools>button{font-size:10px}}
.world-hud .node-marker.portal-overlapped{opacity:0!important;pointer-events:none}.world-hud .station-away{opacity:0;pointer-events:none}.world-hud .portal-marker:disabled{pointer-events:none;opacity:.65}
.act-badge small,.chapter-rank{display:inline-flex;align-items:center;gap:2px}

.opening-screen{height:100dvh;min-height:540px;position:relative;isolation:isolate;overflow:hidden;background:#35264f;color:#efddbb;font-family:MathSong,'Songti SC',serif}
.opening-layout{position:absolute;inset:0}.opening-scene{position:absolute;inset:0;pointer-events:none}.opening-scene canvas{width:100%;height:100%;display:block}.opening-left{position:absolute;z-index:2;inset:7.9% auto 0 5.1%;width:34.3%;max-width:580px;pointer-events:none}.opening-left button,.opening-footer{pointer-events:auto}
.opening-screen h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(64px,6.35vw,108px);letter-spacing:-.19vw;line-height:1.09;white-space:nowrap;display:block;margin:0;color:#eed9b0}.opening-local-name{font-size:clamp(29px,3.55vw,60px);letter-spacing:.35vw;line-height:1.35;margin:3px 0 0;color:#edd8b4}.opening-tagline{color:#b8a17f;font-size:clamp(16px,1.64vw,28px);line-height:1.8;letter-spacing:.02em;margin:14px 0 0;white-space:nowrap}
.opening-entry{position:fixed;left:4.05%;top:46.0%;width:27.5%;max-width:470px;pointer-events:auto}.opening-last{display:flex;align-items:flex-start;gap:.7vw;margin:0 0 1.8vw;padding-left:.8vw}.opening-bookmark{flex:none;width:2.85vw;height:4.0vw;min-width:19px;min-height:33px;color:#d3a74d;margin-top:-.4vw}.opening-last>div{min-width:0}.opening-chapter{font-size:clamp(15px,1.65vw,28px);line-height:1.45;letter-spacing:.04em;margin:0}.opening-level{font-size:clamp(19px,1.95vw,33px);line-height:1.45;margin:0;letter-spacing:.02em}.opening-last small{display:flex;gap:7px;align-items:center;font-size:clamp(14px,1.45vw,25px);line-height:1.7;color:#b39c83;letter-spacing:.02em;margin-top:7px}.opening-last small svg{flex:none;width:1.5vw;min-width:16px}
.opening-plate{border:0;background:transparent url('./limestone.webp') center/100% 100% no-repeat;color:#f2dfaf;min-height:63px;width:100%;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:20px;font-size:21px;padding:14px 21px;letter-spacing:2px;line-height:1.5}.opening-plate:hover:not(:disabled){filter:brightness(1.07)}.opening-plate:disabled{opacity:.55}.opening-primary{background-image:url('./limestone.webp');height:5.7vw;max-height:98px;min-height:64px;font-size:clamp(28px,2.85vw,49px);font-family:OpeningSong,MathSong,serif;font-synthesis:weight;font-weight:700;line-height:1.2;letter-spacing:.1em;color:#4a3049;padding:9px 35px}.opening-new{border:0;background:none;color:#dcc79d;display:flex;align-items:center;justify-content:center;gap:13px;padding:9px 0;min-height:44px;width:100%;font-size:clamp(15px,1.67vw,28px);letter-spacing:.03em;margin-top:1.4vw}.opening-new svg{width:1.85vw;height:1.85vw;min-width:20px;min-height:20px}.opening-first{font-size:clamp(14px,1.2vw,20px);line-height:1.9;color:#c7b08d;text-align:center;letter-spacing:.04em;margin:16px 0 0}
.opening-footer{position:fixed;left:4.65%;bottom:5.8%;width:28.3%;max-width:482px}.opening-footer .language-picker{margin:0;padding:0;color:#d1bda0;border:0}.opening-footer .language-picker legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.opening-footer .language-picker>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9vw}.opening-footer .language-picker button{color:#d4bfa6;border:1px solid #ad95677a!important;min-height:3vw;height:auto;font-size:clamp(12px,1.43vw,24px)!important;font-family:Georgia,MathSong,'Songti SC',serif;border-radius:5px;background:transparent;padding:5px 4px!important;white-space:nowrap}.opening-footer .language-picker button[aria-pressed=true]{background:#e5ceb0!important;border-color:#d8be97!important;color:#4d354e!important}
.opening-history{position:absolute;right:3.6%;bottom:4.55%;display:flex;gap:13px;align-items:center;justify-content:center;border:0;background:transparent;color:#d9b664;font-size:clamp(15px,1.58vw,27px);letter-spacing:.04em;min-height:35px;padding:5px 0;z-index:3}.opening-history svg{width:1.7vw;min-width:20px}.opening-error{font-size:14px;line-height:1.8;color:#e8ba97;margin:12px 0 18px;letter-spacing:0}.opening-fallback{position:absolute;inset:0;overflow:hidden}.opening-fallback img{position:absolute;width:140%;height:100%;left:-17%;object-fit:cover;object-position:right}.opening-screen button:focus-visible{outline:2px solid #d8b978;outline-offset:4px}.opening-empty{font-size:14px;line-height:1.9;color:#8f6f5d;margin:0 0 10px}
.opening-shade{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:24px;background:#21172ecc;backdrop-filter:blur(8px)}.opening-dialog{position:relative;width:min(490px,100%);max-height:calc(100dvh - 40px);overflow:auto;background:#f2e7d6 url('./limestone.webp') center/100% 100% no-repeat;color:#4e344a;border:5px solid #806b8e;border-radius:15px;padding:35px 34px 28px;box-shadow:0 28px 85px #10051f55}.opening-close{position:absolute;right:12px;top:12px;background:none;border:0;color:#8b6c49;width:36px;height:36px;display:grid;place-items:center}.opening-dialog-mark{color:#ad864c;margin-bottom:16px}.opening-dialog h2{font:500 28px/1.5 MathSong,'Songti SC',serif;letter-spacing:1px;margin:0 0 15px}.opening-dialog>p{font-size:15px;line-height:1.95;color:#80615e;margin:0 0 23px}.opening-confirm-actions{display:flex;flex-direction:column;gap:9px}.opening-cancel{background:none;border:1px solid #b2915d66;color:#795c4e;padding:12px;min-height:46px;border-radius:7px;font-size:14px;letter-spacing:.7px}.opening-confirm-actions .opening-plate{min-height:62px;font-size:18px;letter-spacing:.7px}.opening-dialog .opening-error{color:#8e5149;font-size:13px}.opening-archives{display:flex;flex-direction:column;max-height:390px;overflow:auto}.opening-archive{display:flex;align-items:center;justify-content:space-between;gap:16px;background:none;border:0;border-top:1px solid #ae8d5d55;padding:18px 1px;text-align:left;color:#624848}.opening-archive>span{display:flex;flex-direction:column;gap:8px}.opening-archive small{font-size:11px;color:#a08362;font-family:Georgia,serif}.opening-archive strong{font-weight:400;font-size:15px;line-height:1.6}.opening-archive em{font-size:11px;font-style:normal;color:#8f6f5d}.opening-archive svg{flex:none;color:#aa8045}.opening-screen button:focus-visible{outline:2px solid #d8b978;outline-offset:4px}.opening-dialog button:focus-visible{outline-color:#9b7440}
@media(min-width:681px) and (max-height:620px){.opening-screen{min-height:440px}.opening-left{top:6.5%}.opening-screen h1{font-size:8.5vh;letter-spacing:-.1vw}.opening-local-name{font-size:4.8vh}.opening-tagline{font-size:2.5vh;margin-top:12px}.opening-entry{top:44.5%}.opening-chapter{font-size:2.8vh}.opening-level{font-size:3.4vh}.opening-last small{font-size:2.6vh;margin-top:3px}.opening-last{margin-bottom:2.6vh}.opening-primary{height:10vh;min-height:49px;font-size:5.2vh}.opening-new{font-size:3vh;margin-top:1vh;min-height:34px}.opening-footer{bottom:5%}.opening-footer .language-picker button{min-height:30px;font-size:2.4vh!important}.opening-history{font-size:2.8vh}}
@media(max-width:680px){.opening-screen{min-height:650px;overflow:auto}.opening-layout{position:relative;min-height:100%;padding-bottom:28px;display:flex;flex-direction:column}.opening-scene,.opening-fallback{inset:0 0 auto;height:44dvh;min-height:250px;max-height:400px}.opening-left{position:relative;inset:auto;z-index:2;width:100%;max-width:460px;margin:0 auto;padding:calc(clamp(250px,44dvh,400px) - 5px) 28px 0;text-align:center;pointer-events:auto}.opening-screen h1{font-size:52px;letter-spacing:-1.8px;line-height:1.1}.opening-local-name{font-size:27px;letter-spacing:4px;margin-top:10px}.opening-tagline{font-size:13px;line-height:1.8;margin:15px 0 24px;white-space:normal}.opening-entry{position:relative;inset:auto;width:100%;max-width:320px;margin:0 auto}.opening-last{text-align:left;gap:14px;padding-left:5px;margin-bottom:21px}.opening-bookmark{width:22px;height:36px;margin-top:4px}.opening-chapter{font-size:15px}.opening-level{font-size:19px;line-height:1.65}.opening-last small{font-size:13px;margin-top:6px}.opening-last small svg{width:16px}.opening-primary{height:67px;min-height:67px;font-size:32px;max-height:none;padding-inline:35px}.opening-new{font-size:17px;min-height:42px;margin-top:13px;gap:11px}.opening-new svg{width:20px;height:20px}.opening-footer{position:relative;inset:auto;width:100%;max-width:320px;margin:25px auto 0}.opening-footer .language-picker>div{gap:8px}.opening-footer .language-picker button{min-height:39px;font-size:15px!important;padding:6px 4px!important}.opening-first{font-size:13px}.opening-history{position:relative;inset:auto;align-self:center;margin-top:24px;font-size:14px;gap:8px;padding:4px 8px;min-height:33px}.opening-history svg{width:19px}.opening-shade{position:fixed;padding:16px}.opening-dialog{padding:31px 24px 24px;border-width:4px}.opening-dialog h2{font-size:25px}.opening-dialog>p{font-size:14px}.opening-confirm-actions .opening-plate{font-size:16px}.opening-archive strong{font-size:14px}}
:lang(en) .opening-local-name,:lang(ja) .opening-local-name,:lang(ko) .opening-local-name{font-size:clamp(23px,2.45vw,41px);letter-spacing:.05em}:lang(en) .opening-tagline{font-size:clamp(14px,1.28vw,21px);white-space:normal;max-width:450px}:lang(en) .opening-primary{font-size:clamp(25px,2.1vw,36px);letter-spacing:.02em}:lang(ko) .opening-primary{font-size:clamp(25px,2.35vw,40px);letter-spacing:.02em}
@media(max-width:680px){:lang(en) .opening-local-name,:lang(ja) .opening-local-name,:lang(ko) .opening-local-name{font-size:23px}:lang(en) .opening-tagline{font-size:13px}:lang(en) .opening-primary,:lang(ko) .opening-primary{font-size:27px}}
@media(min-width:681px){:lang(en) .opening-chapter{font-size:clamp(14px,1.3vw,22px)}:lang(en) .opening-level{font-size:clamp(18px,1.55vw,26px)}:lang(en) .opening-last small{font-size:clamp(13px,1.2vw,20px)}:lang(en) .opening-last{min-height:7.9vw}}
@media(max-width:680px){.opening-screen{background:#bda4ca url('./plum.webp') center/512px repeat;background-blend-mode:multiply}.opening-scene,.opening-fallback{height:36dvh;min-height:250px;max-height:330px}.opening-left{padding-top:calc(clamp(250px,36dvh,330px) - 5px)}.opening-new,.opening-history{min-height:44px}.opening-footer .language-picker button{min-height:44px}}
.opening-footer .language-picker button{min-height:44px}.opening-history{min-height:44px}

.journey-stage{position:fixed;inset:0}.opening-screen{z-index:2}.opening-utilities{position:absolute;right:3.6%;bottom:4.55%;z-index:3;display:flex;align-items:center;gap:17px}.opening-utilities .opening-history{position:static;margin:0}.opening-motion{display:grid;place-items:center;width:44px;height:44px;border:1px solid #c5a66a50;border-radius:50%;background:transparent;color:#cdb680;padding:0}.opening-motion:hover{border-color:#dcc18a}.opening-left,.opening-utilities{transition:opacity .28s ease}.is-departing .opening-left,.is-departing .opening-utilities{opacity:0;pointer-events:none}.opening-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:680px){.opening-utilities{position:relative;inset:auto;align-self:center;margin-top:19px;gap:12px}.opening-utilities .opening-history{min-height:44px}.opening-motion{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.opening-left,.opening-utilities{transition:none}.is-departing .opening-left,.is-departing .opening-utilities{transform:none}}
/* Long labels stay within the ivory plate at every locale and zoom level. */
.opening-primary{white-space:nowrap;letter-spacing:.02em;box-sizing:border-box;overflow:hidden}.fit-label{display:block;min-width:0;max-width:100%;white-space:nowrap;line-height:1.2}.opening-footer .settings-trigger{width:auto;border-radius:25px;padding:9px 16px;color:#dcc7a4;font-size:15px;letter-spacing:.03em}.opening-footer{width:auto}.opening-new{line-height:1.5;white-space:normal}.opening-new svg{flex:none}
html[data-script=latin] .opening-local-name{font-size:clamp(23px,2.45vw,41px);letter-spacing:.03em;max-width:500px}html[data-script=latin] .opening-tagline{font-size:clamp(14px,1.28vw,21px);white-space:normal;max-width:450px}html[data-script=latin] .opening-primary{font-size:clamp(24px,2.05vw,36px);letter-spacing:.015em}html[data-script=latin] .opening-chapter{font-size:clamp(14px,1.4vw,24px);letter-spacing:0}html[data-script=latin] .opening-level{font-size:clamp(17px,1.7vw,29px);letter-spacing:0}html[data-script=latin] .opening-new{font-size:clamp(15px,1.35vw,23px);letter-spacing:0}
@media(max-width:680px){.opening-footer{width:auto;align-self:center;margin-top:18px;display:flex;justify-content:center}html[data-script=latin] .opening-local-name{font-size:23px}html[data-script=latin] .opening-tagline{font-size:13px}html[data-script=latin] .opening-primary{font-size:27px}html[data-script=latin] .opening-chapter{font-size:14px}html[data-script=latin] .opening-level{font-size:19px}html[data-script=latin] .opening-new{font-size:16px}}

.opening-dialog .save-tools{margin-top:18px;padding-top:17px;color:#755b49}.opening-dialog .save-tools .settings-help{font-size:12px;line-height:1.8;color:#8b7463}.opening-dialog .save-tools-actions{grid-template-columns:1fr 1fr}.opening-dialog .save-tools-actions>button{min-height:43px;font-size:13px}.opening-dialog .save-tools-title{font-size:17px}.opening-dialog .save-tools h3{display:flex;gap:8px;align-items:center;font-size:17px;font-weight:500;margin:0 0 12px}.opening-dialog .opening-archives{margin-top:20px}

/* Clip the button artwork, leaving the focus outline and label independent. */
.opening-plate.opening-primary {
 position:relative;
 isolation:isolate;
 border-radius:999px;
 background-image:none;
 overflow:visible;
}
.opening-primary::before {
 content:'';
 position:absolute;
 inset:0;
 z-index:-1;
 pointer-events:none;
 background:url('./limestone.webp') center/100% 100% no-repeat;
 clip-path:inset(4% 1% round 999px);
}
.opening-plate.opening-primary:hover:not(:disabled) {filter:none}
@media(hover:hover) {
 .opening-primary:hover:not(:disabled)::before {filter:brightness(1.06) saturate(1.08)}
 .opening-new:hover:not(:disabled),
 .opening-history:hover:not(:disabled),
 .opening-motion:hover:not(:disabled) {color:#fff0c6}
 .opening-archive:hover,
 .opening-close:hover {background-color:#b98a4b19;color:#28695f}
}
.opening-primary:active:not(:disabled)::before {filter:brightness(.96)}
.opening-primary:disabled {cursor:default}

:root{font-family:MathSong,'Songti SC','STSong','Noto Serif CJK SC',serif;color:#f5e4bb;background:#35264f;font-synthesis:none;font-optical-sizing:auto}
*{box-sizing:border-box}body{margin:0;min-width:320px;-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid #ffe6a6;outline-offset:6px}button:disabled{cursor:default;opacity:.45}button{transition:background .2s,border-color .2s,opacity .2s,box-shadow .2s}button:hover:not(:disabled){background-color:#fce6b50d}button:active:not(:disabled){background-color:#fce6b51a}.game-shell{height:100dvh;min-height:420px;overflow:hidden;position:relative;isolation:isolate}.world{position:absolute;inset:0;touch-action:none}.world canvas{display:block;width:100%;height:100%;touch-action:none}.world.dragging canvas{cursor:grabbing!important}.topbar{position:absolute;top:32px;left:36px;right:32px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:5}.topbar>*{pointer-events:auto}.level-heading{display:flex;align-items:center;gap:27px}.outline-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:47px;padding:5px 18px;background:transparent;border:1px solid #ddc79a9c;border-radius:18px;font-size:24px;line-height:1.3;white-space:nowrap}.outline-button:hover{border-color:#ffe2a1}.menu-button{gap:13px}.header-divider{height:34px;width:1px;background:#d6c19899}h1{font-size:27px;font-weight:600;letter-spacing:2px;line-height:1.4;margin:0}.title-dot{display:inline-block;margin:0 13px}.crank-target{position:absolute;top:0;left:0;width:80px;height:80px;border:none;border-radius:50%;background:transparent!important;touch-action:none;cursor:grab;z-index:3}.crank-target:active{cursor:grabbing}.crank-target:focus-visible{outline:1px solid #f1ce83;outline-offset:1px}.crank-target.hint-pulse{box-shadow:0 0 0 2px #e8c67988;animation:hintpulse 1.8s ease-in-out infinite}.rotation-label{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;gap:5px;color:#f7d68d;pointer-events:none;white-space:nowrap;z-index:2}.rotation-label>span{font-size:24px;letter-spacing:2px;display:flex;gap:4px;align-items:center}.rotation-label button{pointer-events:auto;border:none;padding:3px 8px;background:transparent;display:flex;align-items:center;justify-content:center;border-radius:14px;min-width:48px;min-height:44px}.rotation-label.is-aligned{color:#f1dfa8}.game-footer{position:absolute;bottom:60px;left:20px;right:20px;display:flex;align-items:center;flex-direction:column;gap:20px;pointer-events:none;z-index:4}.instruction-row{display:flex;align-items:center;justify-content:center;gap:30px;min-height:47px;pointer-events:auto}.instruction-row p{font-size:26px;font-weight:600;letter-spacing:2px;margin:0;line-height:1.7;text-align:center}.hint-button{padding-inline:16px;font-size:24px;border-color:#f2d086}.hint-button.active{background:#e5c37c15}.go-button{border-color:#f2d086;background:#e5c37c12;min-width:110px}.hint-bubble{display:flex;align-items:center;gap:12px;max-width:calc(100vw - 40px);padding:17px 20px;border:1px solid #c9b49055;border-radius:17px;background:#302344f5;box-shadow:0 12px 36px #1d112533;pointer-events:auto;font-family:MathSong,'Songti SC',serif;animation:appear .25s ease-out}.hint-bubble p{font-size:17px;line-height:1.7;margin:0}.hint-bubble button{display:flex;border:0;background:transparent;padding:5px;margin-left:8px;border-radius:6px}.hint-bubble strong{font-weight:600;color:#ffdb8d}.modal-backdrop{position:absolute;inset:0;background:#24193480;backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;z-index:10;animation:appear .3s ease-out}.modal{width:min(480px,calc(100vw - 40px));position:relative;padding:46px 38px;background:#382b50;border:1px solid #b7a2c14d;border-radius:26px;box-shadow:0 28px 100px #190f2f55}.close-button{position:absolute;right:20px;top:20px;border:0;background:transparent;padding:6px;display:flex;border-radius:8px}.eyebrow{font-size:13px;letter-spacing:4px;color:#c9b5d3;margin:0 0 16px}h2{font-size:30px;font-weight:500;line-height:1.5;margin:0;letter-spacing:1px}.modal-description{font-size:16px;color:#d2bfda;line-height:1.9;margin:15px 0 28px}.level-row{display:flex;align-items:center;gap:19px;text-align:left;width:100%;padding:20px 0;border:none;border-block:1px solid #c3a8d33b;background:none}.level-number{font-size:30px;color:#b59bc8}.level-row>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:6px}.level-row strong{font-weight:500;font-size:19px}.level-row small{color:#c0a9cf;font-size:13px}.coming-next{display:flex;gap:9px;align-items:center;font-size:13px;color:#b69cc4;margin:23px 0 34px}.resume{min-height:43px;font-size:16px;border-radius:13px;width:100%;gap:12px}.success{width:min(560px,calc(100vw - 40px));text-align:center;padding:44px 32px}.win-check{color:#e5c37b;margin:6px auto 20px;display:block}.success .modal-description{font-size:17px;line-height:2}.success .modal-description strong{font-weight:500;color:#f3d491}.win-actions{display:flex;align-items:center;justify-content:center;gap:26px;margin-top:30px}.solid-button{border:1px solid #f2d79d;background:#e9ce98;color:#392b4d;min-height:45px;display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:14px;padding:10px 22px;font-size:16px}.solid-button:hover:not(:disabled){background:#f3deaf}.text-button{display:inline-flex;align-items:center;gap:8px;font-size:15px;background:transparent;border:none;padding:10px;border-radius:10px}.error-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;background:#35264f}.error-state p{color:#c9b5d3;font-size:17px}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes hintpulse{0%,100%{box-shadow:0 0 0 1px #e8c67966}50%{box-shadow:0 0 0 10px #e8c67911}}@media(max-width:850px){.topbar{top:24px;left:24px;right:24px}.level-heading{gap:18px}.outline-button{font-size:18px;gap:8px;padding:5px 12px;min-height:43px;border-radius:15px}.outline-button svg{width:23px}.header-divider{height:28px}h1{font-size:21px;letter-spacing:1px}.title-dot{margin:0 8px}.instruction-row p{font-size:20px;letter-spacing:1px}.game-footer{bottom:40px}.instruction-row{gap:20px}.rotation-label>span{font-size:20px}}@media(max-width:540px){.game-shell{min-height:400px}.topbar{top:22px;left:17px;right:17px;align-items:flex-start}.level-heading{gap:12px;align-items:flex-start}.menu-button{padding:7px 9px}.menu-button span{display:none}.header-divider{display:none}h1{display:flex;flex-direction:column;font-size:17px;line-height:1.6;font-weight:500;letter-spacing:1px}.title-dot{display:none}.topbar>.outline-button{font-size:16px;min-height:39px;padding:6px 10px}.topbar>.outline-button svg{width:20px}.game-footer{bottom:32px;left:22px;right:22px;gap:14px}.instruction-row{flex-wrap:wrap;gap:14px}.instruction-row p{font-size:17px;line-height:1.7;letter-spacing:1px}.instruction-row .outline-button{font-size:16px;min-height:38px;padding:5px 13px}.rotation-label>span{font-size:19px}.rotation-label svg{width:28px}.rotation-label button{min-width:40px;padding:3px}.hint-bubble{padding:13px;gap:8px}.hint-bubble p{font-size:14px}.hint-bubble>svg{min-width:20px}.hint-bubble button{margin-left:0}.modal{padding:40px 26px}.success h2{font-size:25px}.success .modal-description{font-size:15px}.win-actions{gap:10px;flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* The user's teaching-first direction: the scene is a live demonstration. */
.game-footer{bottom:31px;gap:12px}.lesson-copy{text-align:center;max-width:760px;pointer-events:auto}.lesson-phase{font-size:12px;letter-spacing:3px;color:#bea6cc;margin:0 0 8px}.lesson-copy h2{font-size:25px;font-weight:500;line-height:1.6;letter-spacing:1.5px}.lesson-detail{font-size:15px;line-height:1.9;color:#cfbcda;margin:6px 0 0;letter-spacing:.5px}.lesson-actions{pointer-events:auto;display:flex;align-items:center;gap:25px}.lesson-actions .outline-button{font-size:16px;min-height:39px;border-radius:13px;padding:6px 14px;gap:8px}.principle-button{font-size:13px;display:flex;gap:9px;align-items:center;border:none;background:none;padding:8px;border-radius:8px;color:#cfbcda}.principle-modal{width:min(560px,calc(100vw - 40px))}.principle-modal h2{font-size:26px}.principle-modal .modal-description{font-size:15px;margin-bottom:20px}.principle-list{list-style-position:inside;padding:0;margin:0 0 27px;counter-reset:principle}.principle-list li{padding:12px 0;border-top:1px solid #c3a8d32b;font-size:16px;font-weight:500}.principle-list li p{font-weight:400;font-size:14px;color:#c5afcf;line-height:1.8;margin:6px 0 0;padding-left:20px}.principle-modal .solid-button{width:100%}.knowledge-summary{text-align:left;border-top:1px solid #c3a8d32b;border-bottom:1px solid #c3a8d32b;padding:5px 0}.knowledge-summary p{display:grid;grid-template-columns:82px 1fr;gap:10px;margin:15px 0;font-size:15px;line-height:1.8}.knowledge-summary span{color:#bea6cc}.knowledge-summary strong{font-weight:400;color:#f1ddb4}.hint-bubble{padding:12px 17px}.hint-bubble p{font-size:15px}
@media(max-width:850px){.lesson-copy{max-width:660px}.lesson-copy h2{font-size:22px}.lesson-detail{font-size:14px}.game-footer{bottom:27px}.lesson-phase{font-size:11px}}
@media(max-width:540px){.game-footer{bottom:22px;gap:12px}.lesson-copy h2{font-size:19px;letter-spacing:.5px}.lesson-phase{font-size:10px;margin-bottom:6px}.lesson-detail{font-size:13px;max-width:330px;margin:5px auto 0}.lesson-actions{gap:10px;flex-wrap:wrap;justify-content:center}.lesson-actions .outline-button{font-size:14px;min-height:37px}.principle-button{font-size:12px;gap:5px}.principle-modal{padding:35px 24px;max-height:calc(100dvh - 32px);overflow:auto}.principle-modal h2{font-size:22px}.principle-modal .modal-description{font-size:14px}.knowledge-summary p{font-size:14px;grid-template-columns:70px 1fr}.success .modal-description{margin-bottom:18px}}
.save-loading{min-height:100dvh;display:grid;place-items:center;background:#35264f;color:#ead8bd;font-family:MathSong,serif;font-size:17px;letter-spacing:1px}
/* Original CSS replaces all excluded upstream image frames. */
.paper-art,.teaching-paper-art{background:#f1e2c9 url('./limestone.webp') center/420px;border:2px solid #bd9d71;border-radius:18px;box-shadow:inset 18px 0 25px #a8874f22,0 15px 45px #1b102f35}
.journal-frame{background:linear-gradient(90deg,#e8d8bb 0%,#f5ead4 47%,#c9b58f 49.8%,#ecdec5 51%,#f6ead4 100%);border:6px solid #796071;border-radius:18px;box-shadow:0 24px 70px #190d2b60,inset 0 0 0 2px #d3b06e}
.compass-ring{position:absolute;inset:5px;display:block;border:3px double #d4b982;border-radius:50%;background:radial-gradient(circle,#392741 52%,#7d6176 54%,#38253f 60%);box-shadow:0 4px 15px #20102a55}
.compass-ring:before,.compass-ring:after{content:'';position:absolute;left:50%;top:8%;height:84%;width:1px;background:#d7b36a44;transform:rotate(45deg)}.compass-ring:after{transform:rotate(-45deg)}
.opening-plate,.journal-cta,.paper-primary,.paper-book,.settings-footer>button,.notebook-action.paper-primary,.teaching-continue{background-image:linear-gradient(135deg,#775369,#4b354f)!important;border:1px solid #bb9960!important;border-radius:12px!important;box-shadow:inset 0 0 0 3px #d0b27822;color:#f7e2b9!important}
.opening-primary{background-image:linear-gradient(135deg,#f3e5c8,#cfb797)!important;color:#4b3448!important;box-shadow:inset 0 0 0 3px #a98b5d33,0 8px 24px #1d102e40}
.opening-title h1{letter-spacing:.055em}.opening-footer a{color:#dcc99b;font-size:12px}.opening-footer{gap:12px}.paper-content,.journal-pages{scrollbar-color:#ad9568 transparent}
