/* v3.9.75 — fix faint VIP titles & make community chat a proper popup. */
/* Wardrobe collector: locked = not equipable, NOT illegible. */
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));
  align-items:stretch;gap:10px;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice{
  box-sizing:border-box;width:100%;min-width:0;min-height:160px;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:6px;padding:12px 9px 11px;
  border:2px solid #d7b876;border-radius:15px;
  background:linear-gradient(155deg,#fffaf0,#fff0d6);
  color:#50371a;font-size:12px;line-height:1.35;
  box-shadow:0 3px 0 rgba(141,105,49,.13);
  text-align:center;transition:border-color .12s ease;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice[data-vip-title^="title_new_"]{
  background:linear-gradient(145deg,#fffdf4,#f7f0ff);
  border-color:#bbabe0;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice .ntv-vip-title-image{
  display:block;flex:0 0 auto;width:100%;max-width:230px;height:83px;
  object-fit:contain;margin:0 auto;
  filter:drop-shadow(0 2px 3px rgba(60,35,22,.18));
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice.is-locked,
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice.is-locked:disabled{
  opacity:1!important;filter:none!important;cursor:not-allowed;
  color:#584528;border-color:#d8c7a2;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice.is-locked .ntv-vip-title-image{
  opacity:1!important;filter:drop-shadow(0 2px 3px rgba(60,35,22,.16))!important;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice .ntv-vip-title-name{
  display:block;width:100%;flex:1 0 auto;min-width:0;max-width:100%;
  font-size:13px;line-height:1.35;font-weight:850;color:#533414;
  white-space:normal;overflow:visible;overflow-wrap:anywhere;
  text-overflow:clip;text-align:center;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice .ntv-vip-title-state{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:22px;line-height:1.1;margin:0 auto;
  padding:3px 9px;border-radius:999px;
  background:#f3ead3;color:#76572a;
  border:1px solid #e4cf9e;font-size:10px;font-weight:850;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice:not(.is-locked) .ntv-vip-title-state{
  background:#e1f7e9;border-color:#a9dabc;color:#0c6c48;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice.is-selected{
  border-color:#07866f;box-shadow:0 0 0 2px #b3f5d9 inset,0 3px 0 #6aba9f;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice:focus-visible{
  outline:3px solid #e6a52c;outline-offset:2px;
}
#ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice:not(.is-locked):hover{border-color:#0f9476;}
@media(max-width:700px){
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice{min-height:154px;padding:10px 7px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice .ntv-vip-title-image{height:76px}
}
@media(max-width:375px){
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-grid{gap:7px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice{min-height:148px;padding:8px 5px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice .ntv-vip-title-image{height:68px}
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice .ntv-vip-title-name{font-size:12px}
}

/* Homepage: show a launcher, never a cropped inline chat timeline. */
#ntv-game-root .ntv-home-panel.ntv-community-entry{
  display:flex;align-items:stretch;min-width:0;padding:7px!important;
}
#ntv-game-root .ntv-community-popup-trigger{
  display:flex;align-items:center;text-align:left;gap:10px;
  width:100%;min-height:92px;min-width:0;
  border:1.5px solid #9ddec7;border-radius:15px;padding:12px;
  background:linear-gradient(120deg,#edfff7,#d8f8ec);
  color:#155845;box-shadow:0 3px 0 rgba(27,109,76,.13);
  cursor:pointer;touch-action:manipulation;
}
#ntv-game-root .ntv-community-popup-icon{
  display:grid;place-items:center;flex:0 0 43px;
  width:43px;height:43px;border-radius:14px;
  background:#c0f2df;font-size:25px;
}
#ntv-game-root .ntv-community-popup-copy{display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-width:0}
#ntv-game-root .ntv-community-popup-copy strong{font-size:clamp(14px,1.9vw,18px);color:#085f4e;line-height:1.2}
#ntv-game-root .ntv-community-popup-copy small{font-size:12px;color:#3f6a5c;line-height:1.4;white-space:normal}
#ntv-game-root .ntv-community-popup-action{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;border-radius:999px;min-height:34px;
  padding:7px 12px;background:#077c68;color:#fff;
  font-size:12px;font-weight:900;white-space:nowrap;
}
#ntv-game-root .ntv-community-popup-trigger:focus-visible{outline:3px solid #e8a947;outline-offset:3px}
#ntv-game-root .ntv-community-popup-trigger:hover{border-color:#07977f}
/* Restore the launcher in PC sidebars where legacy CSS hides the miniature chat. */
#ntv-game-root.ntv-device-pc .ntv-home-sidebar .ntv-home-panel.ntv-community-entry{min-height:0;height:auto;overflow:visible;}

/* Community modal: fixed title + flexible message scroller + always-visible composer. */
#ntv-game-root .ntv-modal:has(> [data-role="modal-content"] .ntv-community-dialog){
  display:flex;flex-direction:column;overflow:hidden!important;min-height:0!important;
  width:min(760px,calc(100vw - 18px));max-width:760px!important;
  height:min(760px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)!important;
  box-sizing:border-box;padding:12px!important;
  background:#f3fff7;color:#17483a;
}
#ntv-game-root .ntv-modal:has(.ntv-community-dialog) > .ntv-modal-head{
  position:relative!important;inset:auto!important;top:auto!important;
  z-index:2;flex:0 0 auto;margin:0 0 9px!important;
  padding:2px 2px 9px!important;
  background:#f3fff7!important;backdrop-filter:none!important;
  box-shadow:none!important;border-bottom:1px solid #bde5cf;
}
#ntv-game-root .ntv-modal:has(.ntv-community-dialog) > .ntv-modal-head h2{
  color:#066b55;font-size:clamp(18px,3vw,25px);text-shadow:none;
}
#ntv-game-root .ntv-modal:has(.ntv-community-dialog) > .ntv-modal-head .ntv-smallbtn{
  background:#087b68;color:white;min-height:40px;min-width:40px;
}
#ntv-game-root .ntv-modal:has(.ntv-community-dialog) > [data-role="modal-content"]{
  display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;
  overflow:hidden!important;padding:0!important;
}
#ntv-game-root .ntv-modal .ntv-community-dialog{
  display:flex;flex:1 1 auto;flex-direction:column;
  min-width:0;min-height:0!important;max-width:none!important;width:100%;
  border-radius:17px;border:2px solid #8acaaf;overflow:hidden;
  background:#ecfbf5;
}
#ntv-game-root .ntv-modal .ntv-community-dialog .ntv-chatbox-head{
  position:relative!important;top:auto!important;flex:0 0 auto;
  z-index:1;min-height:48px;box-shadow:none!important;
}
#ntv-game-root .ntv-modal .ntv-community-dialog .ntv-chatbox-body{
  display:flex;flex-direction:column;flex:1 1 auto;min-height:0!important;
  height:auto;max-height:none!important;overflow-y:auto!important;
  overscroll-behavior:contain;scrollbar-gutter:stable;
  padding:12px;background:linear-gradient(180deg,#f6fffb,#e7f9f0);
}
#ntv-game-root .ntv-modal .ntv-community-dialog .ntv-chat-compose{
  position:relative;flex:0 0 auto;min-width:0;gap:8px;
  padding:10px 12px;box-shadow:0 -2px 12px rgba(12,85,66,.08);
}
#ntv-game-root .ntv-modal .ntv-community-dialog .ntv-chat-input{
  min-width:0;width:100%;font-size:16px;
}
#ntv-game-root .ntv-modal .ntv-community-dialog .ntv-chat-jump-new{bottom:72px;}
#ntv-game-root .ntv-modal .ntv-community-dialog .ntv-chat-emoji-tray{flex:0 0 auto;max-height:min(34dvh,220px);overflow-y:auto;}
@media(max-width:640px){
  #ntv-game-root .ntv-community-popup-trigger{min-height:84px;padding:10px;gap:8px}
  #ntv-game-root .ntv-community-popup-copy small{font-size:11px}
  #ntv-game-root .ntv-community-popup-action{font-size:11px;padding:7px 9px}
  #ntv-game-root .ntv-modal:has(.ntv-community-dialog){
    width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;
    max-height:calc(100dvh - 12px)!important;padding:9px!important;border-radius:16px;
  }
  #ntv-game-root .ntv-modal .ntv-community-dialog .ntv-chatbox-body{padding:9px}
  #ntv-game-root .ntv-modal .ntv-community-dialog .ntv-chat-compose{padding:8px;gap:6px}
}
@media(max-width:375px){
  #ntv-game-root .ntv-community-popup-trigger{flex-wrap:wrap}
  #ntv-game-root .ntv-community-popup-action{margin-left:auto}
}
@media(prefers-reduced-motion:reduce){
  #ntv-wardrobe-layer .ntv-wardrobe .ntv-vip-title-choice{transition:none}
}
/* When the lobby uses a two-column card grid, community chat gets a full row
   instead of the old unreadable half-width mini chat. */
#ntv-game-root .ntv-home-panels > .ntv-home-panel.ntv-community-entry{
  grid-column:1/-1;
}
