.games-page {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 0;
}

.games-hero,
.number-game,
.game-card,
.game-screenshots {
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: linear-gradient(145deg, rgb(19 19 20 / .96), rgb(10 10 11 / .98));
}

.games-hero {
    min-height: 420px;
    padding: clamp(32px, 6vw, 76px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 38%, rgb(255 105 0 / .18), transparent 20rem),
        linear-gradient(135deg, #161313, #08090a 58%, #0c0c0d);
    box-shadow: var(--home-shadow);
}

.games-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--home-text);
    font-family: inherit;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 850;
    line-height: .92;
    letter-spacing: -.07em;
    text-shadow: none;
}

.games-hero h1::after {
    content: ".";
    color: var(--home-orange);
}

.lottery-site .games-hero h1::after {
    content: none;
}

.games-hero__lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: #c1c1c5;
    font-family: inherit;
    font-size: clamp(.95rem, 1.2vw, 1.16rem);
    line-height: 1.65;
    text-align: left;
}

.games-hero__media {
    width: min(100%, 280px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    justify-self: center;
    border: 1px solid rgb(255 105 0 / .34);
    border-radius: 34px;
    background: rgb(255 105 0 / .065);
    box-shadow: 0 24px 80px rgb(255 105 0 / .15);
    transform: rotate(4deg);
}

.games-hero__media img {
    width: min(72%, 220px);
    height: auto;
    filter: drop-shadow(0 18px 34px rgb(0 0 0 / .45));
    transform: rotate(-4deg);
}

.number-game {
    position: relative;
    min-height: 560px;
    margin-top: 14px;
    padding: clamp(20px, 4vw, 46px);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #050505;
}

.number-game__matrix {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
}

.number-game__panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: clamp(22px, 5vw, 44px);
    border: 1px solid rgb(255 255 255 / .12);
    border-radius: 20px;
    background: rgb(9 9 10 / .88);
    box-shadow: 0 24px 70px rgb(0 0 0 / .55);
    backdrop-filter: blur(12px);
}

.number-game__copy {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.number-game__copy img {
    width: 64px;
    height: 64px;
}

.number-game__copy p,
.game-description__body p {
    margin: 0;
    color: var(--home-muted-strong);
    font-family: inherit;
    line-height: 1.7;
    text-align: left;
}

.number-game__message {
    min-height: 36px;
    margin: 24px 0 0;
    color: var(--home-orange);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 800;
    text-align: center;
}

.number-game__message.is-error {
    color: #ff5c5c;
}

.number-game__message.is-success {
    color: #60d394;
}

.number-game__stats {
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.number-game__stats div {
    padding: 14px;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: rgb(255 255 255 / .035);
}

.number-game__stats dt {
    color: var(--home-muted);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.number-game__stats dd {
    margin: 7px 0 0;
    color: var(--home-text);
    font-size: 1.55rem;
    font-weight: 850;
}

.number-game__form {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.number-game__form label {
    color: var(--home-muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.number-game__form input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    color: var(--home-text);
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    font-weight: 850;
    text-align: center;
    letter-spacing: .18em;
    border: 1px solid #38383b;
    border-radius: 12px;
    outline: none;
    background: #101011;
}

.number-game__form input:focus {
    border-color: var(--home-orange);
    box-shadow: 0 0 0 3px rgb(255 105 0 / .18);
}

.number-game__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.number-game.is-won .number-game__panel {
    border-color: rgb(96 211 148 / .6);
}

.game-detail-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 14px;
}

.game-card {
    padding: clamp(24px, 4vw, 42px);
}

.game-card h2,
.game-screenshots h2 {
    margin: 0 0 18px;
    color: var(--home-text);
    font-family: inherit;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 820;
    line-height: 1.15;
    letter-spacing: -.04em;
    text-shadow: none;
}

.game-description__body {
    display: grid;
    gap: 16px;
}

.game-links {
    align-self: start;
    display: grid;
    gap: 10px;
}

.game-links a {
    min-height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #080808;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 8px;
    background: var(--home-orange);
}

.game-links a:hover,
.game-links a:focus-visible {
    color: #080808;
    background: var(--home-orange-light);
}

.game-screenshots {
    margin-top: 14px;
    padding: clamp(24px, 4vw, 42px);
}

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

.game-screenshots__grid a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: #111;
}

.game-screenshots__grid img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    display: block;
    object-fit: cover;
    transition: transform 180ms ease;
}

.game-screenshots__grid a:hover img,
.game-screenshots__grid a:focus-visible img {
    transform: scale(1.04);
}

@media (max-width: 860px) {
    .games-hero,
    .game-detail-grid {
        grid-template-columns: 1fr;
    }

    .games-hero__media {
        order: -1;
        width: 170px;
        border-radius: 24px;
    }

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

@media (max-width: 560px) {
    .games-page {
        width: min(100% - 20px, 1440px);
    }

    .games-hero,
    .number-game,
    .game-card,
    .game-screenshots {
        border-radius: 12px;
    }

    .number-game__copy,
    .number-game__stats {
        grid-template-columns: 1fr;
    }

    .number-game__buttons,
    .number-game__buttons .home-button {
        width: 100%;
    }

    .game-screenshots__grid {
        grid-template-columns: 1fr;
    }
}
