.gm-home {
    --gm-ink: #132237;
    --gm-muted: #66788c;
    --gm-line: #dce6ef;
    --gm-blue: #159bd3;
    --gm-cyan: #40c4f4;
    --gm-navy: #081522;
    overflow: hidden;
    color: var(--gm-ink);
    background: #f5f8fb;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 3.75rem 0 4rem;
    color: #fff;
    background:
        radial-gradient(circle at 84% 18%, rgba(38, 182, 232, .22), transparent 25rem),
        radial-gradient(circle at 16% 100%, rgba(72, 76, 194, .17), transparent 28rem),
        linear-gradient(125deg, #091525, #0b2439 66%, #063750);
}

.home-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .12;
    background-image:
        linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
    pointer-events: none;
}

.home-hero__inner,
.home-hero__copy {
    position: relative;
    z-index: 1;
}

.home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.home-hero__copy {
    max-width: 700px;
}

.home-eyebrow,
.home-section-head > div > span {
    display: block;
    color: var(--gm-cyan);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 700px;
    margin: .55rem 0 .9rem;
    font-size: clamp(2.65rem, 4.6vw, 3.9rem);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: 1.02;
}

.home-hero__copy > p {
    max-width: 710px;
    margin: 0;
    color: #bdcedd;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.7;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.55rem;
}

.home-btn {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.1rem;
    border-radius: .7rem;
    font-size: .82rem;
    font-weight: 850;
}

.home-btn--primary {
    border-color: var(--gm-cyan);
    color: #062033;
    background: var(--gm-cyan);
}

.home-btn--primary:hover {
    border-color: #78dafb;
    color: #062033;
    background: #78dafb;
}

.home-btn--ghost {
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.home-btn--ghost:hover {
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 1rem;
    background: rgba(5, 18, 30, .48);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .2);
    backdrop-filter: blur(14px);
}

.home-stats__label {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: .55rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    color: #c5d5e2;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home-stats__label i {
    color: var(--gm-cyan);
    font-size: 1rem;
}

.home-stats > a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 1.05rem .4rem;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: background .18s ease;
}

.home-stats > a + a {
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.home-stats > a:hover {
    background: rgba(64, 196, 244, .09);
}

.home-stats strong {
    font-size: 1.35rem;
    font-weight: 900;
}

.home-stats > a span {
    color: #9eb3c4;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home-featured {
    padding: 2.6rem 0 4.75rem;
    background: #fff;
}

.home-featured-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.home-featured-head__title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .8rem;
}

.home-featured-head__icon {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 2.65rem;
    place-items: center;
    border-radius: .75rem;
    color: #06688f;
    background: #dff5fd;
    font-size: 1.05rem;
}

.home-featured-head h2 {
    margin: 0;
    color: var(--gm-ink);
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -.025em;
}

.home-featured-head p {
    margin: .12rem 0 0;
    color: var(--gm-muted);
    font-size: .76rem;
}

.home-featured-head > a {
    flex: 0 0 auto;
    color: #087dad;
    font-size: .74rem;
    font-weight: 850;
    text-decoration: none;
}

.home-featured-head > a i {
    margin-left: .25rem;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.3rem;
}

.home-section-head h2 {
    margin: .25rem 0 0;
    color: var(--gm-ink);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -.04em;
}

.home-section-head p {
    max-width: 650px;
    margin: .3rem 0 0;
    color: var(--gm-muted);
    font-size: .86rem;
}

.home-section-head > a,
.home-read-more {
    flex: 0 0 auto;
    color: #087dad;
    font-size: .76rem;
    font-weight: 850;
    text-decoration: none;
}

.home-section-head > a i,
.home-read-more i {
    margin-left: .28rem;
    transition: transform .18s ease;
}

.home-section-head > a:hover i,
.home-read-more:hover i {
    transform: translateX(3px);
}

.home-carousel {
    overflow: hidden;
    border: 1px solid #d6e2eb;
    border-radius: 1rem;
    background: #10253a;
    box-shadow: 0 18px 48px rgba(16, 32, 51, .14);
}

.home-featured-card {
    position: relative;
    min-height: clamp(390px, 40vw, 510px);
    overflow: hidden;
}

.home-featured-card picture,
.home-featured-card picture img,
.home-featured-card__shade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.home-featured-card picture img {
    object-fit: cover;
}

.home-featured-card__shade {
    background:
        linear-gradient(90deg, rgba(4, 13, 23, .96), rgba(4, 13, 23, .7) 48%, rgba(4, 13, 23, .12) 82%),
        linear-gradient(0deg, rgba(4, 13, 23, .76), transparent 55%);
}

.home-featured-card__content {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    max-width: 720px;
    padding: clamp(2rem, 4vw, 3.5rem);
}

