/* booth-catalog.css - Peptology booth FLIPBOOK, PhilbeautiQ ICON 2026 (2026-11-20, thread booth-swipe-catalog, v2).
   Pages are laid out at a fixed 600 x 800 px and scaled with --k, so every tablet shows the same page. */
:root{
  --page:#fbf6ea; --card:#fff; --cream:#f6e7c6; --ink:#2b2412; --sub:#6a5c3f; --muted:#a3947a; --line:#e6d5a8;
  --primary:#0a7d80; --primary-d:#05656b; --gold:#b8831d;
  --disp:'Newsreader',Georgia,'Times New Roman',serif; --body:'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,Consolas,monospace; --k:1; --top:58px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
body{background:radial-gradient(1400px 800px at 50% 30%,#4a3d22 0%,#2b2412 55%,#1a150a 100%);color:var(--ink);font-family:var(--body);
  -webkit-font-smoothing:antialiased;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:pan-x pan-y}
img{-webkit-user-drag:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;touch-action:manipulation;text-align:inherit}
[hidden]{display:none!important}

/* top bar */
.top{position:fixed;left:0;right:0;top:0;height:var(--top);display:flex;align-items:center;gap:8px;padding:0 10px;padding-top:env(safe-area-inset-top);
  background:rgba(26,21,10,.92);border-bottom:1px solid rgba(255,255,255,.08);z-index:10}
.brand{display:flex;align-items:center;gap:8px;flex:0 0 auto;position:relative;padding:4px}
.brand img{width:36px;height:36px}
.brand b{display:block;font-family:var(--disp);font-size:19px;font-weight:600;color:#fff;line-height:1}
.brand b i{font-style:normal;color:#5fd0d2}
.brand small{display:block;font-family:var(--mono);font-size:9px;letter-spacing:.18em;text-transform:uppercase;color:#d9a441;margin-top:3px}
.brand.hold::after{content:"";position:absolute;left:0;bottom:0;height:3px;background:#5fd0d2;animation:hold 3s linear forwards}
@keyframes hold{from{width:0}to{width:100%}}
.ic{flex:0 0 auto;height:42px;min-width:42px;border-radius:12px;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;gap:6px;color:#fff;padding:0 10px}
.ic svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ic.find{background:#0a7d80;font-weight:800;font-size:15px}
.tabs{flex:1 1 auto;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;min-width:0;touch-action:pan-x;padding:2px}
.tabs::-webkit-scrollbar,.sub::-webkit-scrollbar{display:none}
.tab{flex:0 0 auto;height:42px;padding:0 13px;border-radius:12px;background:rgba(255,255,255,.07);color:#f3e3bb;font-weight:700;font-size:14.5px;
  display:flex;align-items:center;gap:6px;border-bottom:3px solid transparent;white-space:nowrap}
.tab small{font-family:var(--mono);font-size:10.5px;opacity:.7}
.tab.on{background:var(--c);color:#fff;border-bottom-color:rgba(255,255,255,.5)}
.sub{position:fixed;left:0;right:0;top:var(--top);height:44px;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:5px 10px;z-index:9;
  background:rgba(26,21,10,.78);touch-action:pan-x}
.grp{flex:0 0 auto;height:34px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.08);color:#f3e3bb;font-weight:700;font-size:13.5px;display:flex;align-items:center;gap:6px;white-space:nowrap}
.grp small{font-family:var(--mono);font-size:10px;opacity:.7}
.grp.on{background:#f3e3bb;color:var(--ink)}

/* stage */
.stage{position:fixed;left:0;right:0;top:calc(var(--top) + 44px);bottom:0;display:flex;align-items:center;justify-content:center;touch-action:none}
.bookwrap{position:relative;filter:drop-shadow(0 30px 40px rgba(0,0,0,.55))}
.arr{position:fixed;top:50%;transform:translateY(-50%);width:52px;height:96px;border-radius:16px;background:rgba(255,255,255,.1);color:#fff;font-size:46px;line-height:1;z-index:8;display:flex;align-items:center;justify-content:center}
.arr.l{left:6px}.arr.r{right:6px}
.pc{position:fixed;right:12px;bottom:8px;font-family:var(--mono);font-size:12px;color:rgba(255,255,255,.55);z-index:8}
@media (orientation:portrait){.arr{top:auto;bottom:10px;transform:none;height:56px;width:64px}}

/* page shell */
.page{background:var(--page);overflow:hidden}
.page .pgin{position:absolute;left:0;top:0;width:600px;height:800px;transform:scale(var(--k));transform-origin:0 0;padding:26px 26px 0;display:flex;flex-direction:column}
#book.fb{display:flex;justify-content:flex-start}
#book.fb .page{position:relative;box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}
.page.hard{background:#2b2412;color:#fff}
.kick{font-family:var(--mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--c,var(--gold));font-weight:600}
.small{font-size:12px;color:var(--muted);line-height:1.45}

/* footer with page number and order QR */
.pf{margin-top:auto;height:86px;display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:8px 0 14px}
.pn{font-family:var(--mono);font-size:12px;color:var(--muted);min-width:26px}
.pfc{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--c)}
.pfq{margin-left:auto;text-align:right;display:grid;gap:2px}
.pfq b{font-size:13.5px;font-weight:800;color:var(--ink)}
.pfq i{font-style:normal;font-family:var(--mono);font-size:10px;color:var(--sub)}
.pqr{width:64px;height:64px;flex:0 0 auto}
.pqr svg,.bq span svg,.sqr span svg,.zq span svg{display:block;width:100%;height:100%}

/* cover */
.cover .pgin{padding:40px 40px 34px}
.cov{height:100%;display:flex;flex-direction:column}
.covtop{display:flex;align-items:center;gap:12px}
.covtop .logo{width:58px;height:58px}
.covtop b{display:block;font-family:var(--disp);font-size:30px;font-weight:600;line-height:1}
.covtop b span{color:#5fd0d2}
.covtop small{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#d9a441;margin-top:5px}
.cov .kick{margin-top:60px;color:#d9a441;font-size:13px}
.cov h1{font-family:var(--disp);font-size:78px;font-weight:600;line-height:.95;margin-top:10px;letter-spacing:-.02em}
.cov .lead{font-size:18px;line-height:1.45;color:#e9dcc0;margin-top:18px;max-width:470px}
.covimgs{margin-top:auto;display:flex;align-items:flex-end;justify-content:center;gap:2px;height:300px}
.covimgs img{height:80%;width:auto;filter:drop-shadow(0 16px 18px rgba(0,0,0,.5))}
.covimgs img:nth-child(2),.covimgs img:nth-child(4){height:92%}
.covimgs img:nth-child(3){height:100%}
.covhint{text-align:center;font-weight:700;color:#5fd0d2;margin-top:18px;font-size:15px}
.back .pgin{align-items:center;justify-content:center;text-align:center;gap:14px}
.back .logo{width:90px;height:90px}
.back h3{font-family:var(--disp);font-size:44px;font-weight:600}
.back p{color:#e9dcc0}
.back .bq p{color:#fff}
.back .small{max-width:420px;margin-top:20px;color:#bfae8a}
.bq{display:flex;align-items:center;gap:16px;margin-top:20px;justify-content:center}
.bq span{width:150px;height:150px;background:#fff;border-radius:12px;padding:6px}
.bq p{text-align:left;font-family:var(--mono);font-size:12px;color:var(--sub)}
.bq p b{display:block;font-family:var(--body);font-size:20px;color:inherit;margin-bottom:4px}
.blank .pgin{justify-content:center}
.note{text-align:center}
.note h3{font-family:var(--disp);font-size:40px;font-weight:600}
.note p{font-size:17px;color:var(--sub);margin:12px auto 0;max-width:420px;line-height:1.45}

/* contents */
.toc{display:flex;flex-direction:column;height:100%;padding-bottom:26px}
.toc h2{font-family:var(--disp);font-size:46px;font-weight:600;margin:6px 0 16px}
.toc ol{list-style:none;display:grid;gap:7px}
.tocb{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:#fff;border:1px solid var(--line)}
.tocb i{width:14px;height:14px;border-radius:4px;background:var(--c);flex:0 0 auto}
.tocb b{font-size:20px;font-weight:800}
.tocb small{font-size:13px;color:var(--sub);font-weight:600}
.tocb .tp{margin-left:auto;font-family:var(--mono);font-size:14px;color:var(--muted)}
.tocs{margin-top:14px;padding:15px;border-radius:14px;background:#0a7d80;color:#fff;font-weight:800;font-size:18px;text-align:center}
.toc .small{margin-top:auto}

/* chapter opener + service pages */
.op,.svc{display:flex;flex-direction:column;flex:1;min-height:0}
.opband{background:var(--c);color:#fff;margin:-26px -26px 0;padding:34px 34px 26px}
.opband .kick{color:rgba(255,255,255,.8)}
.opband h2{font-family:var(--disp);font-size:52px;font-weight:600;line-height:1;margin:8px 0 10px;letter-spacing:-.01em}
.opband p{font-size:16.5px;line-height:1.45;color:rgba(255,255,255,.92)}
.ophero{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:14px 0}
.ophero img{max-height:100%;max-width:90%;object-fit:contain;filter:drop-shadow(0 16px 18px rgba(43,36,18,.28))}
.ophero.mosaic{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;align-content:center}
.ophero.mosaic img{width:100%;height:150px;object-fit:contain;background:#fff;border-radius:12px;padding:8px;filter:none}
.opf{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin-bottom:10px}
.opf li{font-size:14px;font-weight:700;padding-left:16px;position:relative}
.opf li::before{content:"";position:absolute;left:0;top:5px;width:9px;height:9px;border-radius:3px;background:var(--c)}
.opmeta{font-size:15px;color:var(--sub);margin-bottom:6px}
.opmeta b{font-family:var(--disp);font-size:26px;color:var(--ink)}
.srows{display:grid;gap:10px;margin-top:18px}
.srow{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 15px}
.srow b{font-size:17px}
.srow p{font-size:13.5px;color:var(--sub);line-height:1.4;margin-top:3px}
.srow .sp{margin-left:auto;text-align:right;flex:0 0 auto;max-width:150px}
.srow .sp b{display:block;font-family:var(--disp);font-size:24px;color:var(--primary-d)}
.srow .sp small{font-size:11.5px;color:var(--sub);font-weight:600}
.sqr{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:14px}
.sqr span{width:112px;height:112px;flex:0 0 auto}
.sqr p{font-family:var(--mono);font-size:10.5px;color:var(--sub);flex:1}
.sqr p b{display:block;font-family:var(--body);font-size:15px;color:var(--ink);margin-bottom:3px}
.sn{font-size:12.5px;color:var(--sub);margin:10px 0 4px}

/* product grid page */
.ph2{display:flex;align-items:baseline;gap:10px;border-bottom:3px solid var(--c);padding-bottom:8px;margin-bottom:12px}
.ph2 b{font-family:var(--disp);font-size:24px;font-weight:600}
.ph2 span{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--c);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);gap:10px;flex:1;min-height:0}
.cell{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px 10px 9px;min-height:0;overflow:hidden;
  box-shadow:0 8px 16px -14px rgba(43,36,18,.5)}
.cell:active{transform:scale(.98)}
.ci{flex:1 1 auto;min-height:90px;display:flex;align-items:center;justify-content:center;background:radial-gradient(60% 70% at 50% 45%,#fff,#f4ecd9);border-radius:10px}
.ci{position:relative}.ci img{position:absolute;inset:4px;width:calc(100% - 8px);height:calc(100% - 8px);object-fit:contain}
.ci img.wide{inset:10px;width:calc(100% - 20px);height:calc(100% - 20px)}
.ph{width:70px;height:70px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--c);color:#fff;font-weight:800;font-size:22px;font-family:var(--disp)}
.ct{display:flex;flex-direction:column;gap:4px;margin-top:7px;flex:0 0 auto}
.cn{font-weight:800;font-size:14.5px;line-height:1.18;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dots{font-style:normal;color:var(--c);margin-left:5px;letter-spacing:.05em}
.cz{display:flex;flex-wrap:wrap;gap:3px;max-height:40px;overflow:hidden}
.cz span{font-family:var(--mono);font-size:10px;padding:2px 6px;border-radius:6px;background:#f6efdd;color:var(--sub);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.pr{margin-top:2px;font-family:var(--disp);font-size:18px;font-weight:600;color:var(--primary-d);line-height:1}
.pr small{font-family:var(--body);font-size:10.5px;color:var(--sub);font-weight:600;margin-left:4px}
.pr.ask{font-family:var(--body);font-size:12.5px;font-weight:800;color:#fff;background:var(--gold);align-self:flex-start;padding:4px 10px;border-radius:8px}

.grid.g8{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr)}
.grid.g8 .cn{font-size:13.5px;-webkit-line-clamp:3}

/* start screen */
.start{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;background:rgba(20,16,8,.86)}
.start>div{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;color:#fff;padding:20px}
.start img{width:92px;height:92px}
.start b{font-family:var(--disp);font-size:42px;font-weight:600}
.start span{font-size:18px;color:#e9dcc0}
.start i{font-style:normal;margin-top:12px;background:#0a7d80;padding:14px 34px;border-radius:999px;font-weight:800;font-size:20px;animation:pulse 2.2s ease-in-out infinite}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
.attract{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:12;pointer-events:none}
.attract span{display:inline-block;background:#0a7d80;color:#fff;font-weight:800;font-size:17px;padding:11px 22px;border-radius:999px;box-shadow:0 14px 30px -12px rgba(0,0,0,.6);animation:pulse 2.4s ease-in-out infinite}

/* zoom card */
.zoom,.search,.staff{position:fixed;inset:0;z-index:30;background:rgba(20,16,8,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.zbox{position:relative;width:min(980px,100%);max-height:100%;overflow:auto;background:var(--page);border-radius:24px;padding:24px;touch-action:pan-y}
#zbody{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px;align-items:center}
.zimg{display:flex;align-items:center;justify-content:center;background:radial-gradient(60% 70% at 50% 45%,#fff,#f0e6cf);border-radius:18px;min-height:340px;padding:16px}
.zimg img{max-width:100%;max-height:min(60vh,460px);object-fit:contain}
.zt{display:flex;flex-direction:column;gap:10px}
.zt .kick{display:flex;align-items:center;gap:8px}
.zt .kick i{width:10px;height:10px;border-radius:50%;background:var(--c)}
.zt h2{font-family:var(--disp);font-size:34px;font-weight:600;line-height:1.05}
.zt>p{font-size:16px;line-height:1.45;color:var(--sub)}
.zs{display:flex;flex-wrap:wrap;gap:5px}
.zs span{font-family:var(--mono);font-size:12.5px;padding:4px 9px;border-radius:8px;background:#fff;border:1px solid var(--line)}
.zp b{font-family:var(--disp);font-size:32px;color:var(--primary-d)}
.zp{font-size:13px;color:var(--sub);font-weight:600}
.zp.ask b{font-family:var(--body);font-size:20px;color:#fff;background:var(--gold);padding:6px 14px;border-radius:10px;display:inline-block}
.zq{display:flex;align-items:center;gap:14px;margin-top:6px}
.zq span{width:170px;height:170px;flex:0 0 auto;background:#fff;border-radius:14px;padding:6px;box-shadow:0 0 0 1px var(--line)}
.zq p{font-family:var(--mono);font-size:11.5px;color:var(--sub);word-break:break-all}
.zq p b{display:block;font-family:var(--body);font-size:18px;color:var(--ink);margin-bottom:4px;word-break:normal}
.x{position:absolute;top:10px;right:10px;width:50px;height:50px;border-radius:50%;background:#fff;border:1px solid var(--line);font-size:30px;line-height:1;text-align:center;z-index:2}
@media (orientation:portrait){#zbody{grid-template-columns:1fr}.zimg{min-height:260px}}

/* search */
.search{align-items:flex-start;padding-top:calc(var(--top) + 10px)}
.sbox2{width:min(760px,100%);max-height:calc(100% - 20px);display:flex;flex-direction:column;background:var(--page);border-radius:20px;overflow:hidden}
.srow2{position:relative;padding:14px 70px 14px 14px;border-bottom:1px solid var(--line)}
.srow2 .x{top:9px}
#q{width:100%;height:50px;font:inherit;font-size:20px;padding:0 16px;border-radius:12px;border:2px solid var(--primary);background:#fff;color:var(--ink);-webkit-user-select:text;user-select:text}
.res{overflow:auto;padding:10px 14px 16px;display:grid;gap:6px;touch-action:pan-y}
.hit{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;background:#fff;border:1px solid var(--line)}
.hit img,.hit i{width:46px;height:46px;object-fit:contain;flex:0 0 auto;border-radius:8px;background:#f6efdd}
.hit b{font-size:16px}
.hit small{display:block;font-size:12px;color:var(--sub)}
.hit em{margin-left:auto;font-style:normal;font-family:var(--disp);font-size:17px;color:var(--primary-d);white-space:nowrap}
.hit>b{flex:1;min-width:0}

/* staff */
.sbox{background:#fff;border-radius:20px;padding:22px;width:min(460px,100%);display:grid;gap:12px}
.sbox h3{font-family:var(--disp);font-size:26px}
.sbox p{font-family:var(--mono);font-size:12px;color:var(--sub)}
.sbtns{display:grid;gap:8px}
.sbtns button{padding:14px;border-radius:12px;border:1.5px solid var(--line);font-weight:700}
.sbtns #sexit{background:var(--primary);color:#fff;border-color:var(--primary)}
@media (max-width:760px){.brand span{display:none}.find span{display:none}}
