/* LFG — brickwall graffiti swipe arena */

.zone-lfg {
  position: relative;
  background: #1a1210;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Brick wall backdrop ── */
.lfg-wall {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lfg-wall__brick {
  position: absolute;
  inset: -20%;
  background-color: #3d2e28;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='56' viewBox='0 0 120 56'%3E%3Crect fill='%234a3830' width='116' height='24' x='2' y='2' rx='2'/%3E%3Crect fill='%23423630' width='56' height='24' x='62' y='30' rx='2'/%3E%3Crect fill='%234a3830' width='56' height='24' x='2' y='30' rx='2'/%3E%3C/svg%3E");
  background-size: 120px 56px;
  filter: brightness(0.55) contrast(1.1);
}

.lfg-wall__brick::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 0, 0, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.lfg-wall__spray {
  position: absolute;
  font-family: var(--font-graffiti);
  font-size: clamp(48px, 12vw, 88px);
  line-height: 1;
  opacity: 0.12;
  transform: rotate(-8deg);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.lfg-wall__spray--1 {
  top: 8%;
  left: -4%;
  color: var(--zone-spray-yellow);
  transform: rotate(-12deg);
}

.lfg-wall__spray--2 {
  top: 38%;
  right: -8%;
  color: var(--zone-spray-pink);
  font-size: clamp(64px, 16vw, 120px);
  transform: rotate(6deg);
  opacity: 0.09;
}

.lfg-wall__spray--3 {
  bottom: 18%;
  left: 10%;
  color: var(--accent);
  transform: rotate(-4deg);
  opacity: 0.08;
}

/* ── Header ── */
.lfg-header {
  position: relative;
  z-index: 2;
  padding: max(var(--space-3), env(safe-area-inset-top)) var(--space-4) var(--space-2);
}

.lfg-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.lfg-header__title {
  margin: 0;
  font-family: var(--font-graffiti);
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1;
  color: #fff;
  text-shadow:
    3px 3px 0 var(--zone-spray-pink),
    -1px -1px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
}

.lfg-header__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.lfg-header__tools {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.lfg-tool {
  position: relative;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring), border-color var(--duration-fast);
}

.lfg-tool:hover {
  border-color: var(--zone-spray-yellow);
  transform: translateY(-2px);
}

.lfg-tool svg {
  width: 20px;
  height: 20px;
}

.lfg-tool__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--zone-spray-pink);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Active filter chips */
.lfg-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-1);
}

.lfg-filter-bar::-webkit-scrollbar { display: none; }

.lfg-filter-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.4);
  color: var(--zone-spray-yellow);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.lfg-filter-chip span {
  opacity: 0.7;
  font-size: 14px;
}

.lfg-queue-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lfg-queue-stats strong {
  color: var(--accent);
  font-weight: 700;
}

.lfg-queue-stats__dot { opacity: 0.4; }

/* Photo bars */
.lfg-photo-bars {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 0 var(--space-4) var(--space-2);
}

.lfg-photo-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 0;
}

.lfg-photo-bar.active {
  background: var(--zone-spray-yellow);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* Stage + deck */
.lfg-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-3);
}

.lfg-deck {
  flex: 1;
  position: relative;
  min-height: 580px;
  max-height: 580px;
}

/* ── Graffiti cards ── */
.lfg-card {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  touch-action: none;
  user-select: none;
  cursor: pointer;
  will-change: transform;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.6),
    inset 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.lfg-card__frame {
  position: absolute;
  inset: 8px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  z-index: 4;
  pointer-events: none;
}

.lfg-card__frame::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 12px;
  right: 12px;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.15) 8px,
    rgba(255, 255, 255, 0.15) 10px
  );
  opacity: 0.5;
}

.lfg-card--back {
  transform: scale(0.94) rotate(2deg);
  opacity: 0.7;
  pointer-events: none;
}

.lfg-card__hero {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* ── Personalized card panels ── */
.lfg-card__panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, color-mix(in srgb, var(--card-accent) 28%, transparent), transparent 55%),
    linear-gradient(165deg, #141018 0%, #0a0a0f 48%, #050508 100%);
}

.lfg-card--rich .lfg-card__frame {
  border-color: rgba(255, 255, 255, 0.12);
}

