/* ─── Join master-detail ─────────────────────────────────────────────────────── */

/* Wide panel like Rules: it does not scroll itself — its columns are the single
   hidden-scrollbar scrollers over the fixed map. */
.landing__panel--join {
  width: min(96vw, 920px);
  height: 88vh;
  overflow: hidden;
}

.landing__panel--join .landing__panel-body {
  flex: 1 1 auto;
  min-height: 0;
}

.landing-join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "list detail";
  gap: 1rem;
  width: 100%;
  height: 100%;
  min-height: 0;
  text-align: left;
}

.landing-join__list {
  grid-area: list;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.landing-join__detail {
  grid-area: detail;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(184, 134, 30, 0.4);
  border-radius: 8px;
  background: rgba(20, 12, 4, 0.82);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.landing-join__list::-webkit-scrollbar,
.landing-join__detail::-webkit-scrollbar {
  display: none; /* WebKit/Blink */
}

.landing-join__section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-join__section-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-gold-light);
}

.landing-join__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(184, 134, 30, 0.4);
  border-radius: 8px;
  background: rgba(20, 12, 4, 0.82);
  color: var(--brass-gold-glow);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s;
}

.landing-join__row:hover,
.landing-join__row:focus-visible {
  outline: none;
  border-color: rgba(240, 200, 80, 0.95);
  background: rgba(40, 24, 8, 0.9);
}

.landing-join__row.is-active {
  border-color: var(--brass-gold-glow);
  box-shadow: 0 0 0 2px rgba(240, 216, 144, 0.55);
}

.landing-join__row-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-join__tag {
  flex: 0 0 auto;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(80, 48, 12, 0.85);
  border: 1px solid rgba(184, 134, 30, 0.5);
  color: var(--brass-gold-bright);
}

.landing-join__tag--invited {
  background: rgba(110, 66, 16, 0.9);
  color: var(--brass-gold-glow);
}

.landing-join__count {
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: var(--brass-gold-light);
}

.landing-join__placeholder {
  margin: 0;
  font-style: italic;
  color: var(--brass-gold-light);
}

.landing-join__host {
  font-size: 1.05rem;
  color: var(--brass-gold-glow);
}

.landing-join__detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--brass-gold-light);
}

.landing-join__players {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.landing-join__player {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--brass-gold-warm-pale);
}

.landing-join__swatch {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  border: 1px solid rgba(184, 134, 30, 0.5);
}

.landing-join__player-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-join__player-elo {
  flex: 0 0 auto;
  font-size: 0.8rem;
  color: var(--brass-gold-light);
}

@media (max-width: 720px) {
  .landing-join {
    grid-template-columns: 1fr;
    grid-template-areas:
      "list"
      "detail";
  }
}
