.games-page {
    background: #f8faf9;
    color: #1b2b30;
}

.games-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.5vw, 36px);
}

.games-nav-links a {
    color: #716a89;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.games-nav-links a:hover,
.games-nav-links a:focus-visible,
.games-nav-links a.is-current {
    color: #318f70;
}

.catalog-hero {
    display: grid;
    width: min(calc(100% - 72px), 1298px);
    min-height: 565px;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
    align-items: center;
    gap: clamp(38px, 6vw, 88px);
    margin: 0 auto;
    padding: 86px 0 75px;
}

.catalog-hero-copy {
    max-width: 590px;
}

.catalog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(57, 143, 120, 0.2);
    border-radius: 999px;
    background: #eaf6ef;
    color: #398f78;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.025em;
}

.catalog-eyebrow svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.catalog-hero h1 {
    margin: 22px 0 18px;
    color: #19242c;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(48px, 5.3vw, 73px);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 1.05;
}

.catalog-hero h1 span,
.game-library-heading h2 span {
    background: linear-gradient(105deg, #3aa764, #248f9b);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
}

.catalog-hero-copy > p {
    max-width: 560px;
    margin: 0;
    color: #5d6c70;
    font-size: 18px;
    line-height: 1.65;
}

.catalog-primary-button {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 0 23px;
    border-radius: 13px;
    background: linear-gradient(105deg, #48a95a, #259e87);
    box-shadow: 0 10px 22px rgba(42, 144, 105, 0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.catalog-primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 13px 26px rgba(42, 144, 105, 0.28);
    filter: brightness(1.04);
}

.catalog-primary-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.catalog-primary-button > span {
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
}

.catalog-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 30px;
    color: #4f6663;
    font-size: 12px;
    font-weight: 650;
}

.catalog-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.catalog-benefits i {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: #e4f5eb;
    color: #398f78;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.catalog-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 23px;
    border: 1px solid #e4ebe7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(30, 63, 53, 0.09);
}

.catalog-stat {
    display: flex;
    min-height: 153px;
    flex-direction: column;
    align-items: flex-start;
    padding: 21px;
    border: 1px solid #edf1ef;
    border-radius: 15px;
    background: #f8faf9;
}

.catalog-stat-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-bottom: 13px;
}

.catalog-stat-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.stat-icon-green {
    color: #39a76d;
}

.stat-icon-teal {
    color: #279b91;
}

.catalog-stat strong {
    color: #203138;
    font-size: 17px;
    font-weight: 820;
    line-height: 1.25;
}

.catalog-stat > span:last-child {
    margin-top: 6px;
    color: #73817f;
    font-size: 12px;
}

.game-library {
    padding: 78px 36px 100px;
    background: #f0f5f2;
}

.game-library-heading {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.game-library-heading .catalog-eyebrow {
    margin-bottom: 13px;
}

.game-library-heading h2 {
    margin: 0;
    color: #1b2a30;
    font-size: clamp(35px, 4vw, 48px);
    font-weight: 820;
    letter-spacing: -0.05em;
}

.game-library-heading > p {
    margin: 12px 0 0;
    color: #627271;
    font-size: 16px;
    line-height: 1.55;
}

.game-search {
    display: flex;
    width: min(100%, 690px);
    min-height: 64px;
    align-items: center;
    gap: 14px;
    margin: 35px auto 20px;
    padding: 0 19px;
    border: 1px solid #dfe8e3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(31, 66, 53, 0.07);
}

.game-search:focus-within {
    border-color: #58a98d;
    box-shadow: 0 0 0 4px rgba(57, 143, 120, 0.1);
}

.game-search > svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: #638178;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.game-search input {
    width: 100%;
    height: 58px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #25383a;
    font: inherit;
    font-size: 15px;
}

.game-search input::placeholder {
    color: #899894;
}

.game-search kbd {
    display: grid;
    width: 25px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e1e9e4;
    border-radius: 6px;
    color: #82928b;
    font-family: inherit;
    font-size: 12px;
}

.game-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 0 auto 29px;
}

