/* NTV 3.9.50 — recovery: do not clip match players, voice, or either chat channel. */
/* Do NOT expand a shortcode to the whole viewport when WordPress puts it in a column. */
@media (min-width:1024px) {
  .ntv-game-embed[data-ntv-embed]:not(.ntv-embed-focus){
    position:relative!important;left:auto!important;transform:none!important;
    width:100%!important;max-width:1440px!important;margin:0 auto 28px!important;
  }
}
#ntv-game-root, #ntv-game-root .ntv-play, #ntv-game-root .ntv-room-shell {min-width:0;max-width:100%;box-sizing:border-box}
#ntv-game-root .ntv-play {overflow:visible!important}
#ntv-game-root .ntv-room-main,#ntv-game-root .ntv-room-side {min-width:0!important}
#ntv-game-root .ntv-room-community {font-weight:850;white-space:nowrap;min-height:39px}
#ntv-game-root .ntv-play .ntv-topbar{flex-wrap:wrap;gap:8px!important}
#ntv-game-root .ntv-play .ntv-topbar [data-click="back"]{margin-right:auto}

/* Larger roster cards require real space in the document flow, not fixed 87px height. */
#ntv-game-root.ntv-device-pc .ntv-play .ntv-room-main>.ntv-member-list,
#ntv-game-root.ntv-device-pc .ntv-play.ntv-word-playing .ntv-room-main>.ntv-member-list,
#ntv-game-root.ntv-device-pc .ntv-play.ntv-quiz-playing .ntv-room-main>.ntv-member-list{
  display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;
  width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  padding:14px 7px 15px!important;margin:5px 0 10px!important;
  overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:thin;
  gap:10px!important;scroll-snap-type:x proximity;
}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-room-main>.ntv-member-list>.ntv-person,
#ntv-game-root.ntv-device-pc .ntv-play.ntv-word-playing .ntv-member-list>.ntv-person,
#ntv-game-root.ntv-device-pc .ntv-play.ntv-quiz-playing .ntv-member-list>.ntv-person{
  flex:0 0 245px!important;width:245px!important;min-width:245px!important;max-width:245px!important;
  height:auto!important;min-height:171px!important;max-height:none!important;
  padding:13px 10px 15px!important;overflow:visible!important;
  display:grid!important;grid-template-columns:91px minmax(0,1fr)!important;
  grid-template-rows:repeat(6,min-content)!important;
  align-content:center!important;align-items:center!important;
  row-gap:4px!important;column-gap:10px!important;
  border-radius:16px!important;scroll-snap-align:start;
}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person>.ntv-person-avatar-wrap{
  grid-column:1!important;grid-row:1/span 3!important;justify-self:center!important;
  align-self:center!important;margin:4px auto 10px!important;
  width:59px!important;height:59px!important;min-width:59px!important;min-height:59px!important;
}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person>.ntv-person-avatar-wrap>.ntv-person-avatar{width:55px!important;height:55px!important}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person>.ntv-vip-title{
  grid-column:1!important;grid-row:4/span 3!important;justify-self:center!important;
  width:86px!important;max-width:86px!important;height:39px!important;
  --ntv-safe-title-width:86px;--ntv-safe-title-height:39px;
  margin:4px auto 0!important;align-self:center!important;
}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person>.ntv-vip-title>img{height:100%!important;max-height:100%!important}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person>.ntv-person-name{grid-column:2!important;grid-row:1!important;font-size:14px!important;line-height:1.3!important}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person>small{grid-column:2!important;grid-row:2!important;font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person>.ntv-player-title{grid-column:2!important;grid-row:3!important;font-size:12px!important}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person>.ntv-person-wardrobe{grid-column:2!important;grid-row:4!important}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person>.ntv-player-badges{grid-column:2!important;grid-row:5!important}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person>.ntv-member-state{grid-column:2!important;grid-row:6!important;font-size:11px!important;overflow-wrap:anywhere!important}
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person .ntv-person-name,
#ntv-game-root.ntv-device-pc .ntv-play .ntv-member-list>.ntv-person small{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}

/* In a real room, keep the functional WebRTC voice and chat ahead of history.
   In bot training, restore room chat (server already accepts it); voice presents a disabled informational state. */
#ntv-game-root.ntv-device-pc .ntv-play[data-ntv-layout="pc"] .ntv-room-side{display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0!important}
#ntv-game-root.ntv-device-pc .ntv-play[data-ntv-layout="pc"] .ntv-room-side>[data-role="voice"]:not([hidden]){
  display:block!important;order:0!important;position:relative!important;min-height:65px!important;
  width:100%!important;max-width:100%!important;padding:9px 12px!important;margin:0!important;
}
#ntv-game-root.ntv-device-pc .ntv-play.ntv-bot-game .ntv-room-grid .ntv-chatbox:not(.ntv-chat-expanded),
#ntv-game-root.ntv-device-pc .ntv-play:not(.ntv-bot-game) .ntv-room-grid .ntv-chatbox:not(.ntv-chat-expanded){
  display:flex!important;visibility:visible!important;opacity:1!important;
  flex-direction:column!important;min-height:290px!important;height:clamp(290px,46dvh,465px)!important;max-height:none!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
}
#ntv-game-root.ntv-device-pc .ntv-room-grid{display:flex!important;flex-direction:column!important;gap:10px!important;width:100%!important}
#ntv-game-root.ntv-device-pc .ntv-room-grid>.ntv-chatbox{order:0!important}
#ntv-game-root.ntv-device-pc .ntv-room-grid>.ntv-moves-panel{order:1!important}
#ntv-game-root.ntv-device-pc .ntv-chatbox-body{min-height:90px!important;flex:1 1 auto!important;overflow:auto!important}
#ntv-game-root.ntv-device-pc .ntv-room-grid .ntv-chat-compose{display:flex!important;flex:0 0 auto!important}
#ntv-game-root.ntv-device-pc .ntv-play.ntv-bot-waiting .ntv-room-side{display:flex!important}
#ntv-game-root.ntv-device-pc .ntv-play.ntv-bot-waiting .ntv-room-shell{
  display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(285px,.85fr)!important;gap:14px!important
}
#ntv-game-root.ntv-device-pc .ntv-play.ntv-bot-waiting .ntv-room-main{max-width:none!important;margin:0!important}

