/* ---- <world-card> -------------------------------------- */
world-card { display: block; }

.wc {
  display: block;
  border-radius: var(--r-lg);
  transition: transform var(--med) var(--ease);
}
.wc:hover { transform: translateY(-3px); }
.wc:hover .wc-cover img { transform: scale(1.03); }
.wc:hover .wc-name { color: var(--ink-hover); }

/* cover art does the heavy lifting — Wavedash's core move */
.wc-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
}
.wc-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease);
}
.wc-cover-empty {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cover-a), var(--cover-b));
}

.wc-live {
  position: absolute; left: var(--s3); bottom: var(--s3);
  display: inline-flex; align-items: center; gap: var(--s1);
  padding: 4px var(--s2);
  border-radius: var(--r-full);
  background: var(--scrim-strong);
  backdrop-filter: blur(8px);
  color: var(--live);
  font-size: var(--text-xs); font-weight: var(--weight-semi);
  box-shadow: var(--shadow-sm);
}
.wc-badge {
  position: absolute; right: var(--s3); top: var(--s3);
  padding: 4px var(--s2);
  border-radius: var(--r-full);
  background: var(--scrim-strong);
  backdrop-filter: blur(8px);
  color: var(--ink-muted);
  font-size: var(--text-xs); font-weight: var(--weight-medium);
  box-shadow: var(--shadow-sm);
}

.wc-body { padding: var(--s3) var(--s1) 0; }
.wc-name {
  font-size: var(--text-base);
  transition: color var(--fast) var(--ease);
}
.wc-tagline {
  margin-top: var(--s1);
  font-size: var(--text-sm); color: var(--ink-muted);
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.wc-foot {
  margin-top: var(--s2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.wc-tags { font-size: var(--text-xs); color: var(--ink-faint); }
.wc-count { font-size: var(--text-xs); color: var(--ink-faint); white-space: nowrap; }

/* ---- the grid ------------------------------------------ */
.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s8) var(--s5);
}
@media (max-width: 640px) {
  .world-grid { grid-template-columns: 1fr; gap: var(--s6); }
}

/* A world the viewer is already in reads as a door, not a pitch —
   accent-filled rather than the muted "request to join" badge. */
.wc-badge.wc-mine {
  background: var(--accent);
  color: var(--accent-ink);
}
