:root {
    --game-navy: #092b3d;
    --game-teal: #0f5368;
    --game-gold: #efae30;
    --game-paper: #f4f7f7;
    --game-ink: #18323f;
}

.home-legacy { display: none; }

.game-home-hero,
.games-hero,
.game-detail-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--game-navy);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.game-home-hero {
    min-height: 670px;
    background-image: linear-gradient(90deg, rgba(4, 25, 36, .88) 0%, rgba(5, 34, 48, .62) 48%, rgba(5, 34, 48, .12) 100%), url('../image/games/game-studio-hero.svg');
}

/* The legacy services hierarchy is retired in favor of the game portfolio. */
.c-nav_nav-menu > a[href="services.html"],
.c-nav_nav-menu > .w-dropdown:first-of-type,
.sub-nav-wrap,
.c-footer_li:has(> a[href="services.html"]) {
    display: none !important;
}

.game-home-hero .c-hero_content,
.games-hero .c-hero_content,
.game-detail-hero .c-hero_content {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: inherit;
    align-items: center;
}

.game-home-hero .c-hero_content-wrap,
.games-hero .c-hero_content-wrap,
.game-detail-hero .c-hero_content-wrap {
    padding-top: 88px;
    padding-bottom: 38px;
}

.game-home-eyebrow,
.game-eyebrow {
    margin: 0 0 18px;
    color: var(--game-gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.game-home-hero .hero-slogan {
    max-width: 700px;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .98;
}

.game-home-hero .hero-subslogan {
    max-width: 590px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.18rem;
    line-height: 1.6;
}

.game-studio-intro,
.games-section,
.game-detail-main {
    padding: 92px 5vw;
}

.game-studio-intro {
    background: var(--game-paper);
}

.game-studio-intro__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
    gap: 72px;
    align-items: end;
    max-width: 1180px;
    margin: 0 auto;
}

.game-kicker {
    color: var(--game-teal);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.game-studio-intro h2,
.games-section h2,
.game-detail-main h2 {
    margin: 13px 0 22px;
    color: var(--game-ink);
    font-size: clamp(2.15rem, 4vw, 3.6rem);
    line-height: 1.06;
}

.game-studio-intro p,
.games-section__intro,
.game-detail-copy p,
.game-feature-list li,
.game-detail-note {
    color: #46606c;
    font-size: 1.05rem;
    line-height: 1.72;
}

.game-studio-intro__side {
    border-left: 4px solid var(--game-gold);
    padding-left: 26px;
}

.game-studio-intro__side strong {
    display: block;
    color: var(--game-ink);
    font-size: 1.22rem;
    line-height: 1.35;
}

.game-studio-intro__side span {
    display: block;
    margin-top: 10px;
    color: var(--game-teal);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.games-section {
    background: #fff;
}

.games-section__head {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: end;
    max-width: 1180px;
    margin: 0 auto 42px;
}

.games-section__head h2 { margin-bottom: 0; }
.games-section__intro { max-width: 450px; margin: 0; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.game-card {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--game-navy);
    box-shadow: 0 18px 32px rgba(9, 43, 61, .16);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px rgba(9, 43, 61, .25);
}

.game-card__image,
.game-card__shade {
    position: absolute;
    inset: 0;
}

.game-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.game-card:hover .game-card__image { transform: scale(1.04); }

.game-card__shade {
    background: linear-gradient(180deg, rgba(4, 27, 40, .04) 15%, rgba(4, 27, 40, .9) 100%);
}

.game-card__content {
    position: relative;
    z-index: 1;
    padding: 34px;
}

.game-card__type {
    margin: 0 0 8px;
    color: var(--game-gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.game-card h3 {
    margin: 0;
    color: #fff;
    font-size: 2.15rem;
    line-height: 1.05;
}

.game-card__link {
    display: inline-block;
    margin-top: 18px;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.games-hero {
    min-height: 430px;
    background-image: linear-gradient(90deg, rgba(4, 25, 36, .86), rgba(5, 34, 48, .36)), url('../image/games/car-boom-cash-hero.jpg');
}

.studio-page-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 27%, rgba(239, 174, 48, .32), transparent 19%),
        radial-gradient(circle at 72% 76%, rgba(30, 206, 190, .26), transparent 25%),
        linear-gradient(115deg, #082633 0%, #0d5362 100%);
}

.studio-page-hero::after {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(45deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    content: "";
}

.studio-page-hero .c-hero_content {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: inherit;
    align-items: center;
}

.studio-page-hero .c-hero_content-wrap {
    padding-top: 88px;
    padding-bottom: 38px;
}

.studio-page-hero .hero-slogan { font-size: clamp(3rem, 5vw, 5rem); }

.studio-page-hero .hero-subslogan {
    max-width: 640px;
    color: rgba(255, 255, 255, .9);
}

.studio-content {
    padding: 92px 5vw;
    background: #fff;
}

.studio-content__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.studio-content__lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
    gap: 80px;
    align-items: end;
    margin-bottom: 52px;
}

.studio-content h2 {
    margin: 13px 0 18px;
    color: var(--game-ink);
    font-size: clamp(2.15rem, 4vw, 3.6rem);
    line-height: 1.06;
}

.studio-content p {
    color: #46606c;
    font-size: 1.05rem;
    line-height: 1.72;
}

.studio-content__aside {
    border-left: 4px solid var(--game-gold);
    padding-left: 26px;
}

.studio-content__aside p { margin: 0; }

.studio-card-grid,
.studio-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.studio-card,
.studio-step {
    min-height: 250px;
    padding: 32px 28px;
    background: var(--game-paper);
    border-top: 4px solid transparent;
}

.studio-card:nth-child(2),
.studio-step:nth-child(2) { border-top-color: var(--game-gold); }
.studio-card:nth-child(1),
.studio-step:nth-child(1) { border-top-color: var(--game-teal); }
.studio-card:nth-child(3),
.studio-step:nth-child(3) { border-top-color: #e66d54; }

.studio-card h3,
.studio-step h3 {
    margin: 12px 0 12px;
    color: var(--game-ink);
    font-size: 1.35rem;
}

.studio-card p,
.studio-step p { margin: 0; font-size: .98rem; }

.studio-card__label,
.studio-step__number {
    color: var(--game-teal);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.studio-step__number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--game-ink);
    color: #fff;
    letter-spacing: 0;
}

.studio-values {
    margin-top: 72px;
    padding: 48px;
    background: var(--game-ink);
}

.studio-values h2 { color: #fff; }
.studio-values p { max-width: 720px; color: rgba(255, 255, 255, .76); }

.studio-values__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.studio-values__grid strong {
    display: block;
    color: var(--game-gold);
    font-size: 1.2rem;
}

.studio-values__grid span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: .95rem;
    line-height: 1.6;
}

.games-hero .hero-slogan,
.game-detail-hero .hero-slogan { font-size: clamp(3rem, 5vw, 5rem); }

.games-hero .hero-subslogan,
.game-detail-hero .hero-subslogan {
    max-width: 600px;
    color: rgba(255, 255, 255, .9);
}

.game-detail-hero {
    min-height: 520px;
    background-image: linear-gradient(90deg, rgba(4, 25, 36, .87) 0%, rgba(4, 25, 36, .5) 54%, rgba(4, 25, 36, .08) 100%), var(--game-hero-image);
}

.game-detail-hero__brand {
    display: block;
    width: min(300px, 72vw);
    max-height: 130px;
    margin: 0 0 22px;
    object-fit: contain;
    object-position: left center;
}

.game-detail-main { background: #fff; }

.game-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, .64fr);
    gap: 90px;
    max-width: 1180px;
    margin: 0 auto;
}

.game-detail-copy h2 { max-width: 620px; }

.game-feature-box {
    padding: 34px 30px;
    align-self: start;
    background: var(--game-paper);
    border-top: 4px solid var(--game-gold);
}

.game-feature-box h3 {
    margin: 0 0 16px;
    color: var(--game-ink);
    font-size: 1.35rem;
}

.game-feature-list {
    margin: 0;
    padding-left: 1.2rem;
}

.game-feature-list li { margin: 10px 0; }

.game-gallery {
    padding: 0 5vw 96px;
    background: #fff;
}

.game-gallery__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #dbe4e6;
}

.game-gallery h2 {
    margin: 0 0 28px;
    color: var(--game-ink);
    font-size: 2rem;
}

.game-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.game-gallery__grid img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(9, 43, 61, .15);
}

.game-detail-art {
    display: block;
    width: 100%;
    max-width: 1180px;
    max-height: 530px;
    margin: 0 auto;
    object-fit: cover;
}

.game-detail-art-wrap {
    padding: 0 5vw 96px;
    background: #fff;
}

.game-detail-art-wrap h2 {
    max-width: 1180px;
    margin: 13px auto 28px;
    color: var(--game-ink);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.06;
}

@media (max-width: 767px) {
    .game-home-hero { min-height: 610px; background-position: 64% center; }
    .game-studio-intro, .games-section, .game-detail-main { padding: 64px 24px; }
    .game-studio-intro__inner, .game-detail-layout { grid-template-columns: 1fr; gap: 35px; }
    .games-section__head { display: block; margin-bottom: 28px; }
    .games-section__intro { margin-top: 16px; }
    .games-grid { grid-template-columns: 1fr; }
    .game-card { min-height: 330px; }
    .game-card__content { padding: 26px; }
    .games-hero, .game-detail-hero { min-height: 440px; }
    .studio-page-hero { min-height: 440px; }
    .game-gallery, .game-detail-art-wrap { padding: 0 24px 64px; }
    .game-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .studio-content { padding: 64px 24px; }
    .studio-content__lead, .studio-card-grid, .studio-steps, .studio-values__grid { grid-template-columns: 1fr; gap: 24px; }
    .studio-content__lead { margin-bottom: 35px; }
    .studio-values { margin-top: 48px; padding: 32px 26px; }
}
