:root{font:16px system-ui,sans-serif;color:#241a2d;--purple:#3d2357;--gold:#ffce59;--muted:#61566b;--line:#dcd4e5}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.5rem .7rem;border:1px solid var(--line);border-radius:.5rem;background:#fff;color:#2a1938;font-size:.875rem;font-weight:700;cursor:pointer;text-decoration:none}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.upload:focus-within{outline:3px solid #9359c6;outline-offset:3px}.gold{background:var(--gold);border-color:#edbc49;color:#2c1b2b}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.staff-page{background:#f6f4f8;min-height:100vh}.staff-top{display:flex;align-items:center;gap:.8rem;background:#fff;border-bottom:1px solid var(--line);padding:.6rem max(1rem,calc((100% - 65rem)/2));font-weight:850}.staff-top img,.fan-head img{object-fit:contain}.staff-top button{margin-left:auto}.staff-main{max-width:67rem;padding:1rem;margin:auto}.hero{display:flex;justify-content:space-between;align-items:center;gap:.75rem;position:relative;isolation:isolate;overflow:hidden;padding:clamp(1.3rem,4vw,3.3rem);background:radial-gradient(ellipse at 85% 30%,#6e4495,#35204b 64%);color:white;border-radius:1rem;border-bottom:4px solid #e5b449}.hero::before{content:'';position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(115deg,transparent 0 48px,#ffffff0a 49px 50px,transparent 51px 79px)}.hero h1{font-size:clamp(2.2rem,6vw,4.3rem);line-height:1;margin:0;letter-spacing:-.055em}.hero p{color:#ede1f6;margin:.75rem 0 1.3rem}.hero-link{color:#fff;background:#ffffff18;border-color:#ffffff50}.logo-stack{position:relative;flex:none;margin-right:3%;line-height:0;transform:rotate(9deg)}.logo-stack::before{content:'';position:absolute;z-index:-1;inset:0;background:#e7dcee;transform:rotate(-20deg);border-radius:.4rem}.logo-stack img{width:clamp(65px,15vw,170px);height:auto;padding:10%;background:white;border-radius:.4rem;box-shadow:0 7px 22px #1c102d70}.upload{position:relative}.upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.notice,.customize,.share{border:1px solid var(--line);border-radius:.65rem;background:#fff;padding:1rem}.section-title,.share{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.staff-main h2{font-size:1.25rem;letter-spacing:-.025em;margin:0 0 .25rem}.staff-main h3{margin:.05rem 0 .65rem}.section-title p,#public-status,#selection{margin:.15rem 0 .65rem;color:var(--muted);font-size:.91rem}.count{border-radius:999px;background:#ede6f3;color:var(--purple);padding:.25rem .65rem;font-size:.77rem;font-weight:750;white-space:nowrap}.files,#public{margin:1.7rem 0}.tools-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}.tabs{display:flex;gap:.2rem}.tabs [aria-pressed=true]{background:var(--purple);color:#fff}.tools-row input{flex:1 1 12rem}input,select{border:1px solid var(--line);border-radius:.5rem;background:#fff;padding:.55rem;min-height:42px;max-width:100%;color:#241a2d}.tools-row select{font-size:.85rem}#file-list{margin:0;padding:0;list-style:none;display:grid;gap:.6rem}.file{display:flex;align-items:center;gap:.65rem;padding:.55rem .65rem;background:#fff;border:1px solid var(--line);border-left:5px solid #dfd0eb;border-radius:.66rem}.file > img{border:1px solid #eee8f3;width:40px;height:53px;object-fit:contain}.file-name{flex:1;min-width:0;overflow-wrap:anywhere}.file-name small{display:block;font-size:.76rem;color:var(--muted);margin:.2rem 0 0}.file details{position:relative}.file summary{cursor:pointer;padding:.4rem;font-weight:900}.file details[open]{display:grid;gap:.28rem}.file details button,.file details select{min-height:34px;font-size:.78rem}.file details select{max-width:12rem}.customize{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.8rem}.customize-fields{grid-column:1/-1;display:grid;gap:.65rem}.customize-fields label,#folder-form label{display:grid;gap:.25rem;font-size:.86rem;font-weight:700}.customize-fields input[type=color]{width:80px;padding:.18rem}.customize img{height:auto;max-height:130px;object-fit:contain;border:1px solid var(--line)}#folder-form{margin:.65rem 0;align-items:end}#status:empty{display:none}#status{color:#57296e;font-size:.9rem}.share canvas{width:120px;height:120px;image-rendering:pixelated}.share > div{min-width:0}.share h3{overflow-wrap:anywhere}
.fan-page{color:#f5f0fb;background:#291e32;min-height:100vh}.fan-head{display:flex;align-items:center;justify-content:center;gap:.65rem;padding:.65rem;background:#211729;min-height:60px}.fan-head h1{margin:0;font-size:clamp(1rem,4vw,1.28rem);text-align:center}.book-reader{display:grid;grid-template-rows:minmax(0,1fr) auto;height:calc(100dvh - 64px)}.book-reader:fullscreen{height:100dvh}.book-stage{display:flex;align-items:safe center;overflow:auto;background:#d0a777 url('/desk.jpg') center/cover;padding:clamp(.5rem,2vw,1.5rem);perspective:1500px;touch-action:pan-y pinch-zoom}.book-stage.custom{background-image:none}.book-stage #message{margin:auto;padding:.8rem 1rem;background:#fff;color:#34263d;border-radius:.4rem}.spread{position:relative;display:flex;margin:auto;align-items:stretch;justify-content:center;width:max-content;height:var(--spread-height,78vh);max-height:var(--max-height,100%);box-shadow:0 12px 30px #2714055c;transform-origin:50% 50%;background:#fff}.spread.dual::after{content:'';position:absolute;inset:0 calc(50% - 14px);pointer-events:none;background:linear-gradient(90deg,transparent,#2b21382c 48%,#20172951 50%,#31253d19 54%,transparent)}.spread canvas,.spread img{height:100%;width:auto;display:block;max-width:100%;object-fit:contain;background:white}.spread .leaf{width:min(41vw,450px);height:100%;padding:clamp(.8rem,3vw,2rem);color:#fff;overflow:auto;white-space:pre-wrap}.spread .leaf h2{margin:0}.reader-navigation{padding:.55rem .5rem max(.55rem,env(safe-area-inset-bottom));justify-content:center;display:flex;align-items:center;gap:.5rem}.reader-navigation span{min-width:4.75rem;text-align:center;font-size:.88rem}.reader-navigation button{min-width:42px}.reader-navigation button:not(#full){font-size:1.2rem}@media(max-width:620px){.staff-main{padding:.65rem}.logo-stack{margin-right:0}.file{align-items:flex-start}.share canvas{width:90px;height:90px}.spread canvas,.spread img{max-width:calc(100vw - 1rem)}.spread .leaf{width:min(90vw,450px)}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
