/* NEVIRO TALK 1.0.86.31.4 · WORLD UI LAYER / HUD CLEANUP PASS 1
   Goal: keep gameplay visible while preserving developer diagnostics.
   This file is intentionally loaded last and only overrides layout/presentation. */

:root{
  --nwu-top:14px;
  --nwu-side:18px;
  --nwu-panel-bg:rgba(252,253,255,.88);
  --nwu-panel-border:rgba(90,103,168,.18);
  --nwu-panel-shadow:0 12px 34px rgba(43,56,101,.14);
  --nwu-layer-hud:34;
  --nwu-layer-status:42;
  --nwu-layer-interaction:64;
  --nwu-layer-modal:90;
}

/* ---------- top navigation: one line, no Korean word wrapping ---------- */
.nw-topbar{
  z-index:var(--nwu-layer-status)!important;
  left:var(--nwu-side)!important;
  right:var(--nwu-side)!important;
  top:var(--nwu-top)!important;
  min-height:58px!important;
  height:58px!important;
  padding:0 14px!important;
  grid-template-columns:auto minmax(150px,1fr) auto!important;
  gap:14px!important;
}
.nw-brand,.nw-title,.nw-top-actions{min-width:0}
.nw-title{overflow:hidden}
.nw-title strong,.nw-title small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nw-top-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-width:0!important;
}
.nw-top-actions button,.nw-top-actions a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  height:32px!important;
  min-width:0!important;
  padding:0 9px!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  line-height:1!important;
  font-size:10px!important;
}

/* ---------- left gameplay lane ---------- */
.nw-avatar-panel{
  z-index:var(--nwu-layer-hud)!important;
  left:18px!important;
  top:84px!important;
  width:166px!important;
  padding:10px!important;
  border-radius:14px!important;
  background:var(--nwu-panel-bg)!important;
  box-shadow:var(--nwu-panel-shadow)!important;
}
.nw-avatar-position{margin:7px 0 6px!important;font-size:9px!important}
.nw-avatar-pad button,.nw-avatar-buttons button{height:29px!important}

.nw-nearby{
  z-index:var(--nwu-layer-hud)!important;
  left:196px!important;
  top:84px!important;
  bottom:auto!important;
  width:240px!important;
  max-height:104px!important;
  border-radius:13px!important;
  box-shadow:var(--nwu-panel-shadow)!important;
}
.nw-nearby-head{padding:8px 10px!important}
.nw-nearby-list{max-height:70px!important}
.nw-nearby-empty,.nw-nearby-item{padding:7px 10px!important}

/* ---------- compact recovery/guide card ---------- */
.nw-guide{
  z-index:var(--nwu-layer-hud)!important;
  left:18px!important;
  right:auto!important;
  top:auto!important;
  bottom:18px!important;
  width:min(360px,calc(100vw - 36px))!important;
  padding:10px 12px!important;
  border:1px solid var(--nwu-panel-border)!important;
  border-radius:14px!important;
  background:var(--nwu-panel-bg)!important;
  box-shadow:var(--nwu-panel-shadow)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
  text-shadow:none!important;
  pointer-events:none!important;
}
.nw-guide-badge{
  padding:4px 7px!important;
  font-size:7px!important;
  letter-spacing:.11em!important;
  box-shadow:none!important;
}
.nw-guide h1{
  margin:7px 0 0!important;
  font-size:18px!important;
  line-height:1.05!important;
  letter-spacing:-.035em!important;
  white-space:nowrap!important;
}
.nw-guide h1 br{display:none!important}
.nw-guide h1 em{margin-left:5px!important}
.nw-guide p,.nw-guide-row{display:none!important}

/* ---------- realtime/presence: status badge, not a floating dialog ---------- */
#neviro-presence-diag{
  z-index:var(--nwu-layer-status)!important;
  left:auto!important;
  right:18px!important;
  top:84px!important;
  bottom:auto!important;
  width:232px!important;
  min-width:232px!important;
  max-width:232px!important;
  padding:8px 10px!important;
  border:1px solid rgba(116,96,213,.20)!important;
  border-radius:12px!important;
  background:rgba(13,19,39,.88)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.22)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  line-height:1.25!important;
}
#neviro-presence-diag > b{
  display:inline-block!important;
  margin:0 8px 0 0!important;
  font-size:8px!important;
  letter-spacing:.09em!important;
}
#neviro-presence-diag [data-pr-line]{
  display:inline!important;
  font-size:9px!important;
  white-space:nowrap!important;
}
#neviro-presence-diag [data-pr-sub]{display:none!important}
#neviro-presence-diag .nw-reference-inline{display:none!important}

