.games-section-page {
    --games-ink: #171611;
    --games-muted: #706a73;
    --games-purple: #580c93;
    --games-purple-dark: #3b075f;
    --games-green: #b9ef73;
    --games-orange: #ff805f;
    --games-line: #e9e3ed;
    --games-soft: #f7f4f8;
    background: #fff;
}

.games-section-page #app-main .main-container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.games-section-page #app-main .app-content {
    width: 100%;
    max-width: none;
    padding: 0;
}

.dz-games,
.dz-games * {
    box-sizing: border-box;
}

.dz-games {
    width: 100%;
    overflow: hidden;
    color: var(--games-ink);
    background: #fff;
    font-family: inherit;
}

.dz-games a {
    color: inherit;
}

.dz-games button,
.dz-games input,
.dz-games select {
    font: inherit;
}

.dz-games-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.dz-games-review {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    background: #171611;
}

.dz-games-review > span {
    margin-right: 10px;
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dz-games-review a {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.dz-games-review a.is-active {
    color: #171611;
    background: #fff;
}

.dz-games-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--games-line);
    background:
        radial-gradient(circle at 12% 15%, rgba(255, 128, 95, .12), transparent 24%),
        radial-gradient(circle at 82% 34%, rgba(88, 12, 147, .1), transparent 31%),
        #fbf9fc;
}

.dz-games-hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .28;
    background-image: radial-gradient(#9a8ca3 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(90deg, #000, transparent 48%);
}

.dz-games-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
    gap: 70px;
    align-items: center;
    min-height: 620px;
    padding: 64px 0 72px;
}

.dz-games-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
    color: #817a84;
    font-size: 13px;
}

.dz-games-breadcrumbs a {
    text-decoration: none;
}

.dz-games-breadcrumbs a::after {
    margin-left: 9px;
    content: "/";
    color: #c0b8c4;
}

.dz-games-kicker {
    color: var(--games-purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dz-games-hero h1 {
    max-width: 690px;
    margin: 15px 0 19px;
    font-size: clamp(56px, 6.4vw, 92px);
    font-weight: 800;
    line-height: .91;
    letter-spacing: -.055em;
}

.dz-games-hero h1 em {
    color: var(--games-purple);
    font-style: normal;
}

.dz-games-hero__content > p {
    max-width: 610px;
    margin: 0;
    color: var(--games-muted);
    font-size: 19px;
    line-height: 1.55;
}

.dz-games-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid #d9d0de;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(52, 26, 65, .07);
}

.dz-games-search--hero {
    max-width: 570px;
    margin-top: 30px;
}

.dz-games-search__icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 2px solid var(--games-purple);
    border-radius: 50%;
}

.dz-games-search__icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    content: "";
    background: var(--games-purple);
    transform: rotate(45deg);
}

.dz-games-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--games-ink);
    background: transparent;
    font-size: 15px;
}

.dz-games-search kbd {
    padding: 5px 8px;
    border: 1px solid var(--games-line);
    border-radius: 6px;
    color: #8d8490;
    background: var(--games-soft);
    box-shadow: none;
    font-size: 11px;
    white-space: nowrap;
}

.dz-games-hero__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 22px;
}

.dz-games-button,
.dz-games-text-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dz-games-button {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 12px;
    color: #fff !important;
    background: var(--games-purple);
    box-shadow: 0 12px 28px rgba(88, 12, 147, .2);
}

.dz-games-button:hover {
    color: #fff;
    background: var(--games-purple-dark);
}

.dz-games-text-link {
    color: var(--games-purple) !important;
}

.dz-games-hero__stats {
    display: flex;
    gap: 28px;
    margin-top: 34px;
    color: var(--games-muted);
    font-size: 13px;
}

