*{box-sizing:border-box}html,body{background:#1a2142;height:100%;margin:0;font-family:PingFang SC,Noto Sans CJK SC,Microsoft YaHei,sans-serif;overflow:hidden}#c{width:100%;height:100%;display:block;position:fixed;inset:0}#labels{pointer-events:none;position:fixed;inset:0;overflow:hidden}#hud{pointer-events:none;position:fixed;inset:0}#hud>*{pointer-events:auto}button{font:inherit;cursor:pointer;color:#5a4632;background:#fff8e8;border:0;border-radius:10px;padding:6px 12px;box-shadow:0 2px #d9c6a3}button:hover{background:#fff1cc}button.primary{background:#ffd166}input{font:inherit;color:#4a3a2a;background:#fffdf7;border:2px solid #e8dcc2;border-radius:10px;outline:none;padding:7px 10px}input:focus{border-color:#ffd166}.label{white-space:nowrap;color:#fff;text-shadow:0 1px 2px #0009;font-size:12px;position:absolute;transform:translate(-50%,-100%)}.label.resident{color:#fff6d8;font-weight:600}.bubble{color:#4a3a2a;pointer-events:auto;white-space:normal;background:#fffdf5;border-radius:14px;width:max-content;max-width:260px;padding:8px 12px;font-size:14px;line-height:1.45;animation:.25s ease-out pop;position:absolute;transform:translate(-50%,-100%);box-shadow:0 3px 12px #0000002e}.bubble:after{content:"";border:7px solid #0000;border-top-color:#fffdf5;border-bottom:0;margin-left:-7px;position:absolute;bottom:-7px;left:50%}.bubble.companion{background:#f7ffd6;border:2px solid #e9ff8a}.bubble.creation{background:#fff0f5;font-style:italic}.bubble.player{background:#eef6ff;border:2px solid #cfe3ff}.bubble .replies{flex-wrap:wrap;gap:6px;margin-top:7px;display:flex}body.building .bubble{pointer-events:none}body.building .bubble .replies{display:none}.bubble .replies button{padding:4px 9px;font-size:12px}.bubble .who{color:#a08a6a;margin-bottom:2px;font-size:11px}.thinking{color:#a08a6a;background:#fffdf5;border-radius:12px;padding:3px 10px;font-size:14px;animation:1s infinite pulse;position:absolute;transform:translate(-50%,-100%)}@keyframes pop{0%{opacity:0;transform:translate(-50%,-90%)scale(.7)}}@keyframes pulse{50%{opacity:.4}}.top-left{color:#5a4632;background:#fffaebeb;border-radius:14px;min-width:220px;padding:10px 14px;font-size:14px;position:fixed;top:12px;left:12px}.top-left h1{margin:0 0 4px;font-size:17px}.top-left .meta{color:#8a7458;font-size:13px}.wishes{margin-top:8px;font-size:13px}.wishes div{margin:3px 0}.wishes .done{color:#3f8f5f}.top-right{flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:60vw;display:flex;position:fixed;top:12px;right:12px}.hotbar{background:#fffaebe6;border-radius:14px;align-items:center;gap:6px;padding:8px;display:flex;position:fixed;bottom:14px;left:50%;transform:translate(-50%)}.swatch{cursor:pointer;border:3px solid #0000;border-radius:8px;width:34px;height:34px;position:relative}.swatch.on{border-color:#4a3a2a}.swatch span{color:#00000080;font-size:10px;position:absolute;bottom:-2px;right:2px}.hint{white-space:normal;text-align:center;color:#fff;text-shadow:0 1px 3px #000000b3;white-space:nowrap;max-width:min(86vw,420px);font-size:13px;position:fixed;bottom:70px;left:50%;transform:translate(-50%);pointer-events:none!important}.panel{color:#4a3a2a;background:#fffaf0;border-radius:16px;width:320px;max-height:calc(100vh - 160px);padding:16px;font-size:14px;position:fixed;top:60px;right:12px;overflow:auto;box-shadow:0 6px 24px #00000040}.panel h2{margin:0 0 4px;font-size:19px}.panel .sub{color:#a08a6a;margin-bottom:10px;font-size:12px}.panel ul{margin:6px 0 10px;padding-left:18px}.panel li{margin:4px 0}.panel .row{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.panel .close{box-shadow:none;background:0 0;font-size:18px;position:absolute;top:10px;right:12px}.panel.card .tip{margin:2px 0;font-size:15px}.panel.card .tip:before{content:"✦ ";color:#e0a83a}.panel.card .tip.grew{color:#3f7f4f}.panel.card .tip.grew:before{content:""}.panel.card #verbs:empty{display:none}.panel.card .more-toggle{box-shadow:none;color:#a08a6a;background:0 0;padding:6px 4px}.panel.card .more{border-top:1px dashed #e8dcc2;margin-top:10px;padding-top:8px}body.mobile .panel.card{max-height:46dvh;padding-bottom:calc(14px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;inset:auto 0 0}body.mobile .panel.card.expanded{max-height:88dvh}body.mobile .panel.card.resident{border-radius:16px;max-height:40dvh;padding-bottom:14px;inset:52px 8px auto}.panel pre{white-space:pre-wrap;background:#f6efe0;border-radius:8px;padding:8px;font-family:inherit;font-size:12px}.modal-bg{background:#14193273;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal.bottle .letter{white-space:pre-wrap;background:#fff3d6;border-radius:10px;padding:12px 14px;line-height:1.7}.panel.resident details.friend{margin:2px 0 4px}.panel.resident details.friend summary{cursor:pointer}.panel.resident .letter{white-space:normal}.modal.book{max-height:88vh;overflow:auto}.modal.book .book-page h2{margin:4px 0 8px}.modal.book .book-page img{object-fit:cover;border-radius:10px;width:100%;max-height:32vh;margin:4px 0}.modal.book .share-url{width:100%;margin-top:6px}.modal.book>.row{background:#fffaf0;margin-bottom:0;padding:8px 0 4px;position:sticky;bottom:-22px}.modal{color:#4a3a2a;background:#fffaf0;border-radius:18px;width:min(420px,92vw);padding:22px 24px;box-shadow:0 10px 40px #0000004d}.modal h2{margin:0 0 6px}.modal p{color:#8a7458;margin:0 0 14px;font-size:14px;line-height:1.6}.modal .row{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.modal input{width:100%}.modal input.pin{letter-spacing:6px;margin-top:8px}.modal .account-note{color:#a08a6a;margin:10px 0 0;font-size:12px}.modal .account-err{color:#c0533a;min-height:1em;margin:6px 0 0}.toasts{flex-direction:column;align-items:center;gap:6px;display:flex;position:fixed;top:70px;left:50%;transform:translate(-50%);pointer-events:none!important}.toast{color:#5a4632;background:#fffaebf2;border-radius:20px;padding:7px 16px;font-size:14px;animation:.25s pop;box-shadow:0 2px 10px #00000026}.toast.big{background:#fff3c4;border:2px solid #ffd166;padding:12px 22px;font-size:16px}.chatbar{background:#fffaebf2;border-radius:14px;gap:6px;padding:8px;display:flex;position:fixed;bottom:70px;left:50%;transform:translate(-50%)}.chatbar input{width:320px}.letter{background:#fffdf5;border:1px dashed #d9c6a3;border-radius:10px;margin:8px 0;padding:10px;line-height:1.6}.toast button{pointer-events:auto}.scroll-bg{pointer-events:auto;background:radial-gradient(#14193226,#1419328c);justify-content:center;align-items:center;animation:1.2s fadein;display:flex;position:fixed;inset:0}.scroll{color:#4a3a2a;background:linear-gradient(#fbf3dc,#f6e8c4);border-top:10px solid #b98a55;border-bottom:10px solid #b98a55;border-radius:6px;width:min(520px,92vw);padding:30px 36px 24px;animation:1.2s ease-out unroll;position:relative;box-shadow:0 12px 50px #0006}.scroll h2{text-align:center;letter-spacing:6px;margin:0 0 4px;font-size:22px}.scroll .day{text-align:center;color:#a08a6a;margin-bottom:16px;font-size:13px}.scroll .body{white-space:pre-wrap;min-height:120px;font-size:16px;line-height:2}.scroll .closing{color:#8a6a3a;opacity:0;margin-top:14px;font-style:italic;transition:opacity 1.5s}.scroll .row{opacity:0;justify-content:center;margin-top:18px;transition:opacity 1s;display:flex}@keyframes unroll{0%{clip-path:inset(48% 0)}to{clip-path:inset(0)}}@keyframes fadein{0%{opacity:0}}body.mobile,body.mobile #c{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}body.mobile .hotbar{display:none}body.mobile .hint{top:calc(58px + env(safe-area-inset-top));white-space:normal;text-align:center;width:80vw;font-size:12px;bottom:auto}body.mobile .top-left{min-width:0;max-width:52vw;padding:6px 10px;font-size:12px;top:8px;left:8px}body.mobile .top-left h1{font-size:14px}body.mobile .top-left .meta,body.mobile .wishes{font-size:11px}body.mobile .top-right{gap:4px;max-width:46vw;top:8px;right:8px}body.mobile .top-right button{padding:5px 8px;font-size:12px}body.mobile button{min-height:34px}body.mobile .bubble{border-radius:11px;max-width:172px;padding:5px 8px;font-size:12px;line-height:1.35}body.mobile .bubble .who{margin-bottom:1px;font-size:10px}body.mobile .bubble .replies{gap:4px;margin-top:5px}body.mobile .bubble .replies button{border-radius:8px;min-height:0;padding:2px 7px;font-size:11px;box-shadow:0 1px #d9c6a3}body.mobile .panel{width:auto;max-height:calc(100dvh - 210px);padding:14px;top:52px;left:8px;right:8px}body.mobile .modal{width:94vw;padding:18px}body.mobile .chatbar{bottom:150px;left:8px;right:8px;transform:none}body.mobile .chatbar input{flex:1;width:auto;min-width:0}body.mobile .toasts{width:92vw;top:56px}body.mobile .toast{text-align:center;font-size:13px}.toast.prompt{pointer-events:auto;max-width:calc(100vw - 16px);position:fixed;bottom:120px;left:50%;transform:translate(-50%)}#hud>.resident-request{pointer-events:none;animation:.25s ease-out fadein;top:64px;bottom:auto}body.mobile .toast.prompt{width:92vw}body.mobile .scroll{width:94vw;max-height:92dvh;padding:22px 20px 18px;overflow:auto}body.mobile .scroll .body{font-size:15px;line-height:1.8}.joy{left:calc(20px + env(safe-area-inset-left));bottom:calc(24px + env(safe-area-inset-bottom));touch-action:none;pointer-events:auto;background:#fffaeb59;border:2px solid #fffaebb3;border-radius:50%;width:120px;height:120px;position:fixed}.joy-knob{pointer-events:none;background:#fffaebe6;border-radius:50%;width:50px;height:50px;position:absolute;top:35px;left:35px;box-shadow:0 2px 6px #00000040}.mbtns{right:calc(16px + env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));pointer-events:auto;flex-direction:column;gap:10px;display:flex;position:fixed}.mbtn{border-radius:16px;justify-content:center;align-items:center;gap:8px;min-width:108px;min-height:52px;font-size:16px;display:flex}.mswatch{border:2px solid #4a3a2a;border-radius:5px;width:20px;height:20px;display:inline-block}@media (orientation:landscape) and (height<=520px){body.mobile .panel{width:46vw;max-height:calc(100dvh - 16px);top:8px;left:auto;right:8px}body.mobile .hint{width:50vw;top:auto;bottom:12px}body.mobile .chatbar{bottom:12px;left:160px;right:140px}body.mobile .toast.prompt{width:50vw}body.mobile .joy{width:100px;height:100px;bottom:14px}body.mobile .joy-knob{width:46px;height:46px;top:27px;left:27px}body.mobile .mbtns{flex-direction:row;bottom:12px}body.mobile .mbtn{min-width:92px;min-height:44px;font-size:14px}body.mobile .modal{max-height:94vh;overflow:auto}}body:not(.building) .build-only,body:not(.building) .hotbar,body.building .say-btn{display:none}.mbtn.build-toggle{background:#fff7e0}body.building .mbtn.build-toggle{background:#e8f4dc}.vol{accent-color:#c08a2a;pointer-events:auto;align-self:center;width:96px}body.mobile .vol{width:64px}.sound-levels{gap:10px;margin-top:12px;display:grid}.sound-levels label{grid-template-columns:4em 1fr;align-items:center;display:grid}.sound-levels .vol{width:100%;margin:0}.mbtn.small{min-width:76px;min-height:40px;font-size:14px}.mbtn:disabled{opacity:.45}.top-right[hidden]{display:none}.top-left.compact,body.mobile .top-left.compact{background:0 0;min-width:0;padding:0}.top-toggle{font-size:13px}.home-btn{opacity:.75;margin-left:4px;padding:4px 8px;font-size:13px}.room-btns{gap:4px;margin-left:4px;display:inline-flex}.room-btns[hidden]{display:none}.room-btns button{padding:4px 8px;font-size:13px}.top-left:not(.compact) .top-toggle{margin-bottom:6px}#island-summary{max-height:45dvh;overflow-y:auto}.prosperity-count{white-space:nowrap;color:#604b34;font-variant-numeric:tabular-nums;background:#fff9e9;border-radius:1em;margin-inline-start:.4em;padding:.35em .65em;font-size:12px}.prosperity-count:empty,.mbtns [hidden]{display:none}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light only}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}@media (orientation:portrait){body.mobile .mbtns{gap:4px}body.mobile .mbtn{white-space:nowrap;border-radius:10px;gap:4px;min-width:0;min-height:32px;padding:0 10px;font-size:13px}body.mobile.building .mbtns{grid-template-columns:repeat(3,32px);gap:4px;display:grid}body.mobile.building .mbtns>*{order:5;grid-column:span 3}body.mobile.building select.mbtn{order:0}body.mobile.building .mbtn:has(.mswatch){order:1}body.mobile.building .mbtn.small{order:2}body.mobile.building .mbtn.primary{order:3}body.mobile.building .mbtn.build-toggle{order:6}body.mobile.building .mbtn.small{grid-column:span 1;min-height:32px;padding:0}body.mobile.building .mbtn:has(.mswatch){grid-column:span 1;min-height:32px;padding:0}body.mobile .mbtn.small{color:#5a4632;font-size:16px;font-weight:700}body.mobile .mswatch{width:16px;height:16px}body.mobile .mlabel{display:none}body.mobile .hint{background:#342c1e6b;border-radius:12px;width:auto;max-width:86vw;padding:4px 12px}body.mobile .hint:empty{display:none}body.mobile.building select.mbtn{font:inherit;color:#5a4632;appearance:none;background:#fff8e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0h8L4 5z' fill='%235a4632'/%3E%3C/svg%3E") right 7px center no-repeat;border:0;border-radius:10px;min-height:30px;padding:0 18px 0 8px;font-size:12px;box-shadow:0 2px #d9c6a3}}body.menu-open .say-log{display:none}.say-log{z-index:6;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:fixed;top:12px;right:12px}#hud>.say-log{pointer-events:none}.say-log>*{pointer-events:auto}.say-toggle{min-width:44px}.say-toggle.unread{background:#ffe9a8;font-weight:600}.say-list{color:#4a3a2a;background:#fffaebf5;border-radius:12px;width:min(280px,80vw);max-height:50vh;margin:0;padding:8px 10px;font-size:13px;list-style:none;overflow-y:auto;box-shadow:0 4px 16px #00000026}.say-list li{border-bottom:1px solid #f0e4c8;grid-template-columns:auto 1fr auto;gap:6px;padding:5px 0;line-height:1.4;display:grid}.say-list li:last-child{border-bottom:0}.say-list .says-day{text-align:center;color:#a08a6a;border-bottom:0;grid-template-columns:none;padding:6px 0 3px;font-size:12px;display:block}.say-list .says-more{text-align:center;color:#a08a6a;border-bottom:0;grid-template-columns:none;padding:4px 0;font-size:12px;display:block}.say-list .say-resident b{color:#3f8f5f}.say-list .say-companion b{color:#c08a2a}.say-list .say-creation b{color:#7b5ea7}.say-list li span{overflow-wrap:anywhere}.say-list li time{color:#a08a6a;font-size:11px}.say-list li.empty{color:#a08a6a;display:block}body.mobile .say-log{top:8px;right:8px}body.mobile .top-right{grid-template-columns:repeat(2,minmax(0,1fr));width:min(260px,62vw);max-width:none;display:grid}body.mobile .top-right button{white-space:nowrap;text-overflow:ellipsis;width:100%;overflow:hidden}body.mobile .top-right[hidden]{display:none}.panel .sub .stars{color:#e0a526;letter-spacing:1px}.panel.wardrobe .wear-ask{gap:6px;margin:4px 0 8px;display:flex}.panel.wardrobe .wear-ask input{color:#4a3a2a;background:#fff;border:1px solid #e3d3b5;border-radius:10px;flex:1;min-width:0;padding:8px 10px;font-size:15px}.panel.wardrobe .wear-slots{gap:4px;margin-bottom:8px;display:grid}.panel.wardrobe .wear-slots div{align-items:center;gap:8px;display:flex}.panel.wardrobe .wear-slots span{color:#a08a6a;width:2.5em;font-size:12px}.panel.wardrobe .wear-slots i{color:#c8b89a;font-size:13px}.panel.wardrobe .wear-slots .wear-off{margin-left:auto;padding:3px 10px;font-size:12px}.panel.wardrobe .wear-looks{gap:6px;margin-bottom:8px}.panel.wardrobe .wear-looks .look{gap:2px;display:inline-flex}.panel.wardrobe .wear-looks button{padding:4px 10px;font-size:13px}.panel.wardrobe .wear-rack button.on{outline:2px solid #e0a526}.modal.album .album-tabs{flex-wrap:wrap;gap:4px}.modal.album .album-tabs button{padding:5px 10px;font-size:13px}.modal.album .album-tabs button.on{background:#ffe9a8;font-weight:600}.modal.album .story-page h2{margin:4px 0 8px}.modal.album .story-page img{object-fit:cover;border-radius:10px;width:100%;max-height:32vh;margin:4px 0}.modal.album .story-page .letter{white-space:pre-wrap;line-height:1.8}.modal.album pre{white-space:pre-wrap;background:#f6efe0;border-radius:8px;padding:8px;font-family:inherit;font-size:12px}@media (orientation:landscape) and (height<=480px){.modal.album,.modal.book{max-height:92vh;padding:12px 14px}.modal.album .album-body,.modal.book .book-page{max-height:54vh;overflow:auto}}.album-stars{color:#e0a83a;letter-spacing:1px;margin:14px 0 4px;font-size:16px}.album-row{text-align:left;width:100%;box-shadow:none;background:#fffaf0;border-radius:10px;margin:4px 0;padding:8px 10px;display:block}.album-row .sub{margin:2px 0 0}.album-back{box-shadow:none;color:#a08a6a;background:0 0;padding:4px 0}.album-text{white-space:pre-wrap;line-height:1.8}.album-first{color:#c08a2a}.album-found{border-bottom:1px dashed #e8dcc2;padding:4px 2px}.onboard-skip{top:calc(env(safe-area-inset-top,0px) + 64px);z-index:30;color:#6a5a48;background:#fffaf0e6;border:0;border-radius:16px;padding:6px 14px;font-size:14px;position:fixed;right:12px;box-shadow:0 2px 8px #00000026}.panel.card .sample-note{color:#4a5a6a;background:#eef6ff;border-radius:10px;margin:4px 0 6px;padding:6px 10px;font-size:14px;line-height:1.6}.panel.card .sample-note .try{color:#2f6fa8;font-weight:600}.modal .name-ideas{flex-wrap:wrap;gap:6px;margin:8px 0 0;display:flex}.modal .name-ideas .idea{color:#6a4a1a;background:#fff1cf;border:1px solid #f0d49a;border-radius:14px;padding:4px 10px;font-size:14px}.help-cards{flex-direction:column;gap:10px;margin-top:6px;display:flex}.help-card{background:#fff6e4;border-radius:12px;align-items:center;gap:10px;padding:8px;display:flex}.help-card img{aspect-ratio:4/3;object-fit:cover;background:#e8eef4;border-radius:8px;flex:none;width:42%;max-width:180px}.help-card div{font-size:15px;line-height:1.5}.help-card b{margin-bottom:2px;font-size:16px;display:block}.rest-action:not([hidden]){right:max(16px, env(safe-area-inset-right));bottom:calc(82px + env(safe-area-inset-bottom));color:#5a4632;background:#fffaebf0;border-radius:14px;align-items:center;gap:8px;padding:5px;font-size:13px;display:flex;position:fixed}.rest-action span:not(:empty){margin-left:7px}.rest-action button{min-width:48px;min-height:38px}.rest-action button:disabled{cursor:default;opacity:.55}@media (pointer:fine){#hud:has(.vehicle-action:not([hidden]))>.rest-action:not(.vehicle-action){bottom:calc(135px + env(safe-area-inset-bottom))}}body.mobile .rest-action:not([hidden]){bottom:calc(150px + env(safe-area-inset-bottom));right:max(10px, env(safe-area-inset-right));border-radius:11px;gap:4px;max-width:72vw;padding:3px;font-size:12px}body.mobile .rest-action span:not(:empty){white-space:nowrap;text-overflow:ellipsis;min-width:0;margin-left:5px;overflow:hidden}body.mobile .rest-action button{white-space:nowrap;border-radius:8px;flex:none;min-width:40px;min-height:30px;padding:0 8px;font-size:12px}body.mobile #hud:has(.vehicle-action:not([hidden]))>.rest-action:not(.vehicle-action){bottom:calc(188px + env(safe-area-inset-bottom))}@media (orientation:landscape) and (height<=520px){body.mobile .rest-action{bottom:calc(68px + env(safe-area-inset-bottom))}body.mobile #hud:has(.vehicle-action:not([hidden]))>.rest-action:not(.vehicle-action){bottom:calc(126px + env(safe-area-inset-bottom))}}
