/* v1.0.8.18: resilient room controls on narrow displays. */

/* The help affordance previously occupied the same absolute lane as room actions. */
#gameDialog.game-modal:has(.werewolf-shell)>.game-help,#gameDialog.game-modal:has(.fast-run-shell)>.game-help{display:none}
#gameDialog.game-modal:has(.werewolf-shell)>.modal-close,#gameDialog.game-modal:has(.fast-run-shell)>.modal-close{position:absolute;z-index:30;pointer-events:auto;touch-action:manipulation}

/* Keep the title allowed to shrink while actions retain their full tap target. */
.werewolf-head,.fast-run-head{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center}
.werewolf-head-copy,.fast-run-head-copy{min-width:0}
.werewolf-head-copy>span,.fast-run-head-copy>span{display:block;overflow-wrap:anywhere}
.werewolf-head-actions,.fast-run-head-actions{position:relative;z-index:2;justify-self:end;min-width:max-content}
.werewolf-leave,.fast-run-leave{position:relative;z-index:2;white-space:nowrap;touch-action:manipulation}

@media(max-width:760px){
  #gameDialog.game-modal:has(.werewolf-shell),#gameDialog.game-modal:has(.fast-run-shell){padding-top:20px}
  .werewolf-head,.fast-run-head{grid-template-columns:minmax(0,1fr) 104px;gap:7px;min-width:0}
  .werewolf-head-copy,.fast-run-head-copy{overflow:hidden}
  .werewolf-head-copy .eyebrow,.fast-run-head-copy .eyebrow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .werewolf-head-copy>span,.fast-run-head-copy>span{font-size:10px;line-height:1.45}
  .werewolf-head-actions,.fast-run-head-actions{width:104px;min-width:104px}
  .werewolf-leave,.fast-run-leave{width:104px;min-height:36px;padding-inline:7px;font-size:10px}
}

@media(max-width:360px){
  .werewolf-head,.fast-run-head{grid-template-columns:minmax(0,1fr) 94px}
  .werewolf-head-actions,.fast-run-head-actions,.werewolf-leave,.fast-run-leave{width:94px;min-width:94px}
  .werewolf-leave span,.fast-run-leave span{font-size:9px}
}
