.reading:has(.folio) { width:min(1120px,calc(100% - 2rem)); max-width:none; padding-top:1.2rem; }
.folio-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1.5rem; margin-bottom:1.2rem; }
.folio-head h1 { color:#163046; font:600 clamp(2.1rem,4.5vw,4.1rem)/1.02 var(--serif); margin:.45rem 0 .35rem; }
.folio-price,.folio-note,.folio-hint { margin:.45rem 0; color:#404d56; }
.folio-head .shop-currency { margin-top:.25rem; }
.folio-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(155px,210px); gap:1.45rem; align-items:start; }
.folio-stage { background:linear-gradient(127deg,#f4eee3,#e1d6c2); border:1px solid #d1c1a7; border-radius:6px; height:clamp(340px,56vh,540px); padding:1.25rem; display:grid; place-items:center; position:relative; perspective:1350px; overflow:hidden; touch-action:pan-y pinch-zoom; }
.folio-stage a { display:flex; align-items:center; justify-content:center; max-width:100%; max-height:100%; width:100%; height:100%; min-width:0; min-height:0; cursor:zoom-in; }
#folio-page { display:block; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; background:white; box-shadow:1px 2px 1px #c9bca3,3px 4px 0 #e7ddcf,4px 5px 0 #a5967d,8px 12px 20px #4a372143; }
.folio-leaf { position:absolute; grid-area:1/1; place-self:center; transform-origin:left center; backface-visibility:hidden; background-color:white; background-size:100% 100%; box-shadow:4px 6px 14px #46372644; pointer-events:none; }
.folio-leaf[hidden] { display:none; }
.folio-leaf::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#33271522,transparent 30%,#3327150b 75%,#33271555); }
.folio-leaf.forward { animation:folio-forward .44s ease-in both; }
.folio-leaf.backward { animation:folio-backward .44s ease-out both; }
@keyframes folio-forward { from{transform:rotateY(0deg)} to{transform:rotateY(-99deg)} }
@keyframes folio-backward { from{transform:rotateY(-99deg)} to{transform:rotateY(0deg)} }
.folio-turns { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.5rem; margin:.75rem 0; }
.folio-arrow { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:.4rem .8rem; border-radius:4px; border:1px solid #6a7a83; color:#123149; background:white; text-decoration:none; font-weight:650; }
.folio-arrow[aria-disabled=true] { opacity:.42; cursor:default; }
#folio-status { text-align:center; font-size:.96rem; line-height:1.25; color:#354653; }
.folio-thumbs { display:grid; gap:.6rem; }
.folio-thumb { padding:.42rem; display:flex; gap:.6rem; align-items:center; background:white; border:1px solid #c5cac8; border-radius:4px; color:#17334a; text-decoration:none; font-weight:620; line-height:1.24; font-size:.91rem; }
.folio-thumb img { width:46px; height:55px; object-fit:contain; background:#f4f1eb; }
.folio-thumb[aria-current=page] { border:2px solid #806136; padding:calc(.42rem - 1px); }
.folio-hint { font-size:.92rem; }
@media(max-width:720px){.folio-head{display:block}.folio-layout{grid-template-columns:1fr;gap:.65rem}.folio-thumbs{grid-template-columns:repeat(auto-fit,minmax(76px,1fr))}.folio-thumb{flex-direction:column;align-items:center;text-align:center;font-size:.78rem;gap:.28rem}.folio-stage{height:clamp(285px,48vh,460px);padding:.75rem}.folio-arrow{padding:.35rem .6rem}.folio-price{margin-bottom:.8rem}}
@media(prefers-reduced-motion:reduce){.folio-leaf{animation:none!important}}
