#open-town-book{position:fixed;right:14px;bottom:16px;z-index:899;display:flex;gap:8px;align-items:center;background:#254c48;color:#fff1cb;border:2px solid #173b38;border-radius:5px;padding:8px 14px;box-shadow:0 3px #b99b74;font:700 14px Georgia,serif;cursor:pointer}
#open-town-book::before{content:"";width:12px;height:13px;border:2px solid #eac68c;border-left-width:4px;box-shadow:2px 2px #162e31}
.camera-in #open-town-book,.shopping #open-town-book{display:none}
#town-book{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:min(78dvh,640px);padding:0;border:3px solid #34504b;border-radius:9px;background:#fff6de;color:#223f3b;box-shadow:6px 7px 0 #293e3d65}
#town-book::backdrop{background:#1f373b69}
#town-book .book-cover{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#294e48;color:#fff3d0}
#town-book h2{margin:0;font:bold 24px/1.1 Georgia,serif}
#town-book .book-close{background:none;color:inherit;border:0;font:24px/1 system-ui;cursor:pointer}
#town-book .book-tabs{display:flex;border-bottom:1px solid #c7b995;background:#eddfb9}
#town-book .book-tabs button{flex:1;padding:9px 4px;background:none;color:#3c5348;border:0;border-bottom:3px solid transparent;cursor:pointer;font:600 14px system-ui}
#town-book .book-tabs [aria-pressed=true]{border-color:#377463;background:#fff6de;color:#1e4942}
.book-body,.book-note{padding:0 18px}.book-body{max-height:48dvh;overflow:auto}.book-body article{padding:13px 0;border-bottom:1px dashed #c9b895}.book-body article:last-child{border:0}
.book-body h3{font:700 18px/1.2 Georgia,serif;margin:3px 0}.book-body p,.book-note{font:14px/1.45 system-ui;margin:5px 0}
.book-body small{font:600 11px/1.4 system-ui;color:#576c59}.book-body code{display:block;overflow-wrap:anywhere;font:12px monospace}
.book-note:not(:empty){padding:8px 18px 14px;color:#244a40}.book-actions{display:flex;gap:6px;flex-wrap:wrap}
.book-body button,.find-task{border:1px solid #577663;background:#e2edcf;color:#23493c;border-radius:4px;padding:5px 8px;font-weight:600;margin-top:4px;cursor:pointer}
.world-find{position:absolute;z-index:759;transform:translate(-50%,-100%);width:34px;height:38px;border:0;background:none;padding:0;cursor:pointer}
.world-find::before,.world-find::after{content:"";position:absolute;image-rendering:pixelated}
.world-find::before{width:22px;height:19px;background:#234750;border:3px solid #f8d47a;left:3px;bottom:7px;box-shadow:3px 3px #644c39;clip-path:polygon(20% 0,80% 0,80% 12%,100% 12%,100% 84%,80% 84%,80% 100%,18% 100%,18% 85%,0 85%,0 12%,20% 12%)}
.world-find::after{width:5px;height:13px;left:14px;bottom:13px;background:linear-gradient(#eb8669 50%,#e9e9cd 50%);transform:rotate(32deg)}
.world-find[data-kind=garment]::before{background:#54507f;clip-path:polygon(0 25%,25% 0,43% 0,51% 22%,62% 0,78% 0,100% 25%,86% 50%,75% 43%,80% 100%,17% 100%,24% 43%,14% 50%)}
.world-find[data-kind=garment]::after{background:#f6d58d;transform:none;width:3px;height:10px;left:15px;bottom:11px}
.world-find[data-kind=garden]::before{background:#b28951;border-color:#7b6840;height:11px}
.world-find[data-kind=garden]::after{background:#729457;transform:rotate(-28deg);bottom:15px;height:11px}
.world-find span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);width:max-content;max-width:170px;font:600 12px system-ui;border-radius:4px;background:#fff1cd;color:#30483e;padding:3px 6px;visibility:hidden}
.world-find:hover span,.world-find:focus-visible span{visibility:visible}
#world .shared-peer{pointer-events:auto}.shared-peer .local-speech{display:block}.shared-peer .local-speech[hidden]{display:none}
@media(prefers-reduced-motion:no-preference){.shared-peer.waving i{animation:peer-wave .55s ease-in-out alternate 4}@keyframes peer-wave{to{rotate:8deg;translate:0 -4px}}}
#world [data-collectible=night-coat]::before,#world [data-collectible=garden-apron]::before{content:"";position:absolute;pointer-events:none;width:30%;height:15%;left:35%;top:61%;background:#514674;border-bottom:4px solid #ddbb73;clip-path:polygon(0 0,22% 0,38% 24%,61% 24%,78% 0,100% 0,94% 100%,6% 100%)}
#world [data-collectible=garden-apron]::before{background:#7aa274;border-bottom-color:#f6deb2}
@media(max-width:560px){#open-town-book{bottom:max(10px,env(safe-area-inset-bottom));right:8px;padding:5px 8px}}
.mobile-portrait{display:block;float:right;width:51px;height:46px;background-size:408px auto;background-repeat:no-repeat;image-rendering:pixelated}
.mobile-portrait[hidden]{display:none}
