/* ===== Сброс и базовые стили ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0f1117;
    --bg-card: #1a1d27;
    --bg-elev: #22252f;
    --accent: #6c5ce7;
    --accent-2: #a29bfe;
    --accent-grad: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --accent-grad-h: linear-gradient(135deg, #5b4bd6, #8e87f0);
    --text: #e8e8ec;
    --text-dim: #8e8e9e;
    --text-muted: #5a5a6a;
    --border: #2a2d3a;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.15);
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

    .btn--primary:hover {
        background: var(--accent-grad-h);
        box-shadow: 0 6px 20px rgba(108, 92, 231, 0.45);
        transform: translateY(-2px);
    }

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

    .btn--ghost:hover {
        background: var(--bg-elev);
        border-color: var(--accent);
    }

.btn--lg {
    padding: 14px 32px;
    font-size: 15px;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Шапка ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo__icon {
    font-size: 26px;
}

.logo__text {
    font-family: 'Russo One', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
}

    .logo__text span {
        color: var(--accent-2);
    }

.nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    margin-right: 20px;
}

.nav__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dim);
    transition: var(--transition);
    position: relative;
}

    .nav__link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-grad);
        border-radius: 2px;
        transition: var(--transition);
    }

    .nav__link:hover {
        color: var(--text);
    }

        .nav__link:hover::after {
            width: 100%;
        }

.header__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

    .burger span {
        width: 24px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: var(--transition);
    }

.burger--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger--active span:nth-child(2) {
    opacity: 0;
}

.burger--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    padding: 60px 0 40px;
    background: radial-gradient(ellipse at top, rgba(108, 92, 231, 0.12), transparent 60%);
}

.hero__content {
    max-width: 760px;
}

.hero__badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent-2);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero__title {
    font-family: 'Russo One', sans-serif;
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 620px;
}

    .hero__desc strong {
        color: var(--text);
    }

.hero__stats {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__num {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}

.stat__label {
    font-size: 13px;
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Основная сетка ===== */
.main {
    padding: 20px 0 60px;
}

.main__grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

