*{box-sizing:border-box}[hidden]{display:none!important}
html.rd,html.rd body{height:100%;margin:0;overflow:hidden;background:#14183a}
.rd body{display:flex;flex-direction:column;font:700 18px/1.3 "Alegreya Sans","Trebuchet MS",sans-serif;color:#191632}
.bar{display:flex;align-items:center;gap:8px;padding:8px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left));background:#0b0d22;color:#fff3c9;flex:none}
.bar .t{flex:1;min-width:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar a,.bar button{font:inherit;min-height:48px;min-width:48px;padding:8px 14px;background:#24309a;color:#fff3c9;border:2px solid #5a6be0;border-radius:10px;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.bar button:disabled{opacity:.3;cursor:default}.bar .nx{background:#ffc83d;color:#191632;border-color:#ffc83d}.bar .big{min-width:112px}
:focus-visible{outline:4px solid #fff;outline-offset:2px}
.foot{padding-bottom:max(8px,env(safe-area-inset-bottom))}.foot input{flex:1;min-width:40px;accent-color:#ffc83d;height:40px}.foot .c{min-width:56px;text-align:center}
#st{flex:1;min-height:0;display:grid;touch-action:pan-y pinch-zoom}
.s{display:none;min-height:0;min-width:0;flex-direction:column;align-items:center;justify-content:safe center;overflow:auto;padding:10px}.s.on{display:flex;animation:pg .22s}@keyframes pg{from{opacity:0;transform:translateX(var(--d,24px))}}
.f{display:flex;flex-direction:column;max-height:100%;max-width:100%;border:4px solid #0b0d22;background:#ffe9a8;min-height:0}
.f.b2{background:#cfe3ff}.pic{position:relative;flex:none;display:flex;background:#0b0d22}.pic img{display:block;margin:auto;max-width:100%;max-height:calc(100dvh - 250px);object-fit:contain}
.cov .pic img{max-height:calc(100dvh - 160px)}.cov h1{position:absolute;top:2%;left:4%;right:4%;margin:0;text-align:center;text-wrap:balance;font:900 clamp(26px,5.4dvh,60px)/1 "Alegreya Sans",sans-serif;color:#ffe14d;-webkit-text-stroke:.12em #191632;paint-order:stroke fill}
.cap{margin:0;padding:12px 16px;border-top:4px solid #0b0d22;font-size:clamp(18px,2.5dvh,24px);width:0;min-width:100%;text-wrap:pretty}
.bub{position:absolute;margin:0;max-width:46%;background:#fff;border:3px solid #191632;border-radius:22px;padding:6px 16px}.tl{top:12px;left:12px}.tr{top:12px;right:12px}.bl{bottom:12px;left:12px}.br{bottom:12px;right:12px}
.card{background:#fbf1da;border:4px solid #0b0d22;padding:22px;max-width:640px;max-height:100%;overflow:auto}.card h2{margin:0 0 10px;color:#24309a;font-size:28px;font-weight:900}.card li{margin:10px 0}.card img{max-height:30dvh;display:block;margin:auto}
.acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.acts a{background:#24309a;color:#fff3c9;padding:12px 16px;border-radius:10px;text-decoration:none;min-height:48px}.acts a.p{background:#ffc83d;color:#191632}
#toc{border:0;padding:0;margin:auto;width:min(960px,100%);max-height:100dvh;background:#fbf1da}#toc::backdrop{background:#0b0d22cc}#toc .bar{position:sticky;top:0;z-index:1}
.th{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;padding:14px}.th h3{grid-column:1/-1;margin:8px 0 0;color:#24309a;font-size:24px}.th button{font:inherit;font-size:15px;line-height:1.2;text-align:left;padding:0 0 8px;border:3px solid #191632;background:#fff;cursor:pointer}.th button.cur{background:#ffc83d}.th img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;margin-bottom:6px}.th span{padding:0 8px;display:block}
@media(max-width:600px){.bar .lb{display:none}.bar .big{min-width:64px}.bub{position:static;max-width:none;border-width:0 0 3px;border-radius:0}.pic{flex-direction:column}.pic img{max-height:56dvh}.foot .nx{min-width:120px}}
@media(max-height:480px){.bar{padding-block:2px}.s{padding:4px}.pic img,.cov .pic img{max-height:calc(100dvh - 124px)}.f:not(.cov){flex-direction:row;align-items:stretch}.f:not(.cov) .pic{flex:0 1 auto;min-width:0}.cap{flex:0 0 250px;width:250px;min-width:0;border-top:0;border-left:4px solid #0b0d22;overflow:auto;padding:8px 12px;font-size:17px;align-self:stretch}.bub{font-size:15px;padding:3px 10px}}
@media(prefers-reduced-motion:reduce){.s.on{animation:none}}
