.nw-world{position:relative;height:clamp(340px,58dvh,680px);min-width:0;overflow:hidden;border:2px solid #bfce9f;border-radius:24px;background:#ccdedb;isolation:isolate}.nw-canvas{width:100%;height:100%;touch-action:none}.nw-canvas canvas{display:block;width:100%;height:100%}.nw-top{position:absolute;left:12px;right:12px;top:12px;display:flex;gap:12px;align-items:start;justify-content:space-between;pointer-events:none}.nw-top>*{pointer-events:auto}.nw-status{padding:10px 14px;border-radius:14px;background:#fffbeeeb;max-width:70%;font-size:14px;line-height:1.5}.nw-world button{min-height:44px;min-width:44px;margin:0}.nw-top button{border-radius:50%;font-size:20px}.nw-view-tools{position:absolute;right:12px;bottom:12px;display:flex;gap:8px}.nw-bottom{position:absolute;left:12px;bottom:12px;display:flex;gap:8px;flex-wrap:wrap;max-width:calc(100% - 132px)}.nw-bottom button{padding:10px 12px;font-size:14px}.nw-labels{position:absolute;inset:0;pointer-events:none}.nw-sign{position:absolute;transform:translate(-50%,-100%);pointer-events:auto;max-width:180px;background:#fffcece8!important;font-size:14px;overflow-wrap:anywhere}.nw-stick{display:none;position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:24px;width:100px;height:100px;background:#fff9db80;border:2px solid #f5efd4;border-radius:50%;touch-action:none;align-items:center;justify-content:center}.nw-stick i{position:absolute;width:40px;height:40px;border-radius:50%;background:#527554b0}.nw-stick span{align-self:end;font-size:12px;padding-bottom:8px}.nw-jump{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));right:24px;border-radius:50%;width:64px;height:64px;touch-action:none}.nw-interact{position:absolute;bottom:102px;right:16px;max-width:45%;font-size:14px}.nw-walking .nw-stick{display:flex}.nw-walking .nw-view-tools{display:none}.nw-walking .nw-bottom{top:72px;bottom:auto;max-width:100%;right:12px}.nw-world.nw-immersive{position:fixed;inset:0;width:100%;height:100dvh;max-height:none;border:0;border-radius:0;z-index:150;padding-top:env(safe-area-inset-top)}html.nw-playing{overflow:hidden}html.nw-playing dialog{z-index:200}.nw-world [hidden]{display:none!important}.nw-fallback{position:absolute;inset:68px 12px 78px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:16px;background:#bbcf97;border-radius:16px;padding:12px}.nw-light-house{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;z-index:1;background:#fffbeccc}.nw-light-house span{font-size:38px;color:#51764d}.nw-light-house small{font-size:12px}.nw-slot-0{grid-area:1/1}.nw-slot-1{grid-area:1/2}.nw-slot-2{grid-area:2/1}.nw-slot-3{grid-area:2/2}.nw-light-path{position:absolute;left:48%;top:0;width:4%;height:100%;background:#ddcdaa}.nw-find{display:grid;gap:12px}.nw-find summary{min-height:44px;align-content:center;font-weight:bold;cursor:pointer}.nw-find .nh-village{margin-top:12px}.nw-actions{display:flex;gap:8px;flex-wrap:wrap}.nw-map-loading{min-height:180px;display:grid;place-content:center}.nw-help{line-height:1.8;display:grid;gap:12px}.nw-help p{margin:0}.nw-invite-note{padding:12px;background:#edf2dc;border-radius:14px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.nw-gateway{position:absolute;left:12px;top:74px;z-index:3;max-width:65%;padding:10px 14px!important;font-size:14px}.hs-scene .voxel-stage{position:relative}
@media(max-width:600px){.nw-world{height:clamp(360px,55dvh,560px)}.nw-status{max-width:78%;font-size:13px}.nw-top{left:8px;right:8px;top:8px;gap:8px}.nw-bottom{left:8px;bottom:8px;gap:8px}.nw-bottom button{font-size:12px;padding:8px}.nw-view-tools{right:8px;bottom:8px;gap:8px}.nw-interact{max-width:50%}.nw-fallback{gap:12px;padding:10px}.nw-light-house strong{font-size:13px}.nw-light-house small{font-size:11px}.nw-sign{font-size:12px;max-width:130px}}
@media(prefers-reduced-motion:reduce){.nw-world *{transition:none!important;animation:none!important}}
/* Explicit narrow-window fallback also covers manually selected desktop mode. */
@media(max-width:600px){html[data-view=neighbors] #header{display:flex;flex-wrap:wrap;gap:8px}html[data-view=neighbors] #header nav{display:flex;flex:1 1 100%;gap:8px;overflow:auto;max-width:100%}html[data-view=neighbors] #header nav button{flex:0 0 auto;white-space:nowrap}html[data-view=neighbors] #header .wallet{max-width:100%;flex-wrap:wrap;gap:8px}}

.nw-world .nw-jump{padding:0!important;white-space:nowrap;font-size:16px!important}.nw-walking .nw-bottom button{min-height:44px}
html[data-view=neighbors] #header,html[data-view=neighbors] #game{min-width:0;max-width:100%;width:100%;box-sizing:border-box}.nh-map,.nw-mount{min-width:0;max-width:100%}.nw-world .nw-bottom{max-width:calc(100% - 126px)}.nw-world.nw-walking .nw-bottom{max-width:100%}
@media(max-width:600px){html[data-view=neighbors] #header .wallet{margin-left:0;flex:1 1 100%;justify-content:flex-start}.nw-world .nw-bottom{max-width:calc(100% - 120px)}.nw-world:not(.nw-walking) .nw-bottom button:last-child{display:none}.nw-world.nw-walking .nw-bottom{max-width:100%}}

/* A neighborhood is a play scene: its own return control replaces the global navigation. */
html[data-view=neighbors] #header{display:none!important}.nw-sign{width:max-content;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.nh-map-head{gap:12px}.nw-world .nw-status{box-sizing:border-box}.nw-walking .nw-top .nw-status{max-width:calc(100% - 60px)}
