/* Menschen: one card per person. Desktop two per row, mobile one per full-height slide with vertical snap. */
.people-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.people-count { flex: none; margin-bottom: 26px; padding: 6px 12px; border-radius: 999px; background: var(--surface, #201a23); color: var(--muted); font-size: 12px; font-weight: 800; }
.reel-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 18px; padding: 12px 16px; border-radius: 12px; background: #302933; color: #daccd8; font-size: 13px; }

.people-reel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reel-card {
  --presence-online:#5fd99a; --presence-ingame:#63e5ff; --presence-away:#ffc24a; --presence-dnd:#ff5e6c;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface, #201a23); border-radius: 18px; color: var(--ink);
}
.reel-card > .fx-background { z-index: 0; }
.reel-card > :not(.fx-background) { position: relative; z-index: 1; }
.reel-card:has(.fx-background[data-fx="arcane"]) { background: linear-gradient(180deg, #211b24, #18131b); }
.reel-card:has(.fx-background[data-fx="shadow"]) { background: linear-gradient(180deg, #120d14, #0b080d); }
.reel-card:has(.fx-background[data-fx="stardust"]) { background: linear-gradient(180deg, #1f1922, #161119); }
.reel-card:has(.fx-background[data-fx="mist"]) { background: linear-gradient(180deg, #251f29, #1b151d); }
.reel-card:has(.fx-background[data-fx="pixel-night"]) { background: linear-gradient(180deg, #1f1922, #2d2631); }

.reel-banner.profile-banner { display: block; width: 100%; height: 150px; padding: 0; border: 0; cursor: pointer; background: var(--profile-bg); }
.reel-head { display: flex; align-items: flex-end; gap: 14px; margin: -46px 20px 0; }
.reel-head > * { position: relative; }
.reel-avatar { flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.reel-avatar .avatar { box-shadow: 0 0 0 5px var(--surface, #201a23); }
.reel-name { display: grid; min-width: 0; }
.reel-name strong { font: 800 20px/1.2 var(--font); letter-spacing: -.4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-name small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.reel-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 20px 20px; flex: 1; }
.reel-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.reel-now { color: #ff9e57; font-weight: 700; }
.reel-bio { margin: 0; color: #cbbdc9; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-shared { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #ffffff10; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.reel-shared.has-shared { background: #ff9e5722; color: #ff9e57; }
.reel-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reel-games li { position: relative; overflow: hidden; border-radius: 10px; background: #ffffff0a; min-width: 0; }
.reel-games .game-art { aspect-ratio: 460 / 215; }
.reel-games .game-art.no-art::after { font-size: 16px; }
.reel-games span:not(.game-art) { display: block; padding: 6px 9px 7px; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-games em { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 5px; background: #ff9e57; color: #17121a; font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.reel-games li.is-shared { box-shadow: inset 0 0 0 2px #ff9e57; }
.reel-body > :not(.reel-games) { flex-shrink: 0; }
.reel-nogames { margin: 0; color: var(--muted); font-size: 12px; }
.reel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 4px; }
.reel-swipe { display: none; }

/* Mobile: the list becomes a reel. One person fills the space between top bar and bottom navigation. */
@media (max-width: 730px) {
  /* The open search field shares the top bar with language and Gems; it takes what is left instead of a fixed width. */
  .search.mobile-open { flex: 1 1 0; width: auto; min-width: 0; }
  .topbar:has(.search.mobile-open) .top-language { display: none; }
  .people-head .page-lede { display: none; }
  .people-head .page-heading { margin-bottom: 10px; }
  .people-count { margin-bottom: 12px; }
  .reel-hint { margin: 0 0 10px; font-size: 12px; padding: 10px 12px; }
  .people-reel {
    display: block; height: calc(100dvh - 252px); min-height: 420px; overflow-y: auto; overscroll-behavior: contain;
    scroll-snap-type: y mandatory; scrollbar-width: none; border-radius: 18px;
  }
  .people-reel::-webkit-scrollbar { display: none; }
  .reel-card { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .reel-card + .reel-card { margin-top: 12px; }
  .reel-banner.profile-banner { height: 34%; min-height: 130px; }
  .reel-body { overflow: hidden; }
  /* room for card borders that reach past the card: the reel scrolls, so it would cut them off at its edges */
  .people-reel:has(.has-fx-border) { padding: 12px; scroll-padding: 12px; }
  .people-reel:has(.has-fx-border) .reel-card { height: calc(100% - 24px); --fx-bleed-max: 12px; }
  /* Games as compact rows so a slide never cuts them off. */
  .reel-games { min-height: 0; overflow: hidden; align-content: start; grid-template-columns: 1fr; gap: 6px; }
  .reel-games li { display: flex; align-items: center; gap: 10px; padding-right: 10px; }
  .reel-games .game-art { flex: none; width: 76px; }
  .reel-games .game-art.no-art::after { font-size: 12px; }
  .reel-games span:not(.game-art) { flex: 1; padding: 0; }
  .reel-games em { position: static; flex: none; }
  .reel-bio { -webkit-line-clamp: 4; }
  .reel-swipe { display: block; margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; }
}

/* Your own card: a small "Du" tag and, while the profile is not public, a note why others do not see it. */
.reel-name strong em.reel-you { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #10171c; background: var(--accent, #c8ff59); border-radius: 4px; padding: 1px 5px; vertical-align: 3px; }
.reel-private { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #ffffff12; color: var(--ink); font-size: 12px; line-height: 1.45; }
.reel-private .text-link { justify-self: start; padding: 0; }
/* Minimal cards (2026-11-11): without the game grid the full-height phone card gives the banner more room. */
@media (max-width: 730px) { .reel-banner.profile-banner { height: 52%; } .reel-bio { -webkit-line-clamp: 6; } }
