/* Flipper viewer — by Reid & Wright */
:root {
  --accent: #E8452C;
  --bg: #1A1E26;
  --bg-2: #232833;
  --bar: rgba(18, 22, 30, .82);
  --fg: #F3F1EC;
  --fg-dim: #A9B0BD;
  --line: rgba(255, 255, 255, .1);
  --panel: #1F242E;
  --hot: rgba(232, 69, 44, .16);
  --radius: 10px;
  --top-h: 52px;
  --bottom-h: 48px;
  color-scheme: dark;
}
.fv.light {
  --bg: #E9E6E0; --bg-2: #DEDAD2; --bar: rgba(250, 249, 246, .9); --fg: #1A1E26; --fg-dim: #5E6573;
  --line: rgba(0, 0, 0, .1); --panel: #FBFAF7; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
body { font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; color: var(--fg); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.fv { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); }

/* --- top bar --- */
.fv-top { height: var(--top-h); flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 10px 0 14px; background: var(--bar); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 20; }
.fv-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fv-publogo { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; overflow: hidden; }
.fv-publogo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.fv-titles { min-width: 0; line-height: 1.2; }
.fv-pubname { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.fv-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; color: var(--fg); position: relative; }
.fv-ic:hover, .fv-ic.on { background: var(--line); }
.fv-ic:focus-visible, .fv-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fv-ic.muted svg { opacity: .45; }
.fv-ic[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: 42px; right: 0; background: #000; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 40; }

/* --- stage --- */
.fv-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(ellipse at center, var(--bg-2), var(--bg) 70%); }
.fv-book-wrap { position: absolute; inset: 18px 70px; display: flex; align-items: center; justify-content: center; }
.fv-book { width: 100%; height: 100%; }
.fv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 64px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--line); color: var(--fg); display: grid; place-items: center; transition: background .2s, opacity .2s; }
.fv-nav:hover { background: var(--accent); color: #fff; }
.fv-nav svg { width: 26px; height: 26px; }
.fv-prev { left: 12px; } .fv-next { right: 12px; }
.fv-nav[disabled] { opacity: .2; pointer-events: none; }
.fv-loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 30; background: var(--bg); transition: opacity .4s; }
.fv-loading.done { opacity: 0; pointer-events: none; }
.fv-spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: fvspin 0.8s linear infinite; }
@keyframes fvspin { to { transform: rotate(360deg); } }

/* --- a page --- */
.fv-page { position: relative; background: #fff; overflow: hidden; container-type: size; user-select: none; -webkit-user-select: none; }
.fv-page > img.fv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; -webkit-user-drag: none; }
.fv-page.loading > img.fv-img { filter: blur(6px); }
.fv-page .fv-layer { position: absolute; inset: 0; }
.fv.shadows .fv-page.--left::after,
.fv.shadows .fv-spread .fv-page.left::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 9%; pointer-events: none; background: linear-gradient(to left, rgba(0,0,0,.18), transparent); z-index: 3; }
.fv.shadows .fv-page.--right:not(.--simple)::after,
.fv.shadows .fv-spread .fv-page.right::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; pointer-events: none; background: linear-gradient(to right, rgba(0,0,0,.18), transparent); z-index: 3; }
.stf__parent { margin: 0 auto; transition: transform .6s cubic-bezier(.3,.7,.2,1); }
.fv-book.shift-r { transform: translateX(-25%); } .fv-book.shift-l { transform: translateX(25%); }
.fv.shadows .stf__block { filter: drop-shadow(0 12px 30px rgba(0,0,0,.4)); }

/* --- interactions --- */
.fv-hot { position: absolute; display: block; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; z-index: 4; border-radius: 3px; text-decoration: none; color: inherit; }
.fv-hot.hl-always, .fv.hl-hover .fv-hot.k-link:hover, .fv.hl-hover .fv-hot.k-spotlight:hover, .fv.hl-hover .fv-hot.k-embed.d-popup:hover, .fv.hl-hover .fv-hot.k-video.d-popup:hover, .fv.hl-hover .fv-hot.k-slideshow.d-popup:hover {
  background: var(--hot); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent); }
