.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.game {
  border: 1px solid #7a9eae;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(#193141, #192835);
  min-width: 0;
  box-shadow: 0 6px 15px #0003;
}
.game-art {
  aspect-ratio: 0.97;
  background-image: url('/assets/hub-art-atlas.png');
  background-size: auto 200%;
  background-position: 1.3% 0;
  background-repeat: no-repeat;
}
.game-art[data-game='board-game'] {
  background-position: 33.78% 0;
}
.game-art[data-game='naval-coop'] {
  background-position: 66.25% 0;
}
.game strong {
  display: block;
  font-size: clamp(13px, 1vw, 16px);
  padding: 10px 9px 5px;
  line-height: 1.2;
  min-height: 38px;
  overflow-wrap: anywhere;
}
.game small {
  display: block;
  padding: 0 9px 12px;
  color: var(--muted);
  font-size: 13px;
}
.game-status {
  display: flex !important;
  align-items: center;
  gap: 6px;
}
.game-status svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.empty-social {
  padding-top: 0;
}
.empty-social > p {
  margin: 0;
}
.portraits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 90px));
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 24px;
}
.friend-preview {
  min-width: 0;
  text-align: center;
}
.portrait {
  --portrait-column: 0;
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  border: 2px solid #86a2ba;
  border-radius: 50%;
  background-image: url('/assets/hub-art-atlas.png');
  background-size: 400% 200%;
  background-position: calc(var(--portrait-column) * 33.333333%) 100%;
  box-shadow: 0 6px 15px #0005;
}
.portrait::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 2%;
  width: 17%;
  aspect-ratio: 1;
  border: 2px solid #102936;
  border-radius: 50%;
  background: #36dfa2;
}
.friend-preview strong,
.friend-preview small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friend-preview strong {
  margin-top: 5px;
  font-size: 14px;
}
.friend-preview small {
  color: #42e0b1;
  font-size: 11px;
}
.group-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  border-top: 1px solid #436574;
  padding-top: 16px;
  margin-top: 10px;
}
.group-heading {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  white-space: nowrap;
}
.group-heading svg {
  width: 22px;
  height: 22px;
  color: #6fdee0;
}
.group-heading strong {
  display: block;
  font-size: 16px;
}
.group-heading-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}
.group-tokens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.group-token {
  min-width: 0;
  text-align: center;
}
.group-tokens span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: auto;
  border-radius: 50%;
  filter: drop-shadow(0 4px 7px #0005);
}
.group-tokens img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.group-token strong,
.group-token small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.group-token strong {
  margin-top: 5px;
  font-size: 11px;
}
.group-token small {
  color: var(--muted);
  font-size: 10px;
}
.empty-social > small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}
.members {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.members li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.member-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.member-avatar {
  --avatar-column: 0;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #86a2ba;
  border-radius: 50%;
  background-image: url('/assets/hub-art-atlas.png');
  background-size: 400% 200%;
  background-position: calc(var(--avatar-column) * 33.333333%) 100%;
}
.members button {
  font-size: 12px;
  padding: 5px 8px;
  min-height: 36px;
}
.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.room-actions button {
  padding: 10px 14px;
  font-size: 14px;
}
