/* ═══════════════════════════════════════════════════════════
   HEXLAND Online — Lobby Styles  Phase 5.4
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  background: #1a1228;
}

/* ── Full-page ocean background ──────────────────────────── */
.lobby-bg {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 16px 24px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(77,196,245,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(120,80,220,.18) 0%, transparent 55%),
    #12101e;
}

/* ── Central column ──────────────────────────────────────── */
.lobby-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* ── Logo / header ───────────────────────────────────────── */
.lobby-header {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: -150px;
}

.lobby-icon {
  font-size: 2.6rem;
  filter: drop-shadow(0 2px 8px rgba(255,200,80,.6));
}

.lobby-logo-img {
  height: 250px;
  width: auto;
   margin-top: 50px;
  margin-bottom: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(255,200,80,.5));
}

.lobby-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #f5e8c0;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.lobby-title span {
  color: #f0a030;
}

/* ── Cards ───────────────────────────────────────────────── */
.lobby-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 28px 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Guest welcome message ───────────────────────────────── */
.lobby-welcome {
  text-align: center;
  padding: 10px 4px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 4px;
}
.lobby-welcome-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
}
.lobby-welcome-body {
  font-size: .84rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
}
.lobby-welcome-body a {
  color: #c8a96e;
  text-decoration: none;
}
.lobby-welcome-body a:hover {
  text-decoration: underline;
}

/* ── Signed-in greeting ──────────────────────────────────── */
.player-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
}
.greeting-wave { font-size: 1.3rem; line-height: 1; }
.greeting-text strong { color: #fff; }

/* ── Fields ──────────────────────────────────────────────── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.field-input {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #f5e8c0;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}

.field-input::placeholder { color: rgba(255,255,255,.3); }

.field-input:focus {
  border-color: #f0a030;
  background: rgba(255,255,255,.12);
}

.code-input {
  flex: 1;
  letter-spacing: 3px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-lobby {
  padding: 13px 20px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: filter .15s, transform .1s;
  letter-spacing: .5px;
}

.btn-lobby:active { transform: scale(.97); }
.btn-lobby:disabled { opacity: .45; cursor: default; transform: none; }

.btn-create {
  background: linear-gradient(135deg, #f0a030 0%, #d06020 100%);
  color: #fff;
  width: 100%;
  font-size: 1.05rem;
}
.btn-create:hover:not(:disabled) { filter: brightness(1.1); }

.btn-join {
  background: linear-gradient(135deg, #3878e0 0%, #1a50b0 100%);
  color: #fff;
  white-space: nowrap;
  padding: 11px 18px;
}
.btn-join:hover:not(:disabled) { filter: brightness(1.1); }

.btn-start {
  background: linear-gradient(135deg, #28b060 0%, #166038 100%);
  color: #fff;
  width: 100%;
  font-size: 1.05rem;
  margin-top: 4px;
}
.btn-start:hover:not(:disabled) { filter: brightness(1.1); }

.btn-copy {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #f5e8c0;
  border-radius: 7px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: .8rem;
  transition: background .15s;
}
.btn-copy:hover { background: rgba(255,255,255,.18); }

.btn-back {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  font-size: .85rem;
  padding: 4px;
  text-align: center;
  transition: color .15s;
}
.btn-back:hover { color: rgba(255,255,255,.7); }

/* ── Dividers ────────────────────────────────────────────── */

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.3);
  font-size: .8rem;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.12);
}

/* ── Join row ────────────────────────────────────────────── */
.join-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Error message ───────────────────────────────────────── */
.lobby-error {
  color: #ff7070;
  font-size: .85rem;
  min-height: 1.1em;
  text-align: center;
  transition: opacity .4s;
}

/* ── Waiting room ────────────────────────────────────────── */
.room-name-row {
  text-align: center;
  padding: 6px 0 2px;
}

.room-name-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #f0a030;
  letter-spacing: 1px;
}

.wait-subtitle {
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .85rem;
}

.wait-hint {
  text-align: center;
  color: rgba(255,255,255,.3);
  font-size: .78rem;
}

/* ── Player list ─────────────────────────────────────────── */
.wait-players {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.wait-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 10px 14px;
}

.wp-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

/* Waiting-room avatar: seat-coloured ring, shows the profile picture or initial */
.wp-av {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  color: rgba(0,0,0,.6);
  border: 2px solid #888;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.wp-name {
  flex: 1;
  color: #f5e8c0;
  font-weight: 600;
  font-size: .95rem;
}

.wp-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(240,160,48,.25);
  color: #f0a030;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.wp-you {
  background: rgba(77,196,245,.2);
  color: #4dc4f5;
}

.wp-disconnected { opacity: .45; }
.wp-reconnecting {
  background: rgba(255,200,60,.18);
  color: #f0c030;
}

.wp-kick {
  margin-left: auto;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.3);
  font-size: .8rem;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.wp-kick:hover { color: #e05050; background: rgba(224,80,80,.15); }

/* ── AI Player section ───────────────────────────────────── */
.ai-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ai-pill {
  padding: 7px 10px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.ai-pill:hover {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
}

.ai-pill-active {
  background: rgba(240,160,48,.2);
  border-color: #f0a030;
  color: #f0a030;
}

.btn-add-ai {
  background: linear-gradient(135deg, #7040d0 0%, #4020a0 100%);
  color: #fff;
  width: 100%;
}
.btn-add-ai:hover:not(:disabled) { filter: brightness(1.12); }

.wp-pers {
  font-size: .75rem;
  color: rgba(255,255,255,.38);
  font-style: italic;
}

.wp-ai {
  background: rgba(112,64,208,.28);
  color: #c090ff;
}

/* ── Platform (mode) badge ───────────────────────────────── */
.wp-mode {
  white-space: nowrap;
}

.wp-mode-ai {
  background: rgba(112,64,208,.28);
  color: #c090ff;
}

.wp-mode-mobile {
  background: rgba(40,176,96,.22);
  color: #6be0a0;
}

.wp-mode-desktop {
  background: rgba(56,120,224,.22);
  color: #88bbff;
}

/* ── Auth bar ────────────────────────────────────────────── */
.auth-bar {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-bar-name {
  color: rgba(255,255,255,.7);
  font-size: .82rem;
}

.auth-bar-link {
  color: #4dc4f5;
  font-size: .82rem;
  text-decoration: none;
}
.auth-bar-link:hover { text-decoration: underline; }

.auth-bar-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.auth-bar-btn:hover { background: rgba(255,255,255,.15); }

/* ── Primary actions row ─────────────────────────────────── */
.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-quickmatch {
  background: linear-gradient(135deg, #3878e0 0%, #1a50b0 100%);
  color: #fff;
}
.btn-quickmatch:hover:not(:disabled) { filter: brightness(1.1); }

/* ── Create-room options panel ───────────────────────────── */
.create-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 14px;
  margin-top: 0;
}

.btn-create-confirm {
  background: linear-gradient(135deg, #f0a030 0%, #d06020 100%);
  color: #fff;
  width: 100%;
  padding: 11px;
  font-size: .95rem;
}
.btn-create-confirm:hover:not(:disabled) { filter: brightness(1.1); }

/* ── Public rooms section ────────────────────────────────── */
.rooms-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rooms-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rooms-hd-label {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rooms-count {
  font-size: .75rem;
  color: #28b060;
  font-weight: 600;
}

.public-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rooms-empty {
  text-align: center;
  color: rgba(255,255,255,.28);
  font-size: .82rem;
  padding: 18px 0;
  font-style: italic;
}

/* ── Room card ───────────────────────────────────────────── */
.room-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;   /* room name (top of the info column) stays top-left */
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  padding: 10px 12px;
  transition: background .15s;
}
.room-card:hover { background: rgba(255,255,255,.1); }

.rc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rc-host {
  font-size: .88rem;
  font-weight: 700;
  color: #f5e8c0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-mode {
  align-self: flex-start;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.5;
  background: rgba(150,150,150,.18);
  color: #ccc;
  border: 1px solid rgba(150,150,150,.3);
}
.rc-mode--tideport {
  background: rgba(30, 100, 160, .30);
  color: #7ec8f0;
  border-color: rgba(80, 160, 220, .4);
}
.rc-mode--space {
  background: rgba(80, 30, 140, .30);
  color: #c09cf0;
  border-color: rgba(130, 70, 200, .4);
}

.rc-players {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 2px;
}

.rc-pl-chip {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rc-pl-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  color: rgba(0,0,0,.65);
  background-size: cover;
  background-position: center;
}

.rc-pl-name {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc-pl-tag {
  font-size: .58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.rc-pl-host {
  background: rgba(255,255,255,.13);
  color: rgba(255,255,255,.6);
}

.rc-pl-ai {
  background: rgba(100,180,255,.18);
  color: #80c8ff;
}

.rc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  gap: 6px;
  flex-shrink: 0;
}

.rc-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-status {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.5;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.13);
}

.rc-dots {
  display: flex;
  gap: 3px;
}

.rc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.rc-dot-filled { background: #28b060; }

.btn-rc-join {
  padding: 5px 14px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #28b060, #166038);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s, opacity .15s;
  white-space: nowrap;
}
.btn-rc-join:hover:not(:disabled) { filter: brightness(1.12); }
.btn-rc-join:disabled { opacity: .45; cursor: default; }

/* Pending state — amber */
.btn-rc-join.rc-pending {
  background: linear-gradient(135deg, #c07828, #7a4a10);
}
/* Cancel link below a pending card */
.rc-cancel-link {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  text-align: right;
  padding-right: 2px;
  text-decoration: underline;
  transition: color .15s;
  margin-top: 3px;
}
.rc-cancel-link:hover { color: #ff9090; }

/* Feedback message at the bottom of a specific room card (reject / ban / kick) */
.rc-card-msg {
  width: 100%;
  font-size: .76rem;
  color: #f0a060;
  text-align: center;
  padding: 5px 0 2px;
  line-height: 1.3;
}

/* AI-only / abandoned room — deletion countdown pinned to the card's bottom-left,
   so it stays anchored there even when the card is stretched taller (e.g. equal-
   height grid cells). The card reserves bottom padding via .rc-has-timer /
   .rejoin-has-timer so the absolute timer never overlaps the card's content. */
.rc-delete-timer {
  position: absolute;
  left: 12px;
  bottom: 8px;
  font-size: .76rem;
  color: #f0a060;
  text-align: left;
  line-height: 1.3;
}
.rc-delete-timer .rc-dt-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: .02em;
}
.room-card.rc-has-timer    { padding-bottom: 26px; }
.rejoin-card.rejoin-has-timer { padding-bottom: 30px; }

/* Banned room card — greyed out */
.room-card.rc-banned {
  opacity: .45;
  filter: grayscale(.6);
  pointer-events: none;
}

/* ── Join-requests panel (host waiting room) ─────────────── */
.join-requests-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.join-requests-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.jr-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 9px 12px;
}

.jr-name {
  color: #f5e8c0;
  font-size: .9rem;
  font-weight: 600;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.jr-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: rgba(0,0,0,.65);
  background-size: cover;
  background-position: center;
}

.jr-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-self: flex-end;
}

.btn-jr {
  padding: 5px 11px;
  border-radius: 6px;
  border: none;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s;
}
.btn-jr:hover { filter: brightness(1.12); }

.btn-jr-accept { background: linear-gradient(135deg, #28b060, #166038); color: #fff; }
.btn-jr-reject { background: rgba(200,80,80,.3); border: 1px solid rgba(200,80,80,.5); color: #ff9090; }
.btn-jr-ban    { background: rgba(120,40,40,.4); border: 1px solid rgba(200,60,60,.5); color: #ff7070; }

/* ── Banned-players panel ────────────────────────────────── */
.banned-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.banned-label {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.banned-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.banned-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(120,40,40,.3);
  border: 1px solid rgba(200,60,60,.35);
  border-radius: 20px;
  padding: 3px 10px 3px 10px;
  font-size: .75rem;
  color: #ff9090;
}

.btn-unban {
  background: none;
  border: none;
  color: rgba(255,130,130,.6);
  cursor: pointer;
  font-size: .75rem;
  padding: 0;
  line-height: 1;
  transition: color .15s;
}
.btn-unban:hover { color: #fff; }

/* ── Quick Match preference screen ──────────────────────── */
.mm-pref-label {
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}

.mm-pref-btns {
  display: flex;
  gap: 8px;
}

.btn-mm-pref {
  flex: 1;
  padding: 11px 8px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-mm-pref:hover { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.btn-mm-pref.mm-pref-active {
  background: rgba(56,120,224,.22);
  border-color: #3878e0;
  color: #88bbff;
}

.mm-dm-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  cursor: pointer;
  padding: 2px 0;
}
.mm-dm-row input[type=checkbox] { accent-color: #f0a030; width: 16px; height: 16px; cursor: pointer; }

.btn-start-search {
  background: linear-gradient(135deg, #3878e0 0%, #1a50b0 100%);
  color: #fff;
  width: 100%;
  font-size: 1rem;
}
.btn-start-search:hover:not(:disabled) { filter: brightness(1.1); }

/* ── DM tentative timer bar ──────────────────────────────── */
.mm-dm-timer-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mm-dm-timer-bar-bg {
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
}

.mm-dm-timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f0a030, #d06020);
  border-radius: 3px;
  transition: width .3s linear;
}

.mm-dm-timer-text {
  text-align: center;
  font-size: .75rem;
  color: rgba(255,200,80,.7);
}

/* ── Matchmaking screen ──────────────────────────────────── */
.mm-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f5e8c0;
  text-align: center;
}

.mm-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 36px;
}

.mm-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(56,120,224,.25);
  border: 1px solid rgba(56,120,224,.4);
  color: #88bbff;
  border-radius: 20px;
  padding: 4px 12px 4px 5px;
  font-size: .85rem;
  font-weight: 600;
}

.mm-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  color: rgba(0,0,0,.65);
  background-size: cover;
  background-position: center;
}

.mm-bar-wrap {
  height: 5px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
}

.mm-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3878e0, #28b060);
  border-radius: 3px;
  transition: width .25s linear;
}

.mm-status {
  text-align: center;
  color: rgba(255,255,255,.45);
  font-size: .85rem;
}

.btn-cancel-mm {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  border-radius: 8px;
  padding: 9px;
  font-size: .88rem;
  width: 100%;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-cancel-mm:hover { background: rgba(255,100,100,.15); color: #ff8888; }

/* ── Rejoin card ─────────────────────────────────────────── */
/* Container: stacks one .rejoin-card per active game */
.rejoin-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  margin-inline: -100px;
  z-index: 10;
}

/* Default (active game, NOT your turn): blue — distinct from the grey "ended"
   card, while the green "your turn" card still pops the most. */
.rejoin-card {
  display: flex;
  align-items: flex-start;   /* room name (top of the info column) stays top-left */
  gap: 14px;
  background: rgba(56,120,224,.13);
  border: 1px solid rgba(56,120,224,.34);
  border-left: 4px solid rgba(56,120,224,.65);
  border-radius: 12px;
  padding: 14px 18px;
  position: relative;
  z-index: 10;
}

.rejoin-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rejoin-room {
  font-size: 1.2rem;
  font-weight: 900;
  color: #f5e8c0;
  letter-spacing: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rejoin-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  gap: 8px;
  flex-shrink: 0;
}

.rejoin-status-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.5;
  background: rgba(56,120,224,.25);
  color: #90b8f0;
  border: 1px solid rgba(56,120,224,.45);
}
.rejoin-status-badge--myturn {
  background: rgba(40,176,96,.28);
  color: #7de0a0;
  border-color: rgba(40,176,96,.55);
}
.rejoin-status-badge--setup {
  background: rgba(200,160,0,.22);
  color: #e0c060;
  border-color: rgba(200,160,0,.4);
}
.rejoin-status-badge--ended {
  background: rgba(150,150,150,.15);
  color: rgba(255,255,255,.35);
  border-color: rgba(150,150,150,.25);
}

.rejoin-players {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* Player chips inside the rejoin box */
.rejoin-pl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.rejoin-pl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  padding: 2px 7px 2px 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}

.rj-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 800;
  color: rgba(0,0,0,.65);
  background-size: cover;
  background-position: center;
}

.rejoin-pl-you  { font-weight: 700; color: #f5e8c0; }

.rejoin-pl-turn {
  background: rgba(40,176,96,.22);
  border-color: rgba(40,176,96,.55);
  color: #8be0aa;
  font-weight: 700;
}

/* Highlight the whole card when it's the user's turn — green, glowing, pulsing. */
.rejoin-card-myturn {
  background: rgba(40,176,96,.18);
  border-color: rgba(40,176,96,.7);
  border-left: 4px solid #28b060;
  box-shadow: 0 0 0 1px rgba(40,176,96,.4), 0 0 18px rgba(40,176,96,.3);
  animation: rejoin-pulse 2s ease-in-out infinite;
}
.rejoin-card-myturn .rejoin-label { color: #34d076; }

@keyframes rejoin-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(40,176,96,.4), 0 0 14px rgba(40,176,96,.25); }
  50%      { box-shadow: 0 0 0 1px rgba(40,176,96,.6), 0 0 22px rgba(40,176,96,.45); }
}

@keyframes badge-shake {
  0%   { transform: translateX(0); }
  12%  { transform: translateX(-8px) rotate(-6deg); }
  25%  { transform: translateX(8px)  rotate(6deg); }
  37%  { transform: translateX(-7px) rotate(-5deg); }
  50%  { transform: translateX(7px)  rotate(5deg); }
  62%  { transform: translateX(-5px) rotate(-3deg); }
  75%  { transform: translateX(5px)  rotate(3deg); }
  87%  { transform: translateX(-2px) rotate(-1deg); }
  100% { transform: translateX(0); }
}

.badge-shake {
  animation: badge-shake 0.65s ease-in-out;
  display: inline-block;
}

/* Inline "Status: …" badge next to the room code. */
.rejoin-status {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}
.rejoin-status-live {
  background: rgba(56,120,224,.18);
  border: 1px solid rgba(56,120,224,.5);
  color: #9cc2ff;
}

/* Ended game: greyed-out, no glow — clearly "done", set apart from live cards. */
.rejoin-card-ended {
  background: rgba(60,66,80,.14);
  border-color: rgba(140,150,170,.22);
  border-left: 4px solid rgba(140,150,170,.4);
  opacity: .85;
}
.rejoin-card-ended .rejoin-room { color: #cdd3df; }
.rejoin-card-ended .rejoin-label { color: rgba(170,180,200,.7); }

/* The "Ended" title that replaces the "Active Game" label on finished cards. */
.rejoin-label-ended { color: #c2cad8 !important; letter-spacing: .12em; }

/* Rejoin / View Board / Remove all share one width so they line up identically
   (sized to fit the longest label, "🗺 View Board"). */
.btn-rejoin, .btn-rejoin-view, .btn-rejoin-remove {
  width: 150px;
  text-align: center;
}

/* Waiting (not your turn): muted slate button. */
.btn-rejoin {
  background: linear-gradient(135deg, #5b6b86 0%, #3a455c 100%);
  color: #fff;
  padding: 10px 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-rejoin:hover:not(:disabled) { filter: brightness(1.1); }
/* Your turn: green button to draw the eye. */
.rejoin-card-myturn .btn-rejoin {
  background: linear-gradient(135deg, #28b060 0%, #166038 100%);
}

/* Ended-card action stack: View Board (primary) + Remove (secondary). */
.rejoin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* View the finished board — muted grayish-blue (calmer than the live actions). */
.btn-rejoin-view {
  background: linear-gradient(135deg, #5f7793 0%, #3e4f66 100%);
  color: #fff;
  padding: 10px 18px;
  white-space: nowrap;
}
.btn-rejoin-view:hover:not(:disabled) { filter: brightness(1.1); }

/* Remove (dismiss) button on ended cards — muted, red on hover. */
.btn-rejoin-remove {
  background: rgba(120,70,80,.25);
  border: 1px solid rgba(200,90,90,.4);
  color: #e8b7b7;
  padding: 10px 18px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-rejoin-remove:hover:not(:disabled) {
  background: linear-gradient(135deg, #c0504d 0%, #7a2f2f 100%);
  color: #fff;
}

/* ── Volume control ──────────────────────────────────────── */
/* Desktop: sits just below the auth-bar (top-right). Mobile: top-right
   is free because the auth-bar is left-anchored on narrow screens. */
.vol-ctrl {
  position: fixed;
  top: 44px;
  right: 14px;
  z-index: 100;
}

.vol-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: .9rem;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background .15s;
}
.vol-btn:hover { background: rgba(255,255,255,.16); }

.vol-panel {
  position: absolute;
  top: 36px;
  right: 0;
  background: rgba(22,18,36,.95);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.vol-panel[hidden] { display: none; }

.vol-slider {
  width: 100px;
  accent-color: #f0a030;
  cursor: pointer;
}

/* ── Settings modal ──────────────────────────────────────── */
.settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8,6,16,.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.settings-backdrop[hidden] { display: none; }

.settings-modal {
  width: 100%;
  max-width: 440px;
  background: rgba(22,18,36,.98);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0,0,0,.6);
  overflow: hidden;
  animation: set-pop .18s ease-out;
}
@keyframes set-pop { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.settings-title { font-size: 1.1rem; font-weight: 700; color: #fff; }
.settings-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.settings-close:hover { background: rgba(255,255,255,.1); color: #fff; }

.settings-body { padding: 8px 20px 22px; }

.set-section {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.set-section:last-child { border-bottom: none; }

.set-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
}

/* Account header */
.set-account { display: flex; align-items: center; gap: 12px; }
.set-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

/* Profile-picture controls */
.set-pic-row { display: flex; gap: 8px; flex-wrap: wrap; }
.set-btn-ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
}
.set-btn-ghost:hover { filter: none; background: rgba(255,255,255,.15); }
.set-btn-ghost[hidden] { display: none; }
.set-account-meta { flex: 1; min-width: 0; }
.set-account-name { font-size: 1.05rem; font-weight: 700; color: #fff; }
.set-account-since { font-size: .76rem; color: rgba(255,255,255,.5); }
.set-account-stats { display: flex; gap: 14px; }
.set-stat { text-align: center; }
.set-stat b { display: block; font-size: 1.1rem; color: #f0a030; }
.set-stat span { font-size: .68rem; color: rgba(255,255,255,.5); text-transform: uppercase; }

/* Colour swatches */
.set-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.set-color {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .1s;
}
.set-color:hover { transform: scale(1.12); }
.set-color-on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }

/* Rows + inputs */
.set-row { display: flex; gap: 8px; }
.set-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .9rem;
}
.set-input:focus { outline: none; border-color: #4dc4f5; background: rgba(255,255,255,.1); }
.set-input-block { width: 100%; display: block; margin-bottom: 8px; }

.set-btn {
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #3878e0 0%, #1a50b0 100%);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.set-btn:hover { filter: brightness(1.1); }
.set-btn-block { width: 100%; }

.set-msg { font-size: .8rem; margin-top: 6px; min-height: 1em; }
.set-msg.err { color: #ff8080; }
.set-msg.ok  { color: #62d68a; }

.set-pending {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(240,160,48,.12);
  border: 1px solid rgba(240,160,48,.35);
  font-size: .8rem;
  color: rgba(255,255,255,.8);
}
.set-pending[hidden] { display: none; }
.set-pending a { color: #4dc4f5; }

/* Privacy toggle */
.set-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  color: rgba(255,255,255,.82);
  cursor: pointer;
}
.set-toggle input { width: 16px; height: 16px; accent-color: #3878e0; cursor: pointer; }

/* Danger zone */
.set-danger-label { color: #ff8080; }
.set-danger-text { font-size: .78rem; color: rgba(255,255,255,.5); margin: 0 0 10px; line-height: 1.4; }
.set-btn-danger { background: linear-gradient(135deg, #c0504d 0%, #7a2f2f 100%); }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .lobby-card { padding: 20px 16px; }
  .lobby-title { font-size: 1.7rem; }
  .room-name-value { font-size: 1.2rem; }
  .primary-actions { grid-template-columns: 1fr; }
  .rejoin-card { flex-direction: column; align-items: stretch; gap: 10px; }
  .rejoin-actions { width: 100%; }
  /* Card is stacked here (full-width button at the bottom) and isn't stretched,
     so let the countdown flow inline instead of absolute — avoids overlapping
     the button. */
  .rejoin-card.rejoin-has-timer { padding-bottom: 14px; }
  .rejoin-card .rc-delete-timer { position: static; margin-top: 2px; }
  .btn-rejoin, .btn-rejoin-remove, .btn-rejoin-view { width: 100%; }
  .mm-pref-btns { flex-direction: column; }
  .jr-btns { flex-wrap: wrap; }
}

@media (max-width: 540px) {
  .rc-pl-name { max-width: 50px; }
  .wp-kick { padding: 5px 10px; font-size: .85rem; }

  /* Auth bar: left-anchored on mobile so all items stay on screen */
  .auth-bar {
    right: auto;
    left: 10px;
    gap: 7px;
  }
  .auth-bar-name { font-size: .75rem; }
  .auth-bar-link  { font-size: .75rem; }
  .auth-bar-btn   { font-size: .73rem; padding: 4px 9px; }

  /* Volume control: top-right corner on mobile (auth-bar is left-anchored) */
  .vol-ctrl { top: 10px; right: 14px; }
  .vol-slider { width: 80px; }

  /* Settings modal: tighter padding, account stats wrap under the name */
  .settings-backdrop { padding: 16px 10px; }
  .settings-body { padding: 6px 14px 18px; }
  .set-account { flex-wrap: wrap; }
  .set-account-stats { width: 100%; justify-content: flex-start; }

  .player-greeting { font-size: .9rem; padding: 9px 12px; }
  .rejoin-list { margin-inline: 0; }
}

/* ── Desktop rejoin grid ─────────────────────────────────────
   Mobile (≤540 px) keeps the single-column stack above.
   600 px+  → 2 columns
   900 px+  → 3 columns
   1200 px+ → 4 columns
   The form cards (.lobby-card) and header stay narrow and centred.
   ─────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .lobby-wrap {
    max-width: 900px;
  }
  .lobby-card,
  .lobby-header {
    align-self: center;
    width: 100%;
    max-width: 420px;
  }
  .rejoin-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .lobby-wrap {
    max-width: 1060px;
  }
  .rejoin-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .lobby-wrap {
    max-width: 1360px;
  }
  .rejoin-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════
   Game Config modal
   ═══════════════════════════════════════════════════════════ */

.gc-backdrop {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.gc-backdrop[hidden] { display: none; }

.gc-modal {
  background: #1e1830;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  width: 100%; max-width: 380px;
  box-shadow: 0 12px 48px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.gc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.gc-title {
  font-size: 1.05rem; font-weight: 700; color: #f5e8c0;
}
.gc-close {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 1.1rem; cursor: pointer; padding: 2px 6px;
  border-radius: 5px; transition: color .15s;
}
.gc-close:hover { color: #fff; }

.gc-body {
  padding: 20px 22px; display: flex; flex-direction: column; gap: 16px;
}

.gc-row {
  display: flex; flex-direction: column; gap: 7px;
}
.gc-label {
  font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .8px;
}
.gc-num-row {
  display: flex; align-items: center; gap: 8px;
}
.gc-step {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px; color: #f5e8c0; font-size: 1.1rem;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.gc-step:hover { background: rgba(255,255,255,.15); }
.gc-input {
  width: 70px; padding: 7px 10px; border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08); color: #f5e8c0;
  font-size: .95rem; text-align: center; outline: none;
  transition: border-color .2s;
}
.gc-input:focus { border-color: #f0a030; }
.gc-hint {
  font-size: .75rem; color: rgba(255,255,255,.35); white-space: nowrap;
}
.gc-select {
  padding: 9px 12px; border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08); color: #f5e8c0;
  font-size: .93rem; outline: none; cursor: pointer;
  transition: border-color .2s;
}
.gc-select:focus { border-color: #f0a030; }
.gc-select option { background: #1e1830; color: #f5e8c0; }

.gc-msg {
  font-size: .82rem; color: #f07070; min-height: 18px;
}

.gc-foot {
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; gap: 10px;
}
.btn-gc-apply {
  flex: 1;
  background: linear-gradient(135deg, #f0a030 0%, #d06020 100%);
  color: #fff; padding: 11px 20px;
}
.btn-gc-apply:hover:not(:disabled) { filter: brightness(1.1); }
.btn-gc-cancel {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7); padding: 11px 16px;
}
.btn-gc-cancel:hover { background: rgba(255,255,255,.14); }

/* ── "⚙ Game Config." button in create-options ─────────── */
.btn-game-config {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  font-size: .9rem; padding: 10px 16px;
  width: 100%;
}
.btn-game-config:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Pre-create params preview chips */
.create-params-preview {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px 2px;
}
.cpp-chip {
  font-size: .78rem; color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 3px 10px;
}

/* ── Room params bar (waiting room) ─────────────────────── */
.room-params-bar {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.rp-chips {
  display: flex; flex-wrap: wrap; gap: 6px; flex: 1;
}
.rp-chip {
  font-size: .8rem; color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 3px 10px;
}
.rp-chip b { color: #f5e8c0; }
.rp-edit-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px; color: rgba(255,255,255,.7);
  font-size: .8rem; padding: 5px 12px; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
.rp-edit-btn:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ── Params-changed alert ────────────────────────────────── */
.params-changed-alert {
  background: rgba(240, 160, 48, .12);
  border: 1.5px solid rgba(240, 160, 48, .45);
  border-radius: 10px;
  padding: 11px 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pca-icon { font-size: 1.1rem; flex-shrink: 0; }
.pca-text { font-size: .86rem; color: rgba(255,255,255,.85); flex: 1; }
.pca-btns { display: flex; gap: 8px; }
.btn-pca-dismiss {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; color: rgba(255,255,255,.7);
  font-size: .8rem; padding: 5px 12px; cursor: pointer;
  transition: background .15s;
}
.btn-pca-dismiss:hover { background: rgba(255,255,255,.18); }
.btn-pca-leave {
  background: rgba(220, 60, 60, .18);
  border: 1px solid rgba(220, 60, 60, .4);
  border-radius: 6px; color: #f08080;
  font-size: .8rem; padding: 5px 12px; cursor: pointer;
  transition: background .15s;
}
.btn-pca-leave:hover { background: rgba(220, 60, 60, .3); }

/* ── Room card: params row (full-width strip below info+right) */
.rc-params {
  flex-basis: 100%; /* own row inside the wrapping card flex */
  display: flex; flex-wrap: nowrap; gap: 6px;
  margin-top: 2px;
}
.rc-param {
  font-size: .68rem; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 2px 8px;
  white-space: nowrap;
}