.fv-hot.d-hidden:hover { background: transparent !important; box-shadow: none !important; }
.fv-hot.d-highlight { background: var(--hot); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent); }
.fv-hot.d-button { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  padding: 0 .6em; text-align: center; line-height: 1.1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fv-hot.d-button:hover { filter: brightness(1.08); }
.fv-hot .fv-badge { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); pointer-events: none; }
.fv-hot .fv-badge svg { width: 14px; height: 14px; }
.fv-hot.k-video.d-popup .fv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(64px, 40%); aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; color: #fff; pointer-events: none; transition: transform .2s; }
.fv-hot.k-video.d-popup:hover .fv-play { transform: translate(-50%,-50%) scale(1.1); background: var(--accent); }
.fv-hot.k-video.d-popup .fv-play svg { width: 45%; height: 45%; fill: currentColor; stroke: none; }
.fv-inline { position: absolute; z-index: 4; overflow: hidden; background: #000; border-radius: 2px; }
.fv-inline iframe, .fv-inline video { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.fv-inline.k-image { background: transparent; }
.fv-inline.k-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fv-inline.k-image a, .fv-inline.k-image button { position: absolute; inset: 0; display: block; border: 0; background: transparent; cursor: pointer; padding: 0; }
.fv-inline.k-embed { background: #fff; }
.fv-slides { position: absolute; inset: 0; }
.fv-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.fv-slides img.on { opacity: 1; }
.fv-slides .fv-sbtn { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.fv-slides .fv-sbtn svg { width: 14px; height: 14px; }
.fv-slides .fv-sbtn.l { left: 4px; } .fv-slides .fv-sbtn.r { right: 4px; }
.fv-slides .fv-dots { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 2; pointer-events: none; }
.fv-slides .fv-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.fv-slides .fv-dots i.on { background: #fff; }
.fv-audio { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer; padding: 0 12px 0 4px; font-weight: 600; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.25); overflow: hidden; }
.fv-audio .fv-aic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.fv-audio .fv-aic svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.fv-audio .fv-alabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-audio.playing .fv-aic { animation: fvpulse 1.2s infinite; }
.fv-tag { position: absolute; z-index: 5; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.35); padding: 0; }
.fv-tag svg { width: 14px; height: 14px; }
.fv-tag .fv-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px); min-width: 140px; max-width: 240px; background: #111; color: #fff; text-align: left; font-size: 12.5px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .18s; white-space: normal; }
.fv-tag .fv-tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.fv-tag:hover .fv-tip, .fv-tag:focus .fv-tip, .fv-tag.open .fv-tip { opacity: 1; transform: translateX(-50%); }
.fv-tag .fv-tip a { color: #FF9A85; pointer-events: auto; }

/* effects (looping) */
.fv.animate .fx-pulse { animation: fvpulse 1.8s ease-in-out infinite; }
.fv.animate .fx-glow { animation: fvglow 2s ease-in-out infinite; }
.fv.animate .fx-bounce { animation: fvbounce 1.6s ease-in-out infinite; }
.fv.animate .fx-shake { animation: fvshake 2.6s ease-in-out infinite; }
.fv.animate .fx-float { animation: fvfloat 3s ease-in-out infinite; }
.fv.animate .fx-shine { overflow: hidden; }
.fv.animate .fx-shine::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 250% 100%; animation: fvshine 2.8s ease-in-out infinite; pointer-events: none; z-index: 2; }
@keyframes fvpulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
@keyframes fvglow { 0%,100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); } 50% { box-shadow: 0 0 0 3px var(--accent), 0 0 22px var(--accent); } }
@keyframes fvbounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes fvshake { 0%,88%,100% { transform: rotate(0); } 90% { transform: rotate(-4deg); } 94% { transform: rotate(4deg); } 97% { transform: rotate(-2deg); } }
@keyframes fvfloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3%) rotate(1deg); } }
@keyframes fvshine { 0% { background-position: 150% 0; } 60%,100% { background-position: -100% 0; } }
/* entrance (plays when the page comes into view) */
.fv.animate .en-fade, .fv.animate .en-zoom, .fv.animate .en-slide-up, .fv.animate .en-slide-left { opacity: 0; }
.fv.animate .shown .en-fade { animation: fvin-fade .7s ease-out .25s forwards; }
.fv.animate .shown .en-zoom { animation: fvin-zoom .7s cubic-bezier(.2,1.4,.4,1) .25s forwards; }
.fv.animate .shown .en-slide-up { animation: fvin-up .7s ease-out .25s forwards; }
.fv.animate .shown .en-slide-left { animation: fvin-left .7s ease-out .25s forwards; }
@keyframes fvin-fade { to { opacity: 1; } }
@keyframes fvin-zoom { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes fvin-up { from { opacity: 0; transform: translateY(25%); } to { opacity: 1; transform: none; } }
@keyframes fvin-left { from { opacity: 0; transform: translateX(25%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fv.animate [class*="fx-"], .fv.animate [class*="en-"] { animation: none !important; opacity: 1 !important; } }

/* --- slide mode --- */
.fv-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }
.fv-track { position: absolute; inset: 0; display: flex; transition: transform .55s cubic-bezier(.3,.7,.2,1); }
.fv-spread { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; }
.fv-spread .fv-page { box-shadow: 0 12px 30px rgba(0,0,0,.35); }

/* --- scroll mode (phones) --- */
.fv.mode-scroll .fv-book-wrap { inset: 0; display: block; }
.fv.mode-scroll .fv-nav { display: none; }
.fv-scroller { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding: 14px 0 28px; overscroll-behavior: contain; }
.fv-scroller .fv-page { margin: 0 auto 14px; box-shadow: 0 6px 22px rgba(0,0,0,.3); border-radius: 2px; width: min(100% - 20px, var(--pw, 900px)); aspect-ratio: var(--ratio); }
.fv-scroller .fv-pnum { text-align: center; color: var(--fg-dim); font-size: 11px; margin: -8px 0 12px; letter-spacing: .05em; }

/* --- bottom bar --- */
.fv-bottom { height: var(--bottom-h); flex: none; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 12px; background: var(--bar); border-top: 1px solid var(--line); z-index: 20; }
.fv-pager { display: flex; align-items: center; gap: 8px; width: min(620px, 100%); }
.fv-range { flex: 1; accent-color: var(--accent); min-width: 60px; }
.fv-pagenum { font-variant-numeric: tabular-nums; color: var(--fg-dim); white-space: nowrap; font-size: 13px; }
.fv-pagenum input { width: 44px; text-align: center; background: var(--line); color: var(--fg); border: 1px solid transparent; border-radius: 6px; padding: 3px 2px; font: inherit; }
.fv-pagenum input:focus { outline: none; border-color: var(--accent); }
.fv-madeby { position: absolute; right: 14px; font-size: 11px; color: var(--fg-dim); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.fv-madeby span { font-weight: 500; opacity: .75; }
@media (max-width: 900px) { .fv-madeby { display: none; } }

/* --- side panel (thumbnails, contents, search, share) --- */
.fv-panel { position: absolute; top: var(--top-h); right: 0; bottom: var(--bottom-h); width: min(360px, 100%); background: var(--panel); border-left: 1px solid var(--line); z-index: 25;
  transform: translateX(105%); transition: transform .28s cubic-bezier(.3,.7,.2,1); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.3); }
.fv-panel.open { transform: none; }
.fv-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.fv-panel-head h2 { font-size: 15px; margin: 0; }
.fv-panel-body { flex: 1; overflow-y: auto; padding: 14px; }
.fv-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
.fv-thumb { border: 0; padding: 0; background: none; cursor: pointer; text-align: center; color: var(--fg-dim); font-size: 12px; }
.fv-thumb img { width: 100%; display: block; background: #fff; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.3); outline: 2px solid transparent; outline-offset: 2px; margin-bottom: 5px; aspect-ratio: var(--ratio); object-fit: cover; }
.fv-thumb.on img { outline-color: var(--accent); }
.fv-thumb.on { color: var(--fg); font-weight: 600; }
.fv-toc a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 8px; border-radius: 8px; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
.fv-toc a:hover { background: var(--line); }
.fv-toc a span { color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.fv-search input { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.fv-search input:focus { outline: none; border-color: var(--accent); }
.fv-results { margin-top: 12px; }
.fv-results button { display: block; width: 100%; text-align: left; padding: 10px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; color: var(--fg-dim); font-size: 13px; }
.fv-results button:hover { background: var(--line); }
.fv-results b { color: var(--fg); }
.fv-results mark { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--fg); border-radius: 2px; padding: 0 1px; }
.fv-results .pg { display: block; font-size: 11px; color: var(--accent); font-weight: 700; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .05em; }
.fv-muted { color: var(--fg-dim); font-size: 13px; }
.fv-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.fv-share-grid a, .fv-share-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 10px; background: var(--line); border: 0; color: var(--fg); text-decoration: none; font-size: 12px; cursor: pointer; }
.fv-share-grid a:hover, .fv-share-grid button:hover { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.fv-field { display: block; margin-bottom: 14px; }
.fv-field span { display: block; font-size: 12px; color: var(--fg-dim); margin-bottom: 5px; }
.fv-field textarea, .fv-field input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 12px/1.4 ui-monospace, Menlo, monospace; resize: vertical; }
.fv-check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 10px; color: var(--fg-dim); }
.fv-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }

/* --- modal (video / slideshow / spotlight / embed popups) --- */
.fv-modal { position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 14, .86); display: none; align-items: center; justify-content: center; padding: 56px 20px 20px; backdrop-filter: blur(4px); }
.fv-modal.open { display: flex; animation: fvin-fade .2s forwards; }
.fv-modal-box { position: relative; max-width: min(1100px, 100%); max-height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; animation: fvin-zoom .3s ease-out; }
.fv-modal-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.fv-modal-close:hover { background: var(--accent); }
.fv-modal .fv-media { width: 100%; aspect-ratio: 16/9; max-height: calc(100vh - 100px); background: #000; border-radius: 8px; overflow: hidden; }
.fv-modal .fv-media iframe, .fv-modal .fv-media video { width: 100%; height: 100%; border: 0; display: block; }
.fv-modal .fv-embed { width: 100%; height: min(78vh, 760px); background: #fff; border-radius: 8px; border: 0; }
.fv-modal .fv-spot { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); background: #fff; }
.fv-modal .fv-caption { color: #fff; margin-top: 14px; max-width: 760px; text-align: center; font-size: 15px; line-height: 1.5; }
.fv-modal .fv-caption a { color: #FF9A85; }
.fv-gallery { position: relative; width: 100%; height: min(78vh, 760px); display: flex; align-items: center; justify-content: center; }
.fv-gallery img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.fv-gallery button { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.fv-gallery button:hover { background: var(--accent); }
.fv-gallery .l { left: 0; } .fv-gallery .r { right: 0; }
.fv-gcount { color: #ccc; margin-top: 10px; font-size: 13px; }

/* --- zoom --- */
.fv-zoom { position: fixed; inset: 0; z-index: 45; background: var(--bg); display: none; }
.fv-zoom.open { display: block; }
.fv-zoom-scroll { position: absolute; inset: 0; overflow: auto; cursor: grab; display: flex; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.fv-zoom-scroll.drag { cursor: grabbing; }
.fv-zoom-inner { display: flex; gap: 0; margin: auto; flex: none; padding: 20px 20px 80px; }
.fv-zoom-inner .fv-page { flex: none; }
.fv-zoom-inner .fv-page { box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.fv-zoom-bar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; background: var(--bar); border: 1px solid var(--line); padding: 4px; border-radius: 12px; backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.fv-zoom-bar button#zoomPct { min-width: 58px; height: 38px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; }
.fv-zoom-bar button#zoomPct:hover { background: var(--line); }

.fv-toast { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%) translateY(20px); background: #000; color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; }
.fv-toast.on { opacity: 1; transform: translateX(-50%); }
.fv-preview-flag { position: absolute; top: calc(var(--top-h) + 8px); left: 50%; transform: translateX(-50%); background: #F5B400; color: #111; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; z-index: 21; }
.fv-noscript { position: fixed; inset: 0; overflow: auto; background: #fff; color: #111; padding: 20px; }

/* --- phones --- */
@media (max-width: 700px) {
  :root { --top-h: 48px; --bottom-h: 46px; }
  .fv-book-wrap { inset: 8px 8px; }
  .fv-nav { width: 36px; height: 52px; background: rgba(0,0,0,.25); }
  .fv-prev { left: 4px; } .fv-next { right: 4px; }
  .fv-tools .fv-ic.opt { display: none; }
  .fv-pubname { display: none; }
  .fv-title { font-size: 13px; }
  .fv-ic { width: 34px; height: 34px; }
  .fv-firstlast { display: none; }
  #firstBtn, #lastBtn { display: none; }
}
/* embedded in a small iframe */
.fv.compact { --top-h: 44px; --bottom-h: 42px; }
.fv.compact .fv-pubname { display: none; }
