.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  max-width: 220px;
  transition: opacity 0.18s;
}
.user-badge--hidden { opacity: 0; pointer-events: none; }
.user-badge__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0d0f14;
  font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 0.7rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background-size: cover; background-position: center;
}
.user-badge__name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 160px;
}

.hub {
  padding: 28px 16px 60px;
}
.hub__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.hub__sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.hub__skeleton {
  height: 200px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.game-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 18px;
  transition: transform 0.18s, border-color 0.18s;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.game-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.7;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.game-card__icon { font-size: 2.4rem; line-height: 1; }
.game-card__body { display: flex; flex-direction: column; gap: 6px; }
.game-card__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.game-card__desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.game-card__cta {
  align-self: flex-start;
  background: var(--accent);
  color: #0d0f14;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 8px 14px;
}

.game-card--soon {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.game-card--soon::before { background: var(--border); }
.game-card--soon .game-card__cta {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}

@media (max-width: 480px) {
  .hub { padding: 22px 16px 60px; }
  .hub__title { font-size: 1.35rem; }
  .game-card { padding: 18px 18px 16px; min-height: 180px; }
  .user-badge__name { max-width: 110px; }
}
