/* Integrated user wardrobe on the game home. Kept outside #ntv-game-root to isolate visual styles. */
#ntv-wardrobe-layer[hidden]{display:none!important}
#ntv-wardrobe-layer{position:fixed;inset:0;z-index:2147483000;background:#052f29ed;overflow:auto;overscroll-behavior:contain;padding:12px max(8px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom));scrollbar-width:thin}
#ntv-wardrobe-layer .ntv-wardrobe-dialog-inner{width:min(100%,1750px);margin:auto;position:relative;padding-top:58px}
#ntv-wardrobe-layer #ntv-wardrobe-close{z-index:12;position:sticky;top:8px;left:calc(100% - 160px);margin:0 0 10px auto;display:block;border:2px solid #f7d67a;border-radius:24px;background:#ffe7ab;color:#174a43;padding:11px 20px;box-shadow:0 3px 0 #a96b27;font-weight:900;font-size:16px;cursor:pointer;min-height:46px}
#ntv-wardrobe-layer .ntv-wardrobe{max-width:100%;margin:0 auto}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-shell{min-width:0}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-hero{min-height:85px}
@media(max-width:420px){#ntv-wardrobe-layer{padding:0 2px 16px}#ntv-wardrobe-layer .ntv-wardrobe-dialog-inner{padding-top:8px}#ntv-wardrobe-layer #ntv-wardrobe-close{top:4px;font-size:14px;min-height:44px}#ntv-wardrobe-layer .ntv-wardrobe{border-radius:12px}}
body.ntv-wardrobe-open{overflow:hidden!important}
/* In the actual mobile game the wardrobe must be the first useful screen. */
#ntv-wardrobe-layer .ntv-badges-empty{font-size:14px!important;line-height:1.5!important;min-height:45px!important;white-space:normal}
#ntv-wardrobe-layer .ntv-badge-strip small{font-size:13px;line-height:1.5;color:#35655c}
@media(max-width:900px){
  #ntv-wardrobe-layer .ntv-shell{display:flex;flex-direction:column;gap:10px}
  #ntv-wardrobe-layer .ntv-main{order:1}
  #ntv-wardrobe-layer .ntv-profile{order:2}
  #ntv-wardrobe-layer .ntv-side{order:3}
}
@media(max-width:420px){
  #ntv-wardrobe-layer .ntv-hero{min-height:0;padding:8px}
  #ntv-wardrobe-layer .ntv-hero-desc{display:none}
  #ntv-wardrobe-layer .ntv-hero-badge{display:none}
  #ntv-wardrobe-layer .ntv-page-label{margin:5px 0;font-size:11px}
  #ntv-wardrobe-layer .ntv-main-heading{font-size:17px}
  #ntv-wardrobe-layer .ntv-main-content{min-height:0}
  #ntv-wardrobe-layer .ntv-stage{height:300px}
}

/* v3.8: independent viewport modal; shortcode/theme container must not clip wardrobe. */
#ntv-wardrobe-layer:not([hidden]){
  position:fixed!important;inset:0!important;
  width:100vw!important;max-width:none!important;
  height:100vh!important;height:100dvh!important;
  margin:0!important;box-sizing:border-box!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;transform:none!important;
  padding:clamp(6px,1.5vw,18px) max(8px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
}
#ntv-wardrobe-layer .ntv-wardrobe-dialog-inner{
  width:100%!important;max-width:1600px!important;min-width:0!important;
  box-sizing:border-box!important;container-name:ntv-wardrobe;container-type:inline-size;
  padding-top:0!important;margin:0 auto!important;
}
#ntv-wardrobe-layer #ntv-wardrobe-close{
  position:sticky!important;top:0!important;right:0!important;left:auto!important;
  width:max-content;max-width:100%;min-height:44px;
  z-index:100;isolation:isolate;margin:0 0 8px auto!important;
}
#ntv-wardrobe-layer .ntv-wardrobe{
  width:100%!important;max-width:100%!important;min-width:0!important;
  overflow:clip;box-sizing:border-box;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-shell,