@media(min-width:1000px){
  #ntv-game-root.ntv-device-pc .ntv-play[data-ntv-layout="pc"] .ntv-room-shell{
    display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(300px,.9fr)!important;
    gap:clamp(12px,1.6vw,21px)!important;align-items:start!important;
    overflow:visible!important;
  }
}
/* Mobile/tablet: chat room is available against a bot, too. The floating chat
   button now opens the same existing chat sheet rather than being hidden. */
#ntv-game-root.ntv-device-mobile .ntv-play.ntv-bot-game .ntv-room-side{display:block!important}
#ntv-game-root.ntv-device-mobile .ntv-play.ntv-bot-game .ntv-mobile-room-tabs{display:grid!important}
#ntv-game-root.ntv-device-mobile .ntv-play.ntv-bot-game .ntv-mobile-chat-fab{
  display:flex!important;
}
#ntv-game-root.ntv-device-mobile .ntv-play.ntv-bot-game .ntv-room-grid .ntv-chatbox{
  display:flex!important;
}
#ntv-game-root.ntv-device-mobile .ntv-play.ntv-bot-game .ntv-room-grid .ntv-moves-panel{display:none!important}
#ntv-game-root.ntv-device-mobile .ntv-play.ntv-bot-game[data-mobile-panel="moves"] .ntv-room-grid .ntv-moves-panel{display:block!important}
#ntv-game-root.ntv-device-mobile .ntv-play.ntv-bot-game[data-mobile-panel="moves"] .ntv-room-grid .ntv-chatbox{display:none!important}
#ntv-game-root.ntv-device-mobile .ntv-play.ntv-bot-game.ntv-mobile-chat-open .ntv-room-side .ntv-chatbox{display:flex!important}
#ntv-game-root.ntv-device-mobile .ntv-play.ntv-bot-waiting .ntv-room-side{display:block!important}
#ntv-game-root.ntv-device-mobile .ntv-play .ntv-topbar{justify-content:flex-start!important}
#ntv-game-root.ntv-device-mobile .ntv-room-community{font-size:12px!important;padding:6px 9px!important;min-height:36px!important}
#ntv-game-root.ntv-device-mobile .ntv-play .ntv-member-list{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
#ntv-game-root.ntv-device-mobile .ntv-play .ntv-member-list>.ntv-person{min-height:174px!important;height:auto!important;max-height:none!important}

/* Tiny containers can still display the active game: no horizontal scrolling of the page. */
@media(max-width:720px){
  #ntv-game-root .ntv-play .ntv-topbar{justify-content:flex-start!important}
  #ntv-game-root .ntv-play .ntv-topbar .ntv-room-community{order:2}
  #ntv-game-root .ntv-play .ntv-topbar [data-click="back"]{margin-right:auto}
}
