/* ─── HERO CARD ─── */
.hero-card {
  position: relative;
  margin: 16px var(--page-pad) 0;
  height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #1E3A5F, #2D1B4E, #1A2540);
  cursor: pointer;
  transition: transform 160ms ease-out;
}

.hero-card:active {
  transform: scale(0.98);
}

.hero-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms ease;
}

.hero-card-thumb.loaded {
  opacity: 1;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
}

.hero-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-play-count {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}

.hero-title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 64px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: white;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-play-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

/* ─── GAME CARD — HORIZONTAL SCROLL ─── */
.game-card {
  flex-shrink: 0;
  width: var(--card-w);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 160ms ease-out;
}

.game-card:active {
  transform: scale(1.03);
}

.game-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
}

.game-card-title {
  position: absolute;
  bottom: 24px;
  left: 10px;
  right: 10px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-plays {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
}

.game-card-style {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 500;
  font-family: var(--font-body);
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ─── GAME CARD — GRID ─── */
.game-card-grid {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 160ms ease-out;
}

.game-card-grid:active {
  transform: scale(1.03);
}

.game-card-grid .game-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
}

.game-card-env-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 300;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
}

.game-card-last-played {
  font-size: 10px;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-top: 4px;
}

/* Rank badge for top played */
.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #080C14;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Skeleton card */
.skeleton-card {
  flex-shrink: 0;
  width: var(--card-w);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
}

.skeleton-card-grid {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.skeleton-hero {
  margin: 16px var(--page-pad) 0;
  height: 200px;
  border-radius: var(--radius-xl);
}