/* ===== Заголовок секции ===== */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.catalog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.catalog__filters {
    display: flex;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

    .chip:hover {
        border-color: var(--accent);
        color: var(--text);
    }

.chip--active {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
}

/* ===== Сетка карточек ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== Карточка игры ===== */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

    .game-card:hover {
        border-color: var(--accent);
        box-shadow: var(--shadow-glow);
        transform: translateY(-4px);
    }

.game-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

    .game-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.game-card:hover .game-card__media img {
    transform: scale(1.05);
}

.game-card__type {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.game-card__type--browser {
    background: rgba(46, 204, 113, 0.9);
    color: #fff;
}

.game-card__type--client {
    background: rgba(52, 152, 219, 0.9);
    color: #fff;
}

.game-card__rating {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #ffd700;
    backdrop-filter: blur(4px);
}

.game-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.game-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.game-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tag--strategy {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-2);
}

.tag--mmorpg {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.tag--action {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.game-card__desc {
    font-size: 13px;
    color: var(--text-dim);
    flex: 1;
}

.game-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.catalog__more {
    text-align: center;
    margin-top: 32px;
}

/* ===== Заголовок раздела (без hero главной) ===== */
.section-hero {
    padding: 36px 0 8px;
    background: radial-gradient(ellipse at top, rgba(108, 92, 231, 0.1), transparent 55%);
}

.section-hero__title {
    font-family: 'Russo One', sans-serif;
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-hero__desc {
    color: var(--text-dim);
    font-size: 15px;
    max-width: 720px;
    margin-bottom: 8px;
}

    .section-hero__desc a {
        color: var(--accent-2);
    }

        .section-hero__desc a:hover {
            color: var(--text);
        }

.empty-section a {
    color: var(--accent-2);
}

/* ===== Пагинация разделов ===== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

    .pager__link:hover {
        border-color: var(--accent);
        color: var(--text);
    }

.pager__link--active {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
}

/* ===== Auth: вход / регистрация ===== */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 64px;
    background: radial-gradient(ellipse at 20% 0%, rgba(108, 92, 231, 0.18), transparent 45%), radial-gradient(ellipse at 80% 100%, rgba(162, 155, 254, 0.08), transparent 40%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
}

.auth-card--wide {
    max-width: 480px;
}

.auth-card__badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    color: var(--accent-2);
    font-weight: 500;
    margin-bottom: 16px;
}

.auth-card__title {
    font-family: 'Russo One', sans-serif;
    font-size: 26px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.auth-card__desc {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .auth-field label {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-dim);
    }

.auth-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

    .auth-input:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
    }

    .auth-input::placeholder {
        color: var(--text-muted);
    }

.auth-hint {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.45;
}

    .auth-hint strong, .auth-hint .auth-hint__red {
        color: #ff6b6b;
    }

.auth-error {
    text-align: center;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 500;
}

.auth-success {
    text-align: center;
    color: #2ecc71;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.auth-success__note {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-dim);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    font-size: 14px;
}

    .auth-links a {
        color: var(--accent-2);
        transition: var(--transition);
    }

        .auth-links a:hover {
            color: var(--text);
        }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.auth-vk {
    display: flex;
    justify-content: center;
}

    .auth-vk a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: #4a76a8;
        color: #fff;
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 600;
        transition: var(--transition);
    }

        .auth-vk a:hover {
            background: #3d6694;
            transform: translateY(-1px);
        }

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

    .auth-submit:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.auth-notice {
    margin-top: 8px;
    padding: 12px 14px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
}

    .auth-notice a {
        color: var(--accent-2);
    }

.auth-quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

    .auth-quick-links a {
        display: block;
        padding: 10px 14px;
        background: var(--bg-elev);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        text-align: center;
        font-size: 14px;
        color: var(--text-dim);
        transition: var(--transition);
    }

        .auth-quick-links a:hover {
            border-color: var(--accent);
            color: var(--text);
        }

@media (max-width: 600px) {
    .auth-card {
        padding: 28px 20px;
    }

    .auth-card__title {
        font-size: 22px;
    }
}

/* ===== Сайдбар ===== */
.sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar__block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.sidebar__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-2);
    margin-bottom: 14px;
}

.sidebar__list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dim);
    transition: var(--transition);
}

    .sidebar__list li a span {
        color: var(--text-muted);
        font-size: 12px;
    }

    .sidebar__list li a:hover {
        background: var(--bg-elev);
        color: var(--text);
    }

.sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-tag {
    padding: 5px 11px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-dim);
    transition: var(--transition);
}

    .sidebar-tag:hover {
        border-color: var(--accent);
        color: var(--text);
    }

.sidebar__block--ad {
    padding: 0;
    overflow: hidden;
}

.sidebar__ad-label {
    display: block;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 6px 0;
    background: var(--bg-elev);
}

.ad-banner {
    padding: 20px;
    text-align: center;
}

    .ad-banner h4 {
        font-family: 'Russo One', sans-serif;
        font-size: 18px;
        margin-bottom: 6px;
    }

    .ad-banner p {
        font-size: 13px;
        color: var(--text-dim);
        margin-bottom: 12px;
    }

