.hub-hero {
    padding: 100px 0 48px;
}

.hub-hero__grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
}

.hub-hero h1 em {
    color: var(--accent-light);
    font-style: normal;
}

.hub-hero__aside {
    padding-top: 8px;
    border-left: 2px solid var(--accent);
    padding-left: 24px;
}

.hub-hero__aside p {
    margin-bottom: 20px;
    color: var(--paper-soft);
    font-size: 1.05rem;
    line-height: 1.45;
}

.games-intro {
    display: flex;
    margin-bottom: 28px;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
}

.games-intro p {
    max-width: 360px;
    color: var(--paper-soft);
    font-family: var(--sans);
    font-size: 0.95rem;
    line-height: 1.45;
}

.game-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 280px));
    justify-content: center;
}

.game-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #121514;
    cursor: pointer;
    transition: border-color 180ms ease;
}

.game-card::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(ellipse 78% 78% at 50% 50%, transparent 38%, rgba(15, 16, 15, 0.55) 100%),
        linear-gradient(to top, rgba(31, 35, 34, 0.97) 0%, rgba(31, 35, 34, 0.7) 38%, transparent 68%);
}

.game-card:hover,
.game-card:focus-visible {
    border-color: var(--accent-light);
}

.game-card__img {
    width: 100%;
    height: auto;
    display: block;
}

.game-card__content {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px;
}

.game-card__type {
    display: inline-block;
    width: fit-content;
    margin-bottom: 10px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-card h3 {
    margin-bottom: 8px;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 700;
    line-height: 1.05;
}

.game-card p {
    margin-bottom: 14px;
    color: var(--paper-soft);
    font-family: var(--sans);
    font-size: 0.88rem;
    line-height: 1.4;
}

.game-card .button {
    pointer-events: none;
}

.game-card:hover .button,
.game-card:focus-visible .button {
    color: var(--paper);
    background: var(--accent);
    border-color: var(--accent);
}

.hub-panel {
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(187, 129, 86, 0.08), transparent 40%),
        rgba(255, 255, 255, 0.02);
}

.hub-panel__head {
    padding: 32px 28px 0;
}

.hub-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.hub-feature {
    padding: 28px 24px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.hub-feature:last-child {
    border-right: 0;
}

.hub-feature__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 18px;
    opacity: 0.85;
}

.hub-feature__tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--accent-light);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hub-feature strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.hub-feature p {
    color: var(--paper-soft);
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .hub-hero__grid {
        grid-template-columns: 1fr;
    }

    .games-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .hub-hero__aside {
        padding-left: 0;
        border-left: 0;
        border-top: 2px solid var(--accent);
        padding-top: 20px;
    }

    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 560px;
        margin: 0 auto;
    }

    .hub-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-feature:nth-child(2) {
        border-right: 0;
    }

    .hub-feature:nth-child(1),
    .hub-feature:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .hub-feature:nth-child(3) {
        border-right: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .game-grid {
        grid-template-columns: minmax(0, 280px);
    }

    .hub-features {
        grid-template-columns: 1fr;
    }

    .hub-feature {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hub-feature:last-child {
        border-bottom: 0;
    }
}