/* ---------- production avatar: compact status, no large dev slab ---------- */
.nw-production-avatar{
  z-index:var(--nwu-layer-hud)!important;
  right:18px!important;
  bottom:18px!important;
  width:238px!important;
  padding:9px 10px!important;
  border-radius:13px!important;
  box-shadow:var(--nwu-panel-shadow)!important;
}
.nw-production-avatar-head{gap:7px!important}
.nw-production-avatar-head b{font-size:10px!important}
.nw-production-avatar-head small{font-size:7px!important}
.nw-production-avatar-body{margin-top:6px!important}
.nw-production-avatar-role{font-size:9px!important}
.nw-production-avatar-meta{margin-top:2px!important;min-height:0!important;font-size:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.nw-production-avatar button{margin-top:6px!important;padding:7px 8px!important;border-radius:9px!important;font-size:9px!important;box-shadow:none!important}
.nw-production-avatar-help{display:none!important}
body[data-neviro-camera="FIRST_PERSON"] .nw-production-avatar{opacity:.78!important;transform:none!important}

/* ---------- center/bottom interaction lane ---------- */
.nw-camera-director{
  z-index:var(--nwu-layer-status)!important;
  bottom:18px!important;
}
.nwi-prompt{
  z-index:var(--nwu-layer-interaction)!important;
  bottom:76px!important;
}
.nw-stage-label{display:none!important}
.nw-controls{z-index:var(--nwu-layer-status)!important}
.nwd-current{z-index:var(--nwu-layer-status)!important}

/* F2 diagnostic remains the top debug layer, but no longer covers the guide card. */
#neviroAdminDevGridBadge{
  left:18px!important;
  bottom:88px!important;
  max-width:min(560px,calc(100vw - 36px))!important;
  font-size:10px!important;
  line-height:1.38!important;
}

/* ---------- responsive hierarchy ---------- */
@media(max-width:1320px){
  .nw-topbar{grid-template-columns:auto 1fr!important}
  .nw-title{display:none!important}
}
@media(max-width:1080px){
  .nw-top-actions [data-action="avatar-studio"],
  .nw-top-actions [data-action="wardrobe"],
  .nw-top-actions [data-action="districts"]{display:none!important}
  .nw-nearby{width:220px!important}
}
@media(max-width:860px){
  .nw-topbar{left:10px!important;right:10px!important;top:10px!important;height:54px!important;min-height:54px!important;padding:0 10px!important}
  .nw-top-actions{gap:4px!important}
  .nw-top-actions button,.nw-top-actions a{height:30px!important;padding:0 7px!important;font-size:9px!important}
  .nw-avatar-panel{display:none!important}
  .nw-nearby{left:10px!important;top:74px!important;width:220px!important;max-height:96px!important}
  #neviro-presence-diag{right:10px!important;top:74px!important;width:218px!important;min-width:218px!important;max-width:218px!important}
  .nw-guide{left:10px!important;bottom:10px!important;width:min(330px,calc(100vw - 20px))!important}
  .nw-production-avatar{right:10px!important;bottom:10px!important;width:220px!important}
  .nw-camera-director{right:10px!important;bottom:62px!important}
  .nwi-prompt{bottom:110px!important}
  #neviroAdminDevGridBadge{left:10px!important;bottom:82px!important;max-width:calc(100vw - 20px)!important}
}
@media(max-width:620px){
  .nw-top-actions [data-action="fullscreen"],
  .nw-top-actions [data-neviro-account-link]{display:none!important}
  #neviro-presence-diag{display:none!important}
  .nw-nearby{left:10px!important;right:10px!important;top:72px!important;width:auto!important;max-height:86px!important}
  .nw-production-avatar{display:none!important}
  .nw-guide{max-width:calc(100vw - 20px)!important}
  .nw-guide h1{font-size:16px!important}
  .nw-camera-director{bottom:12px!important}
  .nwi-prompt{bottom:68px!important}
  #neviroAdminDevGridBadge{bottom:72px!important;font-size:9px!important}
}
