/* ============================================================
   DarkWars shared site shell.
   Geometry and responsive behavior live here for default/night.
   Theme files keep palette-specific overrides.
   ============================================================ */

html,
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


body.site-razdel {
    --dw-shell-x: clamp(14px, 2.4vw, 46px);
    --dw-shell-top: 52px;
    --dw-shell-line: var(--dw-line-soft, var(--dw-page-line, rgba(203, 164, 95, 0.28)));
    --dw-shell-line-strong: var(--dw-line-strong, var(--dw-page-line-strong, rgba(203, 164, 95, 0.48)));
    --dw-shell-bg: var(--dw-page-bg-solid, var(--dw-page-paper-strong, #f4ead7));
    --dw-shell-bg-soft: var(--dw-page-paper, rgba(244, 234, 215, 0.92));
    --dw-shell-text: var(--dw-page-text, #4b352c);
    --dw-shell-muted: var(--dw-page-muted, #806247);
    --dw-shell-link: var(--dw-page-link, #c9965e);
    --dw-shell-link-hover: var(--dw-page-link-hover, #ffd07b);
    --dw-shell-button: var(--dw-control-bg, var(--dw-page-button, rgba(43, 34, 25, 0.96)));
    --dw-shell-button-hover: var(--dw-control-bg-hover, var(--dw-page-button-hover, rgba(58, 44, 30, 0.98)));
    --dw-shell-button-border: var(--dw-control-border, rgba(205, 158, 72, 0.52));
    --dw-shell-danger: var(--dw-danger-bg, rgba(86, 31, 31, 0.94));
    --dw-shell-danger-border: var(--dw-danger-border, rgba(190, 76, 76, 0.5));
}

body.site-razdel .container,
body.site-razdel:has(.messenger) .container {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--dw-shell-top) var(--dw-shell-x) 0;
}

body.site-razdel .article,
body.site-razdel .hero,
body.site-razdel .top_user {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

body.site-razdel .article.messenger {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.site-razdel .theme-switch {
    position: fixed;
    top: 4px;
    right: 10px;
    z-index: 150;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    box-sizing: border-box;
    max-width: calc(100vw - 20px);
}

body.site-razdel .topnav.topnav--single-game {
    position: fixed;
    top: 4px;
    left: 0;
    z-index: 150;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    justify-content: flex-start;
    gap: 0;
}

body.site-razdel .topnav.topnav--single-game .topnav__toggle {
    display: none;
}

body.site-razdel .topnav.topnav--single-game a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    margin: 0;
    border: 1px solid var(--dw-shell-button-border);
    border-radius: 0 999px 999px 0;
    background: var(--dw-shell-button);
    color: var(--dw-shell-link);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

body.site-razdel .bottominfo,
body .bottominfo {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px var(--dw-shell-x, 32px) 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    align-items: start;
    gap: clamp(18px, 4vw, 72px);
    border-top: 1px solid var(--dw-shell-line, rgba(203, 164, 95, 0.28));
    background: transparent;
}

body .bottominfo > .col_50 {
    width: auto;
    max-width: none;
    margin: 0;
    float: none;
}

body .bottominfo > .col_50:nth-child(2),
body .bottomright {
    text-align: right;
}

body .footer-rights {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    color: var(--dw-site-muted, var(--dw-shell-muted, #806247));
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: left;
}

body .footer-nav {
    margin-top: 4px;
}

@media screen and (max-width: 780px) {
    body.site-razdel {
        --dw-shell-x: 10px;
        --dw-shell-top: 54px;
    }

    body.site-razdel .theme-switch {
        right: 6px;
        gap: 5px;
        max-width: calc(100vw - 12px);
    }

    body.site-razdel .theme-switch__btn {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    body.site-razdel .theme-switch__label {
        display: none;
    }

    body.site-razdel .theme-switch__icon {
        width: 20px;
        height: 20px;
    }

    body.site-razdel .messenger--panel .msg-new-form,
    body.site-razdel .bottominfo,
    body .bottominfo {
        grid-template-columns: 1fr;
    }

    body.site-razdel .messenger--panel .msg-new-form .button {
        width: 100%;
        min-width: 0;
        min-height: 42px;
    }

    body .bottominfo > .col_50:nth-child(2),
    body .bottomright {
        text-align: left;
    }
}

/* Final shared shell for public site pages: index.php + razdels/*. */
body.site-shell {
    --dw-site-nav-h: 52px;
    --dw-site-gap: clamp(10px, 2.2vw, 28px);
    --dw-site-max: 1300px;
    --dw-site-edge: max(10px, calc((100vw - var(--dw-site-max)) / 2 + var(--dw-site-gap)));
    --dw-site-brand-rail: 275px;
    --dw-site-switch-rail: 390px;
    --dw-site-surface: var(--dw-shell-bg-soft, rgba(255, 248, 233, 0.94));
    --dw-site-nav-bg: var(--dw-page-bg-solid, var(--dw-site-surface));
    --dw-site-line: var(--dw-shell-line, rgba(203, 164, 95, 0.28));
    --dw-site-line-strong: var(--dw-shell-line-strong, rgba(203, 164, 95, 0.48));
    --dw-site-text: var(--dw-shell-text, #4d352c);
    --dw-site-muted: var(--dw-shell-muted, #8d714e);
    --dw-site-link: var(--dw-shell-link, #a96f28);
    --dw-link: var(--dw-site-link);
    --dw-site-control: var(--dw-shell-button, var(--dw-control-bg, #2d241d));
    --dw-site-control-hover: var(--dw-shell-button-hover, var(--dw-control-bg-hover, #3a2e25));
    --dw-site-shadow: var(--dw-home-shadow, 0 24px 64px -42px rgba(49, 30, 16, 0.62));
    padding-top: var(--dw-site-nav-h);
}

html:has(body.site-shell .messenger) {
    height: 100% !important;
    overflow: hidden !important;
}

body.site-shell:has(.messenger) {
    box-sizing: border-box !important;
    height: 100svh !important;
    overflow: hidden !important;
    padding-top: var(--dw-site-nav-h) !important;
}

body.site-shell:has(.messenger) .container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

body.theme-slabzren .topnav-checkbox {
    display: none !important;
}

body.theme-slabzren:has(.messenger) .theme-switch {
    display: none !important;
}




body.site-shell .container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--dw-site-max);
    min-width: 0;
    margin: 0 auto;
    padding: clamp(16px, 2.4vw, 30px) var(--dw-site-gap) 0;
}

body.site-shell .site-shell-content {
    width: 100%;
    max-width: var(--dw-site-max);
    margin: 0 auto;
    padding: clamp(16px, 2.4vw, 30px) var(--dw-site-gap) 0;
}

body.site-shell .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--dw-site-max);
    margin: 0 auto clamp(10px, 1.8vw, 18px);
    color: var(--dw-site-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

body.site-shell .breadcrumbs a {
    color: var(--dw-site-muted);
    text-decoration: underline;
    text-decoration-color: var(--dw-site-line-strong);
    text-underline-offset: 0.16em;
}

body.site-shell .breadcrumbs a:hover,
body.site-shell .breadcrumbs a:focus-visible,
body.site-shell .breadcrumbs [aria-current="page"] {
    color: var(--dw-site-text);
}

body.theme-slabzren .breadcrumbs {
    font-size: 1rem;
    font-weight: 700;
}


body.site-shell.site-razdel .container,
body.site-shell.site-razdel:has(.messenger) .container {
    max-width: var(--dw-site-max);
    padding-top: clamp(16px, 2.4vw, 30px);
}

    body.site-shell .topnav__container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 220;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        width: 100vw;
        max-width: 100vw;
        min-height: var(--dw-site-nav-h);
        margin: 0;
        padding: 6px calc(var(--dw-site-edge) + var(--dw-site-switch-rail)) 6px calc(var(--dw-site-edge) + var(--dw-site-brand-rail));
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 0;
        background: transparent;
        box-shadow: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

body.site-shell.site-shell-scrolled .topnav__container {
    background: var(--dw-site-nav-bg) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4) !important;
    -webkit-backdrop-filter: blur(15px) saturate(160%) !important;
    backdrop-filter: blur(15px) saturate(160%) !important;
    border: 0 !important;
}

body.site-shell .topnav-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

body.site-shell .topnav {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

body.site-shell .topnav a {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 36px;
    margin: 0;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--dw-site-muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

body.site-shell .topnav a:hover,
body.site-shell .topnav a:focus-visible {
    color: var(--dw-site-text);
    background: color-mix(in srgb, var(--dw-site-surface) 74%, transparent);
}

    body.site-shell .topnav__toggle {
        display: none;
        min-height: 38px;
        padding: 0 12px 0 14px;
        border: 1px solid transparent;
        border-radius: 8px;
        color: var(--dw-site-text);
        background: color-mix(in srgb, var(--dw-site-surface) 40%, transparent);
        font: 800 0.92rem/1.15 Arial, Helvetica, sans-serif;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.22s ease;
        -webkit-tap-highlight-color: transparent;
    }

body.site-shell .topnav__toggle-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 14px;
    flex-shrink: 0;
}

body.site-shell .topnav__toggle-icon::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    box-shadow: 0 6px 0 0 currentColor, 0 12px 0 0 currentColor;
}

body.site-shell .topnav__toggle-label {
    letter-spacing: 0.02em;
}

@media screen and (max-width: 1280px) {
    body.site-shell .topnav__container {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        padding-right: 10px;
        padding-left: 10px;
    }

    body.site-shell .site-brand {
        position: static;
        flex: 0 0 auto;
    }

    body.site-shell .site-brand__name {
        display: none;
    }

    body.site-shell .topnav__toggle {
        display: inline-flex;
        margin-left: 0 !important;
    }

    body.site-shell .topnav-checkbox:not(:checked) ~ .topnav {
        display: none;
    }

    body.site-shell .topnav-checkbox:checked ~ .topnav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        margin-top: 8px;
        padding-bottom: 14px;
        background: var(--dw-site-nav-bg);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
    }

    body.site-shell .topnav-checkbox:checked ~ .topnav a {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 16px;
        border: 0 !important;
        border-radius: 8px;
        background: color-mix(in srgb, var(--dw-site-surface) 60%, transparent);
        color: var(--dw-site-text);
    }

    body.site-shell .topnav-checkbox:checked ~ .topnav a:hover {
        background: color-mix(in srgb, var(--dw-site-surface) 90%, transparent);
    }

    body.site-shell.site-shell-scrolled .topnav__toggle {
        border: 1px solid var(--dw-site-line-strong);
        background: var(--dw-site-control);
        box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.4);
    }
}

body.site-shell .theme-switch {
    position: fixed;
    top: 6px;
    right: var(--dw-site-edge);
    z-index: 240;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

body.site-shell .theme-switch__btn {
    box-sizing: border-box;
    display: inline-flex;
    height: 34px;
    padding: 0 14px 0 11px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

body.site-shell .theme-switch__icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

body.site-shell .theme-switch__label {
    white-space: nowrap;
}

body.site-shell .article:not(.messenger),
body.site-shell .hero,
body.site-shell .top_user {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

body.site-shell .article.messenger {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


body.site-shell .article:not(.messenger) {
    line-height: 1.62;
}

body.site-shell .article form:not(.msg-chip-form):not(.msg-composer):not(.msg-add-form),
body.site-shell .hero form:not(.msg-chip-form):not(.msg-composer):not(.msg-add-form),
body.site-shell .msg-new-form,
body.site-shell .msg-search-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin: 22px auto;
    display: grid;
    gap: 12px;
}

body.site-shell .msg-new-form label,
body.site-shell .msg-search-form label {
    display: block;
    width: 100%;
}

body.site-shell .msg-new-form input,
body.site-shell .msg-new-form select,
body.site-shell .msg-search-form input,
body.site-shell .msg-search-form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.site-shell.site-page-razdels-kontakt .article,
body.site-shell.site-page-razdels-ignor .article,
body.site-shell.site-page-razdels-search .article,
body.site-shell.site-page-razdels-search .hero {
    width: 100% !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left;
}

body.site-shell.site-page-razdels-kontakt .container,
body.site-shell.site-page-razdels-ignor .container,
body.site-shell.site-page-razdels-search .container {
    padding-left: 16px;
    padding-right: 16px;
}

body.site-shell .article form.form br,
body.site-shell .hero form.form br {
    display: none;
}

body.site-shell label {
    display: block;
    max-width: 100%;
}

body.site-shell input[type="email"],
body.site-shell input:not([type]),
body.site-shell input[type="password"],
body.site-shell input[type="text"],
body.site-shell input[type="search"],
body.site-shell input[type="url"],
body.site-shell input[type="tel"],
body.site-shell input[type="number"],
body.site-shell textarea,
body.site-shell select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 10px 12px;
    font: inherit;
}

body.site-shell input[type="radio"],
body.site-shell input[type="checkbox"] {
    width: auto !important;
    max-width: none;
    min-height: auto;
    margin: 0 6px;
    padding: 0;
    vertical-align: middle;
}

body.site-shell input[type="submit"].button,
body.site-shell button.button,
body.site-shell a.button,
body.site-shell .button {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 46px;
    max-width: 100%;
    padding: 0 26px;
    align-items: center;
    justify-content: center;
    color: var(--dw-control-text, #ffe6ad) !important;
    background: linear-gradient(135deg, var(--dw-site-control), var(--dw-site-control-hover));
    border: 1px solid var(--dw-control-border, var(--dw-site-line-strong));
    border-radius: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.site-shell input[type="submit"].button:hover,
body.site-shell button.button:hover,
body.site-shell a.button:hover,
body.site-shell .button:hover {
    color: var(--dw-control-text, #ffe6ad) !important;
    background: var(--dw-site-control-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.site-shell .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.4);
}

body.site-shell a.button--ghost,
body.site-shell .button--ghost {
    background: transparent !important;
    color: var(--dw-site-text) !important;
    border: 1px solid var(--dw-site-line-strong);
    box-shadow: none;
}

body.site-shell a.button--ghost:hover,
body.site-shell .button--ghost:hover {
    background: color-mix(in srgb, var(--dw-site-surface) 50%, transparent) !important;
    color: var(--dw-site-text) !important;
    border-color: var(--dw-site-line-strong);
    box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.25);
}

body.site-shell .account-hero,
body.site-shell .account-panel {
    text-align: left;
}

body.site-shell .account-hero {
    max-width: 960px;
}

body.site-shell .account-hero .button {
    margin: 14px 0 4px;
}

body.site-shell .account-panel {
    display: grid;
    gap: 12px;
}

body.site-shell .account-panel form.form,
body.site-shell .account-panel form:not(.msg-chip-form):not(.msg-composer):not(.msg-add-form):not(.msg-new-form) {
    margin-left: 0;
    margin-right: 0;
}

body.site-shell .account-panel > hr {
    width: min(100%, 720px);
    margin-left: 0;
    margin-right: 0;
}

body.site-shell .account-radio-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border: 0;
}

body.site-shell .account-radio-group legend {
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
    color: var(--dw-site-muted);
    font-size: 0.94rem;
}

body.site-shell .account-radio {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 42px;
    padding: 0 14px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--dw-site-line-strong);
    border-radius: 8px;
    color: var(--dw-site-text);
    background: color-mix(in srgb, var(--dw-site-surface) 70%, transparent);
}

body.site-shell.site-page-razdels-pravila .container > div.clearfix,
body.site-shell.site-page-razdels-pravila .container > hr {
    display: none;
}

body.site-shell.site-page-razdels-pravila .hero,
body.site-shell.site-page-razdels-pravila .article:not(.messenger) {
    width: min(100%, 1040px);
    max-width: 1040px;
    text-align: left;
}

body.site-shell.site-page-razdels-pravila .hero .center {
    text-align: left;
}

body.site-shell.site-page-razdels-pravila .hero {
    margin-bottom: 8px;
}

body.site-shell.site-page-razdels-pravila .legal-grid {
    display: block;
    line-height: 1.7;
}

body.site-shell.site-page-razdels-pravila .legal-grid > .col_33,
body.site-shell.site-page-razdels-pravila .legal-grid > .col_100 {
    float: none;
    width: 100%;
    margin: 0 0 22px;
}

body.site-shell.site-page-razdels-pravila .legal-grid > .clearfix {
    display: none;
}

body.site-shell.site-page-razdels-pravila .legal-grid .H2game {
    margin-top: 26px;
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

body.site-shell .ranking-page,
body.site-shell .legal-page {
    width: min(100%, 1120px);
    margin: 0 auto;
}

body.site-shell .ranking-page > .breadcrumbs,
body.site-shell .legal-page > .breadcrumbs {
    margin-left: 0;
    margin-right: 0;
}

body.site-shell .ranking-hero,
body.site-shell .ranking-intro,
body.site-shell .ranking-summary,
body.site-shell .ranking-profile,
body.site-shell .legal-page > .hero,
body.site-shell .legal-page > .article {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    text-align: left;
}

body.site-shell .ranking-page .ranking-hero {
    padding: clamp(28px, 5vw, 58px);
    text-align: left;
}

body.site-shell .ranking-page .ranking-hero .landing-eyebrow {
    margin: 0 0 10px;
    color: var(--dw-accent);
    font: 800 0.76rem/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.site-shell .ranking-page .ranking-hero h1 {
    max-width: 850px;
    margin: 8px 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

body.site-shell .ranking-page .ranking-hero p:last-child {
    max-width: 760px;
    margin: 0;
    line-height: 1.65;
}

body.site-shell .ranking-intro,
body.site-shell .ranking-summary,
body.site-shell .ranking-status {
    margin: 14px 0;
    padding: 20px clamp(18px, 3vw, 30px);
    border: 1px solid var(--dw-site-line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--dw-site-surface) 88%, transparent);
    line-height: 1.65;
}

body.site-shell .ranking-summary p {
    margin: 4px 0;
}

body.site-shell .ranking-grid,
body.site-shell .arena-ranking-list {
    display: grid;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

body.site-shell .ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.site-shell .ranking-card {
    box-sizing: border-box;
    display: flex;
    min-height: 132px;
    padding: 22px;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--dw-site-line);
    border-radius: 14px;
    background: var(--dw-site-surface);
    color: var(--dw-site-text);
    text-decoration: none;
    box-shadow: var(--dw-site-shadow);
    transition: border-color 160ms ease, transform 160ms ease;
}

body.site-shell .ranking-card:hover,
body.site-shell .ranking-card:focus-visible {
    border-color: var(--dw-accent);
    color: var(--dw-site-text);
    transform: translateY(-2px);
}

body.site-shell .ranking-card strong {
    color: var(--dw-site-heading);
    font-size: 1.12rem;
}

body.site-shell .ranking-card span,
body.site-shell .ranking-card small {
    margin-top: 8px;
}

body.site-shell .ranking-card small {
    color: var(--dw-accent);
}

body.site-shell .arena-ranking-list {
    gap: 10px;
}

body.site-shell .arena-ranking-list > li {
    display: grid;
    min-height: 68px;
    padding: 14px 18px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--dw-site-line);
    border-radius: 12px;
    background: var(--dw-site-surface);
}

body.site-shell .arena-ranking-list > li.is-leader {
    border-color: var(--dw-accent);
}

body.site-shell .ranking-position {
    color: var(--dw-accent);
    font: 800 1.25rem/1 Georgia, serif;
}

body.site-shell .ranking-score {
    color: var(--dw-site-muted);
}

body.site-shell .legal-page > .hero,
body.site-shell .legal-page > .article {
    padding-left: clamp(18px, 4vw, 42px);
    padding-right: clamp(18px, 4vw, 42px);
}

body.site-shell .legal-page > .legal-intro,
body.site-shell .legal-page > .article {
    line-height: 1.72;
}

body.site-shell .legal-page > .legal-intro {
    margin-top: 8px;
}

body.site-shell .legal-page .legal-grid > .col_33,
body.site-shell .legal-page .legal-grid > .col_100 {
    float: none;
    width: 100%;
    margin: 0 0 22px;
}

@media screen and (max-width: 780px) {
    body.site-shell .ranking-grid {
        grid-template-columns: 1fr;
    }

    body.site-shell .arena-ranking-list > li {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    body.site-shell .ranking-score {
        grid-column: 2;
    }
}

body.site-shell.site-razdel .topnav--guest {
    position: static;
    inset: auto;
    z-index: auto;
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    padding: 0;
    gap: 12px;
    justify-content: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.site-shell.site-razdel .topnav--guest a {
    min-height: 36px;
    padding: 0 14px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    color: var(--dw-site-muted);
    background: transparent;
    box-shadow: none;
    font-size: 0.82rem;
}

body.site-shell.site-razdel .topnav--guest a:hover,
body.site-shell.site-razdel .topnav--guest a:focus-visible {
    color: var(--dw-site-text);
    background: color-mix(in srgb, var(--dw-site-surface) 74%, transparent);
}

body.site-shell .auth-page {
    box-sizing: border-box;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(30px, 5vw, 64px) 0 clamp(46px, 7vw, 84px);
}

body.site-shell .auth-heading {
    max-width: 760px;
    margin: 0 auto clamp(24px, 4vw, 38px);
    text-align: center;
}

body.site-shell .auth-eyebrow {
    margin: 0 0 10px;
    color: var(--dw-accent);
    font: 800 0.76rem/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.site-shell .auth-heading h1 {
    margin: 0;
    color: var(--dw-site-heading);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

body.site-shell .auth-heading > p:last-child {
    max-width: 680px;
    margin: 16px auto 0;
    color: var(--dw-site-muted);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.65;
}

body.site-shell .auth-card {
    box-sizing: border-box;
    width: min(100%, 680px);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--dw-site-line);
    border-radius: 18px;
    background: var(--dw-site-surface);
    color: var(--dw-site-text);
    box-shadow: var(--dw-site-shadow);
    text-align: left;
}

body.site-shell .auth-card h2,
body.site-shell .auth-card h3 {
    margin-top: 0;
    color: var(--dw-site-heading);
}

body.site-shell .auth-card h2 {
    margin-bottom: 8px;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

body.site-shell .auth-card h3 {
    margin-bottom: 12px;
    font-size: 1.02rem;
}

body.site-shell .auth-social-block > p,
body.site-shell .auth-card--intro > p {
    color: var(--dw-site-muted);
    line-height: 1.6;
}

body.site-shell .auth-socials {
    display: flex;
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

body.site-shell .auth-socials a {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--dw-site-line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--dw-site-surface) 76%, transparent);
    transition: border-color 160ms ease, transform 160ms ease;
}

body.site-shell .auth-socials a:hover,
body.site-shell .auth-socials a:focus-visible {
    border-color: var(--dw-accent);
    transform: translateY(-2px);
}

body.site-shell .auth-socials img {
    display: block;
    width: 36px;
    height: 36px;
}

body.site-shell .auth-social-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.site-shell .auth-divider {
    display: grid;
    margin: 28px 0;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: var(--dw-site-muted);
    font-size: 0.86rem;
}

body.site-shell .auth-divider::before,
body.site-shell .auth-divider::after {
    content: '';
    height: 1px;
    background: var(--dw-site-line);
}

body.site-shell .auth-form {
    display: grid;
    width: 100%;
    margin: 0;
    gap: 18px;
}

body.site-shell .auth-fieldset {
    display: grid;
    min-width: 0;
    margin: 0;
    padding: 0;
    gap: 8px;
    border: 0;
}

body.site-shell .auth-fieldset input + .auth-field-help {
    margin-bottom: 10px;
}

body.site-shell .auth-field-help {
    color: var(--dw-site-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

body.site-shell .auth-captcha {
    display: flex;
    min-width: 0;
    margin: 4px 0;
    padding: 14px;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    border: 1px solid var(--dw-site-line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--dw-site-surface) 76%, transparent);
}

body.site-shell .auth-captcha img {
    max-width: 100%;
    height: auto;
}

body.site-shell .auth-captcha output {
    padding: 6px 10px;
    border: 1px solid var(--dw-site-line-strong);
    color: var(--dw-site-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

body.site-shell .auth-captcha p {
    flex-basis: 100%;
    margin: 0;
    color: var(--dw-site-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

body.site-shell .auth-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 12rem;
    resize: vertical;
}

body.site-shell .site-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.site-shell .auth-form label:not(.auth-check) {
    color: var(--dw-site-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

body.site-shell .auth-form input:not([type='checkbox']) {
    width: 100%;
}

body.site-shell .auth-form-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.site-shell .auth-check {
    display: inline-flex;
    margin: 0;
    align-items: center;
    gap: 7px;
    color: var(--dw-site-muted);
    font-size: 0.9rem;
}

body.site-shell .auth-check input[type='checkbox'] {
    margin: 0;
}

body.site-shell .auth-check--agreement {
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--dw-site-line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--dw-site-surface) 76%, transparent);
    line-height: 1.55;
}

body.site-shell .auth-check--agreement input[type='checkbox'] {
    margin-top: 0.28em;
    flex: 0 0 auto;
}

body.site-shell .auth-check--agreement a {
    font-weight: 700;
}

body.site-shell .legal-heading {
    text-align: left;
}

body.site-shell .legal-heading h1,
body.site-shell .legal-heading p {
    max-width: 880px;
    margin-right: 0;
    margin-left: 0;
}

body.site-shell .legal-document {
    display: grid;
    gap: clamp(24px, 4vw, 42px);
}

body.site-shell .legal-document section {
    padding-bottom: clamp(22px, 3vw, 34px);
    border-bottom: 1px solid var(--dw-site-line);
}

body.site-shell .legal-document section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

body.site-shell .legal-document h2 {
    margin: 0 0 14px;
    color: var(--dw-site-heading);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.2;
}

body.site-shell .legal-document p,
body.site-shell .legal-document li {
    color: var(--dw-site-text);
    line-height: 1.72;
}

body.site-shell .legal-document p {
    margin: 0 0 12px;
}

body.site-shell .legal-document p:last-child {
    margin-bottom: 0;
}

body.site-shell .legal-document ul {
    margin: 12px 0 16px;
    padding-left: 1.35em;
}

body.site-shell .legal-document li + li {
    margin-top: 8px;
}

body.site-shell .auth-form .auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
}

body.site-shell .auth-alternative {
    margin: 20px auto 0;
    text-align: center;
}

body.site-shell .auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(16px, 2.5vw, 28px);
}

body.site-shell .auth-layout .auth-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

body.site-shell .auth-card--intro h3 {
    margin-top: 28px;
}

body.site-shell .auth-requirements {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--dw-site-muted);
    line-height: 1.65;
}

body.site-shell .auth-requirements li + li {
    margin-top: 8px;
}

body.site-shell .auth-help {
    margin: 22px 0 0;
}

body.site-shell .auth-error {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid rgba(190, 76, 76, 0.62);
    border-radius: 10px;
    color: var(--dw-site-text);
    background: color-mix(in srgb, #8e2d2d 18%, var(--dw-site-surface));
}

@media screen and (max-width: 780px) {
    body.site-shell.site-razdel .topnav--guest {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
    }

    body.site-shell .auth-page {
        padding-top: 24px;
    }

    body.site-shell .auth-layout {
        grid-template-columns: 1fr;
    }

    body.site-shell .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media screen and (max-width: 780px) {
    body.site-shell {
        --dw-site-nav-h: 54px;
        --dw-site-gap: 10px;
    }

    body.site-shell .container,
    body.site-shell.site-razdel .container,
    body.site-shell.site-razdel:has(.messenger) .container {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        padding-top: 12px;
        padding-left: var(--dw-site-gap);
        padding-right: var(--dw-site-gap);
        overflow-x: hidden;
    }

    body.site-shell .hero,
    body.site-shell .article:not(.messenger),
    body.site-shell .top_user,
    body.site-shell h1,
    body.site-shell h2,
    body.site-shell h3,
    body.site-shell .H2game,
    body.site-shell p,
    body.site-shell label,
    body.site-shell .info,
    body.site-shell .message,
    body.site-shell .warning {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    body.site-shell .topnav__container {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        padding: 8px 12px !important;
        transform: none !important;
        overflow: visible !important;
    }

    body.site-shell .topnav {
        justify-content: flex-start;
    }

    body.site-shell .topnav__toggle {
        display: inline-flex;
        margin-left: 0 !important;
    }

    body.site-shell .topnav-checkbox:not(:checked) ~ .topnav {
        display: none !important;
    }

    body.site-shell .topnav-checkbox:checked ~ .topnav {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        margin-top: 12px;
        padding: 12px;
        background: var(--dw-site-nav-bg) !important;
        border-radius: 16px;
        box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(20px);
        border: 0 !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 250;
    }

    body.site-shell .topnav-checkbox:checked ~ .topnav a {
        width: 100%;
        justify-content: flex-start;
        min-height: 48px;
        padding: 12px 18px;
        border: 0 !important;
        border-radius: 12px;
        background: color-mix(in srgb, var(--dw-site-surface) 40%, transparent);
        color: var(--dw-site-text);
        transition: all 0.2s ease;
    }

    body.site-shell .topnav-checkbox:checked ~ .topnav a:hover {
        background: color-mix(in srgb, var(--dw-site-surface) 80%, transparent);
        transform: translateX(5px);
    }

    body.site-shell .theme-switch {
        top: 6px;
        right: 6px;
        max-width: 88px;
        gap: 5px;
    }

    body.site-shell .theme-switch__btn {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    body.site-shell .theme-switch__label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    body.site-shell .theme-switch__icon {
        width: 20px;
        height: 20px;
    }

    body.site-shell .col_50,
    body.site-shell .col_33,
    body.site-shell .col_25,
    body.site-shell .col_66 {
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ============================================================
   Premium landing polish тАФ shared across all site-shell pages.
   Uses theme-aware CSS vars so default/night/slabzren adapt.
   ============================================================ */

/* --- Hero sections: dramatic, centered, with depth --- */
body.site-shell .hero {
    position: relative;
    text-align: center;
    padding: clamp(30px, 5.5vw, 64px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 44px);
    margin-bottom: clamp(12px, 2vw, 24px);
}

body.site-shell .hero h1 {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-wrap: balance;
    margin: 0 0 0.4em;
    opacity: 0.92;
}

body.site-shell .hero > p,
body.site-shell .hero .center > p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--dw-site-muted);
    max-width: 680px;
    margin: 14px auto 0;
    line-height: 1.62;
}

body.site-shell .hero .button + .button {
    margin-left: 10px;
}

/* --- Feature-row headings on game landings --- */
body.site-shell .H2game {
    font-size: clamp(1.3rem, 2.6vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -0.01em;
}

/* --- Screenshot images: rounded, shadowed, premium --- */
body.site-shell img.screen {
    border-radius: 12px;
    box-shadow: 0 12px 36px -14px rgba(0, 0, 0, 0.5);
}

/* --- Game cards (root index.php): lift on hover --- */
body.site-shell .game-cards .marginindex {
    border: 1px solid var(--dw-site-line);
    box-shadow: 0 6px 22px -10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.site-shell .game-cards .marginindex:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.42);
}

body.site-shell .buttoncard {
    border-radius: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease;
}

/* --- Article cards: subtle premium depth --- */
body.site-shell .article:not(.messenger) {
    border-radius: 14px;
}

/* --- Top users grid (rating page) --- */
body.site-shell .top_users {
    border-radius: 12px;
    box-shadow: 0 4px 18px -10px rgba(0, 0, 0, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.site-shell .top_users:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4);
}

/* --- Mobile: button group stacks --- */
@media screen and (max-width: 780px) {
    body.site-shell .hero .button + .button {
        margin-left: 0;
        margin-top: 10px;
    }

    body.site-shell .hero {
        text-align: center;
    }
}

/* ============================================================
   Landing pages тАФ ╨╗╤С╨│╨║╨╕╨╣ ╨▒╤Г╨╝╨░╨╢╨╜╤Л╨╣ ╤Б╤В╨╕╨╗╤М.
   ╨Ъ╨░╤А╤В╨╛╤З╨║╨╕ ╨╕╨│╤А ╨╕╤Б╨┐╨╛╨╗╤М╨╖╤Г╤О╤В ╤Б╨▓╨╛╤О ╨▒╨░╨╖╨╛╨▓╤Г╤О ╤Б╤В╨╕╨╗╨╕╨╖╨░╤Ж╨╕╤О ╨╕╨╖ skin.css
   (╨▒╨╡╨╢╨╡╨▓╤Л╨╣ ╤Д╨╛╨╜ + ╨╝╤П╨│╨║╨░╤П ╤В╨╡╨╜╤М). ╨Ч╨┤╨╡╤Б╤М ╤В╨╛╨╗╤М╨║╨╛ ╨║╨╛╤А╤А╨╡╨║╤В╨╕╤А╨╛╨▓╨║╨╕
   ╤Б╨╡╤В╨║╨╕, ╤В╨╕╨┐╨╛╨│╤А╨░╤Д╨╕╨║╨╕ ╨╕ hover-╤Н╤Д╤Д╨╡╨║╤В╨░. ╨Э╨╕╨║╨░╨║╨╕╤Е ┬л╤Г╨│╨╛╨╗╨║╨╛╨▓┬╗ ╨╕
   ╨║╨╛╤А╨┐╨╛╤А╨░╤В╨╕╨▓╨╜╤Л╤Е ╤А╨░╨╝╨╛╨║.
   ============================================================ */
body.site-shell {
    --dw-accent:     var(--dw-shell-accent, #d4a447);
}

/* --- ╨Ъ╨░╤А╤В╨╛╤З╨║╨╕ ╨╕╨│╤А ╨╜╨░ ╨║╨╛╤А╨╜╨╡╨▓╨╛╨╣ index.php --- */
body.site-shell .game-cards {
    gap: clamp(24px, 4vw, 56px);
}

body.site-shell .game-cards .col_50 {
    display: flex;
}

body.site-shell .game-cards .marginindex {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
    margin: 0;
    padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 30px) clamp(18px, 2vw, 24px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.site-shell .game-cards .marginindex:hover {
    transform: translateY(-2px);
}

/* ╨б╨╛╨┤╨╡╤А╨╢╨╕╨╝╨╛╨╡ ╨║╨░╤А╤В╨╛╤З╨║╨╕: ╨╛╨▒╨╗╨╛╨╢╨║╨░, ╨╖╨░╨│╨╛╨╗╨╛╨▓╨╛╨║, ╨╛╨┐╨╕╤Б╨░╨╜╨╕╨╡, ╨║╨╜╨╛╨┐╨║╨░ */
body.site-shell .game-cards .imgtittle {
    margin-bottom: clamp(10px, 1.5vw, 16px);
}

body.site-shell .game-cards .marginindex h2,
body.site-shell .game-cards .marginindex h2 a {
    margin: 0 0 12px;
    color: var(--dw-site-text);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
}

body.site-shell .game-cards .marginindex h2 a:hover {
    color: var(--dw-accent);
}

/* ╨Ю╨┐╨╕╤Б╨░╨╜╨╕╨╡ ╨╕╨│╤А╤Л */
body.site-shell .game-cards .cardinfo {
    flex: 1 1 auto;
    margin: 0 0 16px;
    color: var(--dw-site-text);
    font-size: 0.97rem;
    line-height: 1.6;
}

/* ╨Ъ╨╜╨╛╨┐╨║╨░ ╨║╨░╤А╤В╨╛╤З╨║╨╕ */
body.site-shell .game-cards .buttoncard {
    display: inline-block;
    width: auto;
    min-width: 200px;
    margin: 6px 0 0;
    padding: 12px 24px;
    border-radius: 4px;
    border: 1px solid var(--dw-site-line-strong);
    background: var(--dw-site-control);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.10));
    color: #fff8e9 !important;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px -8px rgba(0, 0, 0, 0.6);
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

body.site-shell .game-cards .buttoncard:hover,
body.site-shell .game-cards a:hover .buttoncard {
    background: var(--dw-site-control-hover);
    color: var(--dw-accent) !important;
    border-color: var(--dw-accent);
    transform: translateY(-1px);
}

/* --- ╨С╨╗╨╛╨║╨╕ ╨╛╨┐╨╕╤Б╨░╨╜╨╕╨╣ ╨╜╨░ legends/arena index.php ---
   ╨и╨╕╤А╨╛╨║╨╕╨╣ ╨▒╤Г╨╝╨░╨╢╨╜╤Л╨╣ ╤Б╤В╨╕╨╗╤М: ╤В╨╡╨║╤Б╤В ╨╕ ╤Б╨║╤А╨╕╨╜╤И╨╛╤В ╨╜╨░ ╨╛╨┤╨╜╨╛╨╣ ╨╗╨╕╨╜╨╕╨╕,
   ╨▒╨╡╨╖ ╤А╨░╨╝╨╛╨║ ╨╕ ╨║╨░╤А╤В╨╛╤З╨╡╨║. ╨в╨╛╨╗╤М╨║╨╛ ╨▓╨╛╨╖╨┤╤Г╤Е ╨╕ ╨┐╤Г╨╜╨║╤В╨╕╤А╨╜╤Л╨╣ ╤А╨░╨╖╨┤╨╡╨╗╨╕╤В╨╡╨╗╤М. --- */
body.site-shell .article .main,
body.site-shell .article .mainrevers {
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    padding: clamp(14px, 2.4vw, 26px) 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.site-shell .article .main::before,
body.site-shell .article .mainrevers::before {
    content: none;
}

body.site-shell .article .main .col_50,
body.site-shell .article .mainrevers .col_50 {
    float: none;
    width: auto;
    flex: 1 1 44%;
    min-width: 0;
    margin: 0;
}

body.site-shell .article .main .col_50 img.screen,
body.site-shell .article .mainrevers .col_50 img.screen {
    display: block;
    margin: 0 auto;
}

/* --- ╨Ч╨░╨│╨╛╨╗╨╛╨▓╨║╨╕ ╤Д╨╕╤З╨╡╤А╨╛╨▓ (.H2game) тАФ ╨╗╤С╨│╨║╨╛╨╡ ╨▓╤Л╨┤╨╡╨╗╨╡╨╜╨╕╨╡ ╨▒╨╡╨╖ ╤А╨░╨╝╨╛╨║ --- */
body.site-shell .article .H2game {
    margin: 0 0 0.4em;
}

/* --- hr ╤А╨░╨╖╨┤╨╡╨╗╨╕╤В╨╡╨╗╨╕ ╨▓ article тАФ ╨╝╨╡╨╗╨║╨╕╨╣ ╨┐╤Г╨╜╨║╤В╨╕╤А (╤И╤В╤А╨╕╤Е╨╕),
     ╤Е╨╛╤А╨╛╤И╨╛ ╨╗╨╛╨╢╨╕╤В╤Б╤П ╨╜╨░ ╨▒╤Г╨╝╨░╨╢╨╜╤Л╨╣ ╨╕╨╜╤В╨╡╤А╤Д╨╡╨╣╤Б --- */
body.site-shell .article > hr,
body.site-shell .article .col_100 hr {
    display: none;
}

@media screen and (max-width: 780px) {
    body.site-shell .game-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    body.site-shell .game-cards .col_50 {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    body.site-shell .game-cards .marginindex {
        padding: 18px 16px;
    }

    body.site-shell .article .main,
    body.site-shell .article .mainrevers {
        padding: 14px 12px;
        flex-direction: column !important;
        text-align: center;
    }

    body.site-shell .article .main .col_50,
    body.site-shell .article .mainrevers .col_50 {
        width: 100% !important;
        flex: 1 1 auto !important;
        margin-bottom: 20px;
    }

    body.site-shell .article .main .col_50 img.screen,
    body.site-shell .article .mainrevers .col_50 img.screen {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

}

/* ============================================================
   ╨в╨╡╨║╤Б╤В╨╛╨▓╤Л╨╡ SEO-╨▒╨╗╨╛╨║╨╕ ╨╜╨░ ╨│╨╗╨░╨▓╨╜╤Л╤Е ╤Б╤В╤А╨░╨╜╨╕╤Ж╨░╤Е.
   ╨Ы╤С╨│╨║╨╕╨╣ ╨▒╤Г╨╝╨░╨╢╨╜╤Л╨╣ ╤Б╤В╨╕╨╗╤М: ╤В╨╛╨╗╤М╨║╨╛ ╨▓╨╛╨╖╨┤╤Г╤Е ╨╕ ╤В╨╕╨┐╨╛╨│╤А╨░╤Д╨╕╨║╨░.
   ╨С╨╡╨╖ ╨║╨░╤А╤В╨╛╤З╨╡╨║ ╨╕ ╤А╨░╨╝╨╛╨║.
   ============================================================ */
body.site-shell .article .col_100 > h2 {
    margin: clamp(18px, 2.6vw, 30px) 0 clamp(6px, 0.9vw, 10px);
    color: var(--dw-site-text);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

body.site-shell .article .col_100 > h2:first-child {
    margin-top: 0;
}

body.site-shell .article .col_100 > p {
    margin: 0 0 clamp(10px, 1.4vw, 14px);
    color: var(--dw-site-text);
    font-size: clamp(0.97rem, 1.4vw, 1.08rem);
    line-height: 1.7;
}

body.site-shell .article .col_100 > p:last-child {
    margin-bottom: 0;
}

/* ╨б╤Б╤Л╨╗╨║╨╕ ╨▓╨╜╤Г╤В╤А╨╕ ╨┐╨░╤А╨░╨│╤А╨░╤Д╨╛╨▓ */
body.site-shell .article .col_100 > p a,
body.site-shell .article .col_100 > p a:visited {
    color: var(--dw-site-link, var(--dw-accent));
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.2);
    text-underline-offset: 2px;
}

body.site-shell .article .col_100 > p a:hover {
    color: var(--dw-accent);
    text-decoration-color: var(--dw-accent);
}

/* Public landing pages: clear first screen, keyboard access and mobile-safe actions. */
body.site-shell .skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    max-width: calc(100vw - 16px);
    padding: 12px 18px;
    border: 2px solid var(--dw-site-line-strong);
    border-radius: 8px;
    background: var(--dw-site-control);
    color: var(--dw-control-text, #ffe6ad) !important;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(calc(-100% - 16px));
    transition: transform 0.15s ease;
}

body.site-shell .skip-link:focus {
    transform: translateY(0);
}

body.site-shell #main-content:focus {
    outline: none;
}

body.site-shell .landing-hero {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

body.site-shell .landing-hero .landing-eyebrow {
    margin: 0 auto 10px;
    color: var(--dw-accent);
    font-size: clamp(0.78rem, 1.2vw, 0.92rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.site-shell .landing-hero h1 {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 4.8vw, 3.25rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

body.site-shell .landing-hero .landing-lead {
    max-width: 760px;
    margin-top: clamp(14px, 2vw, 20px);
    color: var(--dw-site-text);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

body.site-shell .landing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(20px, 3vw, 28px);
}

body.site-shell .landing-hero .landing-actions .button {
    margin: 0;
}

body.site-shell .landing-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px clamp(18px, 3vw, 34px);
    max-width: 820px;
    margin: clamp(22px, 3vw, 30px) auto 0;
    padding: clamp(16px, 2vw, 20px) 0 0;
    border-top: 1px solid var(--dw-site-line);
    color: var(--dw-site-muted);
    font-size: 0.94rem;
    line-height: 1.45;
    list-style-position: inside;
}

body.site-shell .landing-benefits li::marker {
    color: var(--dw-accent);
}

body.site-shell :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--dw-accent);
    outline-offset: 3px;
}

@media screen and (max-width: 520px) {
    body.site-shell .landing-hero {
        padding-right: 12px;
        padding-left: 12px;
    }

    body.site-shell .landing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.site-shell .landing-actions .button,
    body.site-shell .game-cards .buttoncard {
        width: 100%;
        min-width: 0;
    }

    body.site-shell .landing-benefits {
        display: grid;
        justify-content: stretch;
        gap: 8px;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.site-shell *,
    body.site-shell *::before,
    body.site-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ============================================================
   «Эпоха Тьмы: Легенды»: фэнтезийная главная страницы игры.
   ============================================================ */
body.site-shell {
    --dw-home-hero: #17110d;
    --dw-home-hero-text: #f4e5c2;
    --dw-home-card: rgba(255, 249, 238, 0.92);
    --dw-home-card-text: #49372d;
    --dw-home-soft: rgba(86, 62, 42, 0.08);
    --dw-home-panel: rgba(248, 239, 224, 0.88);
    --dw-home-panel-alt: rgba(238, 225, 204, 0.78);
    --dw-home-panel-border: rgba(126, 92, 51, 0.32);
    --dw-home-shadow: 0 28px 80px -48px rgba(49, 30, 16, 0.65);
    font-size: 16px;
    line-height: 1.6;
}

body.theme-night.site-shell {
    --dw-home-hero: #100c09;
    --dw-home-hero-text: #f2dfb5;
    --dw-home-card: rgba(25, 20, 16, 0.96);
    --dw-home-card-text: #e0c99b;
    --dw-home-soft: rgba(219, 168, 76, 0.08);
    --dw-home-panel: rgba(20, 16, 13, 0.96);
    --dw-home-panel-alt: rgba(27, 21, 16, 0.94);
    --dw-home-panel-border: rgba(201, 168, 106, 0.28);
    --dw-home-shadow: 0 32px 90px -44px rgba(0, 0, 0, 0.98);
}

body.theme-night.site-page-home {
    background:
        radial-gradient(circle at 50% 0, rgba(112, 74, 31, 0.14), transparent 38rem),
        linear-gradient(180deg, #0b0907 0, #0f0c09 55%, #0b0907 100%);
}

body.site-shell .site-brand {
    position: absolute;
    left: max(10px, calc((100vw - var(--dw-site-max)) / 2 + var(--dw-site-gap)));
    top: 7px;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    color: var(--dw-site-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

body.site-shell .site-brand__mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: center / contain no-repeat url('img/brand/undead-mark.webp');
    color: var(--dw-accent);
}

body.site-shell .site-brand__fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body.site-shell .site-brand:hover,
body.site-shell .site-brand:focus-visible {
    color: var(--dw-accent);
}

/* Бренд и кнопка меню занимают отдельные ячейки на адаптивной панели.
   Правило расположено после базового absolute-позиционирования бренда,
   поэтому каскад не возвращает логотип поверх кнопки на промежуточных ширинах. */
@media screen and (max-width: 1280px) {
    body.site-shell .topnav__container {
        column-gap: 10px;
    }

    body.site-shell .site-brand {
        position: static;
        top: auto;
        left: auto;
        display: inline-grid;
        width: 38px;
        min-width: 38px;
        min-height: 38px;
        flex: 0 0 38px;
        place-items: center;
        gap: 0;
    }

    body.site-shell .site-brand__mark {
        width: 32px;
        height: 32px;
    }

    body.site-shell .site-brand__name {
        display: none;
    }

    body.site-shell .topnav__toggle {
        position: relative;
        z-index: 1;
        flex: 0 0 auto;
        margin-left: 0 !important;
    }
}

body.site-page-home .container {
    padding-top: clamp(14px, 2vw, 24px);
}

body.site-page-home .landing-hero {
    isolation: isolate;
    overflow: hidden;
    display: flex;
    min-height: clamp(410px, 46vh, 500px);
    max-width: 1240px;
    padding: clamp(40px, 5vw, 62px) clamp(20px, 7vw, 90px);
    align-items: center;
    border: 1px solid rgba(216, 169, 79, 0.32);
    border-radius: 6px;
    background-color: var(--dw-home-hero);
    background-image:
        radial-gradient(circle at 50% 115%, rgba(196, 132, 44, 0.22), transparent 38%),
        radial-gradient(circle at 15% 15%, rgba(136, 62, 35, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 35%, rgba(255, 255, 255, 0.018));
    color: var(--dw-home-hero-text);
    box-shadow: var(--dw-home-shadow), inset 0 0 70px rgba(0, 0, 0, 0.34);
}

body.site-page-home .landing-hero::before {
    content: '';
    position: absolute;
    inset: 14px;
    z-index: -1;
    border: 1px solid rgba(216, 169, 79, 0.12);
    border-radius: 2px;
    pointer-events: none;
}

body.site-page-home .landing-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    z-index: -1;
    width: min(62%, 700px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #d9aa55, transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 26px rgba(217, 170, 85, 0.62);
}

body.site-page-home .landing-hero .center {
    position: relative;
    isolation: isolate;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

body.site-page-home .landing-hero .center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: clamp(260px, 34vw, 410px);
    aspect-ratio: 1;
    background: url('img/brand/undead-mark.webp') center / contain no-repeat;
    opacity: 0.035;
    filter: grayscale(1) sepia(1);
    transform: translate(-50%, -48%);
    pointer-events: none;
}

body.site-page-home .landing-hero .landing-eyebrow {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    box-sizing: border-box;
    width: min(100%, 680px);
    min-height: 58px;
    margin: 0 auto 22px;
    padding: 13px clamp(34px, 6vw, 76px);
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 1px solid rgba(216, 169, 79, 0.42);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(216, 169, 79, 0.09), rgba(52, 32, 18, 0.16)),
        rgba(20, 14, 10, 0.3);
    color: #d9aa55;
    font: 800 clamp(0.72rem, 1vw, 0.82rem)/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.14em;
    text-align: center;
    text-wrap: balance;
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
    box-shadow: inset 0 0 24px rgba(216, 169, 79, 0.05), 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.site-page-home .landing-hero .landing-eyebrow::before {
    content: '';
    position: absolute;
    inset: 5px 12px;
    z-index: 0;
    border-top: 1px solid rgba(216, 169, 79, 0.2);
    border-bottom: 1px solid rgba(216, 169, 79, 0.2);
    pointer-events: none;
}

body.site-page-home .landing-hero .landing-eyebrow::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(216, 169, 79, 0.62);
    background: var(--dw-home-hero);
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 0 3px rgba(216, 169, 79, 0.05);
    pointer-events: none;
}

body.site-page-home .landing-hero h1 {
    max-width: 900px;
    margin: 0 auto;
    color: var(--dw-home-hero-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.35rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
}

body.site-page-home .landing-hero .landing-lead {
    max-width: 760px;
    margin: clamp(22px, 3vw, 30px) auto 0;
    color: rgba(244, 229, 194, 0.86);
    font-size: clamp(1rem, 1.55vw, 1.18rem);
    line-height: 1.7;
}

body.site-page-home .landing-actions {
    margin-top: clamp(24px, 3.5vw, 36px);
}

body.site-page-home .landing-actions .button {
    min-width: 220px;
    min-height: 52px;
    border-radius: 3px;
}

body.site-page-home .landing-actions .button:first-child {
    border-color: rgba(222, 175, 86, 0.72);
    background: linear-gradient(180deg, #7b5524, #4c3218);
    box-shadow: 0 12px 30px -16px rgba(218, 165, 76, 0.75), inset 0 1px rgba(255, 255, 255, 0.14);
}

body.site-page-home .landing-actions .button--ghost {
    border-color: rgba(222, 175, 86, 0.34);
    color: #ead7ad !important;
}

body.site-page-home .landing-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 880px;
    margin-top: clamp(26px, 3.5vw, 36px);
    padding: 16px 0;
    border-top: 1px solid rgba(216, 169, 79, 0.18);
    border-bottom: 1px solid rgba(216, 169, 79, 0.12);
    color: rgba(244, 229, 194, 0.68);
    font-size: 0.88rem;
    list-style: none;
}

body.site-page-home .landing-benefits li {
    display: flex;
    min-width: 0;
    padding: 0 clamp(12px, 2vw, 24px);
    align-items: center;
    justify-content: center;
    gap: 9px;
    line-height: 1.45;
    text-wrap: balance;
}

body.site-page-home .landing-benefits li + li {
    border-left: 1px solid rgba(216, 169, 79, 0.14);
}

body.site-page-home .landing-benefits li::before {
    content: '';
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border: 1px solid #d9aa55;
    transform: rotate(45deg);
}

body.site-page-home:not(.theme-night):not(.theme-slabzren) .landing-hero {
    border-color: var(--dw-home-panel-border);
    background-color: var(--dw-home-card);
    background-image:
        linear-gradient(135deg, rgb(255 249 238 / 78%), rgb(248 239 224 / 86%)),
        url('../topusers.webp');
    background-position: center, center;
    background-size: auto, cover;
    background-repeat: no-repeat, repeat;
    color: var(--dw-home-card-text);
    box-shadow: var(--dw-home-shadow), inset 0 0 70px rgb(126 92 51 / 7%);
}

body.site-page-home:not(.theme-night):not(.theme-slabzren) .landing-hero .landing-eyebrow {
    border-color: var(--dw-home-panel-border);
    background:
        linear-gradient(180deg, rgb(255 252 244 / 72%), rgb(126 92 51 / 7%)),
        url('../topusers.webp');
    background-position: center, center;
    background-size: auto, cover;
    color: var(--dw-accent);
    box-shadow: inset 0 0 24px rgb(126 92 51 / 6%), 0 8px 22px rgb(78 50 27 / 9%);
}

body.site-page-home:not(.theme-night):not(.theme-slabzren) .landing-hero .landing-eyebrow::after {
    background: var(--dw-home-card);
}

body.site-page-home:not(.theme-night):not(.theme-slabzren) .landing-hero h1 {
    color: var(--dw-home-card-text);
    text-shadow: 0 2px 12px rgb(255 255 255 / 38%);
}

body.site-page-home:not(.theme-night):not(.theme-slabzren) .landing-hero .landing-lead {
    color: color-mix(in srgb, var(--dw-home-card-text) 82%, transparent);
}

body.site-page-home:not(.theme-night):not(.theme-slabzren) .landing-actions .button:first-child {
    border-color: color-mix(in srgb, var(--dw-accent) 74%, var(--dw-home-panel-border));
    background: linear-gradient(180deg, #8a6028, #5c3c1b);
}

body.site-page-home:not(.theme-night):not(.theme-slabzren) .landing-actions .button--ghost {
    border-color: var(--dw-home-panel-border);
    color: var(--dw-home-card-text) !important;
}

body.site-page-home:not(.theme-night):not(.theme-slabzren) .landing-benefits {
    border-color: var(--dw-home-panel-border);
    color: color-mix(in srgb, var(--dw-home-card-text) 72%, transparent);
}

body.site-shell.site-page-home .fantasy-corner-frame {
    position: absolute;
    inset: 7px;
    z-index: 3;
    display: block;
    pointer-events: none;
    --corner-opacity: 0.72;
}

body.site-shell.site-page-home .fantasy-corner-frame--hero {
    inset: 12px;
    --corner-opacity: 0.86;
}

body.site-shell.site-page-home .gameplay-sections.article {
    box-sizing: border-box;
    width: min(100%, 1160px);
    margin: clamp(58px, 8vw, 92px) auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.site-shell.site-page-home .gameplay-sections > .center {
    display: grid;
    gap: clamp(22px, 3.6vw, 38px);
    width: 100%;
}

body.site-shell.site-page-home .gameplay-sections .gameplay-feature {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    min-height: clamp(380px, 38vw, 480px);
    margin: 0;
    padding: clamp(30px, 5vw, 58px) clamp(26px, 6vw, 70px);
    overflow: hidden;
    border: 1px solid var(--dw-home-panel-border);
    border-radius: 6px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--dw-accent) 5%, transparent), transparent 42%),
        var(--dw-home-panel);
    box-shadow: var(--dw-home-shadow), inset 0 0 55px color-mix(in srgb, var(--dw-accent) 4%, transparent);
}

body.site-shell.site-page-home .gameplay-sections .gameplay-feature:nth-child(even) {
    background:
        linear-gradient(225deg, color-mix(in srgb, var(--dw-accent) 6%, transparent), transparent 44%),
        var(--dw-home-panel-alt);
}

body.site-shell.site-page-home .gameplay-feature > :not(.fantasy-corner-frame),
body.site-shell.site-page-home .discover-section > :not(.fantasy-corner-frame) {
    position: relative;
    z-index: 1;
}

body.site-shell.site-page-home .gameplay-feature .col_50:not(.gameplay-art) {
    max-width: 560px;
}

body.site-shell.site-page-home .gameplay-feature .col_50 > p:last-child {
    margin-bottom: 0;
    color: color-mix(in srgb, var(--dw-home-card-text) 82%, transparent);
    font-size: clamp(1rem, 1.35vw, 1.08rem);
    line-height: 1.78;
}

body.site-shell.site-page-home .gameplay-feature .feature-link {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 0.96rem;
}

body.site-shell.site-page-home .gameplay-feature .feature-link a {
    color: var(--dw-accent);
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

body.site-shell.site-page-home .gameplay-feature a.feature-inline-link:link,
body.site-shell.site-page-home .gameplay-feature a.feature-inline-link:visited {
    color: color-mix(in srgb, var(--dw-accent) 68%, var(--dw-home-card-text));
    font-weight: 800;
    text-decoration-line: underline;
    text-decoration-color: color-mix(in srgb, var(--dw-accent) 58%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

body.site-shell.site-page-home .gameplay-feature a.feature-inline-link:hover,
body.site-shell.site-page-home .gameplay-feature a.feature-inline-link:focus-visible {
    color: var(--dw-accent);
    text-decoration-color: currentColor;
}

/* Публичные справочные страницы игры: новости и каталог навыков. */
body.site-shell .lore-page {
    box-sizing: border-box;
    width: min(100%, 1160px);
    margin: 0 auto;
    padding-bottom: clamp(48px, 7vw, 90px);
}

body.site-shell .lore-page .breadcrumbs {
    margin: 0 0 clamp(22px, 4vw, 42px);
}

body.site-shell .lore-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 0 clamp(34px, 5vw, 58px);
    padding: clamp(36px, 6vw, 72px) clamp(22px, 7vw, 90px);
    border: 1px solid var(--dw-home-panel-border);
    border-radius: 6px;
    color: var(--dw-home-card-text);
    background:
        radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--dw-accent) 14%, transparent), transparent 30%),
        var(--dw-home-panel);
    box-shadow: var(--dw-home-shadow);
    text-align: center;
}

body.site-shell .lore-hero > :not(.fantasy-corner-frame),
body.site-shell .lore-card > :not(.fantasy-corner-frame) {
    position: relative;
    z-index: 1;
}

body.site-shell .lore-hero h1 {
    max-width: 900px;
    margin: 8px auto 0;
    color: var(--dw-site-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

body.site-shell .lore-hero p:last-child {
    max-width: 760px;
    margin: 22px auto 0;
    color: var(--dw-site-muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.7;
}

body.site-shell .lore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 26px);
}

body.site-shell .lore-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    box-sizing: border-box;
    padding: clamp(22px, 2.8vw, 32px);
    overflow: hidden;
    border: 1px solid var(--dw-home-panel-border);
    border-radius: 5px;
    background: var(--dw-home-panel);
    box-shadow: var(--dw-home-shadow);
}

body.site-shell .lore-card:hover {
    border-color: color-mix(in srgb, var(--dw-accent) 62%, var(--dw-home-panel-border));
}

body.site-shell .lore-card__eyebrow {
    margin: 0 0 10px;
    color: var(--dw-accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.site-shell .lore-card h2 {
    margin: 0;
    color: var(--dw-site-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.12;
}

body.site-shell .lore-card p {
    margin: 16px 0 0;
    color: var(--dw-site-muted);
    line-height: 1.7;
}

body.site-shell .news-card__date {
    display: block;
    margin-bottom: 12px;
    color: var(--dw-accent);
    font-size: 0.88rem;
    font-weight: 700;
}

body.site-shell .news-card__text {
    color: var(--dw-site-text);
    white-space: normal;
}

body.site-shell .news-page .lore-hero {
    margin-bottom: clamp(26px, 4vw, 44px);
    padding-top: clamp(34px, 5vw, 58px);
    padding-bottom: clamp(32px, 5vw, 54px);
}

body.site-shell .news-page .lore-hero .news-page__summary {
    display: inline-flex;
    width: auto;
    margin: 22px auto 0;
    padding: 7px 12px;
    border: 1px solid var(--dw-home-panel-border);
    border-radius: 999px;
    color: var(--dw-accent);
    background: color-mix(in srgb, var(--dw-accent) 7%, transparent);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.site-shell .news-feed {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 3vw, 30px);
    width: min(100%, 1040px);
    margin: 0 auto;
}

body.site-shell .news-feed__item {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(92px, 0.16fr) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 54px);
    align-items: start;
    width: 100%;
    min-height: 0;
    padding: clamp(24px, 4vw, 46px) clamp(24px, 5vw, 64px);
    overflow: hidden;
    border: 1px solid var(--dw-home-panel-border);
    border-radius: 5px;
    background: var(--dw-home-panel);
    box-shadow: var(--dw-home-shadow);
    text-align: left;
}

/* Непрерывная внутренняя линия связывает четыре декоративных угла
   с телом карточки. ::before остаётся за системой fantasy corners. */
body.site-shell .news-feed__item::after {
    content: '';
    position: absolute;
    inset: 8px;
    z-index: 0;
    border: 1px solid color-mix(in srgb, var(--dw-home-panel-border) 72%, transparent);
    border-radius: 2px;
    pointer-events: none;
}

body.site-shell .news-card__meta {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 14px;
    padding-right: clamp(18px, 3vw, 34px);
    border-right: 1px solid var(--dw-home-panel-border);
}

body.site-shell .news-card__number {
    color: color-mix(in srgb, var(--dw-accent) 58%, transparent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 700;
    line-height: 0.9;
}

body.site-shell .news-feed__item .news-card__date {
    margin: 0;
    color: var(--dw-site-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.site-shell .news-feed__item .news-card__text {
    min-width: 0;
    max-width: 78ch;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.8;
}

body.site-shell .news-card__text h2 {
    margin: 0 0 0.28em;
    color: var(--dw-site-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.1;
    text-wrap: balance;
}

body.site-shell .news-card__text h2 a {
    color: inherit;
    text-decoration: none;
}

body.site-shell .news-card__text h2 a:hover,
body.site-shell .news-card__text h2 a:focus-visible {
    color: var(--dw-site-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

body.site-shell .news-card__text p {
    margin: 0 0 1.05em;
}

body.site-shell .news-card__text p:last-child {
    margin-bottom: 0;
}

body.site-shell .news-card__link {
    display: inline-flex;
    margin-top: 1.2em;
    align-items: center;
    color: var(--dw-site-link);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

body.site-shell.site-page-legends-news:not(.theme-night):not(.theme-slabzren) .news-feed__item {
    background:
        linear-gradient(135deg, rgb(255 250 240 / 94%), rgb(247 237 220 / 90%)),
        url('../topusers.webp') center / cover repeat;
    box-shadow:
        0 20px 46px -34px rgba(77, 48, 24, 0.48),
        inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

body.theme-night.site-shell.site-page-legends-news .news-feed__item {
    border-color: color-mix(in srgb, var(--dw-accent) 32%, #21170f);
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--dw-accent) 10%, transparent), transparent 38%),
        linear-gradient(145deg, #17110d 0%, #100d0a 72%);
    box-shadow:
        0 24px 58px -34px rgba(0, 0, 0, 0.96),
        inset 0 0 0 1px rgba(229, 193, 124, 0.06);
}

body.site-shell .news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px clamp(12px, 2vw, 22px);
    width: min(100%, 1040px);
    margin: clamp(30px, 5vw, 54px) auto 0;
    padding-top: clamp(22px, 3vw, 30px);
    border-top: 1px solid var(--dw-site-line);
}

body.site-shell .news-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.site-shell .news-pagination a,
body.site-shell .news-pagination [aria-current='page'] {
    box-sizing: border-box;
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--dw-home-panel-border);
    border-radius: 3px;
    color: var(--dw-site-text);
    background: var(--dw-home-panel);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

body.site-shell .news-pagination a:hover,
body.site-shell .news-pagination a:focus-visible,
body.site-shell .news-pagination [aria-current='page'] {
    border-color: var(--dw-accent);
    color: var(--dw-control-text, #ffe6ad);
    background: var(--dw-site-control);
}

body.site-shell .news-pagination__direction {
    min-width: 108px !important;
}

body.site-shell .news-pagination__ellipsis {
    padding: 0 2px;
    color: var(--dw-site-muted);
}

body.site-shell .news-detail {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: clamp(30px, 5vw, 62px);
}

body.site-shell .news-detail__header {
    max-width: 880px;
    margin: 0 0 clamp(26px, 4vw, 42px);
    padding-bottom: clamp(22px, 3vw, 32px);
    border-bottom: 1px solid var(--dw-home-panel-border);
}

body.site-shell .news-detail__header h1 {
    margin: 10px 0 20px;
    color: var(--dw-site-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4.5vw, 3.65rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

body.site-shell .news-detail__header time {
    color: var(--dw-site-muted);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.site-shell .news-detail__text {
    max-width: 78ch;
    color: var(--dw-site-text);
    font-size: clamp(1.02rem, 1.45vw, 1.18rem);
    line-height: 1.82;
}

body.site-shell .news-detail__text p {
    margin: 0 0 1.15em;
}

body.site-shell .news-detail__navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px 24px;
    margin-top: clamp(30px, 5vw, 54px);
    padding-top: clamp(22px, 3vw, 30px);
    border-top: 1px solid var(--dw-home-panel-border);
}

body.site-shell .news-detail__navigation a {
    min-width: 0;
    color: var(--dw-site-link);
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

body.site-shell .news-detail__navigation a:first-child:not(:last-child) {
    text-align: left;
}

body.site-shell .news-detail__navigation a:nth-child(2) {
    text-align: center;
}

body.site-shell .news-detail__navigation a:last-child:not(:first-child) {
    text-align: right;
}

body.site-shell .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

body.site-shell .skill-card {
    display: flex;
    align-self: start;
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-color: var(--dw-home-panel-border);
    background: var(--dw-home-panel);
    box-shadow: none;
    color: var(--dw-site-text);
    text-align: left;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.site-shell a.skill-card:hover,
body.site-shell a.skill-card:focus-visible {
    color: var(--dw-site-text);
    border-color: color-mix(in srgb, var(--dw-accent) 42%, transparent);
    background: color-mix(in srgb, var(--dw-accent) 9%, var(--dw-home-panel));
    transform: translateY(-3px);
    box-shadow: 0 22px 45px -30px color-mix(in srgb, var(--dw-accent) 60%, transparent);
}

body.site-shell.site-page-legends-skills:not(.theme-night):not(.theme-slabzren) .skill-card {
    background:
        linear-gradient(135deg, rgb(255 249 238 / 82%), rgb(248 239 224 / 74%)),
        url('../topusers.webp') center / cover repeat;
}

body.site-shell.site-page-legends-skills:not(.theme-night):not(.theme-slabzren) a.skill-card:hover,
body.site-shell.site-page-legends-skills:not(.theme-night):not(.theme-slabzren) a.skill-card:focus-visible {
    background:
        linear-gradient(135deg, rgb(255 249 238 / 68%), rgb(238 225 204 / 82%)),
        url('../topusers.webp') center / cover repeat;
}

body.site-shell .skill-card__art {
    display: grid;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

body.site-shell .skill-card__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgb(0 0 0 / 20%));
}

body.site-shell .skill-card h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.15;
}

body.site-shell .clans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

body.site-shell .clan-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 150px;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-color: var(--dw-home-panel-border);
    background: var(--dw-home-panel);
    color: var(--dw-site-text);
    text-align: left;
    text-decoration: none;
    box-shadow: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.site-shell a.clan-card:hover,
body.site-shell a.clan-card:focus-visible {
    color: var(--dw-site-text);
    border-color: color-mix(in srgb, var(--dw-accent) 48%, var(--dw-home-panel-border));
    transform: translateY(-3px);
    box-shadow: 0 22px 45px -30px color-mix(in srgb, var(--dw-accent) 60%, transparent);
}

body.site-shell.site-page-legends-clans:not(.theme-night):not(.theme-slabzren) .clan-card,
body.site-shell.site-page-legends-clan:not(.theme-night):not(.theme-slabzren) .clan-profile {
    background:
        linear-gradient(135deg, rgb(255 249 238 / 88%), rgb(248 239 224 / 80%)),
        url('../topusers.webp') center / cover repeat;
}

body.site-shell .clan-card__sigil,
body.site-shell .clan-profile__sigil {
    position: relative;
    display: block;
    width: 62px;
    height: 70px;
    background:
        radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--dw-accent) 56%, transparent), transparent 38%),
        linear-gradient(150deg, color-mix(in srgb, var(--dw-site-control) 88%, var(--dw-accent)), var(--dw-site-control));
    border: 1px solid color-mix(in srgb, var(--dw-accent) 68%, transparent);
    clip-path: polygon(50% 0, 92% 15%, 84% 70%, 50% 100%, 16% 70%, 8% 15%);
    filter: drop-shadow(0 12px 12px rgb(0 0 0 / 22%));
}

body.site-shell .clan-card__sigil::before,
body.site-shell .clan-profile__sigil::before {
    content: '';
    position: absolute;
    inset: 17px 19px 22px;
    border: 2px solid color-mix(in srgb, var(--dw-control-text) 78%, transparent);
    transform: rotate(45deg);
}

body.site-shell .clan-card__content {
    min-width: 0;
}

body.site-shell .clan-card h2 {
    margin: 0 0 14px;
    color: inherit;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    overflow-wrap: anywhere;
}

body.site-shell .clan-card__meta {
    display: grid;
    gap: 6px;
    color: var(--dw-site-muted);
    font-size: .88rem;
    line-height: 1.45;
}

body.site-shell .clan-card__meta strong {
    color: var(--dw-site-text);
    font-weight: 700;
}

body.site-shell .clan-profile {
    position: relative;
    isolation: isolate;
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid var(--dw-home-panel-border);
    border-radius: 5px;
    background: var(--dw-home-panel);
    box-shadow: var(--dw-home-shadow);
}

body.site-shell .clan-profile > * {
    position: relative;
    z-index: 1;
}

body.site-shell .clan-profile__header {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: clamp(22px, 4vw, 42px);
    padding-bottom: clamp(26px, 4vw, 42px);
    border-bottom: 1px solid var(--dw-site-line);
}

body.site-shell .clan-profile__sigil {
    width: 96px;
    height: 108px;
}

body.site-shell .clan-profile__sigil::before {
    inset: 27px 30px 34px;
    border-width: 3px;
}

body.site-shell .clan-profile__header h1 {
    margin: 8px 0 20px;
    color: var(--dw-site-heading, var(--dw-site-text));
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.35rem, 5.6vw, 4.6rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

body.site-shell .clan-profile__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 0;
}

body.site-shell .clan-profile__facts div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

body.site-shell .clan-profile__facts dt {
    color: var(--dw-site-muted);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.site-shell .clan-profile__facts dd {
    margin: 0;
    color: var(--dw-site-text);
    font-weight: 800;
}

body.site-shell .clan-profile__description,
body.site-shell .clan-roster {
    padding-top: clamp(28px, 4vw, 44px);
}

body.site-shell .clan-profile__description {
    padding-bottom: clamp(28px, 4vw, 44px);
    border-bottom: 1px solid var(--dw-site-line);
}

body.site-shell .clan-profile__description h2,
body.site-shell .clan-roster h2 {
    margin: 0;
    color: var(--dw-site-heading, var(--dw-site-text));
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

body.site-shell .clan-profile__description p {
    max-width: 820px;
    margin: 18px 0 0;
    color: var(--dw-site-text);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.78;
}

body.site-shell .clan-profile__empty {
    color: var(--dw-site-muted) !important;
    font-style: italic;
}

body.site-shell .clan-roster__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

body.site-shell .clan-roster__heading > p {
    margin: 0;
    color: var(--dw-site-muted);
    font-size: .9rem;
}

body.site-shell .clan-roster__list {
    display: grid;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

body.site-shell .clan-roster__member {
    display: grid;
    grid-template-columns: minmax(180px, 1.25fr) minmax(170px, 1fr) minmax(180px, .9fr);
    align-items: center;
    gap: 18px;
    min-height: 58px;
    padding: 12px 16px;
    border: 1px solid var(--dw-site-line);
    border-radius: 4px;
    background: color-mix(in srgb, var(--dw-site-surface) 74%, transparent);
}

body.site-shell .clan-roster__name {
    color: var(--dw-site-heading, var(--dw-site-text));
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.08rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

body.site-shell .clan-roster__rank {
    color: var(--dw-site-text);
}

body.site-shell .clan-roster__date {
    color: var(--dw-site-muted);
    font-size: .88rem;
    text-align: right;
}

body.site-shell .clan-pagination {
    width: min(100%, 1040px);
    margin-right: auto;
    margin-left: auto;
}

body.site-shell .skill-detail {
    max-width: 980px;
    margin: 0 auto;
}

body.site-shell .skill-detail__header {
    max-width: 760px;
    margin: 0 auto clamp(34px, 5vw, 58px);
    text-align: center;
}

body.site-shell .skill-detail__header h1 {
    margin: 8px 0 0;
    color: var(--dw-site-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.6rem, 6vw, 4.9rem);
    line-height: 0.98;
}

body.site-shell .skill-detail__header > p:last-child {
    margin: 22px auto 0;
    color: var(--dw-site-muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.7;
}

body.site-shell .skill-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: clamp(24px, 5vw, 68px);
}

body.site-shell .skill-detail__description {
    margin: 0;
    color: var(--dw-site-text);
    font-size: clamp(1.08rem, 1.8vw, 1.35rem);
    line-height: 1.75;
}

body.site-shell .skill-detail__art {
    display: grid;
    min-height: 0;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

body.site-shell .skill-detail__art img {
    display: block;
    width: min(100%, 420px);
    height: auto;
    filter: drop-shadow(0 18px 20px rgb(0 0 0 / 28%));
}

body.site-shell .skill-detail__back {
    display: inline-flex;
    margin-top: 30px;
    color: var(--dw-accent);
    font-weight: 800;
    text-underline-offset: 4px;
}

body.site-shell .skill-detail {
    padding: clamp(24px, 5vw, 58px);
}

body.site-shell .lore-empty {
    padding: 30px;
    border: 1px solid var(--dw-home-panel-border);
    border-radius: 5px;
    color: var(--dw-site-muted);
    background: var(--dw-home-panel);
    text-align: center;
}

body.site-shell.site-page-home .gameplay-art {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
}

body.site-shell.site-page-home .landing-art {
    display: block;
    width: auto;
    max-width: min(100%, 520px);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(28, 17, 9, 0.2));
}

body.theme-night.site-page-home .landing-art {
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.58));
}

body.site-shell.site-page-home .landing-art--hero {
    max-height: 430px;
}

body.site-shell.site-page-home .landing-art--dungeon,
body.site-shell.site-page-home .landing-art--forge {
    width: min(100%, 520px);
}

body.site-page-home .worlds-section,
body.site-page-home .discover-section,
body.site-page-home .news-portal {
    box-sizing: border-box;
    width: min(100%, 1160px);
    margin: clamp(58px, 8vw, 92px) auto 0;
}

body.site-page-home .worlds-section {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.site-page-home .section-heading {
    max-width: 700px;
    margin: 0 auto clamp(28px, 4vw, 44px);
    text-align: center;
}

body.site-page-home .section-heading--left {
    max-width: 760px;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

body.site-page-home .section-kicker,
body.site-page-home .game-card-kicker {
    margin: 0 0 8px;
    color: var(--dw-accent);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.site-page-home .section-heading h2 {
    margin: 0;
    color: var(--dw-site-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

body.site-page-home .section-heading > p:last-child {
    margin: 14px 0 0;
    color: var(--dw-site-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

body.site-page-home .game-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 28px);
}

body.site-page-home .game-cards .game-card {
    display: block;
    width: auto;
    max-width: none;
}

body.site-page-home .game-card {
    --world-accent: #c99743;
}

body.site-page-home .game-card--arena {
    --world-accent: #8fa6b8;
}

body.site-page-home .game-cards .marginindex {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: clamp(18px, 2.4vw, 26px);
    min-height: 100%;
    margin: 0;
    padding: clamp(22px, 3vw, 30px);
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--world-accent) 32%, var(--dw-site-line));
    border-radius: 20px;
    background: var(--dw-home-card);
    color: var(--dw-home-card-text);
    text-align: left;
    box-shadow: var(--dw-home-shadow);
}

body.site-page-home .game-cards .marginindex::before {
    content: '';
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--world-accent), transparent);
}

body.site-page-home .game-cards .marginindex:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--world-accent) 62%, transparent);
    box-shadow: 0 26px 60px -36px rgba(0, 0, 0, 0.76);
}

body.site-page-home .game-card-portrait {
    display: block;
    align-self: start;
    border-radius: 50%;
}

body.site-page-home .game-cards .imgtittle {
    display: block;
    width: 128px;
    height: 128px;
    margin: 0;
    border: 1px solid var(--world-accent);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--world-accent) 12%, transparent), 0 16px 34px -20px #000;
}

body.site-page-home .game-card-body {
    min-width: 0;
}

body.site-page-home .game-card-kicker {
    color: var(--world-accent);
}

body.site-page-home .game-card-body h3 {
    margin: 0 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.12;
}

body.site-page-home .game-card-body h3 a,
body.site-page-home .game-card-body h3 a:visited {
    color: var(--dw-home-card-text);
    text-decoration: none;
}

body.site-page-home .game-card-body h3 a:hover {
    color: var(--world-accent);
}

body.site-page-home .game-cards .cardinfo {
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, var(--dw-home-card-text) 78%, transparent);
    font-size: 0.94rem;
    line-height: 1.62;
}

body.site-page-home .game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 16px 0 18px;
    padding: 0;
    list-style: none;
}

body.site-page-home .game-card-tags li {
    padding: 5px 9px;
    border: 1px solid color-mix(in srgb, var(--world-accent) 25%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--world-accent) 8%, transparent);
    color: color-mix(in srgb, var(--dw-home-card-text) 82%, transparent);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

body.site-page-home .game-cards .buttoncard {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 12px 18px;
    border-color: color-mix(in srgb, var(--world-accent) 42%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--dw-site-control) 92%, var(--world-accent));
    color: #fff4d6 !important;
    letter-spacing: 0.06em;
}

body.site-page-home .discover-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: clamp(28px, 5vw, 54px);
    padding: clamp(26px, 5vw, 54px);
    border: 1px solid var(--dw-site-line);
    border-radius: 6px;
    background: var(--dw-home-card);
    box-shadow: var(--dw-home-shadow);
}

body.site-page-home .news-portal {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: flex;
    min-width: 0;
    margin-top: clamp(24px, 4vw, 38px);
    padding: clamp(24px, 4vw, 38px) clamp(24px, 5vw, 52px);
    align-items: center;
    justify-content: space-between;
    gap: clamp(22px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid var(--dw-home-panel-border);
    border-radius: 5px;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--dw-accent) 6%, transparent), transparent 46%),
        var(--dw-home-panel);
    box-shadow: var(--dw-home-shadow);
}

body.site-page-home .news-portal__copy {
    min-width: 0;
    max-width: 760px;
}

body.site-page-home .news-portal h2 {
    margin: 0;
    color: var(--dw-home-card-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.08;
}

body.site-page-home .news-portal__copy > p:last-child {
    margin: 12px 0 0;
    color: color-mix(in srgb, var(--dw-home-card-text) 76%, transparent);
    line-height: 1.65;
}

body.site-page-home .news-portal .button {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

body.site-page-home:not(.theme-night):not(.theme-slabzren) .news-portal {
    background:
        linear-gradient(120deg, rgb(255 250 240 / 86%), rgb(247 237 220 / 80%)),
        url('../topusers.webp') center / cover repeat;
}

body.site-page-home .discover-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

body.site-page-home .discover-item {
    position: relative;
    min-width: 0;
    padding: 8px clamp(18px, 3vw, 30px) 0;
    border-left: 1px solid var(--dw-site-line);
    text-align: left;
}

body.site-page-home .discover-item:first-child {
    padding-left: 0;
    border-left: 0;
}

body.site-page-home .discover-item:last-child {
    padding-right: 0;
}

body.site-page-home .discover-number {
    color: var(--dw-accent);
    font: 800 0.75rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.12em;
}

body.site-page-home .discover-item h3 {
    margin: 12px 0 8px;
    color: var(--dw-home-card-text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    line-height: 1.2;
}

body.site-page-home .discover-item p {
    margin: 0;
    color: color-mix(in srgb, var(--dw-home-card-text) 74%, transparent);
    font-size: 0.92rem;
    line-height: 1.65;
}

body.theme-slabzren.site-page-home .fantasy-corner-frame,
body.theme-slabzren.site-page-home .landing-actions .dw-corners::before {
    display: none;
}

body.theme-slabzren.site-page-home .landing-hero .landing-eyebrow {
    width: min(100%, 680px);
    min-height: 0;
    padding: 0.7em 1em;
    border: 3px solid #ffffff !important;
    border-radius: 0 !important;
    background: #000000 !important;
    color: #00ffff !important;
    clip-path: none;
    box-shadow: none !important;
}

body.theme-slabzren.site-page-home .landing-hero .landing-eyebrow::before,
body.theme-slabzren.site-page-home .landing-hero .landing-eyebrow::after {
    display: none;
}

body.theme-slabzren.site-page-home .landing-hero .center::before {
    display: none;
}

body.theme-slabzren.site-page-home .landing-benefits {
    grid-template-columns: 1fr;
    padding: 0.5em 0;
}

body.theme-slabzren.site-page-home .landing-benefits li {
    justify-content: flex-start;
    padding: 0.65em 0.35em;
}

body.theme-slabzren.site-page-home .landing-benefits li + li {
    border-top: 1px solid #ffffff;
    border-left: 0;
}

body.theme-slabzren.site-shell.site-page-home .gameplay-feature a.feature-inline-link:link,
body.theme-slabzren.site-shell.site-page-home .gameplay-feature a.feature-inline-link:visited {
    color: #00ffff !important;
    text-decoration: underline !important;
}

body.theme-slabzren.site-shell.site-page-home .gameplay-sections .gameplay-feature {
    min-height: 0;
    padding: 1.5em !important;
    color: #ffffff !important;
    background: #000000 !important;
    background-image: none !important;
    border: 3px solid #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.theme-slabzren.site-shell.site-page-home .gameplay-feature .col_50:not(.gameplay-art) {
    max-width: none;
    flex: 1 1 100%;
}

body.theme-slabzren.site-shell.site-page-home .gameplay-feature .col_50 > p:last-child {
    color: #ffffff !important;
}

body.theme-slabzren.site-shell.site-page-home .gameplay-art {
    display: none !important;
}

/* ============================================================
   Unified semantic footer: content and navigation on the left,
   project attribution on the right, one compact responsive block.
   ============================================================ */
body.site-shell .site-footer {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: none;
    margin: clamp(28px, 5vh, 54px) 0 0;
    padding: 0 clamp(16px, 2.2vw, 36px) 22px;
    border-top: 1px solid var(--dw-site-line);
    background: transparent;
}

/* The footer is rendered after the page container and must span the viewport,
   even when the page content itself uses the centered 1300px reading rail. */
body.site-shell > footer.site-footer,
body.site-shell > footer.site-footer .site-footer__inner {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

body.site-shell .site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
    align-items: start;
    gap: clamp(24px, 5vw, 84px);
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-top: 20px;
}

body.site-shell .site-footer__main,
body.site-shell .site-footer__meta {
    min-width: 0;
}

body.site-shell .site-footer__description {
    margin: 0;
    color: var(--dw-footer-muted, var(--dw-site-muted));
    font-size: 0.92rem;
    line-height: 1.6;
}

body.site-shell .site-footer__description strong {
    color: var(--dw-site-text);
}

body.site-shell .site-footer .footer-nav {
    margin: 12px 0 0;
}

body.site-shell .site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.site-shell .site-footer__links a {
    color: var(--dw-site-link);
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
}

body.site-shell .site-footer__links a:hover,
body.site-shell .site-footer__links a:focus-visible {
    color: var(--dw-site-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.site-shell .site-footer .footer-rights {
    margin: 14px 0 0;
    color: var(--dw-footer-muted, var(--dw-site-muted));
    font-size: 0.78rem;
    line-height: 1.55;
}

body.site-shell .site-footer__meta {
    display: flex;
    width: 100%;
    justify-self: stretch;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    padding-top: 1px;
    text-align: right;
}

body.site-shell .site-footer__meta a {
    color: var(--dw-footer-muted, var(--dw-site-muted));
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
}

body.site-shell .site-footer__meta a:first-child {
    color: var(--dw-site-text);
    font-weight: 700;
}

body.site-shell .site-footer__meta a:hover,
body.site-shell .site-footer__meta a:focus-visible {
    color: var(--dw-site-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media screen and (max-width: 780px) {
    body.site-shell .site-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    body.site-shell .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.site-shell .site-footer__meta {
        align-items: flex-start;
        padding-top: 16px;
        border-top: 1px solid var(--dw-site-line);
        text-align: left;
    }
}

@media screen and (max-width: 1040px) {
    body.site-page-home .game-cards {
        grid-template-columns: minmax(0, 680px);
        justify-content: center;
    }
}

@media screen and (max-width: 780px) {
    body.site-shell .site-brand {
        position: static;
        flex: 0 0 auto;
    }

    body.site-shell .site-brand__name {
        display: none;
    }

    body.site-shell .topnav__toggle {
        margin-left: 2px !important;
    }

    body.site-page-home .landing-hero {
        min-height: 0;
        border-radius: 4px;
    }

    body.site-shell.site-page-home .gameplay-sections .gameplay-feature {
        min-height: 0;
        gap: 8px;
        padding: 34px 24px 28px;
    }

    body.site-shell.site-page-home .gameplay-sections .mainrevers {
        flex-direction: column-reverse !important;
    }

    body.site-shell.site-page-home .gameplay-feature .col_50 {
        margin-bottom: 0;
    }

    body.site-shell.site-page-home .gameplay-art {
        min-height: 0;
    }

    body.site-shell.site-page-home .landing-art {
        max-height: 370px;
    }

    body.site-page-home .discover-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.site-page-home .discover-item,
    body.site-page-home .discover-item:first-child,
    body.site-page-home .discover-item:last-child {
        padding: 24px 0 0;
        border-top: 1px solid var(--dw-site-line);
        border-left: 0;
    }

    body.site-page-home .discover-item:first-child {
        padding-top: 0;
        border-top: 0;
    }

    body.site-page-home .news-portal {
        flex-direction: column;
        align-items: flex-start;
    }

    body.site-page-home .news-portal .button {
        width: 100%;
        white-space: normal;
    }
}

@media screen and (max-width: 520px) {
    body.site-page-home .landing-hero {
        padding: 48px 18px 38px;
    }

    body.site-page-home .landing-hero::before {
        inset: 8px;
    }

    body.site-page-home .landing-hero h1 {
        font-size: clamp(2.15rem, 12vw, 3.25rem);
    }

    body.site-page-home .landing-hero .landing-eyebrow {
        min-height: 52px;
        margin-bottom: 18px;
        padding: 11px 24px;
        letter-spacing: 0.1em;
        clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
    }

    body.site-page-home .landing-actions .button {
        min-width: 0;
    }

    body.site-page-home .landing-benefits {
        display: grid;
        grid-template-columns: 1fr;
        padding: 8px 0;
        text-align: left;
    }

    body.site-page-home .landing-benefits li {
        justify-content: flex-start;
        padding: 10px 6px;
    }

    body.site-page-home .landing-benefits li + li {
        border-top: 1px solid rgba(216, 169, 79, 0.12);
        border-left: 0;
    }

    body.site-page-home .game-cards .marginindex {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 16px;
        padding: 20px 16px;
    }

    body.site-page-home .game-cards .imgtittle {
        width: 84px;
        height: 84px;
    }

    body.site-page-home .game-card-body h3 {
        font-size: 1.3rem;
    }

    body.site-page-home .game-card-tags {
        grid-column: 1 / -1;
    }

    body.site-page-home .discover-section {
        padding: 24px 18px;
        border-radius: 4px;
    }

    body.site-shell.site-page-home .fantasy-corner-frame {
        inset: 5px;
        --corner-size: 30px;
    }

    body.site-shell.site-page-home .fantasy-corner-frame--hero {
        inset: 8px;
    }

}

@media screen and (max-width: 390px) {
    body.site-page-home .game-cards .marginindex {
        display: block;
        text-align: center;
    }

    body.site-page-home .game-card-portrait {
        width: 88px;
        margin: 0 auto 18px;
    }

    body.site-page-home .game-card-tags {
        justify-content: center;
    }
}

@media screen and (max-width: 900px) {
    body.site-shell .lore-grid,
    body.site-shell .skills-grid,
    body.site-shell .clans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 620px) {
    body.site-shell .lore-page,
    body.site-shell .news-feed,
    body.site-shell .news-feed__item,
    body.site-shell .news-detail {
        max-width: 100%;
        min-width: 0;
    }

    body.site-shell .lore-hero {
        padding: 34px 18px 38px;
        border-radius: 4px;
    }

    body.site-shell .lore-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: -0.025em;
        overflow-wrap: anywhere;
    }

    body.site-shell .lore-grid,
    body.site-shell .skills-grid,
    body.site-shell .clans-grid {
        grid-template-columns: 1fr;
    }

    body.site-shell .skill-card {
        align-items: center;
        text-align: left;
    }

    body.site-shell .skill-card__art {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    body.site-shell .clan-profile__header {
        grid-template-columns: 1fr;
    }

    body.site-shell .clan-profile__sigil {
        width: 72px;
        height: 81px;
    }

    body.site-shell .clan-profile__facts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.site-shell .clan-profile__facts div {
        display: grid;
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    }

    body.site-shell .clan-profile__facts dd {
        overflow-wrap: anywhere;
    }

    body.site-shell .clan-roster__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    body.site-shell .clan-roster__member {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    body.site-shell .clan-roster__date {
        text-align: left;
    }

    body.site-shell .skill-detail__layout {
        grid-template-columns: 1fr;
    }

    body.site-shell .skill-detail__art {
        min-height: 0;
    }

    body.site-shell .news-feed__item {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 20px;
    }

    body.site-shell .news-card__text h2 {
        font-size: clamp(1.35rem, 7.5vw, 1.8rem);
        overflow-wrap: anywhere;
    }

    body.site-shell .news-card__meta {
        min-height: 0;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 18px;
        padding: 0 0 16px;
        border-right: 0;
        border-bottom: 1px solid var(--dw-home-panel-border);
    }

    body.site-shell .news-card__number {
        font-size: 1.65rem;
    }

    body.site-shell .news-pagination {
        align-items: stretch;
    }

    body.site-shell .news-pagination__pages {
        order: -1;
        width: 100%;
    }

    body.site-shell .news-detail {
        padding: 28px 20px;
    }

    body.site-shell .news-detail__header h1 {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
        overflow-wrap: anywhere;
    }

    body.site-shell .news-detail__navigation {
        grid-template-columns: 1fr;
    }

    body.site-shell .news-detail__navigation a,
    body.site-shell .news-detail__navigation a:first-child:not(:last-child),
    body.site-shell .news-detail__navigation a:nth-child(2),
    body.site-shell .news-detail__navigation a:last-child:not(:first-child) {
        text-align: left;
    }
}

body.theme-slabzren.site-shell .lore-hero,
body.theme-slabzren.site-shell .lore-card,
body.theme-slabzren.site-shell .lore-empty {
    color: #ffffff !important;
    background: #000000 !important;
    border: 3px solid #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.theme-slabzren.site-page-home .news-portal,
body.theme-slabzren.site-shell .news-pagination a,
body.theme-slabzren.site-shell .news-pagination [aria-current='page'] {
    color: #ffffff !important;
    background: #000000 !important;
    background-image: none !important;
    border: 3px solid #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.theme-slabzren.site-page-home .news-portal h2,
body.theme-slabzren.site-page-home .news-portal p,
body.theme-slabzren.site-shell .news-card__date,
body.theme-slabzren.site-shell .news-card__number,
body.theme-slabzren.site-shell .news-page__summary {
    color: #ffffff !important;
}

body.theme-slabzren.site-shell .news-card__meta,
body.theme-slabzren.site-shell .news-pagination {
    border-color: #ffffff !important;
}

body.theme-slabzren.site-shell .lore-hero h1,
body.theme-slabzren.site-shell .skill-detail__header h1,
body.theme-slabzren.site-shell .lore-card h2,
body.theme-slabzren.site-shell .lore-card p,
body.theme-slabzren.site-shell .news-card__text,
body.theme-slabzren.site-shell .news-detail__header h1,
body.theme-slabzren.site-shell .news-detail__header time,
body.theme-slabzren.site-shell .news-detail__text,
body.theme-slabzren.site-shell .lore-empty {
    color: #ffffff !important;
}

body.theme-slabzren.site-shell .news-detail__header,
body.theme-slabzren.site-shell .news-detail__navigation {
    border-color: #ffffff !important;
}

body.theme-slabzren.site-shell .skill-card__art {
    min-height: 0;
    padding: 0;
    border: 0;
    background: #000000;
}

body.theme-slabzren.site-shell .skill-card__art {
    display: none;
}

body.theme-slabzren.site-shell .clan-card__sigil,
body.theme-slabzren.site-shell .clan-profile__sigil {
    display: none;
}

body.theme-slabzren.site-shell .clan-card,
body.theme-slabzren.site-shell .clan-profile,
body.theme-slabzren.site-shell .clan-roster__member {
    color: #ffffff !important;
    background: #000000 !important;
    background-image: none !important;
    border: 3px solid #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.theme-slabzren.site-shell .clan-profile__header {
    grid-template-columns: 1fr;
}

body.theme-slabzren.site-shell .clan-profile__description,
body.theme-slabzren.site-shell .clan-profile__header {
    border-color: #ffffff !important;
}

body.theme-slabzren.site-shell .clan-card *,
body.theme-slabzren.site-shell .clan-profile * {
    color: #ffffff !important;
}

body.theme-slabzren.site-shell .skill-detail__art {
    display: none;
}

body.theme-slabzren.site-shell .site-brand__mark {
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background-image: none;
}

body.theme-slabzren.site-shell .site-brand__fallback {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    color: currentColor;
    font: 800 0.67rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.04em;
}

/* В высококонтрастном режиме информацию отделяют настоящие границы;
   декоративные SVG-уголки не должны создавать лишний визуальный шум. */
body.theme-slabzren.site-shell .dw-corners::before,
body.theme-slabzren.site-shell .fantasy-corner-frame,
body.theme-slabzren.site-shell .news-feed__item::after {
    display: none !important;
}

/* Единая вводная панель информационных и юридических страниц. */
body.site-shell .legal-page > .page-heading {
    position: relative;
    overflow: hidden;
    margin: 0 0 clamp(22px, 3vw, 34px);
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--dw-site-line);
    border-radius: 12px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--dw-site-surface) 96%, var(--dw-accent) 4%), var(--dw-site-surface));
    box-shadow: var(--dw-site-shadow);
    text-align: left;
}

body.site-shell .legal-page > .page-heading::before {
    content: '';
    display: block !important;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--dw-accent);
}

body.site-shell .legal-page > .page-heading .page-eyebrow {
    max-width: 880px;
    margin: 0 0 10px;
    color: var(--dw-accent);
    font: 800 0.75rem/1.35 Arial, Helvetica, sans-serif;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.site-shell .legal-page > .page-heading h1 {
    max-width: 880px;
    margin: 0 0 12px;
    color: var(--dw-site-heading, var(--dw-site-text));
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
    opacity: 1;
}

body.site-shell .legal-page > .page-heading > p:last-child {
    max-width: 820px;
    margin: 0;
    color: var(--dw-site-muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.65;
}

@media screen and (max-width: 620px) {
    body.site-shell .legal-page > .page-heading {
        padding: 24px 20px 26px;
        border-radius: 8px;
    }
}

body.theme-slabzren.site-shell .legal-page > .page-heading {
    margin-bottom: 1.5em;
    padding: 1em;
    color: #ffffff;
    background: #000000;
    background-image: none;
    border: 3px solid #ffffff;
    border-radius: 0;
    box-shadow: none;
}

body.theme-slabzren.site-shell .legal-page > .page-heading::before {
    display: none !important;
}

body.theme-slabzren.site-shell .legal-page > .page-heading .page-eyebrow {
    color: #00ffff;
}

body.theme-slabzren.site-shell .legal-page > .page-heading h1,
body.theme-slabzren.site-shell .legal-page > .page-heading > p:last-child {
    color: #ffffff;
}