/* ===== Футер ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding-top: 48px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer__desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 12px;
    max-width: 280px;
}

.footer__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    color: var(--accent-2);
}

.footer__col ul li {
    margin-bottom: 8px;
}

    .footer__col ul li a {
        font-size: 14px;
        color: var(--text-dim);
        transition: var(--transition);
    }

        .footer__col ul li a:hover {
            color: var(--text);
        }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 16px 0;
}

    .footer__bottom p {
        font-size: 13px;
        color: var(--text-muted);
        text-align: center;
    }

/* ===== Адаптив ===== */
@media (max-width: 1080px) {
    .main__grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .sidebar__block {
        flex: 1 1 200px;
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 16px;
    }

    .nav--open {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .header__actions .btn {
        display: none;
    }

    .hero__title {
        font-size: 32px;
    }

    .section-hero__title {
        font-size: 26px;
    }

    .hero__stats {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: column;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero__title {
        font-size: 26px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .catalog__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog__filters {
        flex-wrap: wrap;
    }
}

/* ===== Карточка игры (Produkcia/Game) ===== */
.game-main {
    padding-top: 28px;
}

.game-page {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px 36px;
    min-width: 0;
}

    .game-page h1 {
        font-family: 'Russo One', sans-serif;
        font-size: 28px;
        line-height: 1.2;
        margin: 0 0 18px;
        background: linear-gradient(135deg, #fff 30%, var(--accent-2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-align: left;
    }

    .game-page h2 {
        font-size: 20px;
        font-weight: 700;
        margin: 28px 0 14px;
        color: var(--text);
    }

    .game-page h3 {
        font-size: 17px;
        font-weight: 700;
        margin: 18px 0 10px;
    }

    .game-page .admin-features {
        text-align: right;
        margin-bottom: 8px;
        font-size: 13px;
    }

        .game-page .admin-features a {
            color: var(--accent-2);
        }

    .game-page .block-image-page {
        margin-bottom: 16px;
    }

    .game-page .imageblock,
    .game-page .imageblock-m {
        border-radius: var(--radius-sm);
        overflow: hidden;
        border: 1px solid var(--border);
        margin-bottom: 12px;
        background: var(--bg);
    }

        .game-page .imageblock img,
        .game-page .imageblock-m img,
        .game-page .images {
            width: 100%;
            height: auto;
            display: block;
            border-radius: var(--radius-sm);
        }

    .game-page .infogame {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin: 8px 0 24px;
        align-items: start;
    }
        /* Заголовок на всю ширину; рейтинг слева / сведения справа; меню|кнопки в одном ряду */
        .game-page .infogame > h2 {
            grid-column: 1 / -1;
            margin: 10px 0 0;
        }

    .game-page .ocenka-infogame {
        order: 1;
    }

    .game-page .sub-infogame {
        order: 2;
    }

    .game-page .meny-infogame {
        order: 3;
    }

    .game-page .button-info-game {
        order: 4;
    }

    .game-page .infogame > div[style*="clear"] {
        display: none;
    }

    .game-page .meny-infogame,
    .game-page .button-info-game {
        align-self: stretch;
        min-height: 0;
    }

    .game-page .sub-infogame,
    .game-page .ocenka-infogame,
    .game-page .meny-infogame,
    .game-page .button-info-game,
    .game-page .sub-infogame-m {
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 16px;
    }

    .game-page .title-info-game {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: var(--accent-2);
        margin-bottom: 12px;
        text-align: center;
    }

    .game-page .sub-infogame table,
    .game-page .table-m {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .game-page .td-left,
    .game-page .tbl-m-td-ritch {
        color: var(--text-muted);
        padding: 6px 8px 6px 0;
        vertical-align: top;
        white-space: nowrap;
        border-top: 1px solid var(--border);
    }

    .game-page .td-ritch,
    .game-page .tbl-m-td-left {
        color: var(--text);
        padding: 6px 0;
        border-top: 1px solid var(--border);
    }

        .game-page .td-ritch a,
        .game-page .tbl-m-td-left a,
        .game-page .text a,
        .game-page .meny-infogame a {
            color: var(--accent-2);
        }

    .game-page .meny-infogame ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .game-page .meny-infogame li a {
        display: inline-flex;
        padding: 7px 14px;
        background: var(--bg-elev);
        border: 1px solid var(--border);
        border-radius: 50px;
        font-size: 13px;
        color: var(--text-dim);
        transition: var(--transition);
    }

        .game-page .meny-infogame li a:hover {
            border-color: var(--accent);
            color: var(--text);
        }

    .game-page .button,
    .game-page a.button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 24px;
        background: var(--accent-grad);
        color: #fff !important;
        border: none;
        border-radius: var(--radius-sm);
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
        text-decoration: none;
    }

        .game-page .button:hover,
        .game-page a.button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(108, 92, 231, 0.45);
        }

        .game-page .button:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            transform: none;
        }

    .game-page .text {
        color: var(--text-dim);
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
    }

        .game-page .text p {
            margin-bottom: 12px;
        }

        .game-page .text img {
            max-width: 100%;
            border-radius: var(--radius-sm);
            margin: 10px 0;
        }

    .game-page .ifr-video {
        width: 100%;
        aspect-ratio: 16 / 9;
        border: 0;
        border-radius: var(--radius-sm);
        background: #000;
    }

    .game-page #video {
        margin: 24px 0;
    }

    .game-page .ather-games {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        margin: 12px 0 28px;
    }

        .game-page .ather-games > h2 {
            grid-column: 1 / -1;
        }

    .game-page .item-ather-game {
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        overflow: hidden;
        transition: var(--transition);
        text-align: center;
    }

        .game-page .item-ather-game:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
        }

    .game-page .item-ather-img img {
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .game-page .item-ather-game p {
        padding: 8px 10px 12px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
    }

    .game-page .otziv {
        display: grid;
        grid-template-columns: minmax(100px, 140px) minmax(0, 1fr);
        gap: 14px;
        margin: 16px 0;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 14px;
        position: relative;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .game-page .member-otziv {
        min-width: 0;
        width: auto;
        height: auto;
    }

    .game-page .member-otziv-avatar img {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--border);
    }

    .game-page .member-otziv-about {
        font-size: 13px;
        color: var(--text-dim);
        min-width: 0;
        overflow-wrap: anywhere;
    }

        .game-page .member-otziv-about a {
            color: var(--accent-2);
        }

        .game-page .member-otziv-about p {
            margin-bottom: 4px;
        }

    .game-page .tabl-post-otziv {
        min-width: 0;
        width: 100%;
    }

    .game-page .post-otziv {
        background: var(--bg-elev);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 12px 14px;
        position: relative;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .game-page .post-otziv-info {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 10px;
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 10px;
    }

        .game-page .post-otziv-info img {
            position: relative;
            top: 1px;
            display: inline-block;
        }

    .game-page .post-otziv-num {
        margin-left: auto;
        color: var(--text-dim);
    }

    .game-page .post-otziv-content {
        font-size: 14px;
        color: var(--text);
        line-height: 1.55;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }

        .game-page .post-otziv-content p {
            margin-bottom: 8px;
        }

        .game-page .post-otziv-content a {
            color: var(--accent-2);
        }

    .game-page .karma-block {
        margin-top: 10px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 13px;
    }

    .game-page .karma-minus,
    .game-page .karma-plus {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 28px;
        padding: 0 8px;
        border-radius: 6px;
        border: 1px solid var(--border);
        background: var(--bg);
        cursor: pointer;
        font-weight: 700;
    }

    .game-page .karma-minus {
        color: #ff6b6b;
    }

    .game-page .karma-plus {
        color: #2ecc71;
    }

    .game-page .karma-total--plus,
    .game-page .karma-b {
        color: var(--accent-2);
    }

    .game-page .karma-total--minus {
        color: #ff6b6b;
    }

    .game-page .com-count,
    .game-page .showcom {
        color: var(--accent-2);
        cursor: pointer;
        font-weight: 600;
        margin-left: 4px;
        float: none;
    }

    .game-page .showcom {
        margin-left: auto;
        color: #c4b5fd;
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: color var(--transition);
    }

        .game-page .showcom:hover {
            color: #fff;
        }

    .game-page .com-count {
        margin-left: 0;
        color: var(--accent-2);
    }

    .game-page .showsubcoment-thread,
    .game-page [class*="showsubcoment-"] {
        float: none !important;
        clear: both;
        display: block;
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 18px;
        padding: 4px 0 4px 14px;
        border-left: 2px solid var(--border);
        text-align: left !important;
        box-sizing: border-box;
    }

        .game-page .showsubcoment-thread:empty,
        .game-page [class*="showsubcoment-"]:empty {
            display: none;
            margin: 0;
            padding: 0;
            border: 0;
        }

    .game-page .otziv--reply {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 10px 0;
        padding: 12px;
        background: var(--bg-card);
    }

        .game-page .otziv--reply .member-otziv {
            display: flex;
            align-items: center;
            gap: 10px;
            width: auto !important;
            height: auto !important;
            min-height: 0;
        }

        .game-page .otziv--reply .member-otziv-avatar img {
            width: 44px;
            height: 44px;
        }

        .game-page .otziv--reply .member-otziv-about p {
            margin: 0;
            font-weight: 600;
            color: var(--text);
        }

        .game-page .otziv--reply .post-otziv {
            min-height: 0;
        }

        .game-page .otziv--reply .post-otziv-content {
            padding: 0;
            margin: 0;
        }

    .game-page .subcoment-title {
        margin: 8px 0 10px;
        font-size: 16px;
        text-align: left;
    }

    .game-page .subcomment {
        margin: 8px 0 12px;
        padding: 12px 14px;
        background: var(--bg-elev);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }

    .game-page .textarea-com--reply {
        min-height: 100px;
        margin: 0 0 12px;
    }

    .game-page .otvet-sub-com-wrap {
        margin-top: 8px;
    }

    .game-page .otvet-sub-com {
        color: var(--accent-2);
        font-size: 13px;
        font-weight: 600;
    }

        .game-page .otvet-sub-com:hover {
            color: #fff;
        }

    .game-page .subcomment-denied {
        text-align: center;
        font-size: 15px;
        font-style: italic;
        color: #ff8e8e;
    }

    .game-page .subcomment-auth-links {
        text-align: center;
        font-size: 15px;
        font-style: italic;
        margin-top: 8px;
    }

        .game-page .subcomment-auth-links a {
            color: var(--accent-2);
        }

        .game-page .subcomment-auth-links img {
            display: inline-block;
            vertical-align: middle;
            position: relative;
            top: 2px;
        }

    .game-page .comment {
        margin-top: 28px;
        padding-top: 8px;
        border-top: 1px solid var(--border);
    }

    .game-page .textarea-com {
        width: 100%;
        min-height: 140px;
        padding: 12px 14px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--text);
        font-family: inherit;
        font-size: 14px;
        resize: vertical;
        margin: 10px 0;
        box-sizing: border-box;
        display: block;
    }

        .game-page .textarea-com:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
        }

    .game-page .review-form-hint {
        text-align: center;
        font-size: 14px;
        font-style: italic;
        color: #ff8e8e;
        margin: 0 0 8px;
    }

    .game-page .review-radio-block {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        padding: 8px 0 4px;
    }

    .game-page .review-tone {
        font-weight: 600;
    }

    .game-page .review-tone--plus {
        border-bottom: 2px solid #2ecc71;
        color: #1f9d55;
    }

    .game-page .review-tone--neutral {
        border-bottom: 2px solid #e3c76a;
        color: #b8961f;
    }

    .game-page .review-tone--minus {
        border-bottom: 2px solid #ff6b6b;
        color: #d64545;
    }

    .game-page .review-form-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 10px;
    }

    .game-page .review-char-count {
        color: #ff6b6b;
        font-weight: 700;
    }

    .game-page .review-form-msg {
        margin-top: 12px;
        font-size: 14px;
        min-height: 1.2em;
    }

    .game-page .review-form-msg--ok {
        color: #2ecc71;
    }

    .game-page .review-form-msg--err {
        color: #ff6b6b;
    }

    .game-page .otziv-badge {
        position: static;
        display: inline-flex;
        align-items: center;
        padding: 3px 10px;
        border-radius: 999px;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.3;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .game-page .otziv-badge--plus {
        background-color: #06a206;
    }

    .game-page .otziv-badge--minus {
        background-color: #d80909;
    }

    .game-page .otziv-badge--neutral {
        background-color: #d4ca08;
        color: #222;
    }

    .game-page .otziv--new {
        animation: review-fade-in 0.45s ease;
    }

@keyframes review-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.game-page #radio-block label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
    font-size: 13px;
    cursor: pointer;
}

