/* Layout partagé des salons. Le plein écran des jeux reste indépendant. */
.room-pages:not(.is-playing) .room-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.room-pages:not(.is-playing) .room-bottom > div:not([hidden]) {
  display: flex;
  min-width: 0;
}
.room-pages:not(.is-playing) .room-bottom > a,
.room-pages:not(.is-playing) .room-bottom > div > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid var(--line);
  font-size: .85rem;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}
.room-pages:not(.is-playing) .room-bottom a:hover {
  border-color: currentColor;
}
.room-pages:not(.is-playing) .table-heading > div:first-child {
  min-width: 0;
}
.room-pages:not(.is-playing) .section.narrow .button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.room-pages:not(.is-playing) .section.narrow .button-row .button {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}
.room-pages:not(.is-playing) .section.narrow .panel > .button {
  min-width: min(100%, 220px);
  text-align: center;
}
@media (max-width: 900px) {
  .room-pages:not(.is-playing) .room-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .room-pages:not(.is-playing) .table-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .room-pages:not(.is-playing) .invite {
    align-items: flex-start;
  }
  .room-pages:not(.is-playing) .invite .text-button {
    font-size: .82rem;
    min-height: 44px;
    text-align: left;
  }
}
@media (max-width: 520px) {
  .room-pages:not(.is-playing) .section.narrow .button-row {
    grid-template-columns: 1fr;
  }
  .room-pages:not(.is-playing) .section.narrow .panel > .button {
    width: 100%;
  }
  .room-pages:not(.is-playing) .room-bottom {
    gap: 10px;
  }
}
