:root{--paper:#e9e1d2;--card:#faf6ee;--ink:#3e3a36;--muted:#8a837a;--line:#d8cfc0;--hood:#5e7462;--copper:#c2642f;--serif:Georgia, "Times New Roman", serif;--hand:"Palatino Linotype", "Book Antiqua", Palatino, var(--serif)}*{box-sizing:border-box}body{background:var(--paper);color:var(--ink);font-family:var(--serif);margin:0;line-height:1.7}#app{padding:12px 16px 24px}h1,h2,h3{margin:0 0 6px;font-weight:500}h2{font-size:17px}h3{font-size:15px}p{margin:0 0 8px}.title{text-align:center;letter-spacing:.2em;margin:0 0 10px;font-size:20px}.muted{color:var(--muted);font-size:.9em}.copper-text{color:var(--copper)}.game{--w:min(100vw - 32px, max(260px, min(420px, (100vh - 84px) * 9 / 16)));width:var(--w);margin:0 auto;position:relative}@supports (height:100dvh){.game{--w:min(100vw - 32px, max(260px, min(420px, (100dvh - 84px) * 9 / 16)))}}.stage{aspect-ratio:9/16;width:100%;font-size:calc(var(--w) / 25);background:#ede3d1;border:1px solid #c9bda9;border-radius:18px;position:relative;overflow:hidden}.art{width:100%;height:100%;position:absolute;inset:0}.grain{pointer-events:none;mix-blend-mode:multiply;opacity:.55;background:radial-gradient(at 50% 42%,#0000 58%,#2e241a33 100%) 0 0/100% 100%,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .31 0 0 0 0 .26 0 0 0 -1.1 .62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0/220px 220px;position:absolute;inset:0}.hud{justify-content:space-between;font-size:.93em;display:flex;position:absolute;top:2%;left:3%;right:3%}.hud span{border:1px solid var(--line);background:#faf6eed9;border-radius:999px;padding:.08em .77em}.hud-r{align-items:center;gap:.46em;display:flex}.music{border:1px solid var(--line);cursor:pointer;background:#faf6eed9;border-radius:999px;width:2em;height:1.7em;padding:0;font-size:1em}.music.off{opacity:.45;text-decoration:line-through}.hot{cursor:pointer;background:0 0;border:1px dashed #0000;border-radius:12px;padding:0;position:absolute}.hot:hover,.hot:focus-visible{background:#ffffff1f;border-color:#3e3a3673;outline:none}.tag{white-space:nowrap;color:var(--ink);border:1px solid var(--line);pointer-events:none;background:#faf6eee6;border-radius:999px;padding:0 .64em;font-size:.79em;position:absolute;bottom:-.9em;left:50%;transform:translate(-50%)}.bubble{background:var(--card);border:1px solid #b9ad99;border-radius:1.08em;max-width:46%;padding:.46em .77em;font-size:.93em;line-height:1.5;position:absolute;box-shadow:0 2px #3e3a361f}.bubble.small{padding:.25em .67em;font-size:.86em}.bubble.note{font-family:var(--hand);background:#f7f1e8;border-radius:4px;transform:rotate(-3deg)}.bubble.call{cursor:pointer;font:inherit;color:var(--ink);max-width:none;font-size:1em;animation:1.6s ease-in-out infinite bob;transform:translate(-50%)}.bubble.speech{font-family:var(--hand);border-color:var(--hood);max-width:47%;font-size:1em}@keyframes bob{50%{transform:translate(-50%,-4px)}}.dusk{pointer-events:none;background:#20283a52;position:absolute;inset:0}.stage.whispering .hot .tag{opacity:0}.whispers{overscroll-behavior:contain;flex-direction:column;align-items:flex-start;gap:.43em;max-width:46%;display:flex;position:absolute;bottom:9%;overflow-y:auto}.whispers>*{flex-shrink:0}.whispers .hint{color:#f1ece2;font-size:.86em}.whispers .hint.jar{font-family:var(--hand);font-size:.93em}.bubble.thought{cursor:pointer;max-width:none;font:inherit;color:var(--ink);text-align:left;border-radius:16px 16px 16px 4px;font-size:.93em;position:static}.bubble.thought:hover{border-color:var(--hood);background:#fff}.bubble.thought.quiet{color:var(--muted)}.bubble.thought b{font-weight:500;display:block}.whispers .recap-link{color:#f7f1e8;background:#3e3a368c;border-color:#f1ece299}ul.recap{margin:4px 0 12px;padding:0;list-style:none}ul.recap li{border-bottom:1px dashed #d8cdb9;padding:4px 0;font-size:14px}ul.recap .voice,.bubble.thought .voice{color:var(--muted);font-size:.86em;font-family:var(--hand);display:block}.bubble.say{max-width:72%;font:inherit;color:var(--ink);text-align:left;cursor:pointer;font-size:.93em}.bubble.say p{margin:0 0 .3em}.bubble.say .row{margin-top:.3em}.bubble.copper-edge{border-color:var(--copper);cursor:default}.nav{font:inherit;color:var(--ink);cursor:pointer;background:#faf6eeeb;border:1px solid #b9ad99;border-radius:999px;padding:.23em .92em;font-size:.93em;position:absolute;bottom:2.5%;right:3%}.toast{color:#f7f1e8;text-align:center;background:#3e3a36e0;border-radius:999px;width:max-content;max-width:92%;padding:.23em 1.08em;font-size:.93em;position:absolute;top:8%;left:50%;transform:translate(-50%)}.side{pointer-events:none;flex-direction:column;justify-content:flex-end;font-size:14px;display:flex;position:absolute;inset:26% 3% 2%}.side>*{pointer-events:auto}.sheet{background:var(--card);border:1px solid #b9ad99;border-radius:16px;flex-direction:column;max-height:100%;display:flex;box-shadow:0 -4px 18px #3e3a362e}.sheet>header{justify-content:space-between;align-items:baseline;padding:10px 14px 0;display:flex}.sheet-body{padding:4px 14px 12px;overflow-y:auto}.x{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:none;font-size:18px}button{font:inherit;color:var(--ink)}.row{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.row button,.chip{cursor:pointer;background:0 0;border:1px solid #b9ad99;border-radius:999px;padding:2px 12px;font-size:13px}.row button.primary{background:var(--hood);color:#f7f1e8;border-color:var(--hood)}[aria-disabled=true]{opacity:.45;cursor:default}.chips{flex-wrap:wrap;gap:6px;margin:6px 0 10px;display:flex}.slots{justify-content:center;gap:10px;margin:4px 0 6px;display:flex}.slot{width:64px;height:64px;color:var(--muted);background:#f1ebe0;border:1px dashed #b9ad99;border-radius:50%;justify-content:center;align-items:center;font-size:12px;display:flex}.slot.full{color:var(--ink);cursor:pointer;font:inherit;background:#e8efe3;border-style:solid;font-size:13px}.recipes{margin:6px 0 0;padding-left:18px;font-size:13px}.batch{white-space:nowrap;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 4px;font-size:13px;display:flex}.chip.on{background:var(--hood);color:#f7f1e8;border-color:var(--hood)}.shop-row{align-items:center;gap:8px;margin:4px 0;font-size:14px;display:flex}.shop-row>span{flex:1}.shop-row b{text-align:center;min-width:1.5em;font-weight:500}.page header{justify-content:space-between;align-items:baseline;display:flex}.page.copper h3{color:var(--copper)}.page.amber .sketch{color:#86693f;background:#efe4cc;border-color:#d6c29c}.sketch{color:var(--muted);border:1px dashed var(--line);background:#f4eee3;border-radius:6px;margin:6px 0 8px;padding:8px 10px;font-size:13px;font-style:italic}.note{font-family:var(--hand);color:#5b5650}.study-master{font-family:var(--serif);color:#4e4434;letter-spacing:.04em}.study-her{font-family:var(--hand)}.leaf{background:#f8f2e6;border:1px solid #d9ccb4;border-radius:2px 8px 8px 2px;min-height:200px;margin:6px 0 10px;padding:14px 16px 26px;position:relative;box-shadow:inset 8px 0 8px -8px #3c2c1859,2px 2px #ece2cf}.leaf h3{margin:0 0 6px}.leaf .folio{text-align:center;color:var(--muted);font-size:12px;position:absolute;bottom:6px;left:0;right:0}.leaf.turn-next{transform-origin:0;animation:.45s ease-out leaf-next}.leaf.turn-prev{transform-origin:100%;animation:.45s ease-out leaf-prev}@keyframes leaf-next{0%{opacity:.2;transform:perspective(900px)rotateY(-75deg)}}@keyframes leaf-prev{0%{opacity:.2;transform:perspective(900px)rotateY(75deg)}}@media (prefers-reduced-motion:reduce){.leaf.turn-next,.leaf.turn-prev{animation:none}}.glance,.sway{transform-box:view-box}.glance{animation:1.6s ease-in-out glance}.sway{animation:1.2s ease-in-out .5s sway}@keyframes glance{30%,70%{transform:rotate(4deg)}}@keyframes sway{25%{transform:rotate(4deg)}50%{transform:rotate(-3deg)}75%{transform:rotate(1.5deg)}}@media (prefers-reduced-motion:reduce){.glance,.sway{animation:none}}.locks{justify-content:center;align-items:flex-end;gap:5px;height:44px;display:flex}.lock{background:#b9b2a6;border-radius:2px;width:4px;height:34px}.lock.awake{background:#2c2a28;height:40px}.lock.center{background:var(--copper);width:3px;height:42px;margin-left:6px}.lock-voice{border-top:1px dashed var(--line);margin-top:8px;padding-top:8px}.sketch.cg.loaded{background:0 0;border:0;padding:0}.sketch.cg svg{border-radius:8px;width:100%;height:auto;display:block}.debug{flex-wrap:wrap;justify-content:center;gap:6px;margin-top:12px;display:flex}.debug button{border:1px solid var(--muted);cursor:pointer;background:0 0;border-radius:8px;padding:2px 10px;font-size:13px}.ask{margin-top:8px;font-weight:500}@media (width>=760px) and (height>=500px) and (aspect-ratio>=1){#app{grid-template-rows:auto 1fr auto;grid-template-columns:calc(56.25dvh - 18px) minmax(260px,380px);justify-content:center;column-gap:24px;height:100dvh;padding:16px 24px;display:grid}.game{display:contents}.stage{grid-area:1/1/4;width:100%;height:calc(100dvh - 32px);font-size:calc(2.25dvh - .72px)}.title{text-align:left;grid-column:2;margin:8px 0 12px;font-size:24px}.side{grid-area:2/2;justify-content:flex-start;min-height:0;font-size:16px;position:static}.debug{grid-area:3/2;justify-content:flex-start}}.cg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:6px 0 10px;display:grid}.cg-thumb{border:1px solid var(--line);cursor:pointer;text-align:center;font:inherit;color:var(--ink);background:#f4eee3;border-radius:6px;padding:0;display:block;overflow:hidden}.cg-thumb .sketch.cg{border:0;border-radius:0;min-height:90px;margin:0}.cg-thumb span{padding:3px 4px 5px;font-size:12px;display:block}.claws{align-items:center;gap:.36em;display:flex;position:absolute}.claws .claw{font:inherit;color:var(--ink);cursor:pointer;background:#faf6eeeb;border:1px solid #b9ad99;border-radius:999px;padding:.23em .8em;font-size:.93em}.claws .claw[aria-disabled=true]{opacity:.45;cursor:default}.paws{gap:.2em;margin-right:.2em;display:flex}.paw{background:#f2ede3;border:1px solid #b9ad99;border-radius:50%;width:.7em;height:.7em}.paw.used{opacity:.4;background:0 0}.cg-thumb svg,.year-painting svg{width:100%;height:auto;display:block}.year-painting{margin:4px 0 10px}.doodles{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:6px 0 10px;display:grid}.doodle{text-align:center;color:var(--muted);margin:0;font-size:12px}.doodle svg{width:100%;height:auto;display:block}.doodle.missing{aspect-ratio:5/4;border:1px dashed var(--line);border-radius:4px;justify-content:center;align-items:center;display:flex}.sayings .note{margin:2px 0}.growth{align-items:flex-end;gap:10px;display:flex}.growth .door{flex:none;width:48px}
