/* =============================================
   header.css — CRD GAME
   Шапка сайта, верхнее меню, профиль, поиск,
   выпадающая панель разделов, центральный логотип,
   cookie-баннер
   Версия: 2026-05 · Crimson Desert Edition
============================================= */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --tn-max-width: 1280px;
    --tn-preview-img-width: 600px;
    --tn-preview-img-height: 600px;
}

/* =============================================
   БАЗОВЫЙ ФОН САЙТА (НЕ ТРОГАТЬ)
============================================= */
html, body {
    background: radial-gradient(ellipse at center top, #1a1610 0%, #14110d 40%, #0d0c10 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 100vh;
}
.tmpl_body {
    background: transparent !important;
}

/* ===== СБРОС ===== */
#top_network, #top_network *, .tn_link_bar, .tn_link_bar *,
.tn_mobile_panel, .tn_mobile_panel *, .tn_profile_panel, .tn_profile_panel * { box-sizing: border-box; }

#top_network button, .tn_link_bar button, #tnProfileClose {
    background: none !important; background-image: none !important;
    background-color: transparent !important; border: 0 !important;
    box-shadow: none !important; margin: 0 !important; padding: 0;
    font-family: inherit !important; color: inherit !important;
    text-transform: none !important; letter-spacing: normal !important;
    -webkit-appearance: none !important; appearance: none !important;
}

/* =============================================
   ВЕРХНЯЯ ПОЛОСКА (85px)
============================================= */
#top_network {
    position: fixed !important; top: 0; left: 0; right: 0;
    display: flex; align-items: center;
    width: 100%; height: 85px; padding: 0 35px;
    background: rgba(26, 22, 18, 0.85);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid rgba(174, 137, 84, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    z-index: 9999; line-height: 24px;
}
.tn_inner {
    max-width: var(--tn-max-width); width: 100%; margin: 0 auto;
    display: flex; align-items: center; height: 100%; gap: 20px;
}
.tn_logo_wrap { flex-shrink: 0; display: flex; align-items: center; position: relative; top: 3px; }
.tn_logo_img { height: 90px; width: auto; display: block; }
.tn_mob_ava_img { width: 100%; height: 100%; object-fit: cover; border-radius: 0%; }

/* Скрываем мобильные элементы на ПК */
.tn_hamburger { display: none !important; }
.tn_mobile_avatar { display: none !important; }
.tn_mobile_panel { display: none !important; }
.tn_mobile_overlay { display: none !important; }
.tn_profile_panel { display: none !important; }
.tn_mini_logo { display: none !important; }

