* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #10b981;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -20%;
    left: -10%;
    animation: float 20s infinite ease-in-out;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation: float 25s infinite ease-in-out reverse;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    left: 40%;
    animation: float 15s infinite ease-in-out 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

.hub-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hub-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hub-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.3px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.game-card:hover::before { opacity: 1; }

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.card-content { display: flex; flex-direction: column; gap: 0.6rem; }

.game-icon-wrapper {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 1px solid rgba(255,255,255,0.06);
}

.game-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.game-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.game-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.3px;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background: var(--text-primary);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

.play-button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.12);
}

.play-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.play-button:hover svg {
    transform: translateX(3px);
}

.hub-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .hub-title { font-size: 1.8rem; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }
    .game-card { padding: 1.2rem; }
}
