/* ─── Logo ─────────────────────────── */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-right: 28px;
  flex-shrink: 0;
}
.logo-img {
  height: 46px;
  width: auto;
  display: block;
}
.hero-logo-img {
  width: clamp(600px, 78vw, 1000px);
  height: auto;
  display: block;
  margin: -130px auto -150px;
  mix-blend-mode: screen;
  filter: brightness(1.2) drop-shadow(0 0 80px rgba(20,241,149,0.3));
}
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
  filter: brightness(0.9);
}

/* ─── Header ────────────────────────── */
.header {
  background: rgba(5,7,18,0.85) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.main-nav { display: flex; gap: 4px; }
.nav-link {
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.05); color: #f1f5f9; }
.nav-link.active { background: rgba(153,69,255,0.12); color: #a78bfa; }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.user-chip:hover { border-color: rgba(153,69,255,0.3); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #9945FF, #14F195);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
}
.user-name { font-size: 13px; font-weight: 700; color: #e2e8f0; }
.sol-badge { border-color: rgba(153,69,255,0.2) !important; }
.sol-dot { background: #14F195 !important; box-shadow: 0 0 7px #14F195 !important; }

/* ─── Hero ──────────────────────────── */
.hub-hero {
  text-align: center;
  padding: 0 20px 0;
  position: relative;
}
.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(153,69,255,0.14) 0%, transparent 60%);
  pointer-events: none;
}
.hub-title {
  position: relative;
  margin-bottom: 4px;
  line-height: 1;
}
.hub-sub {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  text-transform: uppercase;
  position: relative;
  margin-top: -120px;
  margin-bottom: 20px;
}
.hub-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  padding: 10px 20px;
  backdrop-filter: blur(16px);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s;
}
.stat-chip:hover { transform: translateY(-2px); }
.sc-green  { background:rgba(20,241,149,0.07); border-color:rgba(20,241,149,0.18); color:#34d399; }
.sc-gold   { background:rgba(251,191,36,0.07); border-color:rgba(251,191,36,0.18); color:#fbbf24; }
.sc-purple { background:rgba(153,69,255,0.07); border-color:rgba(153,69,255,0.18); color:#a78bfa; }
.stat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.stat-val { font-size: 16px; font-weight: 900; }
.stat-lbl { font-size: 11px; opacity: 0.65; }

/* ─── Games Grid ────────────────────── */
.hub-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ─── Game Card ─────────────────────── */
.game-card {
  position: relative;
  background: rgba(10,13,30,0.75);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), border-color 0.22s, box-shadow 0.22s;
  backdrop-filter: blur(20px);
}
.game-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.13); box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.game-card.coming-soon { opacity: 0.38; pointer-events: none; }

/* ── Banner (top image area) ── */
.card-banner {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(10,13,30,0.75));
}

.card-slither .card-banner { background: #0a0a0a; }
.card-duel    .card-banner { background: linear-gradient(145deg, #0e0620 0%, #1a0c38 55%, #090318 100%); }
.card-rush    .card-banner { background: linear-gradient(145deg, #180800 0%, #2c1200 55%, #100600 100%); }
.card-race    .card-banner { background: linear-gradient(145deg, #180410 0%, #2c0820 55%, #100310 100%); }
.card-block   .card-banner { background: linear-gradient(145deg, #180505 0%, #2a0808 55%, #100505 100%); }
.card-slots   .card-banner { background: linear-gradient(145deg, #181000 0%, #2a1c00 55%, #100c00 100%); }
.card-trivia  .card-banner { background: linear-gradient(145deg, #06101a 0%, #0c1e30 55%, #040c18 100%); }
.card-typing  .card-banner { background: linear-gradient(145deg, #0a0618 0%, #160c2e 55%, #070412 100%); }

.card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.card-icon svg { width: 30px; height: 30px; }

.card-slither .card-icon svg { color: rgba(20,241,149,0.85); }
.card-duel    .card-icon svg { color: rgba(167,139,250,0.85); }
.card-rush    .card-icon svg { color: rgba(251,146,60,0.85); }
.card-race    .card-icon svg { color: rgba(244,114,182,0.85); }
.card-block   .card-icon svg { color: rgba(252,165,165,0.7); }
.card-slots   .card-icon svg { color: rgba(251,191,36,0.7); }
.card-trivia  .card-icon svg { color: rgba(56,189,248,0.85); }
.card-typing  .card-icon svg { color: rgba(192,132,252,0.85); }

/* ── Card Body ── */
.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.card-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #f1f5f9;
}
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 9px;
}
.badge-live { background:rgba(239,68,68,0.08); border:1px solid rgba(239,68,68,0.22); color:#fca5a5; }
.badge-live::before { content:''; width:4px; height:4px; border-radius:50%; background:#ef4444; animation:blink 1.5s infinite; }
.badge-hot  { background:rgba(249,115,22,0.08); border:1px solid rgba(249,115,22,0.22); color:#fdba74; }
.badge-soon { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07); color:#64748b; }

.card-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

/* ── Card Footer ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.card-meta { display: flex; flex-direction: column; gap: 3px; }
.card-players {
  font-size: 11px; font-weight: 600; color: #94a3b8;
  display: flex; align-items: center; gap: 5px;
}
.online-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #14F195; box-shadow: 0 0 5px #14F195;
  display: inline-block; animation: blink 2s infinite;
}
.card-entry { font-size: 12px; font-weight: 700; color: #94a3b8; }
.card-entry strong { color: #e2e8f0; }

.card-btn {
  background: #0099ff;
  border: none;
  border-radius: 9px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}
.card-btn:hover {
  background: #007acc;
  color: #fff;
}

/* ─── Footer ─────────────────────────── */
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(135deg, #fff 20%, #9945FF 60%, #14F195 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.winnings-num { color: var(--gold); font-size: 15px; font-weight: 900; margin-left: 8px; }

/* ─── Responsive ─────────────────────── */
@media (max-width: 900px) { .games-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .games-grid { grid-template-columns: 1fr; } }
