/* ═══════════════════════════════════════
   Games Hub — landing page to pick a game
   ═══════════════════════════════════════ */

.games-hub {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

.games-hub-header {
    text-align: center;
    padding: 40px 0 32px;
}

.games-hub-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(212, 160, 160, 0.10);
    color: var(--rose);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid rgba(212, 160, 160, 0.16);
    margin-bottom: 14px;
}

.games-hub-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 8px;
}

.games-hub-header h1 em {
    font-family: 'Great Vibes', cursive;
    font-style: normal;
    color: var(--accent);
    font-size: 1.2em;
}

.games-hub-header .sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Games Grid ── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 10px 0 40px;
}

/* ── Game Card ── */
.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-hub-card {
    position: relative;
    overflow: hidden;
    padding: 28px 22px 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.96), rgba(16, 16, 16, 0.98));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.game-hub-card::before {
    content: '';
    position: absolute;
    inset: -20% auto auto -5%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

.game-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.38);
}

.game-hub-card.memory { border-top: 3px solid var(--accent); }
.game-hub-card.memory::before { background: radial-gradient(circle, rgba(201,169,110,0.18), transparent 70%); }
.game-hub-card.memory:hover { border-color: rgba(201,169,110,0.3); }
.game-hub-card.memory .game-hub-icon { background: rgba(201,169,110,0.10); color: var(--accent); }

.game-hub-card.puzzle { border-top: 3px solid var(--rose); }
.game-hub-card.puzzle::before { background: radial-gradient(circle, rgba(212,160,160,0.16), transparent 70%); }
.game-hub-card.puzzle:hover { border-color: rgba(212,160,160,0.3); }
.game-hub-card.puzzle .game-hub-icon { background: rgba(212,160,160,0.10); color: var(--rose); }

.game-hub-card.quiz { border-top: 3px solid #e8a040; }
.game-hub-card.quiz::before { background: radial-gradient(circle, rgba(232,160,64,0.16), transparent 70%); }
.game-hub-card.quiz:hover { border-color: rgba(232,160,64,0.3); }
.game-hub-card.quiz .game-hub-icon { background: rgba(232,160,64,0.10); color: #e8a040; }

.game-hub-card.word { border-top: 3px solid var(--sage); }
.game-hub-card.word::before { background: radial-gradient(circle, rgba(138,158,138,0.16), transparent 70%); }
.game-hub-card.word:hover { border-color: rgba(138,158,138,0.3); }
.game-hub-card.word .game-hub-icon { background: rgba(138,158,138,0.10); color: var(--sage); }

.game-hub-card.reveal { border-top: 3px solid #8eb8d8; }
.game-hub-card.reveal::before { background: radial-gradient(circle, rgba(142,184,216,0.16), transparent 70%); }
.game-hub-card.reveal:hover { border-color: rgba(142,184,216,0.3); }
.game-hub-card.reveal .game-hub-icon { background: rgba(142,184,216,0.10); color: #8eb8d8; }

.game-hub-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: block;
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-hub-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.game-hub-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.game-hub-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.game-hub-arrow {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.game-hub-card:hover .game-hub-arrow {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
    color: var(--text);
}

/* ── Back Nav ── */
.games-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(10, 10, 10, 0.72);
    border-bottom: 1px solid var(--border);
}

.games-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.games-nav-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .games-hub {
        padding: 90px 14px 40px;
    }
    .games-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .games-nav-inner {
        padding: 10px 16px;
    }
    .game-hub-card {
        padding: 24px 18px 18px;
    }
}
