:root{--bg:#f6efe2;--text:#2a2622;--muted:#7a716a;--box:#fff;--border:#d8d0c6;--revealed:#e9e1d4;--accent:#7a4b2a;--good:#3f7d4e;--key:#e7e0d6;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:Georgia,Times New Roman,serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#1d1915;--text:#eee8e0;--muted:#a49a90;--box:#26231f;--border:#4a443d;--revealed:#3a342d;--accent:#d9a273;--good:#6dbb80;--key:#3a3530}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);margin:0}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.shell{flex-direction:column;max-width:520px;height:100dvh;margin:0 auto;display:flex}.top{text-align:center;padding:10px 8px 0}.mode{width:100%;min-height:0;padding:8px 8px max(8px, env(safe-area-inset-bottom));flex-direction:column;flex:1;gap:12px;display:flex}h1{margin:0;font-size:1.35rem;font-style:italic}.box{width:var(--size);height:calc(var(--size) * 1.15);border:2px solid var(--border);background:var(--box);font:700 calc(var(--size) * .55) system-ui, sans-serif;text-transform:uppercase;border-radius:6px;place-items:center;display:grid}.box.typed{border-color:var(--muted)}.box.revealed{background:var(--revealed);color:var(--accent)}.solved .box{background:var(--good);border-color:var(--good);color:#fff}.shake{animation:.35s shake}@keyframes shake{25%{transform:translate(-6px)}75%{transform:translate(6px)}}.message{text-align:center;min-height:1.5em;margin:0}.actions{justify-content:center;gap:8px;display:flex}.actions button{border:2px solid var(--border);background:0 0;border-radius:999px;min-width:120px;min-height:44px;padding:0 18px;font-family:system-ui,sans-serif;font-weight:600}.actions .primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}.bank{flex-wrap:wrap;justify-content:center;gap:8px;padding:4px 0;font-family:system-ui,sans-serif;display:flex}.tile{background:var(--key);width:48px;height:52px;box-shadow:0 2px 0 var(--border);touch-action:manipulation;border:0;border-radius:8px;padding:0;font-size:1.3rem;font-weight:700}.tile:active{transform:translateY(1px)}.tile:disabled{opacity:.2;box-shadow:none;cursor:default}.actions button:disabled{opacity:.4;cursor:default}@media (prefers-reduced-motion:reduce){.shake{animation:none}}.bookshelf{--paper:#fbf6ea;--ink:#2a2622;--foil:#f3dfa8;--gold:#d8b45c;--wood-dark:#3a2414;--wood:#4a2f1c;--plank-hi:#a0703f;--plank-lo:#6e4724;--cloth-0:#8e2f2a;--cloth-1:#2f5d45;--cloth-2:#2b4570;--gutter:16px;padding:0 var(--gutter) max(10px, env(safe-area-inset-bottom));gap:0}@media (prefers-color-scheme:dark){.bookshelf{--paper:#2b2620;--ink:#eee5d6;--wood-dark:#1a100a;--wood:#26180e;--plank-hi:#7a5530;--plank-lo:#4a2f18;--cloth-0:#7a2a26;--cloth-1:#2a5240;--cloth-2:#283f66}}@media (width<=360px){.bookshelf{--gutter:10px}.library-card span:first-child{display:none}.library-card span:nth-child(2):before{content:none}}.library-card{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);flex-wrap:wrap;justify-content:center;gap:4px 10px;margin:0 0 6px;font:600 .72rem system-ui,sans-serif;display:flex}.library-card span+span:before{content:"·";margin-right:10px}.shelf{background:linear-gradient(var(--wood), var(--wood-dark));border-radius:6px 6px 0 0;flex-shrink:0;align-items:flex-end;gap:6px;height:clamp(80px,14dvh,140px);padding:12px 14px 0;display:flex;box-shadow:inset 0 8px 12px #00000073}.plank{background:linear-gradient(var(--plank-hi), var(--plank-lo));border-radius:2px;flex-shrink:0;height:12px;margin:0 -6px;box-shadow:0 4px 6px #00000040}.spine{width:58px;min-width:44px;height:var(--h);color:var(--foil);border:0;border-radius:3px 3px 0 0;flex-direction:column;justify-content:space-between;align-items:center;padding:8px 0;transition:transform .2s;display:flex;position:relative;box-shadow:inset -7px 0 9px #0000004d,inset 3px 0 4px #ffffff24}.spine:focus-visible{outline:3px solid var(--foil);outline-offset:2px}.spine.open{box-shadow:inset -7px 0 9px #0000004d, 0 0 0 3px var(--foil);transform:translateY(-10px)}.spine .band{background:var(--gold);border-radius:2px;flex-shrink:0;width:70%;height:3px}.spine-label{writing-mode:vertical-rl;letter-spacing:.08em;white-space:nowrap;max-height:100%;font:700 1.05rem Georgia,serif;overflow:hidden;transform:rotate(180deg)}@media (height<=600px){.shelf{height:72px}.spine .band{display:none}}.spine.read{justify-content:flex-end;padding-top:14px}.spine.read .spine-label{text-transform:uppercase;letter-spacing:.04em;text-overflow:ellipsis;font-size:.6rem;font-style:normal}.spine.read .band{display:none}.sticker{z-index:1;color:#5a3d08;letter-spacing:.08em;background:radial-gradient(circle at 35% 30%,#fbe9a6,#c99a2e 70%);border-radius:50%;place-items:center;width:34px;height:34px;font:800 .58rem system-ui,sans-serif;animation:.35s ease-out stick;display:grid;position:absolute;top:-20px;left:50%;transform:translate(-50%)rotate(-14deg);box-shadow:0 2px 3px #00000073}@keyframes stick{0%{opacity:0;transform:translate(-50%)rotate(-40deg)scale(1.6)}}.cloth-0{background-color:var(--cloth-0)}.cloth-1{background-color:var(--cloth-1)}.cloth-2{background-color:var(--cloth-2)}.plate{color:#4a3208;white-space:nowrap;letter-spacing:.1em;text-transform:uppercase;background:linear-gradient(#e9cf86,#b48a35);border-radius:3px;align-self:flex-end;margin:0 0 18px auto;padding:4px 8px;font:700 .62rem system-ui,sans-serif;box-shadow:0 1px 2px #00000080,inset 0 1px #ffffff80}.reading{flex:1;min-height:0;padding:12px 0 4px;overflow-y:auto}.cover{perspective:1200px;display:grid}.face{color:var(--foil);background-color:inherit;text-align:center;backface-visibility:hidden;border-radius:4px 10px 10px 4px;grid-area:1/1;padding:10px 12px 12px 20px;transition:transform .5s;box-shadow:inset 9px 0 #00000038,inset 11px 0 #f3dfa840,0 6px 14px #0003;container-type:inline-size}.cover{background-color:#0000!important}.cover.cloth-0 .face{background-color:var(--cloth-0)}.cover.cloth-1 .face{background-color:var(--cloth-1)}.cover.cloth-2 .face{background-color:var(--cloth-2)}.face.back{flex-direction:column;justify-content:center;display:flex;transform:rotateY(180deg)}.cover.flipped .front{transform:rotateY(-180deg)}.cover.flipped .back{transform:rotateY(0)}.cover-title{--gap:3px;--size:min(36px, calc((100cqi - (var(--n) - 1) * var(--gap)) / var(--n)));text-wrap:balance;margin:0;font-size:1.22rem;font-style:italic;font-weight:700;line-height:1.25}.title-text{display:inline}.title-boxes{gap:var(--gap);vertical-align:middle;max-width:100%;margin:6px .25em;display:inline-flex}.cover-title .box{width:var(--size);height:max(40px, calc(var(--size) * 1.2));color:#2a2622;font:700 clamp(.8rem, calc(var(--size) * .6), 1.2rem) system-ui, sans-serif;background:#fffdf8;border:2px solid #cdbfa8;border-radius:5px;padding:0;font-style:normal}.cover-title .box.link{color:#7a4b2a;cursor:default;background:#efe4d0;border-style:dashed}.cover-title .box.typed{border-color:#9a8a74}.cover-title .box.revealed{color:#9a5a2a;background:#efe4d0}.cover-title .box.selected{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}.cover.solved .box{color:#fff;background:#3f7d4e;border-style:solid;border-color:#3f7d4e}.cover-meta{letter-spacing:.12em;text-transform:uppercase;opacity:.85;margin:2px 0 8px;font:600 .7rem system-ui,sans-serif}.blurb{background:var(--paper);color:var(--ink);text-align:left;border-radius:4px;margin:0;padding:10px 12px;font-size:.95rem;line-height:1.38}.cover-actions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px;display:flex}.ghost{border:1.5px solid var(--foil);min-height:44px;color:var(--foil);background:0 0;border-radius:999px;padding:0 16px;font:600 .88rem system-ui,sans-serif}.def-label{letter-spacing:.14em;text-transform:uppercase;opacity:.8;margin:0;font:600 .68rem system-ui,sans-serif}.def-word{overflow-wrap:anywhere;margin:8px 0 0;font-size:clamp(1.3rem,8cqi,1.9rem);font-style:italic;font-weight:700}.def-pos{opacity:.85;margin:0;font-style:italic}.def-note{opacity:.85;margin:10px 0 0;font:italic .8rem system-ui,sans-serif}.def-text{background:var(--paper);color:var(--ink);border-radius:4px;margin:12px 0 0;padding:12px;font-size:1.05rem;line-height:1.4}.bookshelf .message{color:var(--muted);margin:10px 0 0;font-style:italic}.desk{flex-shrink:0;padding-top:6px}.bookshelf .bank{gap:5px 4px;padding:2px 0 8px}.bookshelf .tile{width:34px;height:44px;color:var(--text);font-size:1.1rem}@media (width<=360px){.bookshelf .tile{width:32px;height:42px}}.bookshelf .actions button{flex:1;min-width:0;max-width:170px}.bookshelf .actions small{opacity:.75;font-weight:500}.cover{position:relative}.cover.just-read .box{animation:ripple .4s calc(var(--k) * 45ms) ease-out both}@keyframes ripple{0%{color:#2a2622;background:#fffdf8;border-color:#cdbfa8;transform:none}50%{transform:translateY(-4px)scale(1.08)}}.cover-title .box.typed{animation:.16s ease-out drop-in}@keyframes drop-in{0%{transform:scale(.8)}}.cover-meta.nudge{opacity:1;color:#fff3c4;text-transform:none;letter-spacing:.02em;font-size:.8rem;font-style:italic;animation:.25s ease-out nudge-in}@keyframes nudge-in{0%{opacity:0;transform:translateY(-3px)}}@media (prefers-reduced-motion:reduce){.face,.spine{transition:none}.sticker,.cover-title .box,.cover.just-read .box,.cover-meta.nudge{animation:none}}.library-card .clock{font-variant-numeric:tabular-nums}.footer-link{text-align:center;margin-top:6px}.link{color:var(--muted);text-underline-offset:3px;background:0 0;border:0;padding:6px 10px;font:600 .8rem system-ui,sans-serif;text-decoration:underline}.results{flex-direction:column;gap:12px;display:flex}.result-time{text-align:center}.result-time .big{font-variant-numeric:tabular-nums;margin:0;font-size:2.4rem;font-style:italic;font-weight:700}.result-time .sub{color:var(--muted);margin:0;font:.85rem system-ui,sans-serif}.read-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.read-list li{background:var(--paper);color:var(--ink);border-left:8px solid var(--edge);border-radius:4px;padding:8px 12px;box-shadow:0 2px 5px #0000001f}.cloth-edge-0{--edge:var(--cloth-0)}.cloth-edge-1{--edge:var(--cloth-1)}.cloth-edge-2{--edge:var(--cloth-2)}.rl-word{flex-wrap:wrap;align-items:center;gap:8px;margin:0;font-size:1.1rem;font-style:italic;font-weight:700;display:flex}.rl-tag{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font:600 .7rem system-ui,sans-serif}.rl-def{margin:2px 0 0;font-size:.92rem;line-height:1.35}.share-preview{border:1.5px dashed var(--border);white-space:pre-wrap;text-align:left;border-radius:6px;margin:0;padding:10px 12px;font:.9rem/1.45 system-ui,sans-serif}.tutorial{z-index:20;background:var(--bg);max-width:520px;padding:max(10px, env(safe-area-inset-top)) var(--gutter) max(14px, env(safe-area-inset-bottom));flex-direction:column;margin:0 auto;display:flex;position:fixed;inset:0}.tut-top{justify-content:space-between;align-items:center;min-height:36px;display:flex}.tut-count{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font:600 .72rem system-ui,sans-serif}.tut-top .link{margin-right:-10px}.tut-viewport{min-height:0;margin:0 calc(-1 * var(--gutter));touch-action:pan-y;flex:1;overflow:hidden}.tut-track{height:100%;transition:transform .35s;display:flex}.tut-page{min-width:0;padding:0 var(--gutter);flex-direction:column;flex:0 0 100%;display:flex;overflow-y:auto}.tut-pic{flex-direction:column;flex:1 0 auto;justify-content:center;min-height:0;padding:4px 0;display:flex}.tut-page h2{text-align:center;margin:8px 0 4px;font-size:1.35rem;font-style:italic}.tut-text{text-align:center;text-wrap:pretty;margin:0;font-size:1rem;line-height:1.4}.tut-shelf .shelf{height:130px}.tut-art{flex-direction:column;gap:8px;display:flex}.tut-art .blurb{font-size:.84rem;line-height:1.33}.tut-art .cover-title .box{place-items:center;display:inline-grid}.tut-art .bank{gap:5px 4px;padding:0}.tut-art .library-card{margin:0}.tut-art .fee.on{color:var(--accent)}.tut-try{text-align:center;color:var(--muted);margin:0;font:italic .85rem system-ui,sans-serif}.tut-shelf .tut-try{margin-top:12px}.tutorial .tut-art .actions button{flex:0 auto;min-width:180px}.tut-art .share-preview{padding:6px 10px;font-size:.8rem;line-height:1.35}.tut-dots{justify-content:center;gap:4px;margin:12px 0 10px;display:flex}.tut-dots button{background:0 0;border:0;place-items:center;width:24px;height:24px;padding:0;display:grid}.tut-dots button:before{content:"";background:var(--border);border-radius:50%;width:8px;height:8px}.tut-dots button.on:before{background:var(--accent)}.tutorial .actions button{flex:1;max-width:200px}.top{padding-left:44px;padding-right:44px;position:relative}.help-button{border:2px solid var(--muted);width:32px;height:32px;color:var(--muted);background:0 0;border-radius:50%;place-items:center;padding:0;font:700 .95rem system-ui,sans-serif;display:grid;position:absolute;top:5px;right:10px}.help-button:after{content:"";position:absolute;inset:-6px}@media (height<=640px){.tut-art .blurb{padding:8px 10px;font-size:.8rem}.tut-page h2{margin-top:4px;font-size:1.15rem}.tut-text{font-size:.9rem}}@media (prefers-reduced-motion:reduce){.tut-track{transition:none}}.card-overlay{--stamp:#5a3f8e;--stamp-red:#a33a2f;--rule:#5a78aa47;z-index:20;background:var(--bg);max-width:520px;padding:max(14px, env(safe-area-inset-top)) var(--gutter) max(14px, env(safe-area-inset-bottom));flex-direction:column;gap:12px;margin:0 auto;display:flex;position:fixed;inset:0}@media (prefers-color-scheme:dark){.card-overlay{--stamp:#b9a1e6;--stamp-red:#e58a7e;--rule:#96aad233}}.lc-scroll{flex:1;min-height:0;padding:4px 2px 8px;overflow-y:auto}.lc{background:var(--paper);color:var(--ink);border-radius:6px;animation:.3s ease-out card-in;position:relative;overflow:hidden;box-shadow:0 6px 16px #0000002e}@keyframes card-in{0%{opacity:0;transform:translateY(12px)rotate(-1.5deg)}}.lc-head{background:var(--cloth-0);color:var(--foil);text-align:center;padding:12px 16px 10px;position:relative}.lc-lib{letter-spacing:.16em;text-transform:uppercase;opacity:.85;margin:0;font:600 .66rem system-ui,sans-serif}.lc-head h2{margin:2px 0 0;font-size:1.45rem;font-style:italic}.lc-preview{z-index:1;border:2px solid var(--stamp-red);background:var(--paper);color:var(--stamp-red);letter-spacing:.14em;text-transform:uppercase;border-radius:3px;padding:2px 7px;font:800 .66rem Courier New,Courier,monospace;position:absolute;bottom:-12px;right:14px;transform:rotate(5deg)}.lc-streaks{border-bottom:2px solid var(--cloth-0);grid-template-columns:1fr 1fr;display:grid}.lc-streaks p{text-align:center;flex-direction:column;margin:0;padding:12px 8px 10px;display:flex}.lc-streaks p+p{border-left:1px solid var(--rule)}.lc-streaks b{font-variant-numeric:tabular-nums;font-size:2.2rem;font-style:italic;line-height:1}.lc-streaks span{letter-spacing:.12em;text-transform:uppercase;opacity:.7;margin-top:4px;font:600 .66rem system-ui,sans-serif}.lc-stats{grid-template-columns:1fr 1fr;column-gap:16px;margin:0;padding:4px 16px 0;display:grid}.lc-stats div{border-bottom:1px solid var(--rule);justify-content:space-between;align-items:baseline;gap:6px;padding:8px 0 6px;display:flex}.lc-stats dt{opacity:.75;font:.78rem system-ui,sans-serif}.lc-stats dd{font-variant-numeric:tabular-nums;margin:0;font-weight:700}@media (width<=360px){.lc-stats{grid-template-columns:1fr}}.lc-due{border-bottom:2px solid var(--cloth-0);letter-spacing:.16em;text-transform:uppercase;margin:14px 16px 0;padding-bottom:4px;font:700 .68rem system-ui,sans-serif}.lc-stamps{grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:12px 6px;margin:0;padding:10px 12px 4px;list-style:none;display:grid}.lc-stamp{border:2px solid var(--stamp);color:var(--stamp);transform:rotate(var(--tilt));letter-spacing:.04em;opacity:.88;mix-blend-mode:multiply;border-radius:4px;flex-direction:column;justify-self:center;align-items:center;padding:3px 6px 2px;font:800 .8rem/1.1 Courier New,Courier,monospace;display:flex}@media (prefers-color-scheme:dark){.lc-stamp{mix-blend-mode:normal}}.lc-stamp:last-child{animation:.35s ease-out .25s both thunk}@keyframes thunk{0%{transform:rotate(var(--tilt)) scale(1.5);opacity:0}}.lc-stamp.returned{color:var(--stamp-red);border-style:dashed;border-color:var(--stamp-red)}.lc-year{font-size:.62rem;font-weight:700}.lc-empty{text-align:center;opacity:.75;margin:0;padding:16px;font-style:italic}.lc-note{opacity:.7;text-align:center;margin:0;padding:8px 16px 14px;font:.76rem/1.35 system-ui,sans-serif}.card-overlay .actions button{flex:1;max-width:220px}.card-button{width:32px;height:32px;color:var(--muted);background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute;top:5px;left:10px}.card-button:after{content:"";position:absolute;inset:-6px}.card-button svg{width:28px;height:28px}.countdown{text-align:center;color:var(--muted);margin:0;font:.85rem system-ui,sans-serif}.countdown b{color:var(--text);font-variant-numeric:tabular-nums}@media (prefers-reduced-motion:reduce){.lc,.lc-stamp:last-child{animation:none}}.results-button{width:32px;height:32px;color:var(--muted);background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute;top:5px;left:48px}.results-button:after{content:"";position:absolute;inset:-6px}.results-button svg{width:26px;height:26px}.top:has(.results-button){padding-left:84px;padding-right:84px}.top:has(.results-button) h1{font-size:clamp(1.02rem,5.2vw,1.35rem)}
