/* Second visual sample. Compact digital library; personality belongs to the books. */
:root {
  --bg:#f8faff; --surface:#fff; --ink:#19264b; --muted:#65718b; --line:#e5eaf4;
  --blue:#216df1; --blue-hover:#1253c7; --tint:#edf3ff; --soft:#f0f4fc;
  --shadow:0 12px 34px #17285312;
  --ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
:root[data-theme="dark"],body[data-theme="dark"] {
  --bg:#131d31; --surface:#1d2a42; --ink:#eff4ff; --muted:#b5c3de; --line:#354566;
  --blue:#91b9ff; --blue-hover:#b9d3ff; --tint:#273e63; --soft:#223451;
}
body { -webkit-font-smoothing:antialiased; }
[hidden] { display:none!important; }
.header-inner,.shell { max-width:1160px; }
.header-inner { min-height:78px; gap:28px; }
.brand { font-size:29px; font-weight:800; letter-spacing:-1.2px; }
.brand-symbol { width:35px; height:35px; }
.site-nav { margin-left:20px; gap:5px; }
.site-nav a { font-size:14px; padding:11px 16px; border-radius:13px; }
.search-box { width:228px; }
.search-input { border:1px solid var(--line); border-radius:24px; background:var(--bg); }
.shell { padding-top:25px; }
.page-intro { margin-bottom:20px; gap:20px; align-items:center; }
.page-intro h1 { font-size:34px; line-height:1.16; letter-spacing:-1px; margin-bottom:8px; font-weight:800; }
.page-intro p { font-size:14px; }
.collection-pill { display:flex; gap:11px; align-items:center; padding:11px 15px; background:#f0edff; border:1px solid #e5dfff; border-radius:18px; color:#6250ab; flex-shrink:0; font-size:12px; }
.collection-pill> .icon:first-child { width:29px; height:29px; }
.collection-pill> .icon:last-child { width:16px; height:16px; }
.collection-pill span { display:flex; flex-direction:column; gap:3px; }
.collection-pill strong { font-size:17px; letter-spacing:1px; }
.collection-pill:hover { background:#e8e2ff; }
.worlds { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.world-tile { display:flex; align-items:center; gap:13px; padding:8px 15px 8px 8px; border-radius:16px; min-width:0; border:1px solid transparent; transition:transform .18s,border-color .18s; }
.world-tile:hover { transform:translateY(-2px); border-color:currentColor; }
.world-monsters { background:#f0f6d8; color:#526725; }.world-space { background:#e4f2ff; color:#296182; }.world-forest { background:#efecfb; color:#635a8e; }
.world-image { display:block; width:60px; height:60px; border-radius:12px; overflow:hidden; flex-shrink:0; background:#fff4; }
.world-image img { width:100%; height:100%; object-fit:cover; object-position:center 75%; transform:scale(1.7); transform-origin:50% 75%; }
.world-copy { min-width:0; }.world-copy strong { display:block; font-size:16px; color:#1e3151; letter-spacing:-.3px; margin-bottom:5px; }.world-copy small { font-size:12px; }
.world-tile>.icon { margin-left:auto; width:17px; height:17px; flex-shrink:0; }
.filters { gap:9px; margin-bottom:20px; }
.chip { min-height:43px; padding:11px 19px; font-size:14px; border-radius:24px; background:var(--surface); border:1px solid var(--line); }
.chip[aria-pressed="true"] { border-color:var(--blue); background:var(--blue); box-shadow:0 3px 8px #216df119; }
.section-heading { margin-bottom:18px; }.section-heading h2 { font-size:23px; font-weight:750; letter-spacing:-.6px; }.section-heading .count { font-size:13px; }
.book-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px 24px; }
.book-cover { background:var(--soft); border-radius:17px; aspect-ratio:4/5; box-shadow:0 3px 4px #243d5908,0 9px 18px #243d5910; }
.book-cover::before { width:6px; opacity:.45; }
.book-cover:hover { transform:translateY(-4px) rotate(-.35deg); box-shadow:0 14px 30px #263f6026; }
.modern-cover { width:100%; height:100%; object-fit:cover; }
.cover-read { display:flex; align-items:center; gap:7px; position:absolute; bottom:17px; left:16px; padding:10px 14px; border-radius:13px; background:#ffffffed; color:#1d3766; font-size:14px; font-weight:700; opacity:0; transform:translateY(7px); transition:opacity .18s,transform .18s; }
.book-cover:hover .cover-read,.book-cover:focus-visible .cover-read { opacity:1; transform:translateY(0); }
.book-mark { width:44px; height:44px; right:12px; bottom:12px; box-shadow:0 3px 10px #13284b29; }
.book-mark[aria-pressed="true"] { color:#216df1; background:#fff; animation:bookmark-pop .2s ease-out; }
@keyframes bookmark-pop { 50% { transform:scale(1.12); } }
.card-meta { margin:13px 0 7px; font-size:12px; line-height:1.4; align-items:flex-start; flex-wrap:wrap; gap:4px; }
.age-tag { font-weight:600; color:var(--muted); }.card-meta-main { gap:6px; }.card-status { font-size:11px; }.card-status .icon { width:13px; height:13px; }
.card-title { font-size:19px; line-height:1.25; font-weight:750; letter-spacing:-.35px; margin:0 0 8px; text-wrap:initial; }
.card-title a:hover { color:var(--blue); }.card-blurb { font-size:14px; line-height:1.5; color:var(--muted); margin:0 0 10px; }
.card-series { font-size:12px; color:var(--blue); display:inline-flex; gap:4px; align-items:center; min-height:28px; }.card-series span { color:var(--muted); }.card-series .icon { width:13px; height:13px; }
.continue-card { border-radius:16px; border-color:#dce7ff; background:var(--tint); margin-bottom:20px; padding:12px 16px; }
.continue-card>img { width:45px; height:56px; object-fit:cover; }.continue-info h2 { font-size:16px; margin-bottom:7px; }.continue-info .label { font-size:12px; }.progress-line { font-size:12px; }
.button { border-radius:13px; font-size:14px; }.button:hover { transform:none; }
.site-footer { font-size:12px; margin-top:38px; padding-top:20px; }.site-footer .text-button { font-size:12px; }
.eyebrow { font-size:12px; letter-spacing:1px; }
.series-hero { border-radius:22px; grid-template-columns:1fr 36%; }.series-hero img { object-fit:contain; padding:18px; background:var(--soft); }
.series-hero h1 { font-size:34px; }.series-hero p { font-size:16px; }.series-badges { font-size:13px; }
.series-books { max-width:740px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.person-mini p { font-size:14px; }
.collection-counter { font-size:14px; background:#f0edff; color:#6250ab; }
.collection-grid { gap:24px; }.hero-card { padding:0; overflow:hidden; border:1px solid var(--line); box-shadow:0 4px 18px #1e335b06; }.hero-card.is-earned { border-color:#b9cbff; box-shadow:0 5px 20px #4077dc13; }
.hero-portrait { position:relative; padding:18px; background:var(--soft); }.hero-portrait>img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:15px; }.hero-token { position:absolute; bottom:29px; left:29px; right:29px; display:flex; justify-content:center; align-items:center; gap:6px; padding:8px; border-radius:10px; background:#ffffffef; color:#465775; font-size:12px; }.is-earned .hero-token { background:#216df1; color:white; }.hero-token .icon { width:15px; height:15px; }
.hero-card-copy { padding:22px; }.hero-card h2 { font-size:26px; }.hero-card .hero-series { font-size:11px; letter-spacing:.5px; }.hero-card p { font-size:15px; min-height:68px; }.hero-card .button { width:100%; }.hero-card .text-button { display:flex; justify-content:center; }
body.is-reading { --paper:#fffef8; }.reader { max-width:820px; padding-top:40px; }.reader-title-block { position:relative; min-height:230px; padding-right:174px; margin-bottom:22px; }.reader-cover-preview { position:absolute; top:0; right:0; width:143px; height:auto; aspect-ratio:4/5; object-fit:cover; border-radius:13px; transform:rotate(3deg); box-shadow:0 10px 25px #19344d20; }
.reader h1 { font-size:44px; line-height:1.08; letter-spacing:-1px; }.reading-kicker { font-size:12px; letter-spacing:.6px; }.reader-blurb { font-size:16px; margin-bottom:12px; }.reader-meta { font-size:13px; }.reader-meta .button { margin-left:0; }.scene-ornament { margin:18px 0; text-align:left; }
.text-only .reader-cover-preview { display:none; }.text-only .reader-title-block { padding-right:0; min-height:0; }
.story-figure { margin:30px 0; }.figure-button { border-radius:17px; }
.finish-panel { display:flex; align-items:center; text-align:left; gap:22px; padding:25px; }.finish-hero { width:100px; height:100px; object-fit:cover; border-radius:25px; flex-shrink:0; transform:rotate(-4deg); }.finish-panel h2 { font-size:26px; }.finish-panel p { font-size:15px; max-width:none; margin-bottom:18px; }.finish-panel .button { min-width:0; }
.reward-dialog { border:2px solid #dbe5ff; }.reward-image { box-shadow:0 10px 28px #3668c523; }.reward-dialog[open] .reward-image { animation:card-arrive .38s ease-out; }.reward-eyebrow { font-size:12px; color:var(--blue); }
@keyframes card-arrive { from { transform:translateY(14px) rotate(-9deg) scale(.95); opacity:.4; } to { transform:translateY(0) rotate(-3deg) scale(1); opacity:1; } }
body[data-theme="dark"] .world-monsters { background:#35442c; color:#c7d9b5; }body[data-theme="dark"] .world-space { background:#243e55; color:#b4d7ed; }body[data-theme="dark"] .world-forest { background:#36334f; color:#d0c7ef; }body[data-theme="dark"] .world-copy strong { color:var(--ink); }
body[data-theme="dark"] .collection-pill,body[data-theme="dark"] .collection-counter { background:#36334f; color:#d0c7ef; border-color:#4e466e; }
@media(min-width:761px) and (max-width:1000px) {
 .header-inner { gap:18px; padding-inline:28px; }.site-nav { margin-left:0; gap:0; }.site-nav a { padding-inline:10px; }.search-box { width:190px; }.shell { padding-inline:28px; }
 .world-tile { gap:9px; padding-right:10px; }.world-copy strong { font-size:14px; }.world-image { width:49px; height:49px; }.world-copy small { font-size:11px; }.world-tile>.icon { display:none; }
 .book-grid { gap:28px 19px; }.card-title { font-size:18px; }.card-blurb { font-size:14px; }.card-status span { display:none; }
}
@media(max-width:760px) {
 .header-inner { min-height:68px; padding:0 18px; }.brand { font-size:27px; }.brand-symbol { width:31px; height:31px; }
 .shell { padding:22px 18px 100px; }.page-intro { margin-bottom:17px; align-items:flex-start; }.page-intro h1 { font-size:28px; letter-spacing:-.8px; margin-bottom:7px; }.page-intro p { font-size:13px; line-height:1.45; }
 .collection-pill { display:none; }.worlds { display:flex; gap:10px; overflow-x:auto; margin:0 -18px 17px; padding:0 18px 4px; scrollbar-width:none; }.world-tile { flex:0 0 205px; padding:7px 10px 7px 7px; gap:10px; border-radius:15px; }.world-image { width:49px; height:49px; border-radius:10px; }.world-copy strong { font-size:14px; margin-bottom:4px; }.world-copy small { font-size:11px; }.world-tile>.icon { width:14px; height:14px; }
 .filters { gap:7px; margin-bottom:17px; }.chip { font-size:12px; min-height:42px; padding:10px 15px; }.section-heading { margin-bottom:13px; }.section-heading h2 { font-size:21px; }.section-heading .count { font-size:12px; }
 .book-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 15px; }.book-cover { border-radius:13px; }.book-mark { right:7px; bottom:7px; width:38px; height:38px; padding:10px; transform:none; }.book-mark::after { inset:-3px; }.cover-read { display:none; }
 .card-meta { font-size:11px; margin:10px 0 6px; gap:4px; }.card-meta-main { gap:4px; }.card-status { font-size:11px; }.card-status span { display:none; }.card-title { font-size:16px; line-height:1.3; letter-spacing:-.25px; margin-bottom:6px; }.card-blurb { font-size:13px; line-height:1.45; margin-bottom:6px; }.card-series { font-size:12px; gap:3px; }
 .continue-card { margin-bottom:18px; padding:12px; align-items:center; }.continue-info .label { font-size:11px; }.continue-info h2 { font-size:14px; }.continue-card>img { width:39px; height:49px; }.continue-card .button { min-width:44px; padding:10px 12px; }.continue-card .button .icon { display:none; }
 .bottom-nav a { font-size:11px; }.bottom-nav { box-shadow:0 -4px 18px #243e6010; }.bottom-nav a[aria-current="page"] { font-weight:700; }
 .series-hero { grid-template-columns:1fr; }.series-hero img { height:190px; padding:16px; }.series-hero-copy { padding:24px; }.series-hero h1 { font-size:30px; }.series-hero p { font-size:15px; }.series-books { grid-template-columns:repeat(2,minmax(0,1fr)); }.person-mini p { font-size:13px; }
 .collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }.hero-portrait { padding:10px; }.hero-portrait>img { border-radius:12px; }.hero-token { bottom:16px; left:16px; right:16px; padding:6px 3px; font-size:10px; line-height:1.2; }.hero-card-copy { padding:15px 12px; }.hero-card h2 { font-size:23px; }.hero-card .hero-series { font-size:10px; }.hero-card p { font-size:13px; min-height:80px; }.hero-card .button { font-size:12px; padding:10px 6px; gap:3px; }.hero-card .button>.icon { width:15px; }.hero-card .text-button { font-size:12px; }.collection-counter { font-size:13px; padding:12px 15px; }
 .reader { padding:26px 22px 60px; }.reader-title-block { padding-right:0; padding-top:0; min-height:0; }.reader-cover-preview { width:83px; position:static; float:right; margin:0 0 12px 15px; border-radius:9px; }.reading-kicker { font-size:10px; max-width:calc(100% - 100px); margin-bottom:8px; }.reader h1 { font-size:33px; }.reader-meta { clear:both; padding-top:8px; font-size:12px; }.reader-meta .button { margin-left:auto; }.reader-blurb { font-size:15px; }.scene-ornament { font-size:16px; margin:17px 0; }
 .reader-header-inner { padding-inline:12px; }.reader-header-name strong { font-size:13px; }
 .finish-panel { padding:21px; gap:15px; flex-direction:column; text-align:center; }.finish-hero { width:90px; height:90px; }.finish-panel h2 { font-size:24px; }.finish-panel p { font-size:14px; }
 .site-footer { font-size:11px; }.site-footer .text-button { font-size:12px; }
}
@media(max-width:360px) {
 .shell { padding-inline:14px; }.page-intro h1 { font-size:25px; }.book-grid { gap:22px 12px; }.card-title { font-size:15px; }.card-meta-main { gap:3px; }.card-meta { font-size:10px; }.chip { padding-inline:13px; }
 .reader h1 { font-size:30px; }.hero-card .button .icon { display:none; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
/* Character crops reuse the new cover art, keeping one visual identity. */
.portrait-frame { display:block; position:relative; overflow:hidden; aspect-ratio:1; border-radius:15px; background:#e9eef9; }
.portrait-frame img { position:absolute; width:220%; max-width:none; height:auto; left:var(--portrait-x); top:var(--portrait-y); }
.hero-portrait>.portrait-frame { width:100%; }
.portrait-frame.reward-image { width:204px; height:204px; border-radius:30px; }
.portrait-frame.finish-hero { width:100px; height:100px; border-radius:25px; }
.mini-portrait { width:84px; min-width:84px; height:84px; border-radius:50%; }
.person-mini .mini-portrait img { width:220%; height:auto; max-width:none; border-radius:0; object-fit:initial; }
.series-hero>img { padding:0; object-fit:cover; object-position:center 60%; max-height:340px; }
@media(max-width:760px) { .portrait-frame.finish-hero { width:90px; height:90px; }.mini-portrait { width:64px; min-width:64px; height:64px; }.series-hero>img { height:200px; object-position:center 65%; } }
@media(max-width:760px) {
 .page-intro.collection-heading { flex-direction:column; align-items:flex-start; gap:12px; }
 .collection-heading .eyebrow { font-size:10px; }
 .collection-heading .collection-counter { font-size:12px; padding:9px 13px; border-radius:12px; }
}
/* Reading position is managed by the text anchor, not automatic browser anchoring. */
body.is-reading { overflow-anchor:none; }