.home-chip,
.home-type {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .36rem .62rem;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.home-chip {
    color: #052033;
    background: var(--gm-cyan);
}

.home-featured-card h2 {
    margin: .8rem 0 .65rem;
    font-size: clamp(1.9rem, 3.7vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1.04;
}

.home-featured-card h2 a {
    color: #fff;
    text-decoration: none;
}

.home-featured-card__content > p {
    display: -webkit-box;
    max-width: 600px;
    overflow: hidden;
    margin: 0 0 1rem;
    color: #c3d2df;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    color: #93a7b8;
    font-size: .7rem;
    font-weight: 750;
}

.home-meta i {
    width: .8rem;
    margin-right: .3rem;
    color: var(--gm-cyan);
    text-align: center;
}

.home-carousel .carousel-indicators {
    z-index: 3;
    justify-content: flex-end;
    margin-right: 1.3rem;
    margin-bottom: 1.2rem;
    margin-left: 1.3rem;
}

.home-carousel .carousel-indicators button {
    width: 1.8rem;
    height: .23rem;
    border: 0;
    border-radius: 999px;
}

.home-carousel .carousel-control-prev,
.home-carousel .carousel-control-next {
    z-index: 3;
    width: 6.5%;
}

.home-main {
    display: flex;
    flex-direction: column;
}

.home-section {
    padding: 4.5rem 0;
}

.home-section--news {
    order: 1;
    border-top: 1px solid #e3ebf2;
    border-bottom: 1px solid #e3ebf2;
    background: #f1f6f9;
}

.home-section--glitches {
    order: 2;
    background: #fff;
}

.home-section--mods {
    order: 3;
    border-top: 1px solid #e3ebf2;
    border-bottom: 1px solid #e3ebf2;
    background: #edf3f7;
}

.home-section--games {
    order: 4;
    background: #fff;
}

.home-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
}

.home-news-card,
.home-content-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gm-line);
    border-radius: .9rem;
    color: inherit;
    background: #fff;
    box-shadow: 0 7px 22px rgba(16, 32, 51, .045);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-news-card:hover,
.home-content-card:hover {
    border-color: #bcd5e4;
    color: inherit;
    box-shadow: 0 15px 32px rgba(16, 32, 51, .1);
    transform: translateY(-3px);
}

.home-news-card {
    display: flex;
    min-height: 180px;
}

.home-news-card__media {
    width: 225px;
    min-height: 180px;
    flex: 0 0 225px;
    overflow: hidden;
    background: #d9e7ef;
}

.home-news-card__media picture,
.home-news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-news-card__media img {
    object-fit: cover;
    transition: transform .3s ease;
}

.home-news-card:hover .home-news-card__media img {
    transform: scale(1.04);
}

.home-news-card__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 1.1rem 1.25rem;
}

.home-news-card .home-meta {
    color: #78899a;
}

.home-news-card h3,
.home-content-card h3 {
    margin: .42rem 0 .5rem;
    color: var(--gm-ink);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.018em;
    line-height: 1.3;
}

.home-news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.home-news-card__body > p,
.home-content-card__body > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 .9rem;
    color: var(--gm-muted);
    font-size: .77rem;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-read-more {
    margin-top: auto;
}

.home-card-grid {
    display: grid;
    gap: 1rem;
}

.home-card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-content-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.home-content-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #d9e7ef;
}

.home-content-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.home-content-card:hover .home-content-card__media img {
    transform: scale(1.04);
}

.home-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 50%;
    color: #fff;
    background: rgba(5, 17, 28, .7);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .25);
    transform: translate(-50%, -50%);
}

.home-play i {
    margin-left: .12rem;
}

.home-type {
    position: absolute;
    top: .7rem;
    left: .7rem;
    color: #fff;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}

.home-type--glitch {
    background: #df2850;
}

.home-type--mod {
    background: #7352c7;
}

.home-content-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.home-card-kicker {
    overflow: hidden;
    color: #0784bb;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .055em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-card-foot {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
    margin-top: auto;
    padding-top: .72rem;
    border-top: 1px solid #edf2f6;
    color: #798a9b;
    font-size: .66rem;
    font-weight: 750;
}

.home-games-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .8rem;
}

.home-game-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: .75rem;
    color: #fff;
    background: #17283a;
    box-shadow: 0 9px 22px rgba(16, 32, 51, .14);
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-game-card:hover {
    color: #fff;
    box-shadow: 0 16px 32px rgba(16, 32, 51, .2);
    transform: translateY(-5px);
}

.home-game-card > img,
.home-game-card__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-game-card > img {
    object-fit: cover;
    transition: transform .3s ease;
}

.home-game-card:hover > img {
    transform: scale(1.045);
}

.home-game-card__shade {
    background: linear-gradient(0deg, rgba(5, 13, 22, .95), rgba(5, 13, 22, .04) 64%);
}

.home-game-card__body {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: .78rem;
}

.home-game-card__body strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: .75rem;
    font-weight: 900;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-game-card__body small {
    margin-top: .22rem;
    color: #abc0cf;
    font-size: .58rem;
    font-weight: 700;
}

.gm-home a:focus-visible,
.gm-home button:focus-visible {
    outline: 3px solid var(--gm-cyan);
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    .home-games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
    }

    .home-stats {
        width: min(100%, 420px);
    }

    .home-card-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-section--news .gm-sidebar {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: 3.25rem 0 3.75rem;
    }

    .home-featured,
    .home-section {
        padding: 3.4rem 0;
    }

    .home-section-head {
        display: block;
    }

    .home-section-head > a {
        display: inline-block;
        margin-top: .75rem;
    }

    .home-featured-head {
        align-items: flex-start;
    }

    .home-carousel .carousel-control-prev,
    .home-carousel .carousel-control-next {
        display: none;
    }

    .home-carousel .carousel-indicators {
        justify-content: center;
    }

    .home-featured-card__content {
        padding-bottom: 3.4rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero h1 {
        font-size: 2.45rem;
    }

    .home-hero__actions,
    .home-hero__actions .btn {
        width: 100%;
    }

    .home-featured-head {
        display: block;
    }

    .home-featured-head > a {
        display: inline-block;
        margin-top: .7rem;
    }

    .home-featured-card {
        min-height: 410px;
    }

    .home-featured-card h2 {
        font-size: 1.85rem;
    }

    .home-news-card {
        min-height: 0;
        flex-direction: column;
    }

    .home-news-card__media {
        width: 100%;
        min-height: 0;
        flex-basis: auto;
        aspect-ratio: 16 / 9;
    }

    .home-card-grid--three {
        grid-template-columns: 1fr;
    }

    .home-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .gm-home *,
    .gm-home *::before,
    .gm-home *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
