:root{color-scheme:light;--ink:#243b32;--muted:#596457;--rust:#96452f;--border:#c8c9b8;--paper:#f8f6ee;--serif:"Baskervville","Songti SC","STSong","Noto Serif CJK SC","Noto Serif SC",SimSun,serif;--sans:"Instrument Sans","PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.6 var(--sans);-webkit-font-smoothing:antialiased}button,a{color:inherit;font:inherit}button{border:0;background:none;cursor:pointer}a{text-decoration:none}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid var(--rust);outline-offset:4px}button svg,a svg{width:1.15rem;height:1.15rem;flex:none;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.55}button{transition:background .18s,color .18s,border-color .18s}button:disabled{cursor:default}h1,h2,p{margin:0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.masthead{border-bottom:1px solid var(--border)}.mast-inner,.page{max-width:1544px;width:90.8%;margin:auto}.mast-inner{display:flex;align-items:center;justify-content:space-between;min-height:80px;gap:1rem}.brand,.brand-side,nav,nav>a,nav>button{display:flex;align-items:center}.brand{gap:.8rem}.brand img{width:39px;height:39px}.brand-name{font:bold 2rem/1.2 var(--serif);letter-spacing:.07em}.brand-side{font:1.05rem var(--serif);color:var(--muted);border-left:1px solid var(--border);margin-left:.2rem;padding-left:1rem;letter-spacing:.12em}nav{align-self:stretch;gap:2.2rem}nav>a,nav>button{gap:.48rem;position:relative;font-size:.92rem;letter-spacing:.025em;padding:.4rem .15rem;align-self:stretch}nav>a:after{content:"";position:absolute;bottom:-1px;height:3px;background:var(--rust);left:0;right:0}nav>a{color:var(--rust)}nav>button:hover,.read-note:hover{color:var(--rust)}#saved-count{min-width:1.3rem;padding:0 .26rem;text-align:center;border:1px solid #d9d9cd;border-radius:10px;font:.8rem/1.25rem Georgia,serif}
.page{padding-top:24px;padding-bottom:32px}.folio{border:1px solid #aaa998}.print{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:2.85;background:#eadfc9}.print canvas{display:block;width:100%;height:100%;position:absolute;inset:0}.cartouche{position:absolute;pointer-events:none;left:4.5%;top:10%;max-width:54%}.concept-line{display:flex;align-items:center;gap:.65rem;color:#713b2c;font-size:.85rem;font-weight:600;letter-spacing:.19em}.ink-rule{width:22px;border-top:2px solid currentColor}h1{font:600 clamp(3.2rem,5.2vw,6rem)/1.16 var(--serif);letter-spacing:.035em;margin:.65rem 0 .07rem;color:#1e342a}.cartouche #plate-title{font:italic clamp(1rem,1.65vw,1.65rem)/1.35 "Baskervville",Baskerville,Georgia,serif;letter-spacing:.015em}.cartouche #scene-subtitle{margin-top:clamp(.6rem,1.65vw,1.8rem);font:500 clamp(1rem,1.35vw,1.35rem)/1.6 var(--serif)}
#pause{position:absolute;right:20px;top:18px;display:flex;align-items:center;gap:.36rem;padding:.28rem .65rem;background:#f7f2e3da;border:1px solid #9a9f8c;border-radius:20px;font-size:.83rem}#pause:hover{background:#fff8e9}#pause svg{width:.88rem;height:.88rem}#pause .play-icon,#pause[aria-pressed=true] .pause-icon{display:none}#pause[aria-pressed=true] .play-icon{display:block}
.control-strip{border-top:1px solid #a9ac9a;padding:10px 2%;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#eeeee1}.play-info,.controls,.state-label,#judgments{display:flex;align-items:center;gap:12px}.state-label{font-size:.89rem;font-weight:600;gap:.5rem;white-space:nowrap}.state-label i{display:block;width:7px;height:7px;background:#5f7050;border-radius:50%}#hint{font-size:.875rem;color:#4d5a4e;border-left:1px solid #b4bbab;padding-left:12px}.controls{flex:none;gap:.5rem}.action-button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;background:#30483a;color:#fffcf1;font-weight:500;border-radius:3px;font-size:.9rem;min-height:36px;padding:.28rem 1rem}.action-button:hover{background:#435e4e}.action-button svg{width:.95rem;height:.95rem}#judgments{gap:0}#judgments button{font-size:.84rem;border:1px solid #b5b8a6;padding:.3rem .55rem}#judgments button+button{border-left:0}#judgments button[aria-pressed=true]{color:var(--rust);background:#f6e4d4}
.margin-note{display:grid;grid-template-columns:minmax(108px,13%) 1fr auto;align-items:center;gap:24px;padding:28px 0 30px;border-bottom:1px solid var(--border)}.margin-label{border-right:1px solid var(--border);align-self:stretch;display:flex;flex-direction:column;justify-content:center}.label-dash{width:18px;border-top:2px solid var(--rust);margin-bottom:5px}.margin-label h2{font:600 1.12rem/1.45 var(--serif);letter-spacing:.09em}.margin-label>span:last-child{color:var(--muted);font:italic .88rem/1.35 Georgia,serif}.quote-block>p{font:600 clamp(1.22rem,1.75vw,1.85rem)/1.65 var(--serif);text-wrap:pretty}.credit{display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem;color:var(--muted);font-size:.82rem;margin-top:.35rem}.credit b{font-size:.75rem;color:#a8a99b;font-weight:400}.note-actions{display:flex;flex-direction:column;align-items:center;gap:.22rem}#save{border:1px solid #b5b5a5;display:flex;align-items:center;gap:.45rem;padding:.32rem .85rem;min-height:38px;font-size:.91rem;border-radius:3px;white-space:nowrap}#save:hover,#save[aria-pressed=true]{background:#f0e6d9;border-color:#bc8c73;color:var(--rust)}.read-note{color:var(--muted);font-size:.86rem;text-decoration:underline;text-underline-offset:4px;padding:.28rem .8rem}.gallery{margin-top:24px}.gallery-head{display:flex;align-items:center;gap:1rem;margin-bottom:14px}.gallery-head h2{font:600 1.36rem var(--serif);letter-spacing:.06em}.gallery-head span{font-size:.8rem;color:var(--muted)}.hairline{height:1px;flex:1;background:var(--border)}.scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.scene{display:flex;padding:7px;align-items:center;gap:16px;border:1px solid var(--border);text-align:left;background:#f3f2e9}.scene:hover{background:#eeeee1;border-color:#8b9988}.scene[aria-pressed=true]{border-color:#667662;background:#eaece0}.mini{width:clamp(76px,8.5vw,140px);height:68px;flex:none;background:#e3dfce center/cover no-repeat;border:1px solid #223b2c20}.mini-stone{background-image:url('stone.webp')}.mini-ship{background-image:url('ship.webp')}.mini-dream{background-image:url('dream.webp')}.scene-copy{display:flex;flex-direction:column;gap:2px}.scene-copy strong{font:600 clamp(1.02rem,1.38vw,1.35rem)/1.5 var(--serif)}.scene-copy small{font-size:.82rem;color:var(--muted)}.scene i{margin-left:auto;align-self:flex-start;width:7px;height:7px;margin-right:2px;margin-top:2px}.scene[aria-pressed=true] i{background:var(--rust);border-radius:50%}
dialog{width:min(92vw,580px);padding:26px 30px 32px;border:1px solid #9eaa97;background:var(--paper);color:var(--ink);max-height:85dvh}dialog::backdrop{background:#18281fd0}.dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:12px;gap:1rem}.dialog-head h2{font:600 1.6rem var(--serif)}#close-dialog{display:grid;place-items:center;min-width:36px;min-height:36px;border:1px solid var(--border);border-radius:50%}#dialog-body p{margin:1rem 0}.note-lead{font:600 1.4rem/1.6 var(--serif)}.note-source,.saved-meta{font-size:.86rem;color:var(--muted)}.source-link{color:var(--rust);text-decoration:underline;text-underline-offset:4px}.saved-list{padding:0;margin:0;list-style:none}.saved-row{padding:12px 0;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px}.saved-open{display:grid;gap:.3rem;flex:1;text-align:left;padding:4px 0;line-height:1.6}.saved-remove{color:var(--rust);font-size:.86rem}.empty-notice{color:var(--muted)}.saved-open:hover,.saved-remove:hover{color:var(--rust);text-decoration:underline}
@media(max-width:1000px){.print{aspect-ratio:2.45}.mast-inner,.page{width:93%}.scene{gap:8px}.control-strip{flex-wrap:wrap}.margin-note{gap:16px}}
@media(max-width:680px){.mast-inner,.page{width:calc(100% - 30px)}.mast-inner{min-height:62px}.brand{gap:7px}.brand img{width:31px;height:31px}.brand-name{font-size:1.55rem}.brand-side{font-size:.83rem;margin-left:1px;padding-left:8px;letter-spacing:.04em}nav{gap:12px}nav>a,nav>button{font-size:.84rem;gap:4px}nav svg{width:16px;height:16px}#saved-count{min-width:1.05rem;font-size:.73rem;line-height:1.05rem}.page{padding-top:14px}.print{aspect-ratio:1.03}.cartouche{top:7%;left:6%;max-width:86%}.concept-line{font-size:.75rem}.ink-rule{width:18px}h1{font-size:clamp(2.65rem,10vw,4.2rem);margin:.4rem 0 .06rem}.cartouche #plate-title{font-size:1rem}.cartouche #scene-subtitle{margin-top:.6rem;font-size:1rem}#pause{top:12px;right:10px;font-size:.75rem;padding:.16rem .45rem}.control-strip{padding:10px 12px;gap:10px}.play-info{flex:1;min-width:120px;align-items:flex-start;flex-direction:column;gap:1px}#hint{padding:0;border:0;font-size:.8rem}.state-label{font-size:.83rem}.controls{gap:6px;flex-wrap:wrap}.action-button{font-size:.85rem;padding:.3rem .7rem}.margin-note{grid-template-columns:1fr auto;gap:9px;padding:18px 0}.margin-label{grid-column:1;border:0;flex-direction:row;align-items:center;justify-content:flex-start;gap:7px}.label-dash{margin:0;width:14px}.margin-label h2{font-size:.94rem}.margin-label>span:last-child{font-size:.8rem}.quote-block{grid-column:1/-1;grid-row:2}.quote-block>p{font-size:1.2rem;line-height:1.55}.credit{font-size:.76rem}.note-actions{grid-column:2;grid-row:1;flex-direction:row-reverse;gap:6px}#save{min-height:34px;font-size:.78rem;padding:.2rem .46rem}#save svg{width:.86rem;height:.86rem}.read-note{font-size:.78rem;padding:.3rem}.gallery{margin-top:18px}.gallery-head{margin-bottom:10px}.gallery-head h2{font-size:1.13rem}.scenes{gap:8px}.scene{position:relative;flex-direction:column;align-items:flex-start;padding:4px;gap:4px}.mini{width:100%;height:auto;aspect-ratio:1.8}.scene-copy{padding:0 3px 4px;gap:0}.scene-copy strong{font-size:1rem}.scene-copy small{font-size:.75rem}.scene i{position:absolute;top:6px;right:6px;box-shadow:0 0 0 2px var(--paper)}.scene:not([aria-pressed=true]) i{display:none}dialog{padding:20px}}
@media(max-width:370px){nav>a{display:none}.brand-side{font-size:.76rem}.scene-copy strong{font-size:.89rem}.note-actions{gap:2px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
.print canvas{cursor:pointer}.print canvas:focus-visible{outline:3px solid var(--rust);outline-offset:-4px}
