.in-world{background:#24382e;overflow:hidden}.in-world>.top,.in-world>footer{display:none}.village{--hud:#203c38;--hud2:#142725;--edge:#d7bc83;--ivory:#fff3ce;--bronze:#98784b;position:fixed;inset:0;overflow:hidden;width:100%;height:100dvh;margin:0;color:var(--ivory);font-family:'Malgun Gothic','Apple SD Gothic Neo',system-ui,sans-serif;isolation:isolate}.village .world-floor.stage{position:absolute;inset:0;overflow:hidden;aspect-ratio:auto!important;border:0;border-radius:0;background:linear-gradient(#344b46,#8a7762);z-index:0;touch-action:manipulation}.village .world-floor:focus{outline:none}.village-board{position:absolute;overflow:hidden;container-type:size;isolation:isolate}.world-plate{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:fill;user-select:none;pointer-events:none}.world-vignette{pointer-events:none;position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,#071d204b,transparent 18%,transparent 80%,#16252475),radial-gradient(ellipse at 50% 49%,transparent 53%,#15251b2b 100%)}
.hud-top,.hud-bottom{position:absolute;inset-inline:clamp(13px,2.15vw,36px);display:flex;z-index:6;pointer-events:none}.hud-top{top:max(16px,env(safe-area-inset-top));justify-content:space-between;align-items:flex-start}.hud-id{display:grid;gap:8px;justify-items:start}.place-plate,.time-hud,.round-tool,.village-music,.portal-btn,.world-security,.village-dock,.npc-name,.world-hint,.journal-close{box-shadow:0 3px 0 #132d29b3,0 6px 17px #0e191c39}.place-plate,.time-hud{background:linear-gradient(143deg,#324d44f7,#182e2bf7);border:1px solid var(--edge);outline:1px solid #263933;outline-offset:1px;position:relative;pointer-events:auto}.place-plate{display:flex;align-items:center;gap:12px;max-width:clamp(190px,36vw,440px);border-radius:15px 7px 15px 7px;padding:10px 19px 10px 10px}.place-seal{width:51px;height:51px;flex:none;display:grid;place-items:center;background:radial-gradient(#50705c,#243c32);border:2px solid #c49c5f;border-radius:50%;box-shadow:inset 0 0 0 3px #2a4238}.place-seal img{width:30px;height:30px;transform:rotate(-6deg);border-radius:3px}.place-name,.place-stats,.time-hud .count-label{color:#e7d7ad;font-size:11px}.place-name{font-weight:700;line-height:1.2}.place-plate h1{color:#fff6e1;font-weight:800;line-height:1.22;font-size:clamp(18px,2.2vw,30px);letter-spacing:-.05em;overflow-wrap:anywhere}.place-stats{display:flex;gap:10px;line-height:1.5;margin-top:2px}.visitors:before{content:'';display:inline-block;width:6px;height:6px;background:#a5d58d;border-radius:50%;margin-right:4px;vertical-align:1px;box-shadow:0 0 5px #90e79799}.visitors.away:before{background:#f4ba68}.village-count{border-left:1px solid #c1c49e66;padding-left:9px}.world-tools{pointer-events:auto;display:flex;align-items:center;gap:6px}.round-tool,.village-music{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:39px;height:38px;min-height:38px;border:1px solid #c1ad7b;background:#233c35ec;color:#fff2d5;border-radius:11px;font-weight:700;font-size:12px;padding:0 10px}.round-tool{font-size:17px;padding:0 8px}.world-tools .icon{width:17px;height:17px}.world-tools button:hover,.portal-btn:hover,.village-dock button:hover{filter:brightness(1.16)}.time-hud{border-radius:7px 14px 7px 14px;padding:9px 14px 5px;min-width:192px;text-align:center}.village-timer.countdown{padding:0;border:0;max-width:none}.village-timer .count-label{margin:0 0 4px;font-weight:650}.village-timer .tiny-star{color:#ffd171}.village-timer .unit{border-color:#96a48b66;padding-inline:5px}.village-timer .unit strong{font:bold 25px/1 Georgia,serif;color:#ffeec6;letter-spacing:-.02em}.village-timer .unit span{font-size:7px;color:#d6c99f;line-height:1.5}.village-timer .merry{color:#ffdf8a;font-size:22px}.village-schedule.navbtn{border-top:1px solid #b9ad7c60;color:#e3d5ab;justify-content:center;font-size:10px;min-height:21px;width:100%;margin-top:3px;padding:2px 0 0}.village-schedule span{font-size:11px}
.hud-bottom{bottom:max(12px,env(safe-area-inset-bottom));flex-direction:column;align-items:stretch;gap:7px}.dock-wrap{display:flex;justify-content:center;pointer-events:none}.village-dock{display:grid;grid-template-columns:repeat(4,1fr);background:linear-gradient(180deg,#4a5040,#273c33 82%,#1e302b);border:1px solid #eacb87;outline:2px solid #26342f;outline-offset:0;border-radius:17px;padding:6px;gap:5px;pointer-events:auto;position:relative}.dock-btn{color:#f6eacb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:73px;min-height:48px;line-height:1.15;border-radius:10px;border:1px solid #84927a;background:linear-gradient(145deg,#496154,#344a40);box-shadow:inset 0 1px 0 #8da0864d;font-size:11px;font-weight:750}.dock-btn .icon{width:21px;height:21px;stroke-width:1.65}.dock-btn.write{color:#51351f;border-color:#f7d697;background:linear-gradient(145deg,#ffe6a5,#d4a75d);box-shadow:inset 0 1px 0 #fff4cd}.dock-btn[aria-expanded=true],.dock-btn[aria-pressed=true]{outline:2px solid #ffe1a2;outline-offset:-3px}.world-bottomline{display:flex;align-items:center;justify-content:space-between;min-height:28px;pointer-events:none}.portal-btn,.world-security{display:inline-flex;align-items:center;gap:6px;pointer-events:auto;color:#fff2d3;background:#20382ce6;border:1px solid #c0ab79;border-radius:20px;padding:5px 12px;font-size:11px;font-weight:650;min-height:32px}.world-security{border-color:#b9b99d88;background:#21342dc9}.portal-btn .icon,.world-security .icon{width:14px;height:14px}
.world-hint{pointer-events:none;position:absolute;left:50%;bottom:143px;transform:translate(-50%,6px);width:max-content;max-width:76vw;text-align:center;z-index:6;color:#fff2d8;background:#233a32ed;border:1px solid #c6ac77;border-radius:30px;font-size:12px;padding:6px 15px;opacity:0;transition:opacity .25s,transform .25s}.world-hint.visible{opacity:1;transform:translate(-50%,0)}.village .actor{bottom:auto;position:absolute;transform:translateX(-50%);z-index:3;aspect-ratio:auto!important}.village .actor .sprite{filter:drop-shadow(0 .35cqh .11cqh #301e0f38)}.npc-name{position:absolute;left:50%;transform:translateX(-50%);top:-3%;font-size:clamp(9px,.94vw,13px);white-space:nowrap;background:#263c34d9;border:1px solid #e6cd92b3;color:#fff1c7;border-radius:15px;padding:2px 10px;line-height:1.25;font-weight:650}.npc-name:after{content:'';position:absolute;left:calc(50% - 3px);bottom:-3px;width:5px;height:5px;background:#394e3e;border-bottom:1px solid #d0be91;border-right:1px solid #d0be91;transform:rotate(45deg)}.npc-bubble{position:absolute;z-index:10;max-width:min(220px,51cqw);padding:10px 14px;background:#fff1d4;color:#3b4436;border-radius:14px 14px 14px 3px;border:2px solid #b49760;box-shadow:0 4px 8px #1c291e38;transform:translate(-50%,-100%);font-size:13px;font-weight:650}.world-ambient{position:absolute;transform:translate(-50%,-50%);width:10%;height:10%;z-index:2}.world-snow{position:absolute;z-index:1;pointer-events:none;overflow:hidden;container-type:size}.world-snow.park{inset:0}.world-snow i{position:absolute;top:-4px;width:var(--size);height:var(--size);border-radius:50%;background:#fffceb;animation:worldflake var(--time) linear infinite both;box-shadow:0 0 2px #fff9d9a0}.world-snow.room i{opacity:.75}.village .bulbs{z-index:4}.village .bulb{width:clamp(3px,.67cqh,9px)}.village .pins{z-index:5}.village .treepin{min-width:14px;transform:translate(-50%,-10%)}.world-journal{position:absolute;z-index:7;right:clamp(12px,2vw,36px);top:clamp(116px,15vh,158px);width:min(355px,calc(100% - 24px));max-height:calc(100dvh - 267px);display:flex;flex-direction:column;color:#2b4136;border:2px solid #b79e65;border-radius:13px 6px 15px 7px;background:#f7efda;box-shadow:0 10px 45px #13251db3;overflow:hidden}.world-journal>header{display:flex;justify-content:space-between;align-items:center;padding:11px 17px;border-bottom:1px solid #cfc3a3;background:linear-gradient(110deg,#eee2c5,#fcf3d9)}.world-journal>header small{font:italic 11px Georgia;letter-spacing:.12em;color:#835447}.world-journal h2{font-size:18px;line-height:1.1;letter-spacing:-.05em}.world-journal h2 span{font-size:12px;color:#806747}.journal-close{background:#365444;color:#fff4d6;border-radius:7px;padding:6px 12px;font-size:12px;box-shadow:none}.world-journal .letter-list{border:0;border-radius:0;min-height:0;max-height:none}
.avatar-gl,.walk-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4}.walk-layer{z-index:5}.walker{height:12%;aspect-ratio:.94;position:absolute;transform:translate(-50%,-100%);pointer-events:none;display:grid;justify-items:center;align-items:end}.walker img{position:absolute;width:100%;height:100%;object-fit:contain;bottom:0;transform:scaleX(var(--facing,1))}.walker .shadow{position:absolute;bottom:1%;width:54%;height:10%;border-radius:50%;background:radial-gradient(ellipse,#35282066,transparent 74%)}.walker.gpu img{display:none}.walker.guest img{filter:hue-rotate(32deg) saturate(.82)}.walker small{position:absolute;left:50%;top:2%;transform:translate(-50%,-100%);background:#234638d9;color:#fff1cb;font:650 10px/1.25 'Malgun Gothic',sans-serif;padding:1px 6px;border:1px solid #d9c593bd;border-radius:14px;white-space:nowrap}.walker.guest small{background:#354a56d9}.walker.walking img{animation:waddle .34s ease-in-out infinite alternate}.waypoint{position:absolute;width:3.8%;aspect-ratio:2.2;border-radius:50%;border:2px solid #f5d58e;transform:translate(-50%,-50%);opacity:0;box-shadow:0 0 6px #796336}.waypoint.show{opacity:.85}.village-board .spark{font-size:clamp(12px,2.1cqh,24px)}@keyframes waddle{from{transform:translateY(-2%) rotate(-4deg) scaleX(var(--facing,1))}to{transform:translateY(0) rotate(4deg) scaleX(var(--facing,1))}}@keyframes worldflake{0%{opacity:0;transform:translate(0,0)}8%{opacity:.66}90%{opacity:.53}100%{opacity:0;transform:translate(14px,103cqh)}}
@media(min-width:761px){.hud-bottom{bottom:max(21px,env(safe-area-inset-bottom))}.world-bottomline{position:absolute;bottom:0;left:0;right:0}.village-dock{padding:7px;gap:6px}.dock-btn{min-width:78px;min-height:54px}.world-hint{bottom:106px}}
@media(max-width:620px){.hud-top{inset-inline:11px;top:max(12px,env(safe-area-inset-top));gap:8px}.place-plate{gap:6px;padding:8px 9px 8px 6px;max-width:52vw;border-radius:12px 5px 12px 5px}.place-seal{width:31px;height:31px}.place-seal img{width:22px;height:22px}.place-name,.place-stats{font-size:9px}.place-plate h1{font-size:19px}.place-stats{gap:6px}.village-count{padding-left:6px}.time-hud{min-width:0;width:138px;padding:5px 7px 2px;flex:none}.village-timer .unit strong{font-size:19px}.village-timer .unit{padding-inline:0}.village-timer .unit span{font-size:6px}.time-hud .count-label{font-size:9px;margin-bottom:2px}.village-schedule.navbtn{font-size:9px;min-height:18px}.hud-id{gap:6px}.round-tool,.village-music{height:32px;min-height:32px;min-width:34px;border-radius:8px;font-size:14px;padding:0 7px}.village-music{font-size:0;gap:0}.world-tools{gap:5px}.world-tools .icon{width:15px;height:15px}.village-timer .merry{font-size:18px}.hud-bottom{inset-inline:13px;gap:6px;bottom:max(9px,env(safe-area-inset-bottom))}.village-dock{width:min(100%,365px);padding:4px;gap:4px;border-radius:13px}.dock-btn{min-width:0;min-height:43px;font-size:10px}.dock-btn .icon{width:18px;height:18px}.world-bottomline{min-height:24px}.world-security,.portal-btn{padding:3px 9px;min-height:25px;font-size:10px}.world-hint{bottom:103px;padding:5px 12px;font-size:10px;max-width:87vw}.npc-name{font-size:9px;padding:2px 7px}.world-journal{inset:auto 9px 98px;width:auto;max-height:55dvh}.world-journal>header{padding:9px 13px}.world-journal .letter-row{padding:7px 12px}.village .world-floor:focus-visible{outline:2px dashed #f9d69d;outline-offset:-3px}.walker small{font-size:9px}}
@media(max-height:515px) and (orientation:landscape){.place-plate{padding:4px 8px}.place-seal{width:30px;height:30px}.place-plate h1{font-size:16px}.place-name,.place-stats{font-size:8px}.hud-top{top:6px}.time-hud{padding:4px 9px;min-width:135px}.village-timer .unit strong{font-size:17px}.world-tools{gap:3px}.world-tools button{height:27px;min-height:27px}.hud-bottom{bottom:5px}.dock-btn{min-height:32px;min-width:58px}.dock-btn .icon{width:14px;height:14px}.world-journal{max-height:68vh;top:22px;right:145px}.world-hint{bottom:63px}}
@media(prefers-reduced-motion:reduce){.world-snow i{display:none}.walker.walking img{animation:none}.world-hint{transition:none}}
.writing.paper-ivory{background-image:url('/assets/paper-ivory.webp?paper=2')}.writing.paper-night{background-image:url('/assets/paper-night.webp?paper=2')}.writing.paper-plaid{background-image:url('/assets/paper-plaid.webp?paper=2')}.writing.paper-biscuit{background-image:url('/assets/paper-biscuit.webp?paper=2')}.writing[class*=paper-]{background-size:100% 100%;background-repeat:no-repeat;padding:20px 23px}.writing.paper-night textarea{background:#1624316e}
.village,.village .world-floor.stage{overflow:clip}
.world-snow.room{mask-image:linear-gradient(to right,#000 0 48%,transparent 48% 52%,#000 52%),linear-gradient(to bottom,#000 0 48%,transparent 48% 52%,#000 52%);mask-composite:intersect}
.village .actor{z-index:6}.village .walk-layer,.village .avatar-gl{z-index:7}
.in-world dialog{border:2px solid #b7a06a;border-radius:16px 8px 16px 8px;background:#f6eedb;box-shadow:0 0 0 2px #324237,0 22px 75px #101e18aa}.in-world .modalhead{background:linear-gradient(120deg,#375343,#1d3834);color:#fff1d0;border-color:#b8a06b}.in-world .modalhead h2{font-size:20px}.in-world .modalhead .close{height:31px;width:31px;border:1px solid #ad9e72;background:#435947;color:#ffebc7}.in-world .choice{background-color:#fcf5e2}.in-world .choice[aria-pressed=true]{background-color:#ebe4c9;box-shadow:inset 0 0 0 3px #d4bd81;outline-color:#556449}.in-world .steps{color:#886b39;letter-spacing:.13em}