/* ===== МЕНЮ ===== */
.tn_menu_list { display: flex; margin: 0; padding: 0; list-style: none !important; gap: 0; }
.tn_menu_list li { position: relative; height: 85px; display: flex; align-items: center; list-style: none !important; }
.tn_menu_list li[data-top_network] a { padding-right: 36px; }
.tn_menu_list li[data-top_network]::after {
    position: absolute; top: 50%; right: 18px; transform: translateY(-50%);
    width: 0; height: 0; border: 5px solid transparent; border-top-width: 6px;
    border-top-color: #8a7d6e; content: ''; pointer-events: none;
    transition: border-color 0.2s, transform 0.2s;
}
.tn_menu_list li[data-top_network]:hover::after,
.tn_menu_list li[data-top_network].active::after { border-top-color: #ae8954; }
.tn_menu_list li[data-top_network].active::after { transform: translateY(-50%) scaleY(-1); }
.tn_menu_list li a,
.tn_menu_list li a:link,
.tn_menu_list li a:visited {
    padding: 0 30px !important; color: #ffffff !important; text-decoration: none !important;
    font-size: 16px !important; font-family: 'Russo One', sans-serif !important; text-transform: uppercase !important;
    letter-spacing: 1px !important; transition: color 0.2s !important;
    outline: 0 !important; cursor: pointer !important;
}
.tn_menu_list li:hover a,
.tn_menu_list li.active a { color: #ae8954 !important; }

/* ===== ПРАВАЯ ЧАСТЬ ===== */
.tn_right { display: flex; align-items: center; gap: 10px; margin-left: auto; margin-right: 210px; flex-shrink: 0; }

/* ===== ПОИСК ===== */
.tn_search { position: relative; display: flex; align-items: center; }
.tn_search .searchForm { display: flex; align-items: center; position: relative; }
.tn_search .queryField {
    background: rgba(26, 22, 18, 0.6);
    border: 1px solid rgba(174, 137, 84, 0.3);
    border-radius: 0;
    padding: 10px 50px 10px 18px;
    color: #fff;
    font-size: 14px;
    width: 260px;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.25s ease;
    height: 50px;
}
.tn_search .queryField::placeholder { color: rgba(174, 137, 84, 0.5); }
.tn_search .queryField:focus {
    border-color: #ae8954;
    box-shadow: 0 0 0 2px rgba(174, 137, 84, 0.15);
    width: 260px;
    background: rgba(26, 22, 18, 0.8);
}

/* Кнопка лупы */
.tn_search .searchSbmFl {
    display: flex !important;
    align-items: center; justify-content: center;
    position: absolute; right: 0; top: 0;
    width: 50px; height: 50px;
    background: transparent !important;
    border: 0 !important;
    border-left: 1px solid rgba(174, 137, 84, 0.2) !important;
    border-radius: 0 !important;
    cursor: pointer; color: #ae8954 !important;
    font-size: 0; padding: 0 !important;
    transition: all 0.2s ease; z-index: 2;
}
.tn_search .searchSbmFl::before {
    content: ''; width: 16px; height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ae8954' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-repeat: no-repeat; background-position: center; background-size: contain;
    transition: transform 0.2s ease;
}
.tn_search .searchSbmFl:hover { background: rgba(174, 137, 84, 0.1) !important; }
.tn_search .searchSbmFl:hover::before { transform: scale(1.15); }

/* ===== ПРОФИЛЬ — кнопка в хедере ===== */
.tn_user_wrap { position: relative; }
.tn_user_btn {
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; padding: 0;
    border: 1px solid rgba(174, 137, 84, 0.3);
    border-radius: 0;
    text-decoration: none; cursor: pointer;
    overflow: hidden; background: rgba(26, 22, 18, 0.6);
    transition: all 0.25s ease;
}
.tn_user_btn:hover {
    border-color: #ae8954;
    box-shadow: 0 0 0 2px rgba(174, 137, 84, 0.2);
}
.tn_user_ava { width: 100%; height: 100%; border-radius: 0; object-fit: cover; display: block; }
.tn_user_ava_icon { font-size: 24px; color: #ae8954; }
.tn_user_name { display: none !important; }

/* ===== ВЫПАДАЮЩЕЕ ОКНО ПРОФИЛЯ ===== */
.tn_user_drop {
    position: absolute; top: calc(100% + 12px); right: 0;
    min-width: 260px;
    background: rgba(26, 22, 18, 0.95);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(174, 137, 84, 0.25);
    border-radius: 0; padding: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 10001;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}
.tn_user_wrap:hover .tn_user_drop {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.tn_user_drop::before {
    content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}

/* L-уголок в углу выпадашки (декор) */
.tn_user_drop::after {
    content: ''; position: absolute; top: 6px; left: 6px;
    width: 10px; height: 10px;
    border-top: 1px solid rgba(174, 137, 84, 0.5);
    border-left: 1px solid rgba(174, 137, 84, 0.5);
    pointer-events: none;
}

.tn_user_drop_header {
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(174, 137, 84, 0.15) 0%, rgba(174, 137, 84, 0.03) 100%);
    border-bottom: 1px solid rgba(174, 137, 84, 0.2);
}
.tn_user_drop_name {
    color: #fff; font-family: 'Russo One', sans-serif; font-size: 16px;
    letter-spacing: 0.8px; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tn_user_drop_group {
    color: #ae8954; font-family: 'Open Sans', sans-serif; font-size: 12px;
    letter-spacing: 0.5px; opacity: 1; font-weight: 600;
}

/* Цвета групп (НЕ ТРОГАТЬ) */
.tn_user_drop_group.tn-grp-admin { color: #ff4444 !important; }
.tn_user_drop_group.tn-grp-supermoder { color: #bf5fff !important; }
.tn_user_drop_group.tn-grp-moder { color: #4a9eff !important; }
.tn_user_drop_group.tn-grp-friend { color: #ffcc00 !important; }
.tn_user_drop_group.tn-grp-citizen { color: #88ccff !important; }
.tn_user_drop_group.tn-grp-verified { color: #44ff88 !important; }
.tn_user_drop_group.tn-grp-user { color: #c5c5c5 !important; }
.tn_user_drop_group.tn-grp-guest { color: #808080 !important; }
.tn_user_drop_group.tn-grp-banned { color: #808080 !important; }

/* Меню пунктов */
.tn_user_drop_menu { padding: 8px 0; display: flex; flex-direction: column; }
.tn_user_drop_menu a {
    display: block !important;
    padding: 12px 22px !important;
    color: #c5b8aa !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-family: 'Open Sans', sans-serif !important;
    letter-spacing: 0.3px !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
}
.tn_user_drop_menu a:hover {
    color: #ae8954 !important;
    background: rgba(174, 137, 84, 0.1) !important;
    padding-left: 28px !important;
}
.tn_user_drop_logout {
    border-top: 1px solid rgba(174, 137, 84, 0.15);
    margin-top: 4px; color: #8a7d6e !important;
}
.tn_user_drop_logout:hover {
    background: rgba(174, 137, 84, 0.1) !important;
    color: #ae8954 !important;
}

/* Бейдж непрочитанных */
.tn_badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #ae8954; color: #14110d; border-radius: 0;
    padding: 2px 8px; font-size: 11px; font-family: 'Russo One', sans-serif;
    margin-left: 6px; min-width: 20px; height: 18px; vertical-align: middle;
    letter-spacing: 0.5px;
}

/* Гостевые кнопки */
.tn_guest { display: flex; gap: 8px; }
.tn_login_btn, .tn_register_btn {
    position: relative;
    padding: 10px 22px; color: #c5b8aa;
    border: 1px solid rgba(174, 137, 84, 0.4);
    border-radius: 0; font-size: 13px;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase; text-decoration: none;
    transition: all 0.25s ease; background: rgba(26, 22, 18, 0.6);
    letter-spacing: 1.5px; height: 50px;
    display: flex; align-items: center;
    box-sizing: border-box;
}
.tn_login_btn:hover, .tn_register_btn:hover {
    color: #14110d; border-color: #ae8954;
    background: #ae8954;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 6px 18px rgba(174, 137, 84, 0.35);
}

/* Акцент на «Регистрации» — золотая по умолчанию */
.tn_register_btn {
    background: rgba(174, 137, 84, 0.15);
    border-color: #ae8954;
    color: #ae8954;
}

/* =============================================
   ВЫПАДАЮЩАЯ ПАНЕЛЬ РАЗДЕЛОВ
============================================= */
.tn_link_bar {
    display: none;
    position: fixed; top: 85px; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--tn-max-width); height: 600px;
    background: rgba(26, 22, 18, 0.92);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(174, 137, 84, 0.15);
    border-top: none;
    border-radius: 0;
    z-index: 9998;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.tn_link_bar.open { display: block; }
.tn_link_bar_small { height: auto; padding: 20px 0; }
.tn_nav_wrap { max-width: var(--tn-max-width); margin: 0 auto; display: flex; }
.tn_nav_btn {
    display: inline-flex !important; justify-content: center !important; align-items: center !important;
    flex: 0 0 100px !important; height: 100px !important;
    cursor: pointer !important; border-radius: 0 !important;
    transition: background-color 0.2s ease !important;
}
.tn_nav_btn:hover {
    background: rgba(174, 137, 84, 0.08) !important;
}
.tn_arrow_left {
    width: 23px; height: 23px; opacity: 0.5; transition: opacity 0.2s, border-color 0.2s;
    border-left: 1px solid #ae8954; border-bottom: 1px solid #ae8954;
    transform: rotate(45deg);
}
.tn_arrow_right {
    width: 23px; height: 23px; opacity: 0.5; transition: opacity 0.2s, border-color 0.2s;
    border-left: 1px solid #ae8954; border-bottom: 1px solid #ae8954;
    transform: rotate(-135deg);
}
.tn_nav_btn:hover .tn_arrow_left,
.tn_nav_btn:hover .tn_arrow_right { opacity: 1; }

.tn_slider_brand { flex: 1 1 auto; display: flex; overflow: hidden; }
.tn_platform {
    display: inline-flex !important; justify-content: center !important; align-items: center !important;
    height: 99px !important; padding: 4px 10px 0 10px !important; margin: 0 !important;
    border: 0 !important; border-bottom: 4px solid transparent !important;
    color: #8a7d6e !important; font-size: 18px !important; font-family: 'Russo One', sans-serif !important;
    text-transform: uppercase !important; text-decoration: none !important; white-space: nowrap !important;
    background: transparent !important; cursor: pointer !important;
    transition: color 0.25s ease, border 0.25s ease !important;
    flex: 0 0 auto !important; min-width: 288px !important; width: 288px !important;
    outline: 0 !important;
    letter-spacing: 1px !important;
}
.tn_platform:hover, .tn_platform.active {
    border-bottom-color: #ae8954 !important; color: #c5b8aa !important;
}
.tn_platform.active {
    color: #ae8954 !important;
}

.tn_link_contents {
    height: 500px;
    background: linear-gradient(135deg, rgba(31, 24, 18, 0.6) 0%, rgba(22, 19, 15, 0.4) 100%);
    position: relative; overflow: hidden;
}

/* ===== КАРТОЧКА В ПАНЕЛИ ===== */
.tn_preview_wrap {
    max-width: var(--tn-max-width); margin: 0 auto;
    height: 100%; display: none; position: relative;
}
.tn_preview_wrap.active { display: flex; }

.tn_preview_inner {
    position: relative; z-index: 2;
    padding: 40px 30px; flex: 1; height: 100%;
}
.tn_preview_contents {
    position: relative; max-width: 480px; height: 100%; z-index: 5;
    display: flex; flex-direction: column;
}
.tn_preview_logo {
    display: flex; justify-content: flex-start; align-items: center;
    height: 70px; flex-shrink: 0; gap: 16px;
}
.tn_preview_logo_img { height: 50px; width: auto; }
.tn_preview_set {
    height: 220px; margin-top: 20px; overflow: hidden; flex-shrink: 0;
}
.tn_preview_name {
    font-size: 30px; line-height: 1.3; color: #c5b8aa;
    margin: 0 0 12px; letter-spacing: 0.3px;
    font-family: 'Open Sans', sans-serif; font-weight: 500 !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
}
.tn_preview_desc {
    font-size: 15px; line-height: 24px; color: #8a7d6e;
    margin: 6px 0 0 0; opacity: 0.9;
    font-family: 'Open Sans', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
}
.tn_preview_btn_wrap {
    margin-top: auto; padding-top: 20px; flex-shrink: 0;
}
.tn_preview_btn {
    position: relative;
    display: inline-flex; justify-content: center; align-items: center;
    width: auto; min-width: 200px; height: 54px; border-radius: 0;
    border: 1px solid rgba(174, 137, 84, 0.5); color: #c5b8aa;
    background: rgba(20, 17, 13, 0.85);
    font-size: 13px; line-height: 20px; padding: 0 30px; text-align: center;
    font-family: 'Russo One', sans-serif; text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}
/* L-уголок (декор) */
.tn_preview_btn::before {
    content: ''; position: absolute; top: 4px; left: 4px;
    width: 8px; height: 8px;
    border-top: 1px solid rgba(174, 137, 84, 0.6);
    border-left: 1px solid rgba(174, 137, 84, 0.6);
    transition: opacity 0.25s ease;
}
.tn_preview_btn:hover {
    color: #14110d;
    background: #ae8954;
    border-color: #ae8954;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(174, 137, 84, 0.35);
    transform: translateY(-2px);
}
.tn_preview_btn:hover::before { opacity: 0; }

/* Стиль категории в превью */
.tn_preview_category {
    color: #ae8954 !important; opacity: 1 !important;
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 11px !important; font-weight: 400;
    margin: 0 !important; padding-left: 16px;
    border-left: 1px solid rgba(174, 137, 84, 0.3);
    font-family: 'Russo One', sans-serif; line-height: 20px;
}

/* Обложка новости (продолжение) */
.tn_preview_cover {
    position: absolute; right: 30px; top: 50px;
    width: 720px; height: 405px; z-index: 1;
    border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: #0a0a0c;
    border: 1px solid rgba(174, 137, 84, 0.45);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 8px 30px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(0, 0, 0, 0.3);
}
.tn_preview_cover::before {
    content: ''; position: absolute; inset: 0; z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(20, 17, 13, 0.92) 0%,
        rgba(20, 17, 13, 0.45) 30%,
        rgba(20, 17, 13, 0.05) 60%,
        rgba(20, 17, 13, 0.10) 100%);
}
.tn_preview_cover::after {
    content: ''; position: absolute; inset: 4px; z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(174, 137, 84, 0.12);
}
.tn_preview_cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: brightness(0.85) contrast(1.05) sepia(0.05);
    transition: transform 0.6s ease, filter 0.4s ease;
}
.tn_preview_cover:hover img {
    transform: scale(1.04);
    filter: brightness(0.95) contrast(1.1) sepia(0.1);
}

/* Ссылки снизу */
.tn_about_links {
    max-width: var(--tn-max-width); margin: 0 auto;
    padding: 20px 30px; display: flex; gap: 0;
}
.tn_about_links a {
    display: flex; align-items: center; justify-content: center;
    width: 288px; height: 60px; color: #8a7d6e;
    font-size: 14px; font-family: 'Russo One', sans-serif;
    text-transform: uppercase; text-decoration: none;
    letter-spacing: 1.5px;
    border-bottom: 4px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.tn_about_links a:hover {
    color: #ae8954;
    border-bottom-color: #ae8954;
}

.tn_overlay {
    display: none; position: fixed; inset: 0; top: 85px;
    background: rgba(13, 12, 10, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9997;
}
.tn_overlay.open { display: block; }

#top_network a, #top_network a:link, #top_network a:visited,
.tn_link_bar a, .tn_link_bar a:link, .tn_link_bar a:visited {
    color: inherit !important; text-decoration: none !important;
}

/* =============================================
   ЦЕНТРАЛЬНЫЙ ЛОГОТИП (Crimson Desert)
============================================= */
.header-logo-center {
    width: 100%; max-width: 100%;
    margin: 100px auto 10px; padding: 0 30px;
    display: flex; justify-content: center; align-items: center;
    box-sizing: border-box;
    animation: logoFadeIn 1.4s ease-out;
}
.header-logo-center a {
    display: block; width: 100%; max-width: 480px;
    line-height: 0; margin-left: 0;
}
.header-logo-center .site-logo-img {
    width: 100%; height: auto; display: block; max-width: 100%;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease, filter 0.4s ease;
}
.header-logo-center a:hover .site-logo-img {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 28px rgba(174, 137, 84, 0.45));
}
@keyframes logoFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
body:not(:has(.pa-entry-hero)) .header-logo-center {
    margin: 110px auto -35px;
}

/* =============================================
   МОБИЛЬНЫЕ
============================================= */
@media (max-width: 768px) {
    #top_network { height: 56px; padding: 0 10px; z-index: 9999 !important; }
    body { padding-top: 56px !important; }
    .tn_inner { gap: 8px; }

    .tn_mini_logo {
        display: flex !important; align-items: center; justify-content: center;
        order: 1; flex-shrink: 0; height: 36px; padding: 0 10px;
        color: #c5b8aa !important; text-decoration: none !important;
        font-family: 'Russo One', sans-serif; font-size: 20px;
        letter-spacing: 1px; line-height: 1;
    }
    .tn_mini_logo span { color: #ae8954; }

    .tn_hamburger {
        order: 0; display: flex !important; flex-direction: column; gap: 4px;
        cursor: pointer; padding: 6px;
        width: 32px; height: 32px;
        align-items: center; justify-content: center;
        border-radius: 0; flex-shrink: 0;
    }
    .tn_hamburger span {
        display: block; width: 20px; height: 2px;
        background: #ae8954; border-radius: 0; transition: all 0.3s;
    }
    .tn_hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
    .tn_hamburger.active span:nth-child(2) { opacity: 0; }
    .tn_hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

    .tn_logo_wrap { display: none; }
    .tn_menu_list { display: none !important; }
    .tn_right { display: none !important; }

    .tn_search { order: 2; flex: 1; min-width: 0; }
    .tn_search .queryField {
        width: 100% !important; height: 34px; padding: 8px 14px;
        font-size: 13px;
        background: rgba(26, 22, 18, 0.6);
        border: 1px solid rgba(174, 137, 84, 0.3);
        border-radius: 0;
        color: #c5b8aa;
    }
    .tn_search .queryField::placeholder { color: rgba(174, 137, 84, 0.5); }
    .tn_search .queryField:focus {
        width: 100% !important;
        border-color: #ae8954;
        background: rgba(26, 22, 18, 0.8);
    }
    .tn_search .searchSbmFl {
        width: 34px; height: 34px;
        border-left: 1px solid rgba(174, 137, 84, 0.2) !important;
    }

    .tn_mobile_avatar {
        order: 3; flex-shrink: 0; width: 34px; height: 34px;
        border-radius: 0; overflow: hidden; cursor: pointer; padding: 0;
        border: 1px solid rgba(174, 137, 84, 0.5);
        background: rgba(26, 22, 18, 0.6);
        display: flex !important; align-items: center; justify-content: center;
    }
    .tn_mobile_avatar_placeholder { color: #ae8954; font-size: 12px; font-family: 'Russo One', sans-serif; }

    .tn_mobile_panel {
        display: block !important; position: fixed;
        top: 0; left: -75%; width: 75%; height: 100%;
        background: linear-gradient(180deg, #1a1610 0%, #14110d 100%);
        border-right: 1px solid rgba(174, 137, 84, 0.2);
        z-index: 99999;
        transition: left 0.3s ease; overflow-y: auto;
        padding: 60px 16px 20px;
    }
    .tn_mobile_panel.open { left: 0; }
    .tn_mobile_panel a {
        display: block; padding: 13px 0;
        color: #c5b8aa;
        text-decoration: none; font-size: 14px;
        font-family: 'Russo One', sans-serif;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(174, 137, 84, 0.08);
        transition: color 0.2s ease, padding-left 0.2s ease;
    }
    .tn_mobile_panel a:hover {
        color: #ae8954;
        padding-left: 8px;
    }
    .tn_mobile_sub {
        padding-left: 16px !important; font-size: 12px !important;
        color: #8a7d6e !important;
        font-family: 'Open Sans', sans-serif !important;
        text-transform: none !important;
        letter-spacing: 0.3px !important;
    }

    .tn_mobile_overlay {
        display: none; position: fixed; inset: 0;
        background: rgba(13, 12, 10, 0.7);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 99998;
    }
    .tn_mobile_overlay.open { display: block; }

    .tn_profile_panel {
        display: block !important; position: fixed;
        top: 0; right: -50%; width: 50%; height: 100%;
        background: linear-gradient(180deg, #1a1610 0%, #14110d 100%);
        border-left: 1px solid rgba(174, 137, 84, 0.2);
        z-index: 99999;
        transition: right 0.3s ease; overflow-y: auto;
        padding: 60px 16px 20px;
    }
    .tn_profile_panel.open { right: 0; }
    .tn_profile_panel a {
        display: block; padding: 13px 0;
        color: #c5b8aa;
        text-decoration: none; font-size: 14px;
        font-family: 'Russo One', sans-serif;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(174, 137, 84, 0.08);
        transition: color 0.2s ease;
    }
    .tn_profile_panel a:hover {
        color: #ae8954;
    }
    .tn_profile_close {
        position: absolute; top: 12px; right: 12px;
        width: 30px; height: 30px;
        background: rgba(174, 137, 84, 0.1) !important;
        border: 1px solid rgba(174, 137, 84, 0.3) !important;
        border-radius: 0 !important;
        color: #ae8954 !important;
        font-size: 16px; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: all 0.2s ease;
    }
    .tn_profile_close:hover {
        background: #ae8954 !important;
        color: #14110d !important;
        border-color: #ae8954 !important;
    }

    .tn_platform {
        min-width: auto !important; width: auto !important;
        padding: 4px 14px 0 !important; font-size: 13px !important;
    }
    .tn_nav_btn { flex: 0 0 40px !important; height: 50px !important; }
    .tn_link_bar {
        top: 56px; height: auto; max-height: 80vh; overflow-y: auto;
        left: 0; transform: none;
    }
    .tn_overlay { top: 56px; }

    .tn_preview_wrap.active { flex-direction: column; }
    .tn_preview_cover {
        position: relative; width: 100%; height: 200px;
        top: 0; right: 0; transform: none; margin: 0 0 16px 0;
    }
    .tn_preview_cover::before {
        background: linear-gradient(180deg,
            rgba(20, 17, 13, 0.2) 0%,
            rgba(20, 17, 13, 0.6) 100%);
    }
    .tn_preview_inner { padding: 16px; height: auto; }
    .tn_preview_contents { max-width: 100%; height: auto; }
    .tn_preview_logo { height: auto; padding: 8px 0; }
    .tn_preview_set { height: auto; min-height: auto; margin-top: 12px; }
    .tn_preview_name {
        font-size: 20px;
        -webkit-line-clamp: 3;
    }
    .tn_preview_desc { -webkit-line-clamp: 2; }
    .tn_preview_btn_wrap { margin-top: 16px; padding-top: 0; }
    .tn_preview_btn { width: 100%; }

    .tn_about_links { flex-direction: column; padding: 10px; }
    .tn_about_links a { width: 100%; }

    .header-logo-center { margin: 20px auto 15px; padding: 0 20px; }
    .header-logo-center a { max-width: 100%; }
}

@media (max-width: 480px) {
    .header-logo-center { margin: 15px auto 10px; padding: 0 15px; }
}

/* Аватарка в мобильной панели */
.tn_mobile_avatar .tn_mob_ava_img,
.tn_mobile_avatar img {
    border-radius: 0 !important;
}

/* Фикс для кнопок навигации в панели */
button.tn_nav_btn,
.tn_nav_wrap button,
#tnNewsBar button,
.tn_link_bar button {
    background: none !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    overflow: visible !important;
}

/* =============================================
   COOKIE NOTICE — Crimson Desert
============================================= */
#bottomInfoBar {
    position: fixed !important;
    bottom: 16px !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 600px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 99999 !important;
    animation: cookieSlideUp 0.5s 0.3s ease backwards;
}
@keyframes cookieSlideUp {
    from { transform: translateX(-50%) translateY(150%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

#cookiePolicy.bottom-info-block {
    display: flex !important; align-items: center !important;
    gap: 14px !important;
    width: calc(100vw - 32px) !important; max-width: 600px !important;
    padding: 14px 18px 14px 56px !important;
    background: rgba(20, 17, 13, 0.92) !important;
    backdrop-filter: blur(12px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
    border: 1px solid rgba(174, 137, 84, 0.5) !important;
    border-radius: 0 !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 12px 40px rgba(0, 0, 0, 0.6) !important;
    color: #c5b8aa !important;
    font-family: 'Open Sans', sans-serif !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* L-уголок в углу баннера */
#cookiePolicy.bottom-info-block::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px;
    width: 10px; height: 10px;
    border-top: 1px solid rgba(174, 137, 84, 0.6);
    border-left: 1px solid rgba(174, 137, 84, 0.6);
    pointer-events: none;
}

/* Иконка cookie */
#cookiePolicy.bottom-info-block::before {
    content: "🍪";
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) sepia(0.2);
    animation: cookieWiggle 4s ease-in-out infinite;
}
@keyframes cookieWiggle {
    0%, 92%, 100% { transform: translateY(-50%) rotate(0deg); }
    94% { transform: translateY(-50%) rotate(-10deg); }
    97% { transform: translateY(-50%) rotate(10deg); }
}

#cookiePolicy .bottom-info-block-content {
    flex: 1 !important; font-size: 12px !important;
    line-height: 1.5 !important; color: #c5b8aa !important;
    letter-spacing: 0.3px !important;
    display: block !important; padding: 0 !important;
    margin: 0 !important; background: transparent !important;
    font-family: 'Open Sans', sans-serif !important;
}
#cookiePolicy .bottom-info-block-content a {
    color: #ae8954 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(174, 137, 84, 0.4) !important;
    font-weight: 600 !important;
    transition: color 0.2s, border-color 0.2s !important;
}
#cookiePolicy .bottom-info-block-content a:hover {
    color: #c5b8aa !important;
    border-bottom-color: #c5b8aa !important;
}

#cookiePolicy .bottom-info-block-action {
    display: flex !important; align-items: center !important;
    gap: 8px !important; flex-shrink: 0 !important;
    margin: 0 !important; padding: 0 !important;
}

/* Кнопка "Согласен" */
#cookiePolicyAgree.bottom-info-button-agree {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 22px !important;
    background: #ae8954 !important;
    border: 1px solid #ae8954 !important;
    border-radius: 0 !important;
    color: #14110d !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(174, 137, 84, 0.3) !important;
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease !important;
    font-family: 'Russo One', sans-serif !important;
    text-shadow: none !important;
}
#cookiePolicyAgree.bottom-info-button-agree:hover {
    background: #c5b8aa !important;
    border-color: #c5b8aa !important;
    transform: translateY(-2px) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(174, 137, 84, 0.5) !important;
    color: #14110d !important;
}
#cookiePolicyAgree.bottom-info-button-agree:active {
    transform: translateY(0) !important;
}

/* Кнопка "Закрыть" */
#cookiePolicyHide.bottom-info-button-hide {
    display: inline-flex !important;
    align-items: center !important; justify-content: center !important;
    width: 32px !important; height: 32px !important;
    background: rgba(20, 17, 13, 0.6) !important;
    border: 1px solid rgba(174, 137, 84, 0.4) !important;
    border-radius: 0 !important;
    color: #ae8954 !important;
    font-size: 0 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}
#cookiePolicyHide.bottom-info-button-hide::before {
    content: "×";
    font-size: 18px; line-height: 1; font-weight: 300;
    color: inherit;
}
#cookiePolicyHide.bottom-info-button-hide:hover {
    background: #ae8954 !important;
    border-color: #ae8954 !important;
    color: #14110d !important;
}

/* Мобилка cookie */
@media only screen and (max-width: 600px) {
    #bottomInfoBar { bottom: 8px !important; width: calc(100% - 16px) !important; }
    #cookiePolicy.bottom-info-block {
        width: 100% !important;
        padding: 11px 14px 11px 42px !important;
        gap: 8px !important;
        border-radius: 0 !important;
    }
    #cookiePolicy.bottom-info-block::before {
        left: 12px;
        font-size: 18px;
    }
    #cookiePolicy.bottom-info-block::after {
        width: 8px; height: 8px;
        top: 4px; left: 4px;
    }
    #cookiePolicy .bottom-info-block-content {
        font-size: 11px !important; line-height: 1.4 !important;
    }
    #cookiePolicy .bottom-info-block-action { gap: 6px !important; }
    #cookiePolicyAgree.bottom-info-button-agree {
        padding: 8px 14px !important;
        font-size: 9px !important;
        letter-spacing: 1.5px !important;
    }
    #cookiePolicyHide.bottom-info-button-hide {
        width: 28px !important; height: 28px !important;
    }
    #cookiePolicyHide.bottom-info-button-hide::before { font-size: 16px; }
}
@media only screen and (max-width: 380px) {
    #cookiePolicy.bottom-info-block { padding: 10px 12px 10px 38px !important; }
    #cookiePolicy .bottom-info-block-content { font-size: 10px !important; }
    #cookiePolicyAgree.bottom-info-button-agree {
        padding: 7px 11px !important;
        font-size: 9px !important;
        letter-spacing: 1px !important;
    }
}

/* =============================================
   REDUCED MOTION
============================================= */
@media (prefers-reduced-motion: reduce) {
    .header-logo-center,
    #bottomInfoBar,
    #cookiePolicy.bottom-info-block::before,
    .tn_preview_cover img,
    .tn_user_drop,
    .tn_login_btn,
    .tn_register_btn,
    .tn_preview_btn,
    #cookiePolicyAgree.bottom-info-button-agree {
        animation: none !important;
        transition: none !important;
    }
}