/* Friendships and recommendations: profile strip, card badges, people tabs, friend requests, recommend dialog. */
.pop-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #ff7ab61f; color: #ff9ccb; font-size: 11px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.pop-badge.is-ranked { background: #ffd36a24; color: #ffd36a; }
.pop-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #ffffff0f; color: #daccd8; font-size: 11px; font-weight: 700; }
.pop-tag b { color: var(--muted); font-weight: 800; }

/* Profile: recommendations and the friend / recommend buttons, between head and pin strip. */
.pp-rep { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 24px 10px; padding: 10px 14px; border-radius: 12px; background: #ffffff08; }
.pp-rep-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.pp-rep-summary > strong { font-size: 14px; color: #ff9ccb; margin-right: 4px; }
.pp-rep-hint { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.pp-rep-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-rep-actions .btn { padding: 8px 14px; font-size: 13px; }
.btn.is-locked { opacity: .7; }
.pp-neutral .pp-rep { background: #00000008; }

/* People page: sort tabs and game filter. */
.people-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 18px; }
.people-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.people-tabs::-webkit-scrollbar { display: none; }
.people-tab { flex: none; padding: 8px 15px; border: 0; border-radius: 999px; background: var(--surface, #201a23); color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.people-tab:hover { color: var(--ink); }
.people-tab.active { background: #ff9e57; color: #17121a; }
.people-game { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.people-game select { max-width: 240px; padding: 8px 12px; border-radius: 10px; border: 1px solid #ffffff1f; background: var(--surface, #201a23); color: var(--ink); font: inherit; font-size: 13px; }
.reel-joined { color: #8fd8ff; font-weight: 700; }

/* Incoming friend requests above the list. */
.friend-requests { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #302933; }
.friend-requests-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.friend-requests-head small { color: var(--muted); font-size: 12px; }
.friend-request { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.friend-request + .friend-request { border-top: 1px solid #ffffff12; }
.friend-request-who { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.friend-request-who span { display: grid; min-width: 0; }
.friend-request-who small { color: var(--muted); font-size: 12px; }
.friend-request-actions { display: flex; gap: 6px; flex: none; }
.friend-request-actions .btn { padding: 7px 12px; font-size: 12px; }

/* Recommend dialog. */
.rec-dialog { display: grid; gap: 12px; }
.rec-dialog p { margin: 0; color: #daccd8; font-size: 14px; line-height: 1.5; }
.rec-dialog .rec-basis { color: #ff9e57; font-weight: 700; font-size: 13px; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rec-tag { padding: 8px 14px; border-radius: 999px; border: 1px solid #ffffff24; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rec-tag[aria-pressed="true"] { background: #ff7ab6; border-color: #ff7ab6; color: #141017; }
.rec-left { color: var(--muted); font-size: 12px; }
.rec-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Home hero in "popular" mode: rank and recommendations on each card. */
.hero-card-pop { font-size: 12px; color: #ff9ccb; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-card-pop b { color: #ffd36a; }

@media (max-width: 730px) {
  .pp-rep { margin: 0 14px 10px; }
  .pp-rep-actions { width: 100%; }
  .pp-rep-actions .btn { flex: 1; }
  .people-tools { margin-bottom: 10px; gap: 8px; }
  .people-game { width: 100%; }
  .people-game select { flex: 1; max-width: none; }
  /* Tabs and filter take room above the reel. */
  .people-tools ~ .people-reel { height: calc(100dvh - 318px); }
  .friend-request { flex-wrap: wrap; }
}

/* Requests inside direct messages (2026-11-10): friend request on top of the chat, game invites in bubbles. */
.dm-request { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 4px; border: 1px solid var(--accent-soft, #ff9e571f); background: var(--surface-2, #241e28); border-radius: var(--radius-sm, 12px); }
.dm-request-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft, #ff9e571f); color: var(--accent, #ff9e57); font-weight: 800; font-size: 16px; }
.dm-request-text { flex: 1 1 180px; min-width: 0; }
.dm-request-text strong { display: block; font-size: 13px; color: var(--ink); }
.dm-request-text small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.dm-request-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dm-request-actions .btn { min-height: 34px; padding: 7px 13px; }
.bubble.has-invite { max-width: min(360px, 88%); }
.dm-invite { margin-top: 0; padding: 11px 12px; border-radius: 10px; background: var(--surface, #1b161e); border: 1px solid var(--hairline, #fff2e812); display: grid; gap: 4px; }
.dm-invite-label { font-size: 10px; font-weight: 800; letter-spacing: .4px; color: var(--accent, #ff9e57); }
.dm-invite strong { font-size: 13px; color: var(--ink); }
.dm-invite > small { margin: 0; font-size: 11px; color: var(--muted); opacity: 1; }
.dm-invite .dm-request-actions { margin-top: 6px; }
.dm-invite-status { font-size: 11px; font-weight: 700; color: var(--muted); }
.dm-invite-status.is-accepted { color: var(--live, #5fd99a); }