.lfg-card--rich .lfg-card__panel,
.lfg-card__panel--rich {
  padding: 12px 14px 10px;
  gap: 8px;
  overflow: hidden;
  justify-content: flex-start;
  background:
    radial-gradient(ellipse 100% 60% at 0% 0%, color-mix(in srgb, var(--card-accent) 18%, transparent), transparent 50%),
    linear-gradient(180deg, #12121a 0%, #09090d 100%);
}

.lfg-card__compat {
  flex-shrink: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lfg-card__compat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.lfg-card__compat-val {
  font-family: var(--font-changa);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--card-accent, var(--accent));
}

.lfg-card__compat-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lfg-card__compat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.lfg-card__compat-sub {
  font-size: 11px;
  color: var(--muted);
}

.lfg-card__compat-bar {
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.lfg-card__compat-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--card-accent, var(--accent)), color-mix(in srgb, var(--card-accent, var(--accent)) 55%, #fff));
}

.lfg-card__profile-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lfg-card__seeking {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.lfg-card__bio {
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lfg-card__facts {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lfg-card__fact {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 1px 6px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lfg-card__fact-icon {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  color: var(--card-accent, var(--accent));
  opacity: 0.9;
}

.lfg-card__fact-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.lfg-card__fact-value {
  grid-column: 2;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
}

.lfg-card__traits {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.lfg-card__trait {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: color-mix(in srgb, var(--card-accent) 18%, rgba(0, 0, 0, 0.5));
  border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
}

.lfg-card__traits--footer {
  gap: 6px;
}

.lfg-card__games-block {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lfg-card__game-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.lfg-card__game-list::-webkit-scrollbar { display: none; }

.lfg-card__game-item {
  flex: 0 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.lfg-card__game-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.4);
}

.lfg-card__game-item span {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.2;
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lfg-card__panel--rich {
  justify-content: flex-start;
  gap: 8px;
}

.lfg-card__profile-copy {
  min-width: 0;
  flex: 1;
  padding-top: 1px;
}

.lfg-card__seeking-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1px;
}

.lfg-card__section-label {
  display: block;
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lfg-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid color-mix(in srgb, var(--card-accent) 65%, rgba(255, 255, 255, 0.2));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  overflow: hidden;
}

.lfg-card__avatar-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
}

.lfg-card__avatar-emblem {
  font-family: var(--font-changa);
  font-size: 1rem;
  font-weight: 700;
  color: var(--card-accent, var(--accent));
  letter-spacing: 0.04em;
}

.lfg-card__panel-name {
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  line-height: 1.1;
  color: #fff;
}

.lfg-card__panel-name .spawn-username {
  font-size: inherit;
}

.lfg-card__panel-vibe {
  margin: 4px 0 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--card-accent) 55%, #fff);
  font-weight: 500;
}

.lfg-card__quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lfg-card__stat {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
}

.lfg-card__stat--live {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}

.lfg-card__game-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.lfg-card__game-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 56px;
}

.lfg-card__game-pin img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lfg-card__game-pin span {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lfg-card__game-pin.is-fallback img { display: none; }

.lfg-card__panel--group {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
}

.lfg-card__clan-emblem {
  width: 88px;
  height: 88px;
  margin-top: 40px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font-changa);
  font-size: 32px;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(145deg, hsl(var(--avatar-hue, 186) 65% 38%), hsl(var(--avatar-hue, 186) 50% 18%));
  border: 3px solid var(--card-accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: rotate(-4deg);
}

.lfg-card__roster-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.lfg-card__roster-dots span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lfg-card__panel--server {
  padding: 0;
}

.lfg-card__panel-banner {
  height: 42%;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--card-accent);
}

.lfg-card__panel-body {
  flex: 1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lfg-card__server-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lfg-card__server-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lfg-card__pop-mini {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.lfg-card__pop-mini span {
  display: block;
  height: 100%;
  background: var(--card-accent);
  border-radius: inherit;
}

.lfg-card__panel--game {
  padding: 0;
}

.lfg-card__game-cover {
  height: 52%;
  overflow: hidden;
  border-bottom: 3px solid var(--card-accent);
}

.lfg-card__game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lfg-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.25) 68%, rgba(0, 0, 0, 0.88) 100%);
}

.lfg-card__badges {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
}

.lfg-card__type {
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--zone-spray-yellow);
  font-family: var(--font-graffiti);
  font-size: 13px;
  color: var(--zone-spray-yellow);
  transform: rotate(-3deg);
  letter-spacing: 0.05em;
}

.lfg-card__match {
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--zone-spray-pink);
  color: #000;
  font-family: var(--font-graffiti);
  font-size: 18px;
  transform: rotate(3deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.lfg-card__online {
  position: absolute;
  top: 52px;
  right: var(--space-4);
  z-index: 3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.lfg-card__stamp {
  position: absolute;
  top: 28%;
  z-index: 5;
  padding: 6px 18px;
  border: 5px solid;
  border-radius: 4px;
  font-family: var(--font-graffiti);
  font-size: clamp(32px, 8vw, 44px);
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.lfg-card__stamp--like {
  left: var(--space-4);
  color: #4ade80;
  border-color: #4ade80;
  transform: rotate(-14deg);
}

.lfg-card__stamp--pass {
  right: var(--space-4);
  color: #f87171;
  border-color: #f87171;
  transform: rotate(14deg);
}

.lfg-card.is-dragging .lfg-card__stamp--like { opacity: calc(var(--drag-like, 0)); }
.lfg-card.is-dragging .lfg-card__stamp--pass { opacity: calc(var(--drag-pass, 0)); }

.lfg-card__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: var(--space-3) var(--space-4) var(--space-4);
  pointer-events: none;
}

.lfg-card__meta {
  margin: 0 0 var(--space-2);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.lfg-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lfg-card__tag {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transform: rotate(-1deg);
}

.lfg-card__tag:nth-child(even) { transform: rotate(1deg); }

/* Swipe animations */
.lfg-card.swipe-exit-left {
  animation: lfgExitLeft 0.42s var(--ease-spring) forwards;
}

.lfg-card.swipe-exit-right {
  animation: lfgExitRight 0.42s var(--ease-spring) forwards;
}

.lfg-card.card-promote {
  animation: lfgPromote 0.45s var(--ease-spring) forwards;
}

@keyframes lfgExitLeft {
  to { transform: translateX(-130%) rotate(-18deg); opacity: 0; }
}

@keyframes lfgExitRight {
  to { transform: translateX(130%) rotate(18deg); opacity: 0; }
}

@keyframes lfgPromote {
  from { transform: scale(0.94) rotate(2deg); opacity: 0.7; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

/* ── Action bar — graffiti buttons ── */
.lfg-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) max(var(--space-5), env(safe-area-inset-bottom));
}

.lfg-action {
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.lfg-action:active { transform: scale(0.88); }

.lfg-action--rewind,
.lfg-action--super,
.lfg-action--invite {
  width: 48px;
  height: 48px;
  color: var(--zone-spray-yellow);
}

.lfg-action--pass {
  width: 64px;
  height: 64px;
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.15);
}

.lfg-action--like {
  width: 72px;
  height: 72px;
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
}

.lfg-action__label {
  font-family: var(--font-graffiti);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.lfg-action--pass .lfg-action__label { color: #f87171; }
.lfg-action--like .lfg-action__label { color: #4ade80; font-size: 17px; }

.lfg-action svg {
  width: 22px;
  height: 22px;
}

/* Matches / notifications */
.lfg-notifications-badge,
.lfg-matches-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--zone-spray-pink);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.lfg-notifications-sheet__hint {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.lfg-notifications-list,
.lfg-matches-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  overflow: auto;
}

.lfg-notif-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lfg-notif-row--unread {
  border-color: rgba(0, 212, 238, 0.28);
  background: rgba(0, 212, 238, 0.06);
}

.lfg-notif-row img,
.lfg-notif-row__glyph {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.lfg-notif-row__glyph {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-bright);
}

.lfg-notif-row__copy {
  flex: 1;
  min-width: 0;
}

.lfg-notif-row__copy strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.lfg-notif-row__copy span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.lfg-notif-row__time {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.lfg-notifications-empty,
.lfg-matches-empty {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.lfg-match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lfg-match-row img {
  border-radius: var(--radius-md);
  object-fit: cover;
}

.lfg-match-row strong { display: block; font-size: 14px; }
.lfg-match-row span { font-size: 12px; color: var(--text-secondary); }

.lfg-match-row strong { display: block; font-size: 14px; }
.lfg-match-row span { font-size: 12px; color: var(--text-secondary); }

/* Filter category picker (inside filter sheet) */
.lfg-filter-group--category {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lfg-filter-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lfg-filter-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color var(--duration-fast),
    background var(--duration-fast),
    color var(--duration-fast);
}

.lfg-filter-category.is-on {
  border-color: var(--zone-spray-yellow);
  background: rgba(255, 224, 102, 0.14);
  color: #fff;
}

.lfg-filter-category__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lfg-filter-category__icon .spawn-icon {
  width: 16px;
  height: 16px;
}

/* ── Advanced filter sheet — graffiti panel ── */
.lfg-filter-scrim .lfg-filter-sheet {
  max-height: 88dvh;
  background: #1a1210;
  border: 2px solid rgba(255, 255, 255, 0.12);
  padding-bottom: var(--space-4);
}

.lfg-filter-sheet__head {
  margin-bottom: var(--space-4);
}

.lfg-filter-sheet__title {
  margin: 0;
  font-family: var(--font-graffiti);
  font-size: 28px;
  color: var(--zone-spray-yellow);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.lfg-filter-sheet__mode {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--zone-spray-pink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lfg-filter-sheet__body {
  max-height: 52dvh;
  overflow-y: auto;
  padding-right: 4px;
}

.lfg-filter-group {
  margin-bottom: var(--space-4);
}

.lfg-filter-group__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.lfg-filter-group__label {
  margin: 0 0 var(--space-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.lfg-filter-group__row .lfg-filter-group__label { margin-bottom: 0; }

.lfg-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lfg-filter-tag {
  padding: 8px 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
  transform: rotate(-0.5deg);
}

.lfg-filter-tag.is-on {
  background: var(--zone-spray-yellow);
  border-color: #000;
  color: #000;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.lfg-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.lfg-filter-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.lfg-filter-toggle__track {
  width: 44px;
  height: 26px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background var(--duration-fast);
}

.lfg-filter-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.lfg-filter-toggle input:checked + .lfg-filter-toggle__track {
  background: var(--zone-spray-pink);
}

.lfg-filter-toggle input:checked + .lfg-filter-toggle__track::after {
  transform: translateX(18px);
}

.lfg-filter-range {
  width: 100%;
  accent-color: var(--zone-spray-yellow);
}

.lfg-filter-range-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--zone-spray-yellow);
}

.lfg-filter-sheet__foot {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lfg-filter-btn {
  min-height: 48px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.lfg-filter-btn:active { transform: scale(0.97); }

.lfg-filter-btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
}

.lfg-filter-btn--primary {
  border: 2px solid #000;
  background: var(--zone-spray-yellow);
  color: #000;
  font-family: var(--font-graffiti);
  font-size: 16px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

/* Desktop */
@media (min-width: 768px) {
  .lfg-deck {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .lfg-stage {
    align-items: center;
  }

  .lfg-filter-scrim .lfg-filter-sheet {
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
  }
}

/* ── LFG detail deep-dive sheet ── */
.lfg-detail-scrim .lfg-detail-sheet {
  max-height: 92dvh;
  padding: 0 0 var(--space-4);
  background: #141010;
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.lfg-detail {
  display: flex;
  flex-direction: column;
  max-height: calc(92dvh - 48px);
}

.lfg-detail__panel-wrap {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.lfg-detail__panel-wrap--rich {
  margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-3);
}

.lfg-detail__panel-wrap--rich .lfg-card__panel {
  min-height: auto;
  max-height: none;
}

.lfg-detail__panel-wrap--rich .lfg-card__bio {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.lfg-detail__panel-wrap .lfg-card__panel {
  position: relative;
  min-height: 220px;
}

.lfg-detail__panel-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.lfg-detail__panel-badges .lfg-detail__type,
.lfg-detail__panel-badges .lfg-detail__match {
  position: static;
}

.lfg-detail__hero {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.lfg-detail__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(20, 16, 16, 0.95) 100%);
}

.lfg-detail__type {
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  z-index: 1;
  padding: 4px 10px;
  border: 2px solid var(--zone-spray-yellow);
  font-family: var(--font-graffiti);
  font-size: 13px;
  color: var(--zone-spray-yellow);
  transform: rotate(-2deg);
}

.lfg-detail__match {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  z-index: 1;
  padding: 6px 12px;
  background: var(--zone-spray-pink);
  color: #000;
  font-family: var(--font-graffiti);
  font-size: 16px;
  transform: rotate(2deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.lfg-detail__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-4);
}

.lfg-detail__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-graffiti);
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  line-height: 1.1;
  color: #fff;
}

.lfg-detail__hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.lfg-detail__seeking {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.lfg-detail__seeking strong {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.lfg-detail__reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lfg-detail__reasons li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.lfg-detail__reasons .spawn-icon {
  flex-shrink: 0;
  color: var(--accent-like);
  margin-top: 2px;
}

.lfg-detail__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.lfg-detail__stat {
  padding: var(--space-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.lfg-detail__stat-val {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--zone-spray-yellow);
}

.lfg-detail__stat-label {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.lfg-detail__pop {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.lfg-detail__pop-bar {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.lfg-detail__pop-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--zone-spray-yellow));
  border-radius: inherit;
}

.lfg-detail__section {
  margin-bottom: var(--space-4);
}

.lfg-detail__section h3 {
  margin: 0 0 var(--space-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.lfg-detail__section p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.lfg-detail__section--muted p {
  color: rgba(255, 255, 255, 0.55);
}

.lfg-detail__recent {
  margin-top: var(--space-2) !important;
  font-size: 12px !important;
  color: var(--accent) !important;
}

.lfg-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lfg-detail__tag {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.lfg-detail__actions {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
}

.lfg-detail__actions:has([data-detail-open-server]),
.lfg-detail__actions:has([data-detail-explore-game]) {
  grid-template-columns: 1fr 1fr 1.2fr;
}

.lfg-detail-btn {
  min-height: 44px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.lfg-detail-btn:active { transform: scale(0.96); }

.lfg-detail-btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
}

.lfg-detail-btn--primary {
  border: 2px solid #000;
  background: #4ade80;
  color: #000;
  font-family: var(--font-graffiti);
  font-size: 14px;
}

.lfg-detail-btn--accent {
  border: 2px solid #000;
  background: var(--zone-spray-yellow);
  color: #000;
  font-family: var(--font-graffiti);
  font-size: 14px;
}

/* ── Group cards ── */
.lfg-card--group .lfg-card__panel--group,
.lfg-card--server .lfg-card__panel--server {
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #12121a 0%, #09090d 100%);
}

.lfg-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lfg-group-head__emblem {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-changa);
  font-size: 1rem;
  font-weight: 700;
  color: var(--card-accent, var(--accent));
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid color-mix(in srgb, var(--card-accent) 50%, transparent);
  flex-shrink: 0;
}

.lfg-group-head__copy { min-width: 0; flex: 1; }

.lfg-group-head__name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.1;
  color: #fff;
}

.lfg-group-head__status {
  margin: 4px 0 0;
  font-size: 11px;
  color: color-mix(in srgb, var(--card-accent) 60%, #fff);
}

.lfg-group-snapshot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 14px;
}

.lfg-group-snapshot__item {
  padding: 6px 8px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lfg-group-snapshot__item span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.lfg-group-snapshot__item strong {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
}

.lfg-group-bio {
  margin: 0;
  padding: 0 14px 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lfg-group-section {
  padding: 0 14px 8px;
}

.lfg-group-section--games {
  padding-bottom: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.lfg-group-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lfg-group-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.lfg-group-member__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.lfg-group-member__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lfg-group-member__name {
  font-size: 12px;
  line-height: 1.2;
}

.lfg-group-member__name .spawn-username { font-size: inherit; }

.lfg-group-member__meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.lfg-group-more {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--muted);
}

/* ── Server cards ── */
.lfg-card--server .lfg-card__panel--server {
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: #0a0a0f;
  border-radius: inherit;
}

.lfg-server-hero {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lfg-server-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--card-accent) 22%, transparent) 0%, transparent 55%);
  pointer-events: none;
}

.lfg-server-hero__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.lfg-server-hero__fit {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #000;
  background: var(--card-accent, var(--accent));
  border: 2px solid rgba(0, 0, 0, 0.35);
}

.lfg-server-hero__lfg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.lfg-server-hero__lfg .spawn-icon { color: #4ade80; }

.lfg-server-hero__lfg--off {
  color: rgba(255, 255, 255, 0.55);
}

.lfg-server-hero__identity {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 14px 10px;
}

.lfg-server-hero__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.lfg-server-hero__copy {
  min-width: 0;
  flex: 1;
  padding-bottom: 2px;
}

.lfg-server-hero__name {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.lfg-server-hero__tagline {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: color-mix(in srgb, var(--card-accent) 70%, #fff);
}

.lfg-server-hero__owner {
  margin: 2px 0 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.lfg-server-hero__pop {
  position: relative;
  z-index: 2;
  padding: 0 14px 12px;
}

.lfg-server-hero__pop-track {
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.lfg-server-hero__pop-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--card-accent, var(--accent)), color-mix(in srgb, var(--card-accent, var(--accent)) 50%, #fff));
}

.lfg-server-hero__pop-label {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.lfg-server-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #101015 0%, #09090d 100%);
}

.lfg-server-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.lfg-server-metric {
  padding: 8px 6px;
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lfg-server-metric__label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lfg-server-metric__val {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}

.lfg-server-bio {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lfg-server-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lfg-server-module {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: color-mix(in srgb, var(--card-accent) 12%, rgba(0, 0, 0, 0.45));
  border: 1px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
}

.lfg-server-module .spawn-icon {
  color: var(--card-accent, var(--accent));
  flex-shrink: 0;
}

.lfg-server-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  border: 2px solid #000;
  border-radius: var(--radius-md);
  background: var(--zone-spray-yellow);
  color: #000;
  font-family: var(--font-graffiti);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.lfg-server-preview-btn:active { transform: scale(0.97) translate(1px, 1px); }

.lfg-server-preview-btn .spawn-icon { flex-shrink: 0; }

/* ── Game cards ── */
.lfg-card--game .lfg-card__panel--game {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: #0a0a0f;
}

.lfg-game-hero {
  position: relative;
  flex: 1 1 52%;
  min-height: 240px;
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lfg-game-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.94) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--card-accent) 20%, transparent) 0%, transparent 60%);
  pointer-events: none;
}

.lfg-game-hero__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.lfg-game-hero__fit {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #000;
  background: var(--card-accent, var(--accent));
  border: 2px solid rgba(0, 0, 0, 0.35);
}

.lfg-game-hero__activity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.lfg-game-hero__activity .spawn-icon { color: #4ade80; }

.lfg-game-hero__identity {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 14px 16px;
}

.lfg-game-hero__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.lfg-game-hero__copy {
  min-width: 0;
  flex: 1;
  padding-bottom: 2px;
}

.lfg-game-hero__name {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.lfg-game-hero__meta {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 600;
  color: color-mix(in srgb, var(--card-accent) 65%, #fff);
}

.lfg-game-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #101015 0%, #09090d 100%);
}

.lfg-game-friends {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  background: color-mix(in srgb, var(--card-accent) 12%, rgba(0, 0, 0, 0.45));
  border: 1px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
}

.lfg-game-friends .spawn-icon {
  flex-shrink: 0;
  color: var(--card-accent, var(--accent));
}

.lfg-game-friends strong { color: #fff; }

.lfg-game-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lfg-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.lfg-game-tags .lfg-card__trait {
  font-size: 10px;
  padding: 3px 8px;
}

.lfg-game-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.lfg-game-metric {
  padding: 8px 4px;
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lfg-game-metric__label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lfg-game-metric__val {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}

.lfg-game-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  border: 2px solid #000;
  border-radius: var(--radius-md);
  background: var(--zone-spray-yellow);
  color: #000;
  font-family: var(--font-graffiti);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.lfg-game-explore-btn:active { transform: scale(0.97) translate(1px, 1px); }

.lfg-game-explore-btn--muted {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.15);
}

.lfg-game-explore-btn .spawn-icon { flex-shrink: 0; }

@media (max-width: 400px) {
  .lfg-detail__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .lfg-detail__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lfg-card,
  .lfg-filter-tag {
    animation: none;
    transition: none;
  }
}
