/* Phase II: Social City — own shared stage, media/Twitch remain attached to room. */
#noeCityNav{white-space:nowrap}#noeCityPortal{position:absolute;z-index:360;left:49%;bottom:6%;transform:translateX(-50%);background:#302141ed;color:#f2daaa;border:1px solid #e2b879;border-radius:6px;font-size:10px;padding:6px 12px;cursor:pointer;box-shadow:0 0 13px #b269ed66}#noeCityPortal[hidden]{display:none}
#noeCityPlane{position:absolute;inset:0;z-index:450;background:#100e20;overflow:hidden;isolation:isolate}#noeCityPlane[hidden]{display:none!important}
#noeCityMap{--noe-city-avatar-size:80px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background-image:url('assets/city-merchant-square.png');background-repeat:no-repeat;background-position:center;background-size:100% 100%;box-shadow:0 0 25px #000e;cursor:crosshair}
#noeCityPeople{position:absolute;inset:0;z-index:0;pointer-events:none}.noe-city-player{pointer-events:auto;position:absolute;width:88px;height:98px;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-83%);transition:left .15s linear,top .15s linear;filter:drop-shadow(0 5px 5px #000a)}.noe-city-player .noe-city-name{order:0;font-size:11px;max-width:122px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#19102bdf;border:1px solid #926ab0;color:#f3dfff;border-radius:4px;padding:2px 5px}.noe-city-player.is-self .noe-city-name{color:#a4f2e4;border-color:#6fe0be} .noe-city-player canvas{width:var(--noe-city-avatar-size);height:var(--noe-city-avatar-size);image-rendering:pixelated;order:1}.noe-city-player.city-activity canvas{animation:city-wave .48s ease-in-out infinite alternate}.noe-city-action{position:absolute;right:-6px;top:3px;font-size:21px;color:white;text-shadow:0 2px #000}
@keyframes city-wave{to{transform:rotate(7deg) translateY(-5px)}}
.noe-city-head{position:absolute;left:1%;right:1%;top:7px;z-index:26;display:flex;align-items:center;justify-content:space-between;gap:6px;pointer-events:none}.noe-city-head>*{pointer-events:auto;background:#1e1631ea;border:1px solid #9063a9;color:#f6dcff;border-radius:6px;padding:6px 9px;font-size:11px}.noe-city-head small{color:#8cf2d3;margin-left:8px}.noe-city-head>span{color:#e2b97d}.noe-city-head button{cursor:pointer}
.noe-city-foot{position:absolute;z-index:29;bottom:14px;right:1.5%;width:37%;max-width:380px;background:#1b1730f0;border:1px solid #846da0;border-radius:7px;box-shadow:0 6px 22px #000b}.noe-city-foot #noeCityHistory{max-height:95px;overflow-y:auto;font-size:10px;padding:7px;color:#efdfff}.noe-city-foot #noeCityHistory>div{margin:3px 0}.noe-city-foot strong{color:#d4acff}#noeCityChat{display:flex;padding:4px;gap:5px}#noeCityInput{flex:1;min-width:0;background:#100e20;color:white;border:1px solid #715f85;border-radius:4px;padding:7px}#noeCityChat button{background:#6d4496;color:white;border-radius:4px;padding:4px 9px}
.city-object{position:absolute;z-index:14;padding:5px 8px;background:#22182bdf;color:#f2d39b;border:1px solid #dfb677;border-radius:5px;font-size:12px;font-weight:bold;cursor:pointer;transform:translate(-50%,-50%);box-shadow:0 0 12px #b762f566}.city-market{left:32%;top:57%}.city-fountain{left:50%;top:59%}.city-bench{left:33%;top:78%}.city-notice{left:65%;top:61%}
body.noe-in-city #noeCityNav{border-color:#f5c79c;background:#46315b}#scene.noe-city-active>#worldArt{visibility:hidden}#scene.noe-city-active #noeCityPortal{display:none}
@media(max-width:900px){.noe-city-head>span{display:none}.noe-city-foot{width:58%}#noeCityMap{--noe-city-avatar-size:58px}.noe-city-player{width:65px;height:76px}}
@media(prefers-reduced-motion:reduce){.noe-city-player,.noe-city-player.city-activity canvas{transition:none;animation:none}}

/* Walk bob is cosmetic; route and collisions always remain server-authoritative. */
.noe-city-player.is-walking canvas{animation:city-walk-bob .24s ease-in-out infinite alternate;transform-origin:50% 95%}
@keyframes city-walk-bob{to{transform:translateY(-3px) rotate(2deg)}}
@media(prefers-reduced-motion:reduce){.noe-city-player.is-walking canvas{animation:none}}

.city-object:focus-visible,.noe-city-head button:focus-visible,.noe-city-foot :is(input,button):focus-visible {outline: 3px solid #ffe597; outline-offset: 2px;}
@media (max-width:760px){.noe-city-head button,.noe-city-foot button{min-height:44px}.noe-city-foot{width:min(70%,350px)}}

#noeCityChatToggle{display:none}
@media(max-width:760px){
 #noeCityChatToggle{position:absolute;right:1.5%;bottom:5px;z-index:30;display:block;min-height:44px;padding:0 10px;background:#302141;color:#f6dcff;border:1px solid #9063a9;border-radius:6px}
 #noeCityChatToggle:focus-visible{outline:3px solid #ffe597;outline-offset:2px}
 #noeCityChatToggle[aria-expanded="false"]+.noe-city-foot{display:none}
 .noe-city-foot{bottom:53px}
 .city-object{font-size:10px;padding:5px;white-space:nowrap}
 .city-fountain{margin-top:-12px}
 .city-notice{margin-top:12px}
}