.game-page .infogame-m {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.game-page .border-wrap {
    background: var(--bg-elev);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

    .game-page .border-wrap p {
        color: var(--text);
    }

@media (max-width: 900px) {
    .game-page .infogame {
        grid-template-columns: 1fr;
    }

    .game-page .infogame-m {
        grid-template-columns: 1fr;
    }

    .game-page .otziv {
        grid-template-columns: 1fr;
    }

        .game-page .otziv .member-otziv {
            display: flex;
            align-items: center;
            gap: 12px;
        }

    .game-page .showsubcoment-thread,
    .game-page [class*="showsubcoment-"] {
        padding-left: 10px;
    }
}

@media (max-width: 600px) {
    .game-page {
        padding: 18px 14px 28px;
    }

        .game-page h1 {
            font-size: 22px;
        }

        .game-page .otziv-badge {
            white-space: normal;
        }
}

/* ===== Профиль пользователя ===== */
.profile-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.profile-card__ava-wrap {
    position: relative;
    width: 160px;
}

.profile-card__ava {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--bg-elev);
}

.profile-card__banned {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(220, 53, 69, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.profile-card__online {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.profile-card__online--on {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    border-color: rgba(46, 204, 113, 0.35);
}

.profile-card__online--off {
    color: var(--text-muted);
    background: var(--bg-elev);
}

.profile-card__name {
    font-family: 'Russo One', sans-serif;
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 6px;
}

.profile-card__login {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 18px;
}

.profile-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin-bottom: 18px;
}

.profile-meta-item__label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.profile-meta-item__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.profile-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.profile-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: center;
}

.profile-stat__num {
    display: block;
    font-family: 'Russo One', sans-serif;
    font-size: 26px;
    color: var(--accent-2);
    line-height: 1.1;
    margin-bottom: 4px;
}

.profile-stat__label {
    font-size: 13px;
    color: var(--text-dim);
}

.profile-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.profile-panel--warn {
    border-color: rgba(255, 193, 7, 0.45);
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.08), var(--bg-card));
}