#ntv-wardrobe-layer .ntv-wardrobe .ntv-main-content,
#ntv-wardrobe-layer .ntv-wardrobe .ntv-panel,
#ntv-wardrobe-layer .ntv-wardrobe .ntv-catalog,
#ntv-wardrobe-layer .ntv-wardrobe .ntv-preview-pane{
  min-width:0!important;max-width:100%;box-sizing:border-box;
}
#ntv-wardrobe-layer .ntv-wardrobe img{max-width:100%}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-item-grid{min-width:0}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-item{overflow:hidden}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-info{flex:1 1 0;min-width:0}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-top{min-width:0}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-info h3{overflow-wrap:anywhere;word-break:normal}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-tabs{max-width:100%;min-width:0;scrollbar-width:thin}

/* Independent responsive compositions based on the ACTUAL dialog width, not screen size. */
@container ntv-wardrobe (min-width: 1360px){
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-shell{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(590px,2.15fr) minmax(270px,1fr);gap:12px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-side{grid-column:auto;display:flex;flex-direction:column;gap:10px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-top{flex-direction:column;text-align:center}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-main-content{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(300px,1.5fr)}
}
@container ntv-wardrobe (min-width: 900px) and (max-width: 1359px){
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-shell{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,2fr);gap:12px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-profile{display:block}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-top{flex-direction:column;text-align:center}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-side{display:grid;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-main-content{grid-template-columns:minmax(190px,.85fr) minmax(0,1.5fr)}
}
@container ntv-wardrobe (max-width: 899px){
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-shell{display:flex!important;flex-direction:column;gap:12px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-main{order:1}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-profile{order:2}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-side{order:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-side .ntv-panel:last-child{grid-column:1/-1}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-profile{display:block}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-top{flex-direction:row;text-align:left;min-height:120px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-hero{flex-wrap:wrap;gap:9px;justify-content:space-between}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-hero-desc{display:none}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-main-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);min-height:0}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-stage{height:330px}
}
@container ntv-wardrobe (max-width: 670px){
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-main-content{grid-template-columns:minmax(0,1fr);gap:12px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-preview-pane{max-width:480px;width:100%;margin:0 auto}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-stage{height:320px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-side{display:flex;flex-direction:column}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-side .ntv-panel:last-child{grid-column:auto}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-portrait{width:100px;height:100px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-top{justify-content:flex-start;gap:14px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-item-media{height:70px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-hero-brand strong{font-size:clamp(19px,5.1vw,25px)}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-hero-badge{display:none}
}
@container ntv-wardrobe (max-width: 390px){
  #ntv-wardrobe-layer .ntv-wardrobe{padding:4px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-shell{gap:8px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-stage{height:280px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-portrait{width:86px;height:86px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-top{padding:8px 3px;gap:9px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-hero-brand b{font-size:12px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-main-heading{font-size:16px}
}

/* v3.9.3: reliable wardrobe size classes. JavaScript measures the actual dialog;
   these rules also override theme-specific styles and incompatible @container rules. */
#ntv-wardrobe-layer:not([hidden]) .ntv-wardrobe-dialog-inner{width:100%!important;max-width:1600px!important}
#ntv-wardrobe-layer .ntv-wardrobe{max-width:100%!important;min-width:0!important}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-shell{min-width:0!important;max-width:100%!important}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-catalog{overflow:hidden}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-tabs{overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-item-grid{min-width:0!important}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-outfit-preview{object-fit:contain!important;width:100%!important;height:100%!important;padding:2px}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-preview-title{flex-wrap:wrap;min-width:0}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-grid-head{flex-wrap:wrap}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-equip-tags{min-width:0;overflow-wrap:anywhere}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-qa-note{overflow-wrap:anywhere}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-stage{min-width:0}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-character-canvas{
  position:absolute!important;inset:auto!important;top:46%!important;left:50%!important;
  width:min(90%,320px)!important;height:auto!important;aspect-ratio:1 / 1!important;
  max-width:calc(100% - 8px)!important;transform:translate(-50%,-50%)!important;
  display:block!important;overflow:hidden;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-character-canvas .ntv-sprite{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important}
#ntv-wardrobe-layer .ntv-wardrobe #ntv-stage .ntv-sprite{visibility:hidden}
#ntv-wardrobe-layer .ntv-wardrobe #ntv-stage.ntv-sprite-ready .ntv-sprite{visibility:visible}
#ntv-wardrobe-layer .ntv-wardrobe #ntv-stage.ntv-sprite-ready .ntv-fallback-art{visibility:hidden}
#ntv-wardrobe-layer .ntv-wardrobe #ntv-stage.ntv-sprite-unavailable .ntv-sprite{display:none!important}
#ntv-wardrobe-layer .ntv-wardrobe #ntv-stage.ntv-sprite-unavailable .ntv-fallback-art{visibility:visible}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-portrait{display:grid;place-items:center}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-profile-portrait>.ntv-sprite-391{width:100%;height:100%;border-radius:50%;min-width:0}

#ntv-wardrobe-layer[data-ntv-fit="wide"] .ntv-wardrobe .ntv-shell{
 display:grid!important;grid-template-columns:minmax(240px,.9fr) minmax(560px,2.2fr) minmax(240px,.9fr)!important;gap:12px!important}
#ntv-wardrobe-layer[data-ntv-fit="wide"] .ntv-wardrobe .ntv-main-content{display:grid!important;grid-template-columns:minmax(220px,.9fr) minmax(300px,1.35fr)!important}
#ntv-wardrobe-layer[data-ntv-fit="wide"] .ntv-wardrobe .ntv-side{grid-column:auto!important;display:flex!important;flex-direction:column!important;gap:10px!important}
#ntv-wardrobe-layer[data-ntv-fit="wide"] .ntv-wardrobe .ntv-profile-top{flex-direction:column!important;text-align:center}

#ntv-wardrobe-layer[data-ntv-fit="laptop"] .ntv-wardrobe .ntv-shell,
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-shell{
 display:grid!important;grid-template-columns:minmax(210px,.7fr) minmax(0,2fr)!important;gap:12px!important}
#ntv-wardrobe-layer[data-ntv-fit="laptop"] .ntv-wardrobe .ntv-side,
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-side{
 grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
#ntv-wardrobe-layer[data-ntv-fit="laptop"] .ntv-wardrobe .ntv-profile,
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-profile{display:block!important}
#ntv-wardrobe-layer[data-ntv-fit="laptop"] .ntv-wardrobe .ntv-profile-top,
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-profile-top{flex-direction:column!important;text-align:center}
#ntv-wardrobe-layer[data-ntv-fit="laptop"] .ntv-wardrobe .ntv-main-content,
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-main-content{
 display:grid!important;grid-template-columns:minmax(190px,.85fr) minmax(0,1.45fr)!important}
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-shell{
 display:flex!important;flex-direction:column!important}
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-main{order:1!important}
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-profile{order:2!important}
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-side{order:3!important}
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-main-content{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)!important}
#ntv-wardrobe-layer[data-ntv-fit="tablet"] .ntv-wardrobe .ntv-profile-top{flex-direction:row!important;text-align:left}

#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-shell,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-shell{
 display:flex!important;flex-direction:column!important;gap:8px!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-main,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-main{order:1!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-profile,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-profile{order:2!important;display:block!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-side,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-side{order:3!important;display:flex!important;flex-direction:column!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-main-content,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-main-content{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-height:0!important;gap:10px!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-stage{height:300px!important}
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-stage{height:260px!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-character-canvas,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-character-canvas{width:min(82%,250px)!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-hero,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-hero{flex-wrap:wrap;justify-content:center;padding:8px!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-hero-desc,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-hero-desc{display:none!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-avatar-grid,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-item-grid,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-item-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-profile-top,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-profile-top{flex-direction:row!important;text-align:left;justify-content:flex-start;min-height:0!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-profile-portrait,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-profile-portrait{width:86px;height:86px}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-actions,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-btn-reset,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-btn-reset{grid-column:1/-1!important}
/* Show every category without clipped first/last tabs on narrow touch screens. */
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-tabs,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-tabs{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;
 overflow:visible!important;padding:5px 2px 9px!important;
}
#ntv-wardrobe-layer[data-ntv-fit="phone"] .ntv-wardrobe .ntv-tab,
#ntv-wardrobe-layer[data-ntv-fit="tiny"] .ntv-wardrobe .ntv-tab{
 flex:none!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;
 min-height:40px;padding:5px!important;font-size:11px!important;line-height:1.15!important;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-item-media{isolation:isolate}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-beta-stamp{
 position:absolute;left:2px;bottom:2px;z-index:2;padding:2px 4px;border-radius:5px;
 background:#fff2b6dd;color:#66530c;font-size:9px;line-height:1;font-weight:800;
}
