/* Salas por juego: directorio (/salas) y página de sala (/sala/{slug}) */

.rooms-title { margin: 8px 0 4px; font-size: 1.6rem; }
.rooms-search { display: flex; gap: 8px; margin: 14px 0; }
.rooms-search input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); font: inherit;
}
.rooms-search input:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }

.room-new {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 14px; margin-bottom: 14px;
}
.room-new summary { cursor: pointer; font-weight: 700; }
.room-new form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 6px; }
.room-new input {
  padding: 10px 12px; border-radius: 10px; background: var(--bg-elevated);
  border: 1px solid var(--border); color: var(--text); font: inherit;
}

.rooms-block { margin: 20px 0; }
.rooms-block h2 { font-size: 1.05rem; margin: 0 0 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }

.room-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
}
.room-card:hover { border-color: var(--accent); }
.room-card-main { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.room-card-t { display: flex; flex-direction: column; min-width: 0; }
.room-card-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-card-t small { color: var(--text-dim); font-size: .78rem; }
.room-in { color: var(--accent-2); font-size: .85rem; font-weight: 700; white-space: nowrap; }

.room-icon {
  flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-size: 2rem; background: linear-gradient(135deg, var(--wood), var(--bg-elevated)); border: 1px solid var(--border);
}
.room-icon.sm { width: 40px; height: 40px; font-size: 1.3rem; border-radius: 12px; }

.room-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 14px;
}
.room-info { flex: 1; min-width: 200px; }
.room-info h1 { margin: 0; font-size: 1.5rem; }
.room-crumb { margin: 0 0 2px; font-size: .8rem; color: var(--text-dim); }
.room-crumb a { color: var(--text-dim); }
.room-desc { margin: 4px 0; color: var(--text-dim); }
.room-stats { margin: 4px 0 0; font-size: .85rem; color: var(--text-dim); }
.room-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.room-players { margin: 0 0 14px; }
.room-players h2 { font-size: .95rem; color: var(--text-dim); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.room-people { display: flex; flex-wrap: wrap; gap: 8px; }
.room-person {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: inherit; text-decoration: none; font-size: .85rem;
}
.room-person:hover { border-color: var(--accent); }
.room-person .avatar { width: 28px; height: 28px; font-size: .8rem; }
.room-person span { display: flex; flex-direction: column; line-height: 1.15; }
.room-person small { color: var(--accent); font-size: .72rem; }

.fp-room {
  font-size: .72rem; font-weight: 700; color: var(--accent-2); border: 1px solid var(--accent-2);
  border-radius: 999px; padding: 1px 8px; text-decoration: none;
}
.fp-room:hover { background: var(--accent-2); color: var(--bg); }
.room-pick {
  max-width: 190px; background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 8px; font: inherit; font-size: .85rem;
}