.dz-games-hero__stats span {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.dz-games-hero__stats strong {
    color: var(--games-ink);
    font-size: 18px;
}

.dz-games-feature,
.dz-game-card {
    --game-accent: #7540a5;
    --game-accent-2: #b776dc;
    --game-soft: #efe4f7;
}

.dz-game-accent--blue { --game-accent: #266e9e; --game-accent-2: #5ab4db; --game-soft: #e4f3fa; }
.dz-game-accent--orange { --game-accent: #c95725; --game-accent-2: #ff9a55; --game-soft: #fff0e4; }
.dz-game-accent--green { --game-accent: #287b61; --game-accent-2: #62c69c; --game-soft: #e3f5ee; }
.dz-game-accent--purple { --game-accent: #6841a4; --game-accent-2: #a674d6; --game-soft: #eee7f8; }
.dz-game-accent--violet { --game-accent: #7b347f; --game-accent-2: #c168b2; --game-soft: #f6e7f4; }
.dz-game-accent--teal { --game-accent: #087c81; --game-accent-2: #42c4bc; --game-soft: #dff6f3; }

.dz-games-feature {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(145deg, #18121d 0%, var(--game-accent) 100%);
    box-shadow: 0 38px 80px rgba(45, 21, 55, .22);
    transform: rotate(1.2deg);
}

.dz-games-feature::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: inherit;
    content: "";
}

.dz-games-feature__art {
    position: relative;
    height: 270px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.17), transparent 42%),
        repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,.035) 23px 24px);
}

.dz-games-feature__orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(.2px);
}

.dz-games-feature__orb--one {
    top: 24px;
    right: 48px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: inset 0 0 0 28px rgba(255,255,255,.035);
}

.dz-games-feature__orb--two {
    top: 145px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: var(--game-accent-2);
    opacity: .54;
}

.dz-games-feature__glyph {
    position: absolute;
    top: 48px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 48px;
    background: rgba(255,255,255,.12);
    box-shadow: 0 24px 50px rgba(0,0,0,.22);
    font-size: 92px;
    font-weight: 900;
    transform: translateX(-50%) rotate(-5deg);
    backdrop-filter: blur(8px);
}

.dz-games-feature__score,
.dz-games-feature__level {
    position: absolute;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    background: rgba(18,12,21,.45);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    backdrop-filter: blur(7px);
}

.dz-games-feature__score { top: 36px; left: 34px; color: #d7ff9c; transform: rotate(-7deg); }
.dz-games-feature__level { right: 28px; bottom: 24px; }

.dz-games-feature__content {
    position: relative;
    z-index: 2;
    padding: 28px 32px 32px;
}

.dz-games-feature__content > span {
    color: rgba(255,255,255,.7);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dz-games-feature h2 {
    margin: 7px 0 8px;
    color: #fff;
    font-size: 31px;
    line-height: 1.04;
    letter-spacing: -.03em;
}

.dz-games-feature p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dz-games-feature__meta {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.dz-games-feature__meta span {
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 7px;
    color: rgba(255,255,255,.78);
    font-size: 11px;
}

.dz-games-feature__content > a {
    position: absolute;
    right: 30px;
    bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--games-ink);
    background: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.dz-games-continue-wrap {
    padding: 26px 0 0;
    background: #fff;
}

.dz-games-continue {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 26px;
    border: 1px solid #d9c7e6;
    border-radius: 18px;
    background: #faf5fd;
}

.dz-games-continue__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    background: var(--games-purple);
    font-size: 14px;
}

.dz-games-continue small { color: var(--games-purple); font-weight: 800; }
.dz-games-continue h2 { margin: 2px 0; font-size: 20px; }
.dz-games-continue p { margin: 0; color: var(--games-muted); font-size: 13px; }
.dz-games-continue button {
    min-height: 44px;
    padding: 0 17px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--games-purple);
    font-weight: 800;
    cursor: pointer;
}

.dz-games-catalog {
    padding: 92px 0 110px;
    background: #fff;
}

.dz-games-catalog__heading {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(330px, .6fr);
    gap: 80px;
    align-items: end;
    margin-bottom: 42px;
}

.dz-games-catalog__heading h2 {
    margin: 8px 0 0;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -.045em;
}

.dz-games-catalog__heading > p {
    margin: 0;
    color: var(--games-muted);
    font-size: 16px;
    line-height: 1.6;
}

.dz-games-layout {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.dz-games-filter-panel {
    position: sticky;
    top: 18px;
    padding: 19px;
    border: 1px solid var(--games-line);
    border-radius: 18px;
    background: var(--games-soft);
}

.dz-games-filter-panel__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dz-games-filter-panel__title strong {
    font-size: 14px;
}

.dz-games-filter-panel__title button {
    padding: 0;
    border: 0;
    color: var(--games-purple);
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.dz-games-kind-filter {
    display: grid;
    gap: 6px;
}

.dz-games-kind-filter button {
    width: 100%;
    min-height: 39px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #655f68;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.dz-games-kind-filter button.is-active {
    border-color: #ded4e3;
    color: var(--games-purple);
    background: #fff;
    box-shadow: 0 5px 14px rgba(54,33,61,.06);
    font-weight: 800;
}

.dz-games-selects {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ded7e1;
}

.dz-games-selects label {
    display: grid;
    gap: 6px;
}

.dz-games-selects label > span {
    color: #827a85;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dz-games-selects select {
    width: 100%;
    min-height: 40px;
    padding: 0 30px 0 10px;
    border: 1px solid #ded5e2;
    border-radius: 9px;
    outline: 0;
    color: var(--games-ink);
    background: #fff;
    font-size: 12px;
}

.dz-games-selects select:focus {
    border-color: var(--games-purple);
    box-shadow: 0 0 0 3px rgba(88,12,147,.08);
}

.dz-games-filter-panel__note {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    padding: 14px;
    border-radius: 11px;
    color: #4c3d51;
    background: #efe4f7;
}

.dz-games-filter-panel__note > span { color: var(--games-purple); }
.dz-games-filter-panel__note p { margin: 0; font-size: 11px; line-height: 1.45; }
.dz-games-filter-panel__note strong { display: block; margin-bottom: 2px; }

.dz-games-results__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #89818b;
    font-size: 12px;
}

.dz-games-results__bar span:last-child::before {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    content: "";
    background: #43a977;
}

.dz-games-group + .dz-games-group {
    margin-top: 68px;
    padding-top: 55px;
    border-top: 1px solid var(--games-line);
}

.dz-games-group__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 21px;
}

.dz-games-group__header span {
    color: var(--games-purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dz-games-group__header h3 {
    margin: 4px 0 0;
    font-size: 26px;
    letter-spacing: -.025em;
}

.dz-games-group__header p {
    max-width: 430px;
    margin: 0;
    color: var(--games-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.dz-games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dz-game-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--games-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(43,25,49,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.dz-game-card:hover {
    z-index: 2;
    box-shadow: 0 22px 48px rgba(43,25,49,.12);
    transform: translateY(-5px);
}

.dz-game-card__cover {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    color: #fff !important;
    background:
        linear-gradient(140deg, rgba(255,255,255,.16), transparent 45%),
        linear-gradient(145deg, var(--game-accent-2), var(--game-accent));
    text-decoration: none;
}

.dz-game-card__cover::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .18;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 17px 17px;
    mask-image: linear-gradient(135deg, #000, transparent 68%);
}

.dz-game-card__shape {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.dz-game-card__shape--one {
    right: -20px;
    bottom: -44px;
    width: 160px;
    height: 160px;
    border: 28px solid rgba(255,255,255,.12);
}

.dz-game-card__shape--two {
    top: 30px;
    left: 35%;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255,255,255,.26);
}

.dz-game-card__icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    background: rgba(255,255,255,.17);
    box-shadow: 0 18px 32px rgba(31,9,44,.17);
    font-size: 52px;
    font-weight: 900;
    transform: translate(-50%, -50%) rotate(-5deg);
    backdrop-filter: blur(5px);
}

.dz-game-card__number {
    display: none;
}

.dz-game-card__play {
    position: absolute;
    z-index: 3;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--games-ink);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.16);
    font-size: 11px;
}

.dz-game-card__badge {
    position: absolute;
    z-index: 3;
    top: 13px;
    left: 13px;
    max-width: 135px;
    overflow: hidden;
    padding: 6px 8px;
    border-radius: 7px;
    color: var(--games-ink);
    background: rgba(255,255,255,.9);
    font-size: 9px;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.dz-game-card__body {
    display: flex;
    flex-direction: column;
    min-height: 315px;
    padding: 20px;
}

.dz-game-card__eyebrow {
    color: var(--game-accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dz-game-card h4 {
    margin: 6px 0 9px;
    font-size: 21px;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.dz-game-card h4 a {
    text-decoration: none;
}

.dz-game-card__body > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--games-muted);
    font-size: 12px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.dz-game-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 14px;
}

.dz-game-card__tags span {
    padding: 5px 7px;
    border-radius: 6px;
    color: #665f69;
    background: var(--games-soft);
    font-size: 9px;
    font-weight: 700;
}

.dz-game-card__progress {
    height: 4px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 99px;
    background: #ece7ef;
}

.dz-game-card__progress span {
    display: block;
    width: var(--progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--game-accent);
}

.dz-game-card__record {
    margin-top: 5px;
    color: #8d8490;
    font-size: 9px;
}

.dz-game-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.dz-game-card__footer > span {
    color: #8a828c;
    font-size: 10px;
}

.dz-game-card__footer > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--game-accent);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.dz-games-empty {
    padding: 35px;
    border: 1px dashed #d9d0de;
    border-radius: 16px;
    color: var(--games-muted);
    background: var(--games-soft);
    text-align: center;
}

.dz-games-bottom-cta {
    padding: 32px 0;
    color: #fff;
    background: var(--games-purple-dark);
}

.dz-games-bottom-cta__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
}

.dz-games-bottom-cta__inner > span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 16px;
    color: #d8ff96;
    background: rgba(255,255,255,.08);
    font-size: 22px;
}

.dz-games-bottom-cta small { color: rgba(255,255,255,.62); }
.dz-games-bottom-cta h2 { margin: 2px 0 0; color: #fff; font-size: 23px; }
.dz-games-bottom-cta a {
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--games-ink);
    background: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

/* Concept 2: compact shelves with navigation-led discovery. */
.dz-games--shelves .dz-games-hero {
    background: #fff;
}

.dz-games--shelves .dz-games-hero::before {
    opacity: .18;
    mask-image: linear-gradient(#000, transparent 75%);
}

.dz-games--shelves .dz-games-hero__grid {
    grid-template-columns: minmax(0, .72fr) minmax(520px, 1.28fr);
    min-height: 540px;
}

.dz-games--shelves .dz-games-hero h1 {
    font-size: clamp(50px, 5.4vw, 76px);
}

.dz-games--shelves .dz-games-feature {
    min-height: 410px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    transform: none;
}

.dz-games--shelves .dz-games-feature__art {
    height: 100%;
}

.dz-games--shelves .dz-games-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.dz-games--shelves .dz-games-feature__content > a {
    position: static;
    align-self: flex-start;
    margin-top: 22px;
}

.dz-games--shelves .dz-games-layout {
    grid-template-columns: 1fr;
}

.dz-games--shelves .dz-games-filter-panel {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr 2fr;
    gap: 18px;
    align-items: center;
}

.dz-games--shelves .dz-games-filter-panel__title { margin: 0; }
.dz-games--shelves .dz-games-kind-filter { display: flex; }
.dz-games--shelves .dz-games-kind-filter button { width: auto; white-space: nowrap; }
.dz-games--shelves .dz-games-selects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0 0 0 18px;
    border-top: 0;
    border-left: 1px solid #ded7e1;
}
.dz-games--shelves .dz-games-filter-panel__note { display: none; }

.dz-games--shelves .dz-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dz-games--shelves .dz-game-card__cover { height: 154px; }
.dz-games--shelves .dz-game-card__icon { width: 84px; height: 84px; border-radius: 24px; font-size: 42px; }
.dz-games--shelves .dz-game-card__body { min-height: 286px; padding: 16px; }
.dz-games--shelves .dz-game-card h4 { font-size: 18px; }
.dz-games--shelves .dz-game-card__body > p { -webkit-line-clamp: 2; }

/* Concept 3: progress-first learning missions. */
.dz-games--quests {
    background: #f7f4ec;
}

.dz-games--quests .dz-games-hero {
    border-bottom: 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(185,239,115,.35), transparent 30%),
        #f7f4ec;
}

.dz-games--quests .dz-games-hero::before {
    opacity: .22;
    background-image: linear-gradient(#b8ae9e 1px, transparent 1px), linear-gradient(90deg, #b8ae9e 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, #000 50%, transparent);
}

.dz-games--quests .dz-games-hero h1 em { color: #2c7556; }
.dz-games--quests .dz-games-button { color: #171611 !important; background: var(--games-green); box-shadow: 0 12px 28px rgba(64,111,53,.16); }
.dz-games--quests .dz-games-feature {
    color: var(--games-ink);
    background: #fff;
    box-shadow: 12px 14px 0 #171611;
    transform: rotate(-1deg);
}
.dz-games--quests .dz-games-feature__art { background: linear-gradient(145deg, var(--game-accent-2), var(--game-accent)); }
.dz-games--quests .dz-games-feature__content > span,
.dz-games--quests .dz-games-feature p { color: var(--games-muted); }
.dz-games--quests .dz-games-feature h2 { color: var(--games-ink); }
.dz-games--quests .dz-games-feature__meta span { border-color: var(--games-line); color: var(--games-muted); }
.dz-games--quests .dz-games-feature__content > a { color: #fff; background: #171611; }

.dz-games--quests .dz-games-catalog {
    background: #f7f4ec;
}

.dz-games--quests .dz-games-layout {
    grid-template-columns: 250px minmax(0, 1fr);
}

.dz-games--quests .dz-games-filter-panel {
    border-color: #d9d0c2;
    background: #efe9dc;
}

.dz-games--quests .dz-games-kind-filter button.is-active {
    border-color: #171611;
    color: #171611;
    box-shadow: 3px 3px 0 #171611;
}

.dz-games--quests .dz-games-grid {
    position: relative;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-left: 38px;
}

.dz-games--quests .dz-games-grid::before {
    position: absolute;
    top: 36px;
    bottom: 36px;
    left: 14px;
    width: 2px;
    content: "";
    background: repeating-linear-gradient(to bottom, #b9af9f 0 7px, transparent 7px 14px);
}

.dz-games--quests .dz-game-card {
    position: relative;
    display: grid;
    grid-template-columns: 260px 1fr;
    overflow: visible;
    border-color: #d9d0c2;
    border-radius: 16px;
    box-shadow: 7px 7px 0 rgba(23,22,17,.1);
}

.dz-games--quests .dz-game-card::before {
    position: absolute;
    top: 50%;
    left: -33px;
    width: 14px;
    height: 14px;
    border: 3px solid #f7f4ec;
    border-radius: 50%;
    content: "";
    background: var(--game-accent);
    box-shadow: 0 0 0 1px #8e8474;
    transform: translateY(-50%);
}

.dz-games--quests .dz-game-card:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 rgba(23,22,17,.13); }
.dz-games--quests .dz-game-card__cover { height: 100%; min-height: 250px; border-radius: 15px 0 0 15px; }
.dz-games--quests .dz-game-card__number {
    position: absolute;
    z-index: 3;
    top: 15px;
    left: 15px;
    display: block;
    color: rgba(255,255,255,.8);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}
.dz-games--quests .dz-game-card__body { min-height: 250px; padding: 25px 27px; }
.dz-games--quests .dz-game-card h4 { font-size: 26px; }
.dz-games--quests .dz-game-card__body > p { -webkit-line-clamp: 2; }
.dz-games--quests .dz-game-card__footer > a {
    padding: 9px 13px;
    border-radius: 8px;
    color: #fff;
    background: var(--game-accent);
}

@media (max-width: 1080px) {
    .dz-games-hero__grid,
    .dz-games--shelves .dz-games-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .78fr);
        gap: 38px;
    }
    .dz-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dz-games--shelves .dz-games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dz-games--shelves .dz-games-filter-panel { grid-template-columns: 1fr; }
    .dz-games--shelves .dz-games-selects { padding: 18px 0 0; border-top: 1px solid #ded7e1; border-left: 0; }
}

@media (max-width: 820px) {
    .dz-games-shell { width: min(100% - 28px, 1180px); }
    .dz-games-review { overflow-x: auto; justify-content: flex-start; }
    .dz-games-review > span { display: none; }
    .dz-games-review a { flex: 0 0 auto; }
    .dz-games-hero__grid,
    .dz-games--shelves .dz-games-hero__grid {
        grid-template-columns: 1fr;
        padding: 45px 0 58px;
    }
    .dz-games-breadcrumbs { margin-bottom: 24px; }
    .dz-games-feature { width: min(100%, 560px); min-height: 450px; transform: none; }
    .dz-games--shelves .dz-games-feature { min-height: 380px; grid-template-columns: 1fr 1fr; }
    .dz-games-catalog { padding: 68px 0 80px; }
    .dz-games-catalog__heading { grid-template-columns: 1fr; gap: 18px; }
    .dz-games-layout,
    .dz-games--quests .dz-games-layout { grid-template-columns: 1fr; }
    .dz-games-filter-panel { position: static; }
    .dz-games-kind-filter { grid-template-columns: repeat(3, 1fr); }
    .dz-games-kind-filter button { text-align: center; }
    .dz-games-selects { grid-template-columns: repeat(3, 1fr); }
    .dz-games-filter-panel__note { display: none; }
    .dz-games--shelves .dz-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dz-games--quests .dz-games-grid { padding-left: 28px; }
    .dz-games--quests .dz-game-card { grid-template-columns: 210px 1fr; }
    .dz-games-bottom-cta__inner { grid-template-columns: auto 1fr; }
    .dz-games-bottom-cta a { grid-column: 2; justify-self: start; }
}

@media (max-width: 560px) {
    .dz-games-shell { width: min(100% - 20px, 1180px); }
    .dz-games-hero__grid { min-height: auto; }
    .dz-games-hero h1 { font-size: 49px; }
    .dz-games-hero__content > p { font-size: 16px; }
    .dz-games-search kbd { display: none; }
    .dz-games-hero__actions { align-items: flex-start; flex-direction: column; gap: 14px; }
    .dz-games-hero__stats { gap: 14px; }
    .dz-games-hero__stats span { align-items: flex-start; flex-direction: column; gap: 0; }
    .dz-games-feature,
    .dz-games--shelves .dz-games-feature { display: block; min-height: 480px; }
    .dz-games-feature__art { height: 235px; }
    .dz-games-feature__content > a { position: static; margin-top: 18px; }
    .dz-games-continue { grid-template-columns: auto 1fr; }
    .dz-games-continue form { grid-column: 2; }
    .dz-games-catalog__heading h2 { font-size: 42px; }
    .dz-games-kind-filter,
    .dz-games-selects,
    .dz-games--shelves .dz-games-selects { grid-template-columns: 1fr; }
    .dz-games-group__header { align-items: flex-start; flex-direction: column; gap: 8px; }
    .dz-games-group__header p { text-align: left; }
    .dz-games-grid,
    .dz-games--shelves .dz-games-grid { grid-template-columns: 1fr; }
    .dz-game-card__cover { height: 210px; }
    .dz-games--quests .dz-games-grid { padding-left: 25px; }
    .dz-games--quests .dz-game-card { display: block; }
    .dz-games--quests .dz-game-card__cover { min-height: 210px; border-radius: 15px 15px 0 0; }
    .dz-games-bottom-cta__inner { grid-template-columns: 1fr; }
    .dz-games-bottom-cta__inner > span { display: none; }
    .dz-games-bottom-cta a { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .dz-game-card { transition: none; }
}

/* Shared chrome for game details and personal progress. */
.games-inner-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 62px;
    border-bottom: 1px solid rgba(69, 43, 79, .12);
}

.games-inner-nav a {
    color: var(--games-purple);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.games-detail-hero {
    --game-accent: #6d3092;
    --game-accent-2: #a96ccc;
    --game-soft: #f1e8f6;
    overflow: hidden;
    border-bottom: 1px solid var(--games-line);
    background:
        radial-gradient(circle at 82% 42%, color-mix(in srgb, var(--game-accent-2) 24%, transparent), transparent 32%),
        linear-gradient(135deg, #fff, var(--game-soft));
}

.games-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 72px;
    align-items: center;
    min-height: 470px;
    padding: 54px 0 68px;
}

.games-detail-eyebrow,
.games-detail-title > span,
.games-history-heading > span {
    color: var(--games-purple);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.games-detail-hero h1 {
    margin: 11px 0 17px;
    font-size: clamp(52px, 6vw, 78px);
    line-height: .96;
    letter-spacing: -.05em;
}

.games-detail-hero p {
    max-width: 690px;
    margin: 0;
    color: var(--games-muted);
    font-size: 18px;
    line-height: 1.55;
}

.games-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.games-detail-tags span,
.games-detail-tech span {
    padding: 7px 10px;
    border: 1px solid var(--games-line);
    border-radius: 8px;
    color: #5f5762;
    background: rgba(255,255,255,.8);
    font-size: 11px;
    font-weight: 800;
}

.games-detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.games-detail-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 11px;
    color: #fff !important;
    background: var(--game-accent);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--game-accent) 24%, transparent);
    font-weight: 900;
    text-decoration: none;
}

.games-detail-record {
    display: inline-flex;
    flex-direction: column;
    padding: 9px 13px;
    border-left: 2px solid var(--game-accent);
}

.games-detail-record span { color: var(--game-accent); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.games-detail-record strong { font-size: 15px; }
.games-detail-record small,
.games-variant-record { color: var(--games-muted); font-size: 10px; }

.games-detail-art {
    position: relative;
    display: grid;
    place-items: center;
    width: 320px;
    height: 320px;
    justify-self: center;
    border-radius: 78px;
    background: linear-gradient(145deg, var(--game-accent-2), var(--game-accent));
    box-shadow: 20px 24px 0 rgba(23,22,17,.1);
    transform: rotate(3deg);
}

.games-detail-art::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: inherit;
    content: "";
    opacity: .3;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 20px 20px;
}

.games-detail-art__ring {
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    box-shadow: inset 0 0 0 26px rgba(255,255,255,.06);
}

.games-detail-art__icon {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 112px;
    font-weight: 900;
}

.games-detail-art small {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 18px;
    padding: 7px 9px;
    border-radius: 7px;
    color: #fff;
    background: rgba(23,22,17,.5);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.games-progress-band {
    padding: 22px 0;
    background: #f4f0f7;
}

.games-continue-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 21px 25px;
    border: 1px solid #d8c9e2;
    border-radius: 17px;
    background: #fff;
}

.games-continue-card span { color: var(--games-purple); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.games-continue-card h2 { margin: 4px 0; font-size: 20px; }
.games-continue-card p { margin: 0; color: var(--games-muted); font-size: 12px; }
.games-continue-card button,
.games-attempt button,
.games-progress-empty a {
    display: inline-flex;
    padding: 11px 16px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--games-purple);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.games-detail-content {
    padding: 78px 0 100px;
    background: #fff;
}

.games-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 38px;
    align-items: start;
}

.games-detail-title {
    margin-bottom: 24px;
}

.games-detail-title h2,
.games-history-section h2 {
    margin: 5px 0 0;
    font-size: 34px;
    letter-spacing: -.035em;
}

.games-detail-variants {
    display: grid;
    gap: 12px;
}

.games-detail-variants article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 21px;
    border: 1px solid var(--games-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(43,25,49,.04);
}

.games-detail-variants article > div > span { color: var(--games-purple); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.games-detail-variants h3 { margin: 5px 0 4px; font-size: 20px; }
.games-detail-variants p { margin: 0; color: var(--games-muted); font-size: 12px; }
.games-detail-variants article > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 9px;
    color: #fff;
    background: var(--games-purple);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.games-detail-aside {
    padding: 23px;
    border: 1px solid var(--games-line);
    border-radius: 16px;
    background: var(--games-soft);
}

.games-detail-aside h2 { margin: 0 0 11px; font-size: 18px; }
.games-detail-aside h2:not(:first-child) { margin-top: 25px; }
.games-detail-aside ul { margin: 0; padding-left: 18px; color: #574f5a; font-size: 12px; line-height: 1.7; }
.games-detail-aside p { margin: 0; color: var(--games-muted); font-size: 12px; line-height: 1.6; }
.games-detail-tech { display: flex; gap: 7px; margin-top: 19px; }

.games-history {
    min-height: 70vh;
    padding: 0 0 90px;
    background: #f7f5f8;
}

.games-history .games-inner-nav { margin-bottom: 48px; }
.games-history-heading { margin-bottom: 28px; }
.games-history-heading h1 { margin: 7px 0 8px; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.045em; }
.games-history-heading p { margin: 0; color: var(--games-muted); }
.games-progress-alert { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; color: #a12626; background: #fff1f1; }
.games-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.games-stats-grid article { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--games-line); border-radius: 16px; background: #fff; }
.games-stats-grid span { color: var(--games-muted); font-size: 11px; }
.games-stats-grid strong { margin: 6px 0; font-size: 30px; }
.games-stats-grid small { color: #99909c; font-size: 10px; }
.games-history-section { margin-top: 42px; }
.games-history-section .games-catalog-section-title { margin-bottom: 20px; }
.games-history-section .games-catalog-section-title span { color: var(--games-purple); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.games-progress-empty { padding: 40px; border: 1px dashed #cfc4d5; border-radius: 18px; background: #fff; text-align: center; }
.games-progress-empty h2 { margin-top: 0; }
.games-progress-empty p { max-width: 650px; margin: 0 auto 21px; color: var(--games-muted); }
.games-progress-empty div { display: flex; justify-content: center; gap: 10px; }
.games-progress-empty a.is-secondary { color: #4c4052; background: #ebe6ee; }
.games-attempts { display: grid; gap: 12px; }
.games-attempt { display: grid; grid-template-columns: minmax(180px,1.2fr) 2fr auto; align-items: center; gap: 22px; padding: 19px 22px; border: 1px solid var(--games-line); border-radius: 16px; background: #fff; }
.games-attempt.is-active { border-color: #b291c8; box-shadow: inset 4px 0 var(--games-purple); }
.games-attempt__main span { color: var(--games-purple); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.games-attempt__main h3 { margin: 4px 0; }
.games-attempt__main p { margin: 0; color: var(--games-muted); font-size: 12px; }
.games-attempt dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 0; }
.games-attempt dl div { display: flex; flex-direction: column; }
.games-attempt dt { color: #99909c; font-size: 9px; }
.games-attempt dd { margin: 2px 0 0; font-size: 11px; font-weight: 700; }
.games-achievements { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.games-achievements article { display: flex; gap: 15px; padding: 19px; border: 1px solid var(--games-line); border-radius: 16px; background: #fff; }
.games-achievements article > span { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; color: var(--games-purple); background: #eee5f4; font-size: 20px; }
.games-achievements h3 { margin: 0 0 4px; }
.games-achievements p { margin: 0 0 7px; color: var(--games-muted); font-size: 12px; }
.games-achievements small { color: var(--games-purple); font-size: 10px; }
.games-achievements .is-locked { filter: grayscale(1); opacity: .62; }

@media (max-width: 900px) {
    .games-detail-hero__grid { grid-template-columns: 1fr 250px; gap: 36px; }
    .games-detail-art { width: 240px; height: 240px; border-radius: 58px; }
    .games-detail-art__icon { font-size: 82px; }
    .games-detail-layout { grid-template-columns: 1fr; }
    .games-stats-grid { grid-template-columns: repeat(2,1fr); }
    .games-attempt { grid-template-columns: 1fr; }
    .games-achievements { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .games-inner-nav { min-height: 52px; }
    .games-detail-hero__grid { grid-template-columns: 1fr; padding: 40px 0 56px; }
    .games-detail-hero h1 { font-size: 48px; }
    .games-detail-hero p { font-size: 16px; }
    .games-detail-art { display: none; }
    .games-detail-actions,
    .games-continue-card { align-items: flex-start; flex-direction: column; }
    .games-detail-content { padding: 55px 0 70px; }
    .games-detail-variants article { align-items: flex-start; flex-direction: column; }
    .games-stats-grid { grid-template-columns: 1fr 1fr; }
    .games-attempt dl { grid-template-columns: repeat(2,1fr); }
    .games-progress-empty { padding: 28px 17px; }
    .games-progress-empty div { flex-direction: column; }
}
