:root {
    --bg-dark: #0a0a0f;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Blobs */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #25e2f7, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    top: 40%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -20%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #006eff, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Main Container */
.hub-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.logo {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.logo span {
    background: linear-gradient(90deg, #257df7, #7fb0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Grid layout for games */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.game-card {
    text-decoration: none;
    color: inherit;
    border-radius: 24px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: inherit;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover glowing effects based on the --base-color defined in HTML */
.game-card:hover {
    transform: translateY(-5px);
}

.game-card:hover .card-glass {
    border-color: var(--base-color);
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.6), 0 0 20px calc(var(--base-color) + 40); /* Fake alpha transparency representation */
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}

.card-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--base-color);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.game-card:hover .card-icon {
    background: var(--base-color);
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

.badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #10b981;
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
}

.card-arrow {
    color: var(--glass-border);
    transition: all 0.3s ease;
}

.game-card:hover .card-arrow {
    color: var(--base-color);
    transform: translateX(5px);
}

/* Background overlay inside card for gradient glow */
.card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--base-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.game-card:hover .card-glass::before {
    opacity: 0.15;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: auto;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.learn-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
}

.learn-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .logo { font-size: 2.8rem; }
    .games-grid {
        grid-template-columns: 1fr;
    }
}
