:root {
    --hub-night: #0c1322;
    --hub-night-2: #111c31;
    --hub-panel: rgba(9, 15, 26, 0.88);
    --hub-border: rgba(255, 211, 120, 0.18);
    --hub-gold: #f3bf57;
    --hub-gold-soft: #ffe7a6;
    --hub-blue: #83abff;
    --hub-copy: #f4edd3;
    --hub-copy-dim: rgba(244, 237, 211, 0.72);
    --hub-shadow: rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.gameshub-body {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--hub-copy);
    background: #1e2124;
}

.gameshub-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.13;
}
.blob-1 {
    width: 600px; height: 600px;
    background: #7289da;
    top: -200px; left: -150px;
    animation: drift1 18s ease-in-out infinite alternate;
}
.blob-2 {
    width: 500px; height: 500px;
    background: #9b59b6;
    bottom: -150px; right: -100px;
    animation: drift2 22s ease-in-out infinite alternate;
}
.blob-3 {
    width: 300px; height: 300px;
    background: #43b581;
    top: 50%; left: 55%;
    animation: drift3 15s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 80px) scale(1.1); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-50px, -60px) scale(1.15); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, -50px) scale(0.9); } }

.gameshub-shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

.gameshub-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.gameshub-kicker {
    margin: 0 0 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--hub-gold-soft);
}

.gameshub-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    color: #fff8df;
    text-shadow:
        0 0 12px rgba(255, 227, 145, 0.46),
        0 0 34px rgba(243, 191, 87, 0.24),
        0 10px 28px rgba(0, 0, 0, 0.32);
}

.gameshub-hero p:last-child {
    max-width: 42rem;
    margin: 1rem auto 0;
    line-height: 1.7;
    color: var(--hub-copy-dim);
}

.gameshub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gameshub-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
    justify-content: start;
}

.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 1.3rem;
    min-height: 22rem;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, rgba(18, 27, 46, 0.98), rgba(8, 13, 24, 0.98));
    border: 1px solid var(--hub-border);
    box-shadow: 0 1.4rem 3rem var(--hub-shadow);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover,
.game-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 224, 148, 0.42);
    box-shadow: 0 1.8rem 3.2rem rgba(0, 0, 0, 0.42);
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(243, 191, 87, 0.22), transparent 28%),
        linear-gradient(160deg, rgba(131, 171, 255, 0.12), transparent 48%);
    pointer-events: none;
}

.game-card__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    height: 100%;
}

.game-card__badge {
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff4ca;
    background: rgba(255, 226, 150, 0.1);
    border: 1px solid rgba(255, 226, 150, 0.18);
}

.game-card h2 {
    margin: 0;
    font-size: 2rem;
    color: #fff0bd;
}

.game-card p {
    margin: 0;
    color: var(--hub-copy-dim);
    line-height: 1.65;
}

.game-card__preview {
    margin-top: auto;
    border-radius: 1.15rem;
    height: 12rem;
    border: 1px solid rgba(255, 223, 135, 0.12);
    position: relative;
    overflow: hidden;
}

.game-card__preview-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@keyframes preview-pan {
    0%, 100% { object-position: center top; }
    50%       { object-position: center bottom; }
}

@media (prefers-reduced-motion: no-preference) {
    .game-card__preview-img {
        animation: preview-pan 8s ease-in-out infinite;
    }
}

.game-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff0be;
}

.gameshub-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    font-size: 12px;
    color: #72767d;
    border-top: 1px solid #40444b;
    background: rgba(35,39,42,0.6);
}

@media (max-width: 680px) {
    .gameshub-shell {
        padding-inline: 1rem;
    }

    .game-card {
        min-height: 20rem;
    }
}