:root {
    --hub-bg-top: #eff5ff;
    --hub-bg-bottom: #a9c5fa;
    --hub-surface: rgba(255, 255, 255, 0.9);
    --hub-soft: rgba(236, 244, 255, 0.9);
    --hub-ink: #18212c;
    --hub-muted: #5d6774;
    --hub-blue: #4370cb;
    --hub-primary: #7a8ef1;
    --hub-line: rgba(73, 108, 179, 0.2);
    --hub-shadow: 0 18px 42px rgba(72, 103, 168, 0.14);
}

* {
    box-sizing: border-box;
}

body.jogos-hub-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Inter", sans-serif;
    color: var(--hub-ink);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 24%),
        linear-gradient(180deg, var(--hub-bg-top) 0%, #dce9ff 42%, var(--hub-bg-bottom) 100%);
}

a,
button {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.jogos-shell {
    width: min(100%, 1180px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 22px 44px;
}

.jogos-header {
    min-height: 68px;
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    align-items: center;
    gap: 16px;
}

.jogos-header img {
    width: min(220px, 52vw);
    justify-self: center;
    filter: drop-shadow(0 18px 30px rgba(67, 95, 150, 0.14));
}

.jogos-back {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--hub-blue);
    box-shadow: 0 12px 26px rgba(72, 103, 168, 0.11);
}

.jogos-back svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jogos-main {
    margin-top: 28px;
    display: grid;
    gap: 22px;
}

.jogos-intro {
    text-align: center;
}

.jogos-intro h1 {
    margin: 0;
    font-family: "Archivo", sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 0.95;
}

.jogos-intro p {
    margin: 12px 0 0;
    color: var(--hub-muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 700;
}

.eixos-tabs {
    width: min(100%, 720px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 34px rgba(72, 103, 168, 0.12);
}

.eixo-tab {
    min-height: 58px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #66758b;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.eixo-tab img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
    filter: grayscale(0.24) saturate(0.9) opacity(0.82);
}

.eixo-tab.is-active {
    background: linear-gradient(135deg, #7a8ef1 0%, #5d6ff0 100%);
    box-shadow: 0 12px 26px rgba(82, 102, 224, 0.22);
}

.eixo-tab.is-active img {
    filter: saturate(1.08) opacity(1) drop-shadow(0 9px 12px rgba(18, 87, 169, 0.18));
    transform: scale(1.08);
}

.jogos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.game-card {
    min-height: 272px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 26px;
    background: var(--hub-surface);
    color: inherit;
    text-decoration: none;
    text-align: center;
    box-shadow: var(--hub-shadow);
    display: grid;
    grid-template-rows: 128px auto auto 34px;
    justify-items: center;
    gap: 10px;
}

.game-card img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    align-self: center;
    filter: drop-shadow(0 14px 20px rgba(47, 78, 132, 0.13));
}

.game-card strong {
    font-family: "Archivo", sans-serif;
    font-size: 1.14rem;
    line-height: 1.08;
}

.game-card span {
    color: var(--hub-muted);
    font-size: 0.92rem;
    line-height: 1.34;
    font-weight: 700;
}

.game-card small {
    align-self: end;
    width: fit-content;
    min-height: 32px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--hub-blue);
    font-family: "Archivo", sans-serif;
    font-size: 0.74rem;
    line-height: 1;
    font-weight: 800;
}

.game-card.is-disabled {
    cursor: default;
    opacity: 0.76;
}

.game-card:not(.is-disabled):hover,
.eixo-tab:hover,
.jogos-back:hover {
    transform: translateY(-2px);
}

.game-card:not(.is-disabled):active,
.eixo-tab:active,
.jogos-back:active {
    transform: scale(0.98);
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(58, 111, 214, 0.34);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .jogos-shell {
        width: min(100%, 460px);
        padding: 18px 14px 32px;
    }

    .jogos-header {
        min-height: 58px;
        grid-template-columns: 48px 1fr 48px;
    }

    .jogos-header img {
        width: 148px;
    }

    .jogos-main {
        margin-top: 16px;
        gap: 14px;
    }

    .eixos-tabs {
        gap: 7px;
        padding: 8px;
        border-radius: 24px;
    }

    .eixo-tab {
        min-height: 50px;
        border-radius: 17px;
    }

    .eixo-tab img {
        width: 40px;
        height: 40px;
    }

    .jogos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .game-card {
        min-height: 194px;
        padding: 12px;
        border-radius: 22px;
        grid-template-rows: 92px auto auto 30px;
        gap: 7px;
    }

    .game-card img {
        width: 92px;
        height: 92px;
    }

    .game-card strong {
        font-size: 0.94rem;
    }

    .game-card span {
        font-size: 0.7rem;
    }

    .game-card small {
        min-height: 28px;
        padding: 8px 10px;
        font-size: 0.68rem;
    }
}
