body{background:#f6efeb}
.r-wrap{max-width:1320px;margin:0 auto;padding:14px 24px 16px}
.r-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin-bottom:12px}
.r-back{justify-self:start;font-size:14px;color:var(--muted);text-decoration:none;display:inline-flex;align-items:center;gap:4px}
.r-back:hover{color:var(--forest)}
.r-head{text-align:center;min-width:0}
.r-head .eb{font-size:12px;font-weight:600;letter-spacing:.12em;color:var(--forest)}
.r-head h1{font-size:clamp(15px,1.6vw,19px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#reader{position:relative;background:#1f1716;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;height:calc(100vh - 72px - 96px);height:calc(100dvh - 72px - 96px);min-height:420px}
#reader:fullscreen{border-radius:0;height:100vh}
#reader.pseudo-fs{position:fixed;inset:0;z-index:9999;border-radius:0;height:100vh;height:100dvh}
.r-stage{position:relative;flex:1 1 auto;min-height:0;padding:20px 64px;display:flex;align-items:center;justify-content:center;overflow:hidden;--z:1}
.r-spread{height:100%;width:100%;display:flex;align-items:center;justify-content:center}
.r-spread img{width:auto;height:auto;max-height:100%;max-width:100%;background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.r-spread.two img{max-width:50%}
.r-spread.two img.l{border-radius:2px 0 0 2px}
.r-spread.two img.r{border-radius:0 2px 2px 0}
.r-spread.in-next{animation:rin-n .35s cubic-bezier(.22,.61,.36,1)}
.r-spread.in-prev{animation:rin-p .35s cubic-bezier(.22,.61,.36,1)}
@keyframes rin-n{from{opacity:.2;transform:translateX(40px)}to{opacity:1;transform:none}}
@keyframes rin-p{from{opacity:.2;transform:translateX(-40px)}to{opacity:1;transform:none}}
.r-stage.zoomed{overflow:auto;display:block;padding:16px}
.r-stage.zoomed .r-spread{height:calc(100% * var(--z));width:max-content;min-width:100%;animation:none}
.r-stage.zoomed .r-spread.two img{max-width:none}
.r-stage.zoomed .r-spread img{height:100%;max-height:none;max-width:none}
.r-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.r-arrow:hover{background:rgba(255,255,255,.22)}
.r-arrow:disabled{opacity:0;pointer-events:none}
.r-arrow.p{left:12px}.r-arrow.n{right:12px}
.r-stage.zoomed ~ .r-arrow,.zoomed .r-arrow{display:none}
.r-bar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#171110;color:#efe4df}
.r-bar .grp{display:flex;align-items:center;gap:4px}
.r-bar button{width:40px;height:40px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center}
.r-bar button:hover{background:rgba(255,255,255,.1)}
.r-bar button:disabled{opacity:.35;cursor:default;background:transparent}
.r-bar button[aria-pressed="true"]{background:rgba(255,255,255,.16)}
.r-ind{min-width:72px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}
.r-picker{position:absolute;inset:0 0 60px;z-index:5;background:rgba(23,17,16,.97);display:flex;flex-direction:column}
.r-picker[hidden]{display:none}
.r-picker-h{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;color:#efe4df;font-size:14px}
.r-picker-h button{width:40px;height:40px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer}
.r-grid{flex:1;overflow:auto;padding:0 16px 16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:14px;align-content:start}
.r-grid button{background:none;border:2px solid transparent;border-radius:8px;padding:0;cursor:pointer;color:#b8a7a1;font-size:12px;display:flex;flex-direction:column;align-items:center;gap:4px;font-family:inherit}
.r-grid button img{width:100%;aspect-ratio:1414/1999;object-fit:cover;border-radius:5px;opacity:.75;background:#2a201e}
.r-grid button.on{border-color:#e7a99a;color:#fff}
.r-grid button.on img,.r-grid button:hover img{opacity:1}
.r-hint{text-align:center;font-size:13px;color:var(--muted);margin-top:10px}
@media (max-width:799px){
  .r-wrap{padding:10px 12px 12px}
  .r-top{grid-template-columns:auto 1fr;gap:10px}
  .r-head{text-align:left}
  .r-back span{display:none}
  .r-stage{padding:12px}
  .r-arrow{display:none}
  .r-hint{display:none}
  #reader{height:calc(100vh - 72px - 80px);height:calc(100dvh - 72px - 80px)}
}