.profile-panel--danger {
    border-color: rgba(220, 53, 69, 0.45);
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.1), var(--bg-card));
}

.profile-panel__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.profile-panel__text {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
}

.profile-email-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    max-width: 480px;
}

    .profile-email-form .auth-input {
        flex: 1 1 220px;
    }

.profile-comments {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-comment {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

    .profile-comment:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .profile-comment:first-child {
        padding-top: 0;
    }

.profile-comment__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 6px;
}

.profile-comment__game {
    color: var(--accent-2);
    font-weight: 600;
    font-size: 14px;
}

    .profile-comment__game:hover {
        color: var(--text);
    }

.profile-comment__date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.profile-comment__text {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}

@media (max-width: 700px) {
    .profile-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-card__info {
        width: 100%;
    }

    .profile-card__meta {
        grid-template-columns: 1fr;
    }

    .profile-card__actions {
        justify-content: center;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-comment__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ===== Статические страницы: соглашение / правила / реклама ===== */
.static-page__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-2);
}

.static-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.static-card--narrow {
    align-self: start;
}

.static-prose {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

    .static-prose h2 {
        font-family: 'Russo One', sans-serif;
        font-size: 20px;
        color: var(--text);
        line-height: 1.25;
        margin: 28px 0 12px;
        padding-top: 4px;
        border-top: 1px solid var(--border);
    }

        .static-prose h2:first-child {
            margin-top: 0;
            padding-top: 0;
            border-top: none;
        }

    .static-prose p {
        margin-bottom: 12px;
    }

    .static-prose a {
        color: var(--accent-2);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .static-prose a:hover {
            color: var(--text);
        }

    .static-prose ul {
        list-style: disc;
        margin: 0 0 16px 1.25em;
        padding: 0;
    }

    .static-prose li {
        margin-bottom: 8px;
        padding-left: 4px;
    }

.static-prose__contact {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
}

.static-cta {
    text-align: left;
}

.static-cta__badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-2);
}

.static-cta__title {
    font-family: 'Russo One', sans-serif;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 12px;
    border: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.static-cta__mail {
    margin: 16px 0 8px;
    font-size: 17px;
    color: var(--text);
}

.static-cta__hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

    .static-cta__hint code {
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        color: var(--accent-2);
        background: var(--bg-elev);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 1px 6px;
    }

.static-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .static-cta__actions .btn {
        text-decoration: none;
    }

@media (max-width: 700px) {
    .static-card {
        padding: 20px 16px;
    }

    .static-prose {
        font-size: 14px;
    }

        .static-prose h2 {
            font-size: 18px;
        }
}