.game-filter {
    min-height: 36px;
    padding: 0 15px;
    border: 1px solid #d8e5de;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #58706a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.game-filter:hover,
.game-filter.is-active {
    border-color: #398f78;
    background: #398f78;
    color: #fff;
}

.game-results-count {
    width: min(100%, 1298px);
    margin: 0 auto 13px;
    color: #71817c;
    font-size: 12px;
}

.game-catalog-grid {
    display: grid;
    width: min(100%, 1298px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 auto;
}

.catalog-game-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e1e8e4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 57, 49, 0.055);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.catalog-game-card:hover {
    transform: translateY(-4px);
    border-color: #b5d7c8;
    box-shadow: 0 16px 30px rgba(31, 70, 58, 0.12);
}

.scroll-reveal-ready .catalog-game-card.is-visible:hover {
    transform: translateY(-4px);
}

.catalog-game-art {
    position: relative;
    display: flex;
    height: 205px;
    overflow: hidden;
    align-items: flex-end;
    justify-content: center;
    border-radius: 12px;
    isolation: isolate;
    background: linear-gradient(145deg, #24483c, #19343b);
}

.catalog-game-art::after {
    position: absolute;
    z-index: -1;
    inset: 36% 0 0;
    background: linear-gradient(transparent, rgba(6, 20, 21, 0.78));
    content: "";
}

.catalog-game-art img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-game-art .game-poster-art {
    object-fit: contain;
}

.catalog-game-art.has-game-poster::after,
.catalog-game-art.has-game-poster .catalog-game-art-title {
    display: none;
}

.catalog-game-art > svg {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: rgba(195, 233, 190, 0.38);
    stroke: rgba(221, 246, 221, 0.8);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.game-art-hytale {
    background: linear-gradient(145deg, #243d47, #477b68 58%, #18333a);
}

.catalog-game-art .hytale-artwork {
    inset: 8px 0 24px;
    width: 100%;
    height: calc(100% - 32px);
    object-fit: contain;
}

.game-art-enshrouded {
    background: linear-gradient(145deg, #1c3033, #826653 58%, #18262c);
}

.game-art-zomboid {
    background: linear-gradient(145deg, #29363b, #566453 58%, #222d30);
}

.game-art-terraria {
    background: linear-gradient(145deg, #32788c, #4a9c68 58%, #315546);
}

.game-art-valheim {
    background: linear-gradient(145deg, #183a43, #63765e 58%, #263c36);
}

.game-art-days {
    background: linear-gradient(145deg, #3d4643, #777151 58%, #242c2b);
}

.game-art-ark {
    background: linear-gradient(145deg, #234c45, #82915d 58%, #37473c);
}

.game-art-satisfactory {
    background: linear-gradient(145deg, #23706d, #8b8b50 58%, #324e43);
}

.game-art-arma {
    background: linear-gradient(145deg, #2a3e41, #707669 58%, #323c3b);
}

.game-art-rust {
    background: linear-gradient(145deg, #594332, #a27345 58%, #433c32);
}

.catalog-game-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(35, 88, 71, 0.88);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.catalog-game-art-title {
    width: 100%;
    padding: 0 12px 15px;
    color: #fff;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -0.035em;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.catalog-game-info {
    padding: 14px 4px 3px;
}

.catalog-game-category {
    color: #398f78;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.15em;
}

.catalog-game-info h3 {
    margin: 6px 0;
    color: #1d2d32;
    font-size: 19px;
    font-weight: 820;
    letter-spacing: -0.025em;
}

.catalog-game-info p {
    min-height: 39px;
    margin: 0;
    color: #64736f;
    font-size: 13px;
    line-height: 1.5;
}

.catalog-game-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 13px;
    color: #318f70;
    font-size: 13px;
    font-weight: 800;
}

.catalog-game-link span {
    font-size: 19px;
    transition: transform 150ms ease;
}

.catalog-game-link:hover span {
    transform: translateX(3px);
}

.catalog-game-card[hidden] {
    display: none;
}

.game-no-results {
    width: min(100%, 1298px);
    margin: 30px auto;
    color: #657671;
    text-align: center;
}

.games-footer {
    display: flex;
    min-height: 115px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px max(36px, calc((100vw - 1298px) / 2));
    border-top: 1px solid #e1e9e4;
    background: #fff;
}

.games-footer > p {
    margin: 0;
    color: #64736f;
    font-size: 13px;
}

.games-footer > a:last-child {
    color: #318f70;
    font-size: 13px;
    font-weight: 750;
}

.games-footer > a:last-child span {
    font-size: 18px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 1000px) {
    .games-nav {
        display: flex;
        width: min(calc(100% - 36px), 1298px);
        justify-content: space-between;
    }

    .games-nav-links {
        gap: 15px;
    }

    .games-nav-links a {
        font-size: 11px;
    }

    .catalog-hero {
        width: min(calc(100% - 48px), 1298px);
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
        gap: 30px;
    }

    .catalog-stats {
        gap: 12px;
        padding: 15px;
    }

    .catalog-stat {
        min-height: 140px;
        padding: 16px;
    }

    .game-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 700px) {
    .game-filter {
        min-height: 44px;
    }

    .games-nav {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: 1fr auto;
        width: calc(100% - 32px);
    }

    .games-nav .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .games-nav .nav-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .games-nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        gap: 20px;
        overflow-x: auto;
        padding: 0 0 13px;
        scrollbar-width: none;
    }

    .games-nav-links::-webkit-scrollbar {
        display: none;
    }

    .catalog-hero {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        padding: 62px 0 55px;
    }

    .catalog-hero h1 {
        font-size: clamp(44px, 11vw, 62px);
    }

    .catalog-hero-copy > p {
        font-size: 16px;
    }

    .catalog-stats {
        gap: 10px;
        padding: 12px;
    }

    .catalog-stat {
        min-height: 132px;
        padding: 14px;
    }

    .catalog-stat strong {
        font-size: 15px;
    }

    .game-library {
        padding: 58px 16px 70px;
    }

    .game-catalog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .catalog-game-art {
        height: 220px;
    }

    .games-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-primary-button,
    .catalog-game-card,
    .catalog-game-link span {
        transition: none;
    }
}
