/* page-turn engine (StPageFlip, MIT) */
.stf__parent{position:relative;display:block;box-sizing:border-box;transform:translateZ(0);touch-action:pan-y}
.stf__wrapper{position:relative;width:100%;box-sizing:border-box}
.stf__parent canvas{position:absolute;width:100%;height:100%;left:0;top:0}
.stf__block{position:absolute;width:100%;height:100%;box-sizing:border-box;perspective:2000px}
.stf__item{display:none;position:absolute;transform-style:preserve-3d}
.stf__outerShadow,.stf__innerShadow,.stf__hardShadow,.stf__hardInnerShadow{position:absolute;left:0;top:0}

/* the reader */
html.hgr-open{overflow:hidden}
.hgr{position:fixed;inset:0;z-index:99990;background:#0C2F35;display:grid;grid-template-rows:auto minmax(0,1fr) auto;color:#fff;font-family:"Figtree",system-ui,sans-serif}
.hgr[hidden]{display:none}
.hgr-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px clamp(16px,3vw,32px)}
.hgr-name{text-align:left;min-width:0}
.hgr-name b{display:block;font:800 clamp(1.15rem,1rem + .8vw,1.6rem)/1.1 "Baloo 2",system-ui,sans-serif;color:#F6B82C}
.hgr-name span{display:block;font-size:.92rem;opacity:.8;margin-top:2px}
.hgr-x,.hgr-nav{flex:none;width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;display:grid;place-items:center;transition:background .15s}
.hgr-x:hover,.hgr-nav:hover{background:rgba(255,255,255,.24)}
.hgr-x svg,.hgr-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.400;stroke-linecap:round;stroke-linejoin:round}
.hgr-nav:disabled{opacity:.25;cursor:default}
.hgr-x:focus-visible,.hgr-nav:focus-visible,.hgr-make:focus-visible{outline:3px solid #F6B82C;outline-offset:3px}
.hgr-stage{display:flex;align-items:center;justify-content:center;gap:clamp(8px,2vw,28px);padding:0 clamp(8px,2vw,28px);min-height:0}
.hgr-book{width:min(calc(100vw - 180px),calc((100vh - 190px) * 2),1500px);flex:none;filter:drop-shadow(0 30px 40px rgba(0,0,0,.45))}
.hgr-flip{margin:0 auto;transition:transform .55s ease}
.hgr.at-cover .hgr-flip{transform:translateX(-25%)}
.hgr.at-back .hgr-flip{transform:translateX(25%)}
@media (prefers-reduced-motion:reduce){.hgr-flip{transition:none}}
.hgr-page{background:#FFF6E2;overflow:hidden;container-type:inline-size}
.hgr-page>img{display:block;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.hgr-cover{position:relative}
.hgr-cover .hgr-fit{position:absolute;left:0;top:0;transform-origin:0 0;display:none}
.hgr-cover.live .hgr-fit{display:block}.hgr-cover.live .hgr-coverimg{display:none}
.hgr-back{background:#1F747E}
.hgr-backin{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3cqw;padding:8cqw;text-align:center;color:#fff}
.hgr-backin img{width:38cqw;height:auto}
.hgr-backin .k{font:400 9cqw/1 "Mogika","Baloo 2",sans-serif;text-transform:uppercase;color:#F6B82C;margin:0}
.hgr-backin p{font-size:4.200cqw;line-height:1.4;margin:0;max-width:16em}
.hgr-make{font:700 4.600cqw/1 "Baloo 2",system-ui,sans-serif;background:#F6B82C;color:#123F46;border:0;border-radius:999px;padding:.9em 1.5em .8em;cursor:pointer;margin-top:2cqw}
.hgr-foot{display:flex;align-items:center;justify-content:center;gap:10px 28px;flex-wrap:wrap;padding:16px 20px 20px;font-size:.95rem;text-align:center}
.hgr-count{font-weight:600;white-space:pre}
.hgr-hint{opacity:.7}
.hg-btn-ghost{background:#fff!important;color:#123F46!important;box-shadow:inset 0 0 0 2px #1F747E;border:0;cursor:pointer;margin-left:10px}
@media (max-width:650px){
  .hgr-book{width:min(92vw,calc(100vh - 230px))}
  .hgr-stage{flex-wrap:wrap;align-content:center;gap:14px}
  .hgr-book{order:-1}
  .hgr-nav{width:52px;height:52px}
  .hgr-hint{display:none}
}
