*{box-sizing:border-box}html{background:#263e34}body{margin:0;color:#fbf2df;background:radial-gradient(ellipse at 50% 35%,#4a6656,#263e34 75%);font:15px/1.4 system-ui,sans-serif;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}a,button{color:inherit;font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.42;cursor:default}a:focus-visible,button:focus-visible,summary:focus-visible,#stage:focus-visible{outline:3px solid #f1ce88;outline-offset:-3px}.reader-header{flex:none;display:flex;align-items:center;gap:9px;padding:8px max(12px,env(safe-area-inset-left));background:#182f27;position:relative;min-height:60px}.reader-header:before{content:'';position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(to bottom,#c63b42 0 33.333%,#34568e 33.333% 66.667%,#fff 66.667%)}#back{text-decoration:none;min-height:44px;display:flex;align-items:center;font-size:.85rem;font-weight:650;white-space:nowrap}h1{font:600 clamp(.85rem,2vw,1.25rem)/1.2 Georgia,serif;text-align:center;flex:1;margin:0;min-width:0;overflow-wrap:anywhere}.reader-tools{display:flex;gap:4px}#full,#zoomIn,#zoomOut{width:44px;height:44px;border:1px solid #ffffff36;background:#ffffff0b;border-radius:8px;font-size:1.4rem;flex-shrink:0}#stage{flex:1;min-height:0;overflow:auto;display:flex;padding:12px;overscroll-behavior:contain;scrollbar-color:#b9a67c #314e40;touch-action:pan-x pan-y pinch-zoom}#sheet{display:flex;align-items:center;justify-content:center;position:relative;flex:none;margin:auto;isolation:isolate;box-shadow:0 12px 30px #10241b80;border-radius:3px;animation:open .22s ease-out}#sheet img{display:block;width:auto;height:100%;max-width:none;object-fit:contain;user-select:none;-webkit-user-drag:none;border-radius:1px}#sheet.pair:after,#sheet.wide:after{content:'';position:absolute;inset:0 auto 0 50%;width:8px;transform:translateX(-50%);background:linear-gradient(to right,transparent,#59472817,transparent);pointer-events:none}footer{flex:none;display:flex;align-items:center;justify-content:center;gap:20px;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:#182f27;border-top:1px solid #5b7362}footer button{min-width:56px;min-height:48px;font:2rem/1 Georgia,serif;border:1px solid #dfc389;border-radius:10px;background:#f9edce;color:#263c30}.read-status{min-width:0;width:min(270px,52vw);text-align:center;font-size:.85rem}.progress{height:4px;background:#ffffff25;margin-top:8px;border-radius:6px;overflow:hidden}.progress span{display:block;height:100%;background:#dfb66e;transition:width .15s}.reader-tip{flex:none;text-align:center;font-size:.75rem;color:#e6d9bb;background:#182f27;margin:0;padding:0 12px 5px}#text-access{flex:none;max-height:42dvh;overflow:auto;background:#182f27;font-size:.83rem;text-align:center;padding:0 12px 5px}#text-access summary{cursor:pointer;padding:5px;min-height:27px}#transcript{max-width:780px;text-align:left;white-space:pre-wrap;background:#f8efd9;color:#223a30;margin:6px auto;padding:15px;border-radius:8px;line-height:1.65}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes open{from{opacity:.72;transform:perspective(900px) rotateY(-2deg)}to{opacity:1;transform:none}}@media(max-width:600px) and (orientation:portrait){.reader-header{display:grid;grid-template-columns:auto 1fr auto;gap:4px 8px;padding:5px 9px 7px}.reader-header h1{grid-row:2;grid-column:1/-1;font-size:.9rem}.reader-tools{justify-content:end}#back{font-size:.78rem}#stage{padding:8px 5px}.reader-tip{font-size:.7rem}footer{gap:12px}}@media(max-height:500px) and (orientation:landscape){.reader-header{min-height:48px;padding:3px 12px}#stage{padding:4px 8px}footer{padding:3px 10px}footer button{min-height:40px}#text-access:not([open]),.reader-tip{display:none}}@media(prefers-reduced-motion:reduce){#sheet{animation:none}.progress span{transition:none}}

#readerLanguage{color:#fbf2df;background:#254437;border:1px solid #ffffff36;border-radius:8px;min-height:44px;min-width:52px;font:650 .78rem system-ui;cursor:pointer}#readerLanguage:focus-visible{outline:2px solid #f1ce88} @media(max-width:350px){.reader-header{gap:4px;padding-inline:5px}.reader-tools{gap:2px}#readerLanguage{min-width:44px;max-width:48px}#zoomIn,#zoomOut,#full{width:39px}}