:root {
    --bg-main: #1a1a1a;
    --bg-secondary: #2c2c2c;
    --text-main: #e0e0e0;
    --cyan: rgba(224, 224, 224, 0.1);
    --cyan1: rgba(224, 224, 224, 0.4);
    --danger-red: #b22222;
    --anomaly-purple: #6a0dad;
    --gray-iron: #3b3b3b;
    --btn: rgba(224, 224, 224, 0.1);
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

* {
    font-family: "Montserrat", serif;
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    max-width: 1920px;
    margin: 0 auto;
    color: var(--text-main);
    position: relative;
    padding-bottom: 60px;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 26px;
}

li {
    list-style: none;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--text-main);
}

p {
    font-size: 17px;
    font-weight: 400;
    line-height: 130%;
}

textarea {
    resize: vertical;
}

.main-faction {
    position: absolute;
    top: -70px;
    font-size: 40px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
}

/* HEADER */
header {
    display: flex;
    justify-content: center;
    max-width: 1920px;
    width: 100%;
    padding: 14px 24px;
    color: var(--text-main);
    margin: 0 auto;
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200, 168, 75, 0.12);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999999;
}

/* Золотая полоска сверху */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #c8a84b 25%,
        #e8c86b 50%,
        #c8a84b 75%,
        transparent 100%
    );
}

.header-main {
    max-width: 1600px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Logo */
.logo {
    flex-shrink: 0;
    transition: filter 0.3s ease;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

.logo:hover {
    filter: drop-shadow(0 0 6px rgba(200, 168, 75, 0.9))
        drop-shadow(0 0 14px rgba(200, 168, 75, 0.5));
}

/* Nav */
header nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

header nav ul li {
    padding: 0;
}

header nav ul li a {
    display: block;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(224, 224, 224, 0.5);
    position: relative;
    transition: color 0.2s ease;
}

header nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: #c8a84b;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--text-main);
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    transform: scaleX(1);
}

/* Auth block */
.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Авторизованный: капсула с аватаром и именем */
.header-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.header-user:hover {
    border-color: rgba(200, 168, 75, 0.4);
    background: rgba(200, 168, 75, 0.06);
}

.header-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(200, 168, 75, 0.35);
    display: block;
    flex-shrink: 0;
}

.header-avatar-initial {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(200, 168, 75, 0.1);
    border: 1px solid rgba(200, 168, 75, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #c8a84b;
    flex-shrink: 0;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.header-username {
    font-size: 13px;
    font-weight: 600;
    color: rgba(224, 224, 224, 0.75);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: rgba(224, 224, 224, 0.4);
    width: 36px;
    height: 36px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.header-logout:hover {
    border-color: rgba(178, 34, 34, 0.5);
    color: #e57373;
    background: rgba(178, 34, 34, 0.08);
}

/* Гость */
.header-auth-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(224, 224, 224, 0.45);
    position: relative;
    transition: color 0.2s ease;
}

.header-auth-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(224, 224, 224, 0.3);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.header-auth-link:hover {
    color: var(--text-main);
}

.header-auth-link:hover::after {
    transform: scaleX(1);
}

.header-auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border: 1px solid rgba(200, 168, 75, 0.45);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #c8a84b;
    transition: all 0.2s ease;
}

.header-auth-btn:hover {
    background: rgba(200, 168, 75, 0.1);
    border-color: rgba(200, 168, 75, 0.75);
    color: #c8a84b;
}
/* HEADER END */

/* MAIN */
main {
    max-width: 1920px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding-top: 220px;
    position: relative;
}

.main {
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    max-width: 1640px;
    width: 100%;
    padding: 30px 20px 30px 20px;
    border-radius: 10px;
    position: relative;
    /* filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)); */
}

.faction-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -100px;
    z-index: 10;
    background-color: var(--bg-main);
}

.faction-img img {
    border-radius: 50%;
    width: 190px;
    height: 190px;
}

.fa-circle-question {
    font-size: 150px;
    color: var(--bg-secondary);
}

.who-are-you-block {
    text-align: center;
    margin-bottom: 10px;
}

.who-are-you-question {
    text-align: center;
    width: 100%;
    display: block;
    font-weight: 700;
    font-size: 38px;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    background: #e0e0e0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.who-are-you-question::after {
    content: "";
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8a84b, transparent);
    margin: 12px auto 0;
}

.choice-faction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(200, 168, 75, 0.08);
}

.choice-faction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.choice-faction-item:hover {
    border-color: rgba(200, 168, 75, 0.35);
    background: rgba(200, 168, 75, 0.05);
}

.choice-faction-item img {
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
    filter: brightness(0.85) saturate(0.9);
}

.choice-faction-item:hover img {
    transform: translateY(-6px);
    filter: brightness(1.05) saturate(1.1);
}

.faction-name {
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(224, 224, 224, 0.55);
    transition: color 0.25s ease;
}

.choice-faction-item:hover .faction-name {
    color: #c8a84b;
}

.content-wrap {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.content-wrap:not(:last-child) {
    margin-bottom: 30px;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.content-left-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-left {
    max-width: 1000px;
    width: 100%;
    background-color: var(--gray-iron);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-right-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-right {
    max-width: 590px;
    width: 100%;
    background-color: var(--gray-iron);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.disclamer-text {
    padding: 16px 20px;
    border-left: 2px solid rgba(200, 168, 75, 0.4);
    background: rgba(200, 168, 75, 0.04);
    border-radius: 0 8px 8px 0;
}

.disclamer-text p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(224, 224, 224, 0.6);
}

/* Цитата из игры */
.zone-quote {
    padding: 18px 20px;
    position: relative;
}

.zone-quote-icon {
    font-size: 22px;
    color: rgba(200, 168, 75, 0.25);
    display: block;
    margin-bottom: 10px;
}

.zone-quote-text {
    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
    color: rgba(224, 224, 224, 0.75);
    margin: 0 0 10px 0;
}

.zone-quote-author {
    font-size: 12px;
    font-weight: 600;
    color: rgba(200, 168, 75, 0.65);
    letter-spacing: 0.05em;
}

.original-games-download-block-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.original-games-download-block-item-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-align: center;
    z-index: 10;
    border-right: 1px solid rgba(200, 168, 75, 0.2);
    border-left: 1px solid rgba(200, 168, 75, 0.2);
    border-bottom: 1px solid rgba(200, 168, 75, 0.2);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    background: rgba(20, 20, 20, 0.9);
    color: #c8a84b;
    white-space: nowrap;
}

.original-games-download-block-item img {
    max-width: 960px;
    width: 100%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    transition: filter 0.3s ease;
    display: block;
}

.original-games-download-block-item:hover img {
    filter: brightness(1.05);
}

.original-games-download-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.btn-download {
    width: 100%;
    padding: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 168, 75, 0.07);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: rgba(200, 168, 75, 0.8);
    border: 1px solid rgba(200, 168, 75, 0.2);
    border-top: none;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: rgba(200, 168, 75, 0.14);
    color: #c8a84b;
}

.top-stalkers-title {
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(224, 224, 224, 0.6);
}

.top-stalkers {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.top-stalker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
    border-left: 2px solid transparent;
}

.top-stalker-item:hover {
    background: rgba(200, 168, 75, 0.05);
    border-left-color: rgba(200, 168, 75, 0.5);
}

.top-stalker-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.top-stalker-index-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-stalker-points-faction {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faction-icon,
.top-stalker-faction {
    width: auto;
    height: 22px;
    opacity: 0.8;
}

.top-stalker-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.top-stalker-name {
    font-weight: 600;
    font-size: 14px;
    color: rgba(224, 224, 224, 0.85);
}

.top-stalker-points {
    font-size: 13px;
    font-weight: 700;
    color: rgba(200, 168, 75, 0.7);
}

.top-stalker-index {
    font-weight: 700;
    font-size: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: rgba(224, 224, 224, 0.5);
    flex-shrink: 0;
}

/* Топ-3 */
.top-stalker-item:nth-child(1) .top-stalker-index {
    background: rgba(200, 168, 75, 0.2);
    color: #c8a84b;
    border: 1px solid rgba(200, 168, 75, 0.4);
}

.top-stalker-item:nth-child(2) .top-stalker-index {
    background: rgba(180, 180, 190, 0.15);
    color: #c0c0c8;
    border: 1px solid rgba(180, 180, 190, 0.3);
}

.top-stalker-item:nth-child(3) .top-stalker-index {
    background: rgba(160, 100, 60, 0.15);
    color: #cd7f45;
    border: 1px solid rgba(160, 100, 60, 0.3);
}

/* Последние находки */
.recent-artifacts-wrap {
    width: 100%;
}

.recent-artifacts {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.recent-artifact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-left: 2px solid transparent;
    transition: background 0.2s, border-left-color 0.2s;
    text-decoration: none;
}

.recent-artifact-item:hover {
    background: rgba(200, 168, 75, 0.05);
    border-left-color: rgba(200, 168, 75, 0.5);
}

.recent-artifact-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.recent-artifact-img-wrap {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-artifact-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.recent-artifact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recent-artifact-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(200, 168, 75, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-artifact-user {
    font-size: 11px;
    color: rgba(224, 224, 224, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-artifact-time {
    font-size: 11px;
    color: rgba(224, 224, 224, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

.chat-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 500px;
    overflow-y: auto;
    
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 12px 15px;
    border-radius: 10px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease;
}

.chat-message:hover {
    border-color: rgba(200, 168, 75, 0.12);
}

.chat-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 60, 60, 0.08);
    border: 1px solid rgba(255, 60, 60, 0.2);
    border-radius: 4px;
    color: rgba(255, 100, 100, 0.5);
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.chat-message:hover .chat-delete-btn {
    opacity: 1;
}

.chat-delete-btn:hover {
    background: rgba(255, 60, 60, 0.18);
    border-color: rgba(255, 60, 60, 0.45);
    color: #ff6464;
}

.chat-message-date {
    color: rgba(255, 255, 255, 0.3);
}

.delete-meassage-cross {
    position: absolute;
    top: 2px;
    right: 4px;
    background: transparent;
    font-size: 14px;
    border: none;
    outline: none;
    color: rgba(229, 115, 115, 0.5);
    cursor: pointer;
    transition: color 0.2s ease;
}

.delete-meassage-cross:hover {
    color: #e57373;
}

.delete-comment-news {
    display: block;
    position: absolute;
    right: 20px;
    top: 50px;
}

.chat-message-name-user-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-message-name-user {
    font-weight: 700;
    color: #c8a84b;
    font-size: 14px;
}

.chat-message-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.chat-message-img {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.chat-message-img img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.chat-message-name-user-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

#chat-input {
    width: 100%;
    padding: 10px 14px;
    height: 70px;
    background: rgba(0, 0, 0, 0.2);
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 15px;
    transition: border-color 0.2s ease;
}

#chat-input:focus {
    border-color: rgba(200, 168, 75, 0.45);
}

#chat-input::placeholder {
    font-size: 15px;
    color: rgba(224, 224, 224, 0.25);
}

#chat-btn {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: rgba(200, 168, 75, 0.1);
    border: 1px solid rgba(200, 168, 75, 0.3);
    color: rgba(200, 168, 75, 0.75);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#chat-btn:hover:not(:disabled) {
    background: rgba(200, 168, 75, 0.18);
    border-color: rgba(200, 168, 75, 0.6);
    color: #c8a84b;
}

#chat-btn .fa-paper-plane {
    font-size: 26px;
}

.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 168, 75, 0.3) rgba(0, 0, 0, 0.15);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(200, 168, 75, 0.3);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: rgba(200, 168, 75, 0.55);
}

.content-preview-news {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(200, 168, 75, 0.1);
}

.preview-news-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-news-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.preview-news-track {
    display: flex;
    transition: transform 0.4s ease;
}

.preview-news-item {
    flex: 0 0 33.333%;
    padding: 10px;
    box-sizing: border-box;
    height: 100%;
    min-height: 430px;
    transition: transform 0.25s ease;
}

.preview-news-item:hover {
    transform: translateY(-4px);
}

.preview-news-item img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: filter 0.3s ease;
}

.preview-news-item:hover img {
    filter: brightness(1.07);
}

.preview-news-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.preview-news-text {
    font-size: 17px;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.preview-news-item:hover .preview-news-text {
    color: #e8e8e8;
}

.preview-news-date {
    font-size: 13px;
    font-weight: 500;
    color: rgba(200, 168, 75, 0.6);
    margin-top: 10px;
    letter-spacing: 0.04em;
}

.news-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 20, 0.75);
    border: 1px solid rgba(200, 168, 75, 0.3);
    color: rgba(200, 168, 75, 0.8);
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.25s ease,
        background 0.2s ease,
        color 0.2s ease;
    z-index: 2;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    line-height: 1;
}

.news-arrow.left {
    left: 14px;
}

.news-arrow.right {
    right: 14px;
}

.preview-news-wrap:hover .news-arrow {
    opacity: 1;
}

.news-arrow:hover {
    background: rgba(200, 168, 75, 0.15);
    border-color: rgba(200, 168, 75, 0.6);
    color: #c8a84b;
}

.mods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mod-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.mod-item:hover {
    border-color: rgba(200, 168, 75, 0.2);
    background: rgba(0, 0, 0, 0.28);
}

.mods-item-img {
    border-radius: 10px;
    width: 500px;
    height: 320px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: filter 0.3s ease;
}

.mod-item:hover .mods-item-img {
    filter: brightness(1.06);
}

.mod-title {
    margin-bottom: 12px;
}

.mod-title h2 {
    font-size: 22px;
    text-align: left;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.mod-item:hover .mod-title h2 {
    color: #c8a84b;
}

.mod-description {
    font-size: 14px;
    margin-bottom: 20px;
    color: rgba(224, 224, 224, 0.6);
    line-height: 1.65;
}

.mod-text {
    width: 100%;
}

.mod-btn {
    width: 100%;
    border-radius: 8px;
    padding: 14px 16px;
    line-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 168, 75, 0.06);
    border: 1px solid rgba(200, 168, 75, 0.35);
    color: #c8a84b;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.mod-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 168, 75, 0.18), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
}

.mod-btn:hover {
    background: rgba(200, 168, 75, 0.13);
    border-color: rgba(200, 168, 75, 0.7);
    color: #dbbe62;
    box-shadow: 0 0 22px rgba(200, 168, 75, 0.22), 0 4px 16px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.mod-btn:hover::before {
    left: 160%;
}

.mod-download-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mod-download-links-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 10px;
    width: 100%;
    transition: all 0.2s ease;
    color: rgba(224, 224, 224, 0.65);
}

.mod-download-links-game-review {
    justify-content: center;
}

.mod-download-links-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-main);
}

.mod-download-links-item span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.mod-download-links-item img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

/* Торрент-кнопка */
.mod-download-links-item-torrent {
    padding: 14px 40px;
    background: rgba(200, 168, 75, 0.06);
    border-color: rgba(200, 168, 75, 0.35);
    color: #c8a84b;
    position: relative;
    overflow: hidden;
}

.mod-download-links-game-review .mod-download-links-item-torrent {
    width: auto;
    padding: 14px 100px;
}

.mod-download-links-item-torrent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 168, 75, 0.18), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
}

.mod-download-links-item-torrent:hover {
    background: rgba(200, 168, 75, 0.13);
    border-color: rgba(200, 168, 75, 0.7);
    color: #dbbe62;
    box-shadow: 0 0 22px rgba(200, 168, 75, 0.22), 0 4px 16px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.mod-download-links-item-torrent:hover::before {
    left: 160%;
}

.mod-download-links-item-torrent img {
    opacity: 1;
    filter: sepia(1) saturate(2.5) hue-rotate(8deg) brightness(0.85);
    transition: filter 0.2s ease;
}

.mod-download-links-item-torrent:hover img {
    filter: sepia(1) saturate(4) hue-rotate(8deg) brightness(1.15);
}

.mod-download-links-item--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.mod-game-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid;
    margin-bottom: 10px;
}

.mod-game-badge--shadow {
    color: #72c472;
    border-color: rgba(114, 196, 114, 0.3);
    background: rgba(114, 196, 114, 0.07);
}

.mod-game-badge--clear-sky {
    color: #6bb4d4;
    border-color: rgba(107, 180, 212, 0.3);
    background: rgba(107, 180, 212, 0.07);
}

.mod-game-badge--cop {
    color: #c8a84b;
    border-color: rgba(200, 168, 75, 0.3);
    background: rgba(200, 168, 75, 0.07);
}

.mod-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.mod-review-block {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(224, 224, 224, 0.65);
    width: auto;
    height: auto;
    margin-bottom: 0;
}

.mod-review-block i {
    color: rgba(200, 168, 75, 0.6);
    font-size: 11px;
}

.mod-review-top {
    margin-bottom: 24px;
}

.mod-show-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(224, 224, 224, 0.4);
    font-size: 13px;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.mod-show-back:hover {
    color: var(--text-main);
}

.mod-show-guest-notice {
    font-size: 14px;
    color: rgba(224, 224, 224, 0.45);
    text-align: center;
    padding: 12px 0;
}

/* MODS PAGE HEADER */
.mods-page-header {
    margin-bottom: 24px;
}

.mods-page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.mods-page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c8a84b, transparent);
}

.mods-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.mods-filter-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(224, 224, 224, 0.55);
    font-size: 14px;
    font-family: "Montserrat", serif;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.mods-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.mods-filter-btn.active {
    border-color: rgba(200, 168, 75, 0.5);
    background: rgba(200, 168, 75, 0.08);
    color: #c8a84b;
}

.mods-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.mod-edit-delete-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.mod-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mod-rating .mod-rating-title {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: rgba(224, 224, 224, 0.45);
}

.bod-rating-starts {
    display: flex;
    gap: 4px;
    font-size: 22px;
}

.bod-rating-starts .fa-regular {
    color: rgba(200, 168, 75, 0.25);
    transition: color 0.15s ease;
}

.bod-rating-starts .fa-solid {
    color: #c8a84b;
    transition: color 0.15s ease;
}

/* .mod-rating-title {
    font-size: 20px;
    margin-bottom: 15px;
    
}

.bod-rating-starts {
    font-size: 20px;
} */

.content-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 17px;
    line-height: 1.75;
    color: #c5c5c5;
}

.content-text p {
    margin: 0;
}

.content-text h2 {
    font-size: 22px;
    color: rgba(200, 168, 75, 0.8);
    margin-top: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.content-text h3 {
    font-size: 19px;
    color: rgba(200, 168, 75, 0.6);;
    margin-top: 6px;
}

.content-text h4 {
    font-size: 17px;
    color: var(--text-main);
}

.content-text strong,
.content-text b {
    color: var(--text-main);
    font-weight: 600;
}

.content-text em,
.content-text i:not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    color: #a8a8a8;
    font-style: italic;
    font-size: 17px;
}

.content-text a {
    color: #7ea8d4;
    text-decoration: none;
    border-bottom: 1px solid rgba(126, 168, 212, 0.3);
    transition: color 0.2s, border-color 0.2s;
}

.content-text a:hover {
    color: #a0c4e8;
    border-bottom-color: rgba(160, 196, 232, 0.6);
}

.content-text ol,
.content-text ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 24px;
}

.content-text ul li {
    list-style: disc;
}

.content-text ol li {
    list-style: decimal;
}

.content-text li {
    font-size: 17px;
    line-height: 1.7;
    padding-left: 6px;
}

.content-text li::marker {
    color: rgba(255, 255, 255, 0.3);
}

.content-text blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
    color: #a8a8a8;
    font-style: italic;
}

.content-text hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 10px 0;
}

.content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 5px 0;
}

.content-text code {
    background: rgba(255, 255, 255, 0.07);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 15px;
    color: #d4a76a;
}

.content-text pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 15px;
    line-height: 1.5;
}

.content-text pre code {
    background: none;
    padding: 0;
    color: #c5c5c5;
}

.content-text .gallery-wrap {
    margin: 10px 0;
}

.content-text table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.content-text th,
.content-text td {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.content-text th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-weight: 600;
}

.gallery-wrap,
.gallery {
    position: relative;
}

/* Базовая сетка галереи: 2 в строке, gap 20px */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Карточки фиксированной пропорции, одинаковые по ширине/высоте */
.gallery img {
    width: 100%;
    aspect-ratio: 4 / 2;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    cursor: zoom-in;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.gallery img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Лайтбокс поверх всего */
.lightbox {
    position: fixed !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    z-index: 999999999999 !important; /* максимум 32-bit */
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
    isolation: isolate; /* создаёт верхний контекст */
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

/* Затемнение фона */
.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(2px);
    z-index: 0; /* важно */
}

.lightbox.is-open .lightbox__backdrop {
    opacity: 1;
}

/* Изображение в лайтбоксе */
.lightbox__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 1400px);
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.98);
    opacity: 0;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    z-index: 100;
}

.lightbox__image img {
    display: block;
    max-width: min(92vw, 1400px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox.is-open .lightbox__image {
    opacity: 1;
    transform: scale(1);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 200; /* важно */
}

/* Кнопка закрытия */
.lightbox__close {
    top: 16px;
    right: 16px;
    appearance: none;
    border: none;
    outline: none;
    background: rgba(30, 30, 30, 0.6);
    color: #fff; /* контрастно на тёмном фоне */
    font-size: 28px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
    opacity: 0.95;
    z-index: 300;
}

.lightbox__close:hover {
    background: rgba(30, 30, 30, 0.85);
    transform: scale(1.03);
}

/* Навигационные зоны (невидимые, но кликабельные) */
.lightbox__nav {
    top: 0;
    bottom: 0;
    width: 35%;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.lightbox__nav--prev {
    left: 0;
}
.lightbox__nav--next {
    right: 0;
}

/* Подсказки стрелок (опционально, можно убрать) */
.lightbox__nav--prev::after,
.lightbox__nav--next::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 3px solid #fff; /* толще/ярче */
    border-left: none;
    border-bottom: none;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transform: translateY(-50%) rotate(45deg);
    z-index: 3; /* поверх всего */
    pointer-events: none; /* клики идут в кнопку */
}

.lightbox__nav--prev::after {
    left: 10%;
    transform: translateY(-50%) rotate(225deg);
}

.lightbox__nav--next::after {
    right: 10%;
}

/* Адаптив при очень узких экранах: всё равно 2 в ряд как просили */
@media (max-width: 420px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.system-requirements-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.system-requirements-item {
    display: flex;
    flex-direction: column;
}

.system-requirements-title {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
}

.system-requirements-title i {
    color: rgba(200, 168, 75, 0.6);
    font-size: 14px;
}

.system-requirements-title:hover {
    background: rgba(200, 168, 75, 0.06);
    border-color: rgba(200, 168, 75, 0.2);
    color: #c8a84b;
}

.system-requirements-title:hover i {
    color: #c8a84b;
}

.system-requirements-text {
    display: none;
    padding: 15px;
    flex-direction: column;
    gap: 10px;
}

.system-requirements-text ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.system-requirements-text ul li {
    font-size: 17px;
}

.system-requirements-text.active {
    display: flex;
}

/* NEWS INDEX */
.news-index-header {
    margin-bottom: 24px;
}

.news-index-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.news-index-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c8a84b, transparent);
}

.news-index-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .news-index-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.news-index-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.news-index-card:hover {
    border-color: rgba(200, 168, 75, 0.2);
    transform: translateY(-3px);
}

.news-index-card-img-wrap {
    overflow: hidden;
}

.news-index-card-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.news-index-card:hover .news-index-card-img-wrap img {
    filter: brightness(1.07);
}

.news-index-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.news-index-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.news-index-card:hover .news-index-card-title {
    color: #c8a84b;
}

.news-index-card-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.news-index-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(200, 168, 75, 0.6);
    letter-spacing: 0.03em;
}

.news-index-card-date i {
    font-size: 11px;
}

.news-index-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.news-wrap {
    display: flex;
    flex-wrap: wrap;
}

.news-item-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item-preview-img {
    display: flex;
    justify-content: center;
}

.news-item-preview-img img {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.news-item-title h1 {
    text-align: center;
    font-size: 28px;
    line-height: 1.35;
    color: var(--text-main);
}

.news-item-views-date {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-item-views,
.news-item-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-item-views span,
.news-item-date span {
    font-weight: 500;
    font-size: 14px;
    color: rgba(224, 224, 224, 0.45);
}

.news-item-views .fa-solid,
.news-item-date .fa-solid {
    color: rgba(200, 168, 75, 0.5);
    font-size: 14px;
}

.news-item-comments-textarea-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item-comments-textarea-wrap label {
    font-weight: 600;
    font-size: 13px;
    color: rgba(224, 224, 224, 0.55);
    letter-spacing: 0.04em;
}

.news-item-comments-textarea-wrap input,
.news-item-comments-textarea-wrap textarea {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 14px;
    outline: none;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 14px;
    font-family: "Montserrat", serif;
    transition: border-color 0.2s ease;
}

.news-item-comments-textarea-wrap input:focus,
.news-item-comments-textarea-wrap textarea:focus {
    border-color: rgba(200, 168, 75, 0.45);
}

.news-item-comments-textarea-wrap input {
    margin-bottom: 20px;
}

.news-item-comments-textarea-wrap textarea {
    min-height: 100px;
    margin-bottom: 10px;
}

#news-item-comments-textarea {
    max-width: 1560px;
    min-height: 100px;
    padding: 10px;
    background-color: var(--cyan);
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 10px;
}

.news-item-comments-textarea-btn {
    background: rgba(200, 168, 75, 0.08);
    border-radius: 8px;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(200, 168, 75, 0.25);
    color: rgba(200, 168, 75, 0.8);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.news-item-comments-textarea-btn:hover {
    background: rgba(200, 168, 75, 0.15);
    border-color: rgba(200, 168, 75, 0.5);
    color: #c8a84b;
}

.news-item-comments-messages {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

/* FORUM INDEX */
.forum-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.forum-page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.forum-page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c8a84b, transparent);
}

.forum-ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(200, 168, 75, 0.1);
    border: 1px solid rgba(200, 168, 75, 0.35);
    border-radius: 8px;
    color: #c8a84b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.forum-ask-btn:hover {
    background: rgba(200, 168, 75, 0.18);
    border-color: rgba(200, 168, 75, 0.6);
    color: #c8a84b;
}

.forum-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forum-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid transparent;
    border-radius: 10px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        border-left-color 0.2s ease;
}

.forum-list-item:hover {
    border-color: rgba(200, 168, 75, 0.15);
    border-left-color: rgba(200, 168, 75, 0.5);
    background: rgba(0, 0, 0, 0.28);
}

.forum-list-item-main {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.forum-list-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-list-item:hover .forum-list-item-title {
    color: #c8a84b;
}

.forum-list-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.forum-list-item-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(200, 168, 75, 0.65);
}

.forum-list-item-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(224, 224, 224, 0.3);
}

.forum-list-item-date i {
    font-size: 10px;
    color: rgba(200, 168, 75, 0.35);
}

.forum-list-item-comments {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(224, 224, 224, 0.3);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.forum-list-item-comments .fa-solid {
    font-size: 13px;
    color: rgba(200, 168, 75, 0.3);
}

.forum-empty {
    font-size: 14px;
    color: rgba(224, 224, 224, 0.4);
    text-align: center;
    padding: 30px 0;
}

.forum-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

/* FORUM SHOW */
.forum-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forum-question-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(178, 34, 34, 0.4);
    border-radius: 6px;
    color: rgba(229, 115, 115, 0.7);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.forum-delete-btn:hover {
    background: rgba(178, 34, 34, 0.12);
    border-color: rgba(178, 34, 34, 0.7);
    color: #e57373;
}

.forum-create-header {
    margin-bottom: 20px;
}

/* keep old classes non-breaking */
.forum-prewiew-wrap {
    display: block;
}
.forum-preview-center {
    display: block;
}
.forum-preview-item {
    display: block;
}
.forum-preview-item-title-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}
.forum-preview-item-count-comments-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.forum-preview-item-count-comments {
    font-size: 14px;
    color: rgba(224, 224, 224, 0.35);
}
.forum-preview-item-author-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.forum-preview-item-date {
    font-size: 12px;
    color: rgba(224, 224, 224, 0.35);
}

.forum-author-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.forum-author-name {
    font-weight: 700;
    font-size: 14px;
    color: #c8a84b;
}

.forum-author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.forum-views-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-views-wrap,
.forum-date-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-views-wrap span,
.forum-date-wrap span {
    font-size: 14px;
    color: rgba(224, 224, 224, 0.45);
}

.forum-views-wrap .fa-solid,
.forum-date-wrap .fa-solid {
    font-size: 14px;
    color: rgba(200, 168, 75, 0.5);
}

.forum-question-title h2 {
    text-align: center;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--text-main);
}

.forum-question-text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(224, 224, 224, 0.75);
    text-align: center;
}

.forum-to-ask-a-question {
    position: absolute;
    top: -60px;
    left: 0;
}

.forum-form-btn-delete-queston {
    margin-bottom: 10px;
}

/* ============================================================
   ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ (ПДА)
   ============================================================ */

.pda-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Шапка профиля --- */

.pda-header {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 28px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.pda-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c8a84b, transparent);
}

/* --- Аватар --- */

.pda-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.pda-avatar-wrap img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    border: 2px solid rgba(200, 168, 75, 0.2);
}

.pda-avatar-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
}

.pda-avatar-overlay span {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.pda-avatar-wrap:hover .pda-avatar-overlay {
    opacity: 1;
}

/* --- Инфо --- */

.pda-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.pda-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pda-user-name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pda-faction-icon-large {
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 0.85;
}

/* --- Стат-бейджи --- */

.pda-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pda-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.pda-stat-badge .fa-solid {
    color: #c8a84b;
    font-size: 11px;
}

.pda-stat-badge.pda-stat-gold {
    border-color: rgba(200, 168, 75, 0.3);
    color: #c8a84b;
    font-weight: 700;
}

/* --- Bio --- */

.pda-bio-block {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pda-bio-block p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    flex: 1;
    margin: 0;
}

.pda-bio-empty {
    color: rgba(255, 255, 255, 0.2) !important;
    font-style: italic;
}

.pda-bio-edit-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(200, 168, 75, 0.08);
    border: 1px solid rgba(200, 168, 75, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8a84b;
    font-size: 12px;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.pda-bio-edit-btn:hover {
    background-color: rgba(200, 168, 75, 0.2);
    color: #c8a84b;
}

/* --- Форма описания --- */

.pda-form-description {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.pda-form-description textarea {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    outline: none;
    color: var(--text-main);
    font-size: 13px;
    font-family: inherit;
    width: 100%;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.pda-form-description textarea:focus {
    border-color: #c8a84b;
}

.pda-form-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pda-btn-save {
    background-color: #c8a84b;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pda-btn-save:hover {
    background-color: #d4b55a;
}

.pda-btn-cancel {
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.pda-btn-cancel:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

/* --- Форма аватара --- */

.pda-avatar-form-block {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 24px 28px;
    border: 1px solid rgba(200, 168, 75, 0.2);
}

.pda-avatar-form-block h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pda-avatar-form-block h3 .fa-solid {
    color: #c8a84b;
}

.pda-form-avatar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#avatar-input {
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

#avatar-input::file-selector-button {
    padding: 8px 16px;
    border: 1px solid rgba(200, 168, 75, 0.35);
    background-color: rgba(200, 168, 75, 0.1);
    color: #c8a84b;
    cursor: pointer;
    margin-right: 12px;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    font-family: inherit;
}

#avatar-input::file-selector-button:hover {
    background-color: rgba(200, 168, 75, 0.2);
}

/* Кроппер аватара */
.pda-cropper-wrap {
    display: none;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    max-height: 320px;
}

.pda-cropper-wrap img {
    display: block;
    max-width: 100%;
    max-height: 320px;
}

/* --- Достижения --- */

.pda-achievements {
    background-color: #1e1e1e;;
    border-radius: 10px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #c8a84b;
}

.pda-achievements h2 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pda-achievements h2 i {
    color: #c8a84b;
    font-size: 15px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.achievement-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 10px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
    cursor: default;
}

.achievement-badge.earned {
    background-color: rgba(200, 168, 75, 0.07);
    border: 1px solid rgba(200, 168, 75, 0.3);
}

.achievement-badge.earned:hover {
    transform: translateY(-2px);
}

.achievement-badge.locked {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    opacity: 0.28;
}

.achievement-icon {
    font-size: 26px;
}

.achievement-badge.earned .achievement-icon {
    color: #c8a84b;
}

.achievement-badge.locked .achievement-icon {
    color: rgba(255, 255, 255, 0.4);
}

.achievement-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
}

.achievement-desc {
    font-size: 10px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.35);
}

.achievement-badge.earned .achievement-desc {
    color: #c8a84b;
}

/* ============================================================
   СИСТЕМА РАНГОВ
   ============================================================ */

/* --- Универсальный бейдж ранга --- */

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 1px solid;
}

.rank-badge .fa-solid {
    font-size: 10px;
}

/* Маленький бейдж (для чата, хедера, топа) */
.rank-badge-sm {
    font-size: 10px;
    padding: 2px 7px;
    gap: 4px;
}

.rank-badge-sm .fa-solid {
    font-size: 9px;
}

/* --- Блок ранга в профиле --- */

.pda-rank-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pda-rank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pda-rank-next {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.pda-rank-next span {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* --- Прогресс-бар --- */

.rank-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rank-progress-bar {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
}

.rank-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.rank-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   СТРАНИЦЫ АВТОРИЗАЦИИ
   ============================================================ */

.body-login {
    background-color: var(--bg-main);
    padding-bottom: 0;
}

.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.auth-logo {
    font-size: 12px;
    letter-spacing: 5px;
    color: #c8a84b;
    font-weight: 700;
    margin-bottom: 0;
    text-align: center;
}

.login-block-wrap {
    background-color: var(--bg-secondary);
    border-top: 3px solid #c8a84b;
    border-radius: 0 0 10px 10px;
    padding: 32px 32px 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.form-login {
    width: 100%;
}

.form-login h2 {
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-login h2 .fa-solid {
    color: #c8a84b;
    font-size: 16px;
}

.form-login p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.auth-field {
    margin-bottom: 16px;
}

.form-login label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-login input {
    height: 42px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    color: var(--text-main);
    padding: 0 12px 0 38px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-login input:focus {
    border-color: #c8a84b;
}

.form-login input:focus + .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
    color: #c8a84b;
}

.form-login input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-login .cf-turnstile {
    width: 100%;
    margin-bottom: 16px;
}

.form-login button[type="submit"] {
    height: 42px;
    width: 100%;
    background-color: #c8a84b;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-top: 8px;
    margin-bottom: 20px;
    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.form-login button[type="submit"]:hover {
    background-color: #d4b55a;
    color: #1a1a1a;
    border: none;
    transform: translateY(-1px);
}

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.to-registration-page,
.to-login-page,
.forgot-password {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    transition: color 0.2s ease;
    text-align: center;
}

.to-registration-page:hover,
.to-login-page:hover,
.forgot-password:hover {
    color: #c8a84b;
}

.auth-success {
    background-color: rgba(40, 120, 50, 0.15);
    border: 1px solid rgba(80, 180, 80, 0.3);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #7ec87e;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

/* Выбор группировки */
/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #1e1e1e;
    border: 1px solid rgba(200, 168, 75, 0.35);
    border-radius: 12px;
    padding: 34px 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(200, 168, 75, 0.05);
}

/* Золотая полоска сверху у модала */
.modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #c8a84b 40%,
        #e8c86b 60%,
        #c8a84b 80%,
        transparent 100%
    );
    border-radius: 12px 12px 0 0;
}

.modal-content h2 {
    color: #c8a84b;
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    letter-spacing: 0.03em;
}

.modal-content p {
    color: rgba(224, 224, 224, 0.8);
    margin-bottom: 16px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
}

.modal-content strong {
    color: #c8a84b;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-modal {
    padding: 11px 28px;
    background: rgba(200, 168, 75, 0.88);
    color: #1a1a1a;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-modal:hover {
    background: #c8a84b;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(200, 168, 75, 0.3);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(224, 224, 224, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(224, 224, 224, 0.4);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.btn-close-modal:hover {
    color: #c8a84b;
}

.pagination svg {
    width: 20px;
}

.text-gray-700 {
    display: none;
}

/* ADMIN FORM */

.admin-form {
    display: flex;
    flex-direction: column;
    max-width: 800px;
}

.admin-form-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.admin-form-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(224, 224, 224, 0.45);
    font-size: 13px;
    transition: color 0.2s ease;
}

.admin-form-back:hover {
    color: var(--text-main);
}

.admin-form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-form-section:last-of-type {
    border-bottom: none;
}

.admin-form-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c8a84b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-form-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(224, 224, 224, 0.7);
}

.admin-form-input,
.admin-form-textarea,
.admin-form-select {
    background: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 15px;
    font-family: "Montserrat", serif;
    width: 100%;
    transition: border-color 0.2s ease;
    outline: none;
}

.admin-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(224,224,224,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.admin-form-input:focus,
.admin-form-textarea:focus,
.admin-form-select:focus {
    border-color: rgba(200, 168, 75, 0.55);
}

.admin-form-input::placeholder,
.admin-form-textarea::placeholder {
    color: rgba(224, 224, 224, 0.2);
}

.admin-form-file {
    background: var(--bg-main);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 10px 14px;
    color: rgba(224, 224, 224, 0.7);
    font-size: 14px;
    font-family: "Montserrat", serif;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.2s ease;
}

.admin-form-file:hover {
    border-color: rgba(200, 168, 75, 0.4);
}

.admin-form-file::file-selector-button {
    background: var(--cyan);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-main);
    padding: 5px 12px;
    font-size: 13px;
    font-family: "Montserrat", serif;
    cursor: pointer;
    margin-right: 12px;
    transition: background 0.2s ease;
}

.admin-form-file::file-selector-button:hover {
    background: var(--cyan1);
}

.admin-form-hint {
    font-size: 12px;
    color: rgba(224, 224, 224, 0.35);
}

.admin-form-errors {
    background: rgba(178, 34, 34, 0.12);
    border: 1px solid rgba(178, 34, 34, 0.35);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #e57373;
    font-size: 14px;
    margin-bottom: 4px;
}

.admin-form-errors i {
    margin-top: 2px;
    flex-shrink: 0;
}

.admin-form-errors ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
}

.admin-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
}

.admin-form-cancel {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.admin-form-cancel:hover {
    opacity: 0.5;
}

/* ADMIN LIST */

.admin-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-alert-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 139, 34, 0.12);
    border: 1px solid rgba(34, 139, 34, 0.35);
    border-radius: 8px;
    padding: 12px 16px;
    color: #6fcf6f;
    font-size: 14px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    padding: 10px 14px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(224, 224, 224, 0.45);
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table td {
    padding: 12px 14px;
    color: var(--text-main);
    vertical-align: middle;
    text-align: center;
}

.admin-table-id {
    color: rgba(224, 224, 224, 0.35);
    font-size: 13px;
}

.admin-table-title {
    font-weight: 600;
}

.admin-table-slug {
    color: rgba(224, 224, 224, 0.5);
    font-size: 13px;
}

.admin-table-num {
    color: rgba(224, 224, 224, 0.7);
    text-align: right;
}

.admin-table-date {
    color: rgba(224, 224, 224, 0.5);
    font-size: 13px;
    white-space: nowrap;
}

.admin-btn-delete {
    background: transparent;
    border: 1px solid rgba(178, 34, 34, 0.4);
    border-radius: 6px;
    color: rgba(229, 115, 115, 0.7);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.admin-btn-delete:hover {
    background: rgba(178, 34, 34, 0.15);
    border-color: rgba(178, 34, 34, 0.7);
    color: #e57373;
}

.admin-table-actions {
    text-align: right;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(200, 168, 75, 0.35);
    border-radius: 6px;
    color: rgba(200, 168, 75, 0.7);
    padding: 6px 10px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.admin-btn-edit:hover {
    background: rgba(200, 168, 75, 0.12);
    border-color: rgba(200, 168, 75, 0.7);
    color: #c8a84b;
}

.admin-preview-img {
    max-width: 280px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-current-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(224, 224, 224, 0.5);
    background: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 12px;
    width: fit-content;
}

.admin-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-gallery-item {
    position: relative;
    width: 150px;
    flex-shrink: 0;
}

.admin-gallery-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.admin-gallery-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(178, 34, 34, 0.5);
    border-radius: 4px;
    color: #e57373;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-gallery-delete:hover {
    background: rgba(178, 34, 34, 0.3);
    border-color: rgba(178, 34, 34, 0.8);
}

/* MAIN END */
/* ============================================================
   АРХИВ ЗОНЫ (ГАЛЕРЕЯ СКРИНШОТОВ)
   ============================================================ */

.archive-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.archive-page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.archive-page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c8a84b, transparent);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
    margin: 0 auto;
    gap: 16px;
    margin-bottom: 20px;
}

.archive-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(200, 168, 75, 0.2);
}

.archive-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
}

.archive-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.archive-card:hover .archive-card-img-wrap img {
    transform: scale(1.04);
}

.archive-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 28px;
    color: #fff;
}

.archive-card:hover .archive-card-overlay {
    opacity: 1;
}

.archive-card-body {
    padding: 12px 14px;
}

.archive-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.archive-card-author {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-card-author:hover {
    color: #c8a84b;
}

.archive-card-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.archive-card-stats .fa-solid {
    font-size: 10px;
}
.archive-card-stats .fa-heart {
    color: rgba(220, 80, 80, 0.6);
}

.archive-upload-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-upload-wrap input[type="file"] {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.archive-upload-wrap input[type="file"]::file-selector-button {
    padding: 8px 16px;
    border: 1px solid rgba(200, 168, 75, 0.35);
    background-color: rgba(200, 168, 75, 0.1);
    color: #c8a84b;
    cursor: pointer;
    margin-right: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.archive-upload-wrap input[type="file"]::file-selector-button:hover {
    background-color: rgba(200, 168, 75, 0.2);
}

.archive-upload-preview {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(200, 168, 75, 0.2);
    max-height: 320px;
}

.archive-upload-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
    background-color: rgba(0, 0, 0, 0.3);
}

.archive-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 20px;
    box-sizing: border-box;
}

.archive-modal-box {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border-top: 3px solid #c8a84b;
    max-width: 900px;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.archive-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.archive-modal-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.archive-modal-img-wrap {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.archive-modal-img-wrap img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.archive-modal-info {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 168, 75, 0.3) rgba(0, 0, 0, 0.15);
}

.archive-modal-info::-webkit-scrollbar {
    width: 6px;
}

.archive-modal-info::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.archive-modal-info::-webkit-scrollbar-thumb {
    background-color: rgba(200, 168, 75, 0.3);
    border-radius: 4px;
}

.archive-modal-info::-webkit-scrollbar-thumb:hover {
    background-color: rgba(200, 168, 75, 0.55);
}

.archive-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.archive-modal-header h2 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.archive-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 80, 80, 0.1);
    border: 1px solid rgba(220, 80, 80, 0.3);
    color: rgba(220, 80, 80, 0.7);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.archive-like-btn:hover,
.archive-like-btn.liked {
    background: rgba(220, 80, 80, 0.2);
    border-color: rgba(220, 80, 80, 0.6);
    color: #e05050;
}

.archive-like-disabled {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 0;
    cursor: default;
}

.archive-modal-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 14px;
}

.archive-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.archive-modal-author-link {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.archive-modal-author-link:hover {
    color: #c8a84b;
}

.archive-modal-footer-stats {
    display: flex;
    gap: 14px;
    align-items: center;
}

.archive-modal-date,
.archive-modal-views {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

/* Комментарии в архиве */
.archive-modal-comments {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.archive-modal-comments-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.archive-modal-comments-title i {
    color: #c8a84b;
    margin-right: 5px;
}

.archive-comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.archive-comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-comment-body {
    flex: 1;
    min-width: 0;
}

.archive-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.archive-comment-author {
    font-size: 12px;
    font-weight: 600;
    color: #c8a84b;
    white-space: nowrap;
}

.archive-comment-author:hover {
    color: #e8c86b;
}

.archive-comment-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.archive-comment-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.25);
    padding: 0;
    font-size: 12px;
    margin-left: auto;
    transition: color 0.2s;
}

.archive-comment-delete:hover {
    color: #e05555;
}

.archive-comment-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    word-break: break-word;
}

.archive-comment-empty {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 10px;
}

.archive-comment-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: flex-end;
}

.archive-comment-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 8px 10px;
    resize: none;
    min-height: 38px;
    max-height: 120px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.archive-comment-input:focus {
    outline: none;
    border-color: rgba(200, 168, 75, 0.4);
}

.archive-comment-submit {
    background: rgba(200, 168, 75, 0.15);
    border: 1px solid rgba(200, 168, 75, 0.3);
    border-radius: 6px;
    color: #c8a84b;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    transition: background 0.2s;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.archive-comment-submit:hover {
    background: rgba(200, 168, 75, 0.28);
}

.archive-comment-guest {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

/* =============================================
   АРТЕФАКТЫ
   ============================================= */

@keyframes artifact-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.artifact-spawn-overlay {
    position: absolute;
    z-index: 9999;
    cursor: pointer;
    transform: translate(-50%, -50%);
}
.artifact-pulse-wrap {
    width: 100%;
    height: 100%;
    animation: artifact-pulse 3s ease-in-out infinite;
    will-change: transform, opacity;
}
.artifact-spawn-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.artifact-spawn-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.92);
    border: 1px solid rgba(200, 168, 75, 0.5);
    border-radius: 6px;
    padding: 6px 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    text-align: center;
}
.artifact-spawn-overlay:hover .artifact-spawn-tooltip {
    opacity: 1;
}
.artifact-spawn-tooltip span {
    display: block;
    color: #c8a84b;
    font-size: 13px;
    font-weight: 600;
}
.artifact-spawn-tooltip small {
    display: block;
    color: #999;
    font-size: 11px;
    margin-top: 2px;
}

@keyframes artifact-header-blink {
    0%,
    100% {
        border-color: rgba(200, 168, 75, 0.35);
    }
    50% {
        border-color: rgba(200, 168, 75, 0.75);
    }
}
.artifact-header-notify {
    position: fixed;
    top: 56px;
    left: 0;
    z-index: 999999998;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 168, 75, 0.35);
    border-top: none;
    border-left: none;
    border-radius: 0 0 8px 0;
    padding: 8px 16px;
    animation: artifact-header-blink 3s ease-in-out infinite;
}
.artifact-header-icon {
    color: #c8a84b;
    font-size: 14px;
    animation: artifact-pulse 2.2s ease-in-out infinite;
    display: flex;
}
.artifact-header-text {
    color: #c8a84b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.artifact-header-countdown {
    color: #e0c97a;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.artifact-grab-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}
.artifact-grab-modal-inner {
    background: #1e1e1e;
    border: 1px solid rgba(200, 168, 75, 0.4);
    border-top: 3px solid #c8a84b;
    border-radius: 12px;
    padding: 40px 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
}
.artifact-grab-modal-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
    animation: artifact-pulse 2.2s ease-in-out infinite;
}
.artifact-grab-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #c8a84b;
    margin-bottom: 10px;
}
.artifact-grab-modal-msg {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 24px;
    line-height: 1.5;
}
.artifact-grab-modal-msg.duplicate {
    color: #a8c8a8;
}
.artifact-grab-modal-close {
    background: rgba(200, 168, 75, 0.1);
    border: 1px solid rgba(200, 168, 75, 0.4);
    color: #c8a84b;
    padding: 10px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition:
        background 0.2s,
        border-color 0.2s;
}
.artifact-grab-modal-close:hover {
    background: rgba(200, 168, 75, 0.2);
    border-color: #c8a84b;
}

.pda-artifacts {
    background: #1e1e1e;
    border: 1px solid #333;
    border-top: 3px solid #c8a84b;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}
.pda-artifacts h2 {
    font-size: 15px;
    font-weight: 700;
    color: #c8a84b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pda-artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 14px;
}
.pda-artifact-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #252525;
    transition:
        border-color 0.2s,
        background 0.2s;
    cursor: default;
}
.pda-artifact-cell img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.pda-artifact-cell.found img {
    animation: artifact-pulse 2.8s ease-in-out infinite;
}
.pda-artifact-cell.locked img {
    filter: grayscale(1) brightness(0.35);
}
.pda-artifact-cell.found {
    border-color: rgba(200, 168, 75, 0.35);
    background: rgba(200, 168, 75, 0.05);
}
.pda-artifact-cell.found:hover {
    border-color: rgba(200, 168, 75, 0.6);
    background: rgba(200, 168, 75, 0.1);
}
.pda-artifact-name {
    font-size: 10px;
    color: #888;
    text-align: center;
    line-height: 1.3;
}
.pda-artifact-cell.found .pda-artifact-name {
    color: #c8a84b;
}

.artifact-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.artifact-admin-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.artifact-admin-img-wrap {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: #252525;
    border-radius: 8px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.artifact-admin-img-wrap img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(200, 168, 75, 0.5));
}
.artifact-admin-info {
    flex: 1;
    min-width: 0;
}
.artifact-admin-name {
    font-size: 14px;
    font-weight: 700;
    color: #c8a84b;
    margin-bottom: 4px;
}
.artifact-admin-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.4;
}
.artifact-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #666;
}
.artifact-admin-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.artifact-admin-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.artifact-admin-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #555;
}
.artifact-admin-empty i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}
.artifact-upload-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.artifact-upload-preview {
    width: 100px;
    height: 100px;
    background: #252525;
    border: 2px dashed #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 12px;
    gap: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.artifact-upload-preview i {
    font-size: 28px;
}
.artifact-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.artifact-upload-input {
    display: none;
}
.artifact-upload-btn {
    background: rgba(200, 168, 75, 0.1);
    border: 1px solid rgba(200, 168, 75, 0.4);
    color: #c8a84b;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition:
        background 0.2s,
        border-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.artifact-upload-btn:hover {
    background: rgba(200, 168, 75, 0.2);
    border-color: #c8a84b;
}

/* Glow section in artifact admin forms */
.artifact-glow-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.artifact-glow-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ccc;
    font-size: 13px;
}
.artifact-glow-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #c8a84b;
}
.artifact-glow-fields {
    display: none;
    flex-direction: column;
    gap: 0;
}
.artifact-glow-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
.artifact-glow-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.admin-form-label-sm {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
}
.artifact-glow-color-input {
    width: 52px;
    height: 38px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a1a;
    cursor: pointer;
    padding: 2px;
}
.artifact-glow-size-input {
    width: 80px;
}
.artifact-glow-preview-dot {
    font-size: 36px;
    line-height: 1;
    color: #fff;
    transition: filter 0.2s;
    text-shadow: none;
}

/* ================================================
   Game Video Player
   ================================================ */

.game-video-wrap {
    margin: 28px 0 8px;
}

.game-video-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #777;
    border-bottom: 1px solid rgba(224, 224, 224, 0.08);
    padding-bottom: 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-video-player {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(224, 224, 224, 0.1);
    max-width: 960px;
    margin: 0 auto;
    cursor: pointer;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.7);
    user-select: none;
}

.game-video-player video {
    width: 100%;
    height: auto;
    display: block;
}

/* Big center play/pause overlay */
.game-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.game-video-play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(224, 224, 224, 0.45);
    color: #e0e0e0;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, opacity 0.3s;
    opacity: 1;
    pointer-events: all;
    cursor: pointer;
}

.game-video-play-btn .fa-play {
    padding-left: 4px; /* optical centering */
}

.game-video-play-btn:hover {
    background: rgba(0, 0, 0, 0.82);
    border-color: rgba(224, 224, 224, 0.85);
    transform: scale(1.08);
}

.game-video-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Bottom controls bar */
.game-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 14px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 4;
}

.game-video-player:hover .game-video-controls,
.game-video-player.is-paused .game-video-controls {
    opacity: 1;
}

.game-video-ctrl-btn {
    background: none;
    border: none;
    color: rgba(224, 224, 224, 0.8);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 5px;
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
}

.game-video-ctrl-btn:hover {
    color: #fff;
}

/* Progress bar */
.game-video-progress-wrap {
    flex: 1;
    padding: 8px 0;
    cursor: pointer;
}

.game-video-progress-track {
    height: 3px;
    background: rgba(224, 224, 224, 0.2);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    transition: height 0.15s;
}

.game-video-progress-wrap:hover .game-video-progress-track {
    height: 5px;
}

.game-video-progress-fill {
    height: 100%;
    width: 0%;
    background: #c8a84b;
    border-radius: 3px;
    pointer-events: none;
}

/* Time display */
.game-video-time {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    min-width: 74px;
    text-align: right;
}

/* ==============================
   Footer
   ============================== */

footer {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

.footer-domain {
    color: rgba(200, 168, 75, 0.45);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-sep {
    opacity: 0.3;
}

/* ============================================
   BURGER MENU
   ============================================ */
.burger-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1000;
}
.burger-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.burger-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-toggle.active span:nth-child(2) { opacity: 0; }
.burger-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   RESPONSIVE: 1440px и ниже
   ============================================ */
@media (max-width: 1440px) {
    .main {
        max-width: 100%;
    }
    .content-left {
        max-width: none;
    }
    .content-right {
        max-width: 360px;
    }
    .mods-item-img {
        width: 400px;
        height: 260px;
    }
    .choice-faction {
        gap: 12px;
    }
    .choice-faction-item {
        padding: 10px 8px;
    }
}

/* ============================================
   RESPONSIVE: 1280px и ниже (ноутбуки)
   ============================================ */
@media (max-width: 1280px) {
    .content-right {
        max-width: 320px;
    }
    .header-main {
        gap: 24px;
    }
    header nav ul li a {
        font-size: 12px;
        padding: 8px 12px;
        letter-spacing: 1.5px;
    }
    .header-auth-link {
        font-size: 12px;
    }
    .header-auth-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    .mods-item-img {
        width: 360px;
        height: 240px;
    }
    .choice-faction-item {
        padding: 8px 6px;
    }
    .faction-emblem {
        width: 70px !important;
    }
}

/* ============================================
   RESPONSIVE: 1024px и ниже (планшет landscape)
   ============================================ */
@media (max-width: 1024px) {
    main {
        padding-top: 180px;
    }
    .main-faction {
        font-size: 30px;
        top: -55px;
    }
    .content {
        flex-direction: column;
        gap: 24px;
    }
    .content-left, .content-right {
        max-width: 100%;
    }
    .content-right-wrap {
        width: 100%;
    }
    .content-right {
        max-width: 100%;
    }
    .mods-item-img {
        width: 350px;
        height: 230px;
    }
    .preview-news-item {
        flex: 0 0 50%;
    }
    .mod-download-links {
        flex-wrap: wrap;
    }
    .pda-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pda-stats-row {
        justify-content: center;
    }

    /* Burger menu at 1024px */
    .burger-toggle {
        display: block;
        order: 3;
    }
    header nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(200, 168, 75, 0.15);
        z-index: 999999998;
        transition: right 0.3s ease;
        padding: 80px 0 30px;
        overflow-y: auto;
    }
    header nav.open {
        right: 0;
    }
    header nav ul {
        flex-direction: column;
        gap: 0;
    }
    header nav ul li a {
        padding: 16px 30px;
        font-size: 14px;
        letter-spacing: 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    header nav ul li a::after {
        display: none;
    }
    .header-auth {
        order: 2;
    }
    .header-auth-link {
        display: none;
    }
    .header-main {
        gap: 12px;
    }
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999999997;
    }
    .mobile-overlay.active {
        display: block;
    }

    /* Sidebar becomes horizontal on single column */
    .content-right-wrap {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
}

/* ============================================
   RESPONSIVE: 768px и ниже (планшет portrait)
   ============================================ */
@media (max-width: 768px) {
    /* Main */
    main {
        padding-top: 140px;
        gap: 30px;
    }
    .main {
        padding: 20px 16px;
        border-radius: 8px;
    }
    .main-faction {
        display: none;
    }
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    p { font-size: 16px; }

    /* Factions */
    .choice-faction {
        gap: 10px;
        padding: 16px;
        margin-bottom: 30px;
    }
    .choice-faction-item {
        padding: 8px 6px;
    }
    .faction-emblem {
        width: 64px !important;
        height: auto;
    }
    .faction-name {
        font-size: 9px;
    }
    .who-are-you-question {
        font-size: 22px !important;
    }

    /* Content sections */
    .content-wrap {
        padding: 16px;
        gap: 20px;
    }
    .content-left, .content-right {
        padding: 16px;
    }
    .content {
        gap: 20px;
    }

    /* Sidebar back to single column */
    .content-right-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Mods */
    .mod-item {
        flex-direction: column;
        gap: 16px;
    }
    .mods-item-img {
        width: 100%;
        height: 220px;
    }
    .mods-filter {
        gap: 8px;
    }
    .mods-filter-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
    .mod-download-links {
        flex-direction: column;
        gap: 10px;
    }
    .mod-download-links a,
    .mod-download-links button {
        width: 100%;
        padding: 14px 20px !important;
    }

    /* News grid */

    /* Preview news */
    .preview-news-item {
        flex: 0 0 100%;
        min-height: auto;
    }
    .preview-news-item img {
        height: 200px;
    }
    .content-preview-news {
        padding: 16px;
    }

    /* Forum */
    .forum-list-item {
        padding: 12px 14px;
        gap: 10px;
    }
    .forum-ask-btn {
        padding: 10px 16px;
        font-size: 11px;
    }

    /* Archive */
    .archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 14px;
    }

    /* Chat */
    .chat-messages {
        height: 350px;
    }
    #chat-input {
        height: 55px;
    }
    #chat-btn {
        width: 55px;
        height: 55px;
    }

    /* PDA */
    .pda-avatar-wrap img {
        width: 120px;
        height: 120px;
    }
    .pda-header {
        padding: 20px;
        gap: 20px;
    }

    /* Gallery */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Games */
    .game-info-grid {
        grid-template-columns: 1fr;
    }

    /* Auth */
    .login-block-wrap {
        padding: 24px 20px;
    }

    /* Footer */
    footer {
        padding: 16px;
    }

    /* Mod show */
    .mod-stats {
        justify-content: center;
    }
    .mod-rating {
        padding: 16px;
    }

    /* News show */
    .news-show-img {
        height: 280px;
        border-radius: 8px;
    }

    /* System requirements */
    .system-requirements-wrap {
        gap: 8px;
    }
}

/* ============================================
   RESPONSIVE: 480px и ниже (мобильные)
   ============================================ */
@media (max-width: 480px) {
    main {
        padding-top: 120px;
    }
    .main {
        padding: 16px 12px;
        border-radius: 6px;
    }
    .main-faction {
        display: none;
    }
    h1 { font-size: 24px; }
    h2 { font-size: 18px; }
    p { font-size: 14px; }

    /* Header */
    .logo img {
        height: 30px;
    }
    header {
        padding: 10px 14px;
    }
    .header-auth-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    .header-user {
        padding: 4px 8px 4px 4px;
        gap: 6px;
    }
    .header-avatar, .header-avatar-initial {
        width: 26px;
        height: 26px;
    }
    .header-username {
        font-size: 11px;
        max-width: 80px;
    }
    .header-logout {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    /* Factions */
    .choice-faction {
        gap: 6px;
        padding: 12px 8px;
        margin-bottom: 20px;
    }
    .choice-faction-item {
        padding: 6px 4px;
    }
    .faction-emblem {
        width: 52px !important;
    }
    .faction-name {
        font-size: 9px;
        letter-spacing: 0.08em;
    }
    .who-are-you-question {
        font-size: 18px !important;
    }

    /* Content */
    .content-wrap {
        padding: 12px;
        gap: 16px;
    }
    .content-left, .content-right {
        padding: 12px;
        border-radius: 8px;
    }

    /* Disclamer */
    .disclamer-text {
        font-size: 12px !important;
    }

    /* Mod items */
    .mods-item-img {
        height: 180px;
    }
    .mod-title h2 {
        font-size: 18px;
    }
    .mod-description {
        font-size: 13px;
    }
    .mod-item {
        padding: 14px;
    }

    /* News */
    .news-index-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .news-index-card-img-wrap img {
        height: 200px;
    }
    .preview-news-item img {
        height: 180px;
    }

    /* Archive */
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .archive-card-title {
        font-size: 12px;
    }

    /* Chat */
    .chat-messages {
        height: 300px;
    }
    .chat-message {
        padding: 8px 10px;
        gap: 8px;
    }
    .chat-message-img img {
        width: 36px;
        height: 36px;
    }
    #chat-input {
        height: 48px;
        padding: 8px 12px;
        font-size: 13px;
    }
    #chat-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    .chat-message-header {
        flex-wrap: wrap;
        gap: 4px;
    }
    .chat-message-time {
        font-size: 10px;
        width: 100%;
    }

    /* Forum */
    .forum-list-item {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .forum-list-item-meta {
        gap: 10px;
        flex-wrap: wrap;
    }
    .forum-page-title,
    .mods-page-title,
    .news-index-title,
    .archive-page-title {
        font-size: 18px;
        letter-spacing: 2px;
    }

    /* PDA */
    .pda-header {
        padding: 16px;
        gap: 14px;
    }
    .pda-avatar-wrap img {
        width: 100px;
        height: 100px;
    }
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    /* Gallery */
    .gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Games */
    .mod-download-links-game-review a {
        padding: 12px 30px !important;
        font-size: 13px;
    }

    /* Top stalkers */
    .top-stalkers-list {
        gap: 8px;
    }
    .top-stalker-points {
        font-size: 14px;
    }

    /* Quotes */
    .sidebar-quote {
        padding: 14px;
    }
    .sidebar-quote-text {
        font-size: 13px;
    }

    /* Auth pages */
    .login-block-wrap {
        padding: 20px 16px;
        margin: 0 8px;
    }
    .login-page {
        min-height: auto;
        padding-top: 100px;
    }

    /* Modals */
    .modal-content {
        width: 90%;
        padding: 20px;
    }
    .artifact-grab-modal-inner {
        width: 90%;
        padding: 20px;
    }

    /* News show */
    .news-show-content {
        padding: 16px;
    }
    .news-show-img {
        height: 200px;
        border-radius: 6px;
    }

    /* Comments */
    .comment-item {
        padding: 12px;
    }

    /* Lightbox */
    .lightbox__btn-close {
        top: 10px;
        right: 10px;
    }
}

/* ============================================
   RESPONSIVE: 380px и ниже (маленькие мобильные)
   ============================================ */
@media (max-width: 380px) {
    .main {
        padding: 12px 8px;
    }
    .content-wrap {
        padding: 10px;
    }
    .content-left, .content-right {
        padding: 10px;
    }
    .choice-faction-item {
        padding: 4px 2px;
    }
    .faction-emblem {
        width: 44px !important;
    }
    .faction-name {
        font-size: 8px;
    }
    .who-are-you-question {
        font-size: 16px !important;
    }
    .mods-filter-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
    .archive-grid {
        grid-template-columns: 1fr;
    }
    .mod-item {
        padding: 10px;
    }
    .chat-message-img img {
        width: 30px;
        height: 30px;
    }
}

/* ============================================
   FIX: Чат-хедер на мобильных
   ============================================ */
@media (max-width: 600px) {
    .chat-message-name-user-date {
        flex-wrap: wrap;
        gap: 4px;
    }
    .chat-message-name-user-wrap {
        flex-wrap: wrap;
        gap: 6px;
    }
    .chat-message-date {
        font-size: 11px;
        width: 100%;
    }
    .chat-message-name-user {
        font-size: 13px;
    }
    .rank-badge-sm {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    .faction-icon {
        width: 18px;
        height: 18px;
    }
    .chat-message-img {
        width: 40px;
        height: 40px;
    }
    .chat-message-img img {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   Бургер: золотой цвет + крестик закрытия
   ============================================ */
.burger-toggle span {
    background: #c8a84b !important;
}
.burger-toggle.active span {
    background: #c8a84b !important;
}

.burger-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(200, 168, 75, 0.3);
    border-radius: 8px;
    color: #c8a84b;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    line-height: 1;
}
.burger-close:hover {
    background: rgba(200, 168, 75, 0.1);
    border-color: rgba(200, 168, 75, 0.5);
}

@media (min-width: 1025px) {
    header nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .burger-close {
        display: none;
    }
}

/* ============================================
   FIX: Размер текста чата
   ============================================ */
.chat-message-text {
    font-size: 14px;
    line-height: 1.5;
}
.chat-message-right {
    gap: 6px;
}

@media (max-width: 480px) {
    .chat-message-text {
        font-size: 13px;
    }
}

/* ============================================
   FIX: Стрелки карусели всегда видны на тач-устройствах
   ============================================ */
@media (max-width: 1024px) {
    .news-arrow {
        opacity: 1 !important;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .news-arrow.left {
        left: 8px;
    }
    .news-arrow.right {
        right: 8px;
    }
}
@media (max-width: 480px) {
    .news-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ============================================
   FIX: Достижения - текст не выезжает за края
   ============================================ */
.achievement-badge {
    overflow: hidden;
    min-width: 0;
}
.achievement-name,
.achievement-desc {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

@media (max-width: 480px) {
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .achievement-badge {
        padding: 10px 6px;
    }
    .achievement-name {
        font-size: 10px;
    }
    .achievement-desc {
        font-size: 9px;
    }
}

/* ============================================
   FIX: Системные требования и текст на мобильных
   ============================================ */
@media (max-width: 768px) {
    .system-requirements-text ul li {
        font-size: 14px;
    }
    .system-requirements-title {
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .system-requirements-text ul li {
        font-size: 13px;
    }
    .system-requirements-text {
        padding: 10px;
    }
}

/* ============================================
   FIX: Футер компактнее
   ============================================ */
footer {
    margin-top: 30px !important;
}
@media (max-width: 768px) {
    footer {
        margin-top: 20px !important;
    }
    .footer-inner {
        padding: 14px 16px;
        font-size: 11px;
    }
    body {
        padding-bottom: 20px !important;
    }
}
@media (max-width: 480px) {
    footer {
        margin-top: 16px !important;
    }
    body {
        padding-bottom: 16px !important;
    }
}

/* PDA avatar initial letter */
.pda-avatar-initial {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    border: 2px solid rgba(200, 168, 75, 0.2);
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 700;
    color: #c8a84b;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .pda-avatar-initial {
        width: 120px;
        height: 120px;
        font-size: 52px;
    }
}
@media (max-width: 480px) {
    .pda-avatar-initial {
        width: 100px;
        height: 100px;
        font-size: 44px;
    }
}

/* Chat avatar initial letter */
.chat-avatar-initial {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: #2a2a2a;
    border: 1px solid rgba(200, 168, 75, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #c8a84b;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}

/* Comment avatar initial letter */
.comment-avatar-initial {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: #2a2a2a;
    border: 1px solid rgba(200, 168, 75, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #c8a84b;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}

/* New User Widget */
.new-user-wrap {
    width: 100%;
}
.new-user-card {
    display: flex;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s;
}
.new-user-card:hover {
    background: rgba(200, 168, 75, 0.05);
    border-color: rgba(200, 168, 75, 0.3);
}
.new-user-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
}
.new-user-initial {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #2a2a2a;
    border: 1px solid rgba(200, 168, 75, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #c8a84b;
    font-family: 'Montserrat', sans-serif;
}
.new-user-name {
    font-weight: 600;
    color: #c8a84b;
    font-size: 14px;
}
.new-user-time {
    font-size: 11px;
    color: rgba(224, 224, 224, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}


/* Fix: убрать синюю рамку при нажатии на кнопки лайтбокса */
.lightbox__nav,
.lightbox__close {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}
.lightbox__nav:focus,
.lightbox__nav:focus-visible,
.lightbox__nav:active,
.lightbox__close:focus,
.lightbox__close:focus-visible,
.lightbox__close:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Fix: убрать синюю рамку при нажатии на стрелки карусели */
.news-arrow,
.news-arrow:focus,
.news-arrow:focus-visible,
.news-arrow:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Mods search */
.mods-search {
    margin-bottom: 20px;
}

.mods-search-form {
    width: 100%;
}

.mods-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 460px;
}

.mods-search-icon {
    position: absolute;
    left: 14px;
    color: rgba(224, 224, 224, 0.35);
    font-size: 14px;
    pointer-events: none;
}

.mods-search-input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 14px;
    font-family: 'Montserrat', serif;
    letter-spacing: 0.03em;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.mods-search-input::placeholder {
    color: rgba(224, 224, 224, 0.35);
}

.mods-search-input:focus {
    border-color: rgba(200, 168, 75, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.mods-search-clear {
    position: absolute;
    right: 12px;
    color: rgba(224, 224, 224, 0.4);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.mods-search-clear:hover {
    color: #c8a84b;
}
/* Installation guide list markers */
.system-requirements-item:last-child .system-requirements-text ul {
    list-style-type: disc !important;
    padding-left: 20px;
}

.system-requirements-item:last-child .system-requirements-text ul li {
    list-style: disc !important;
    color: rgba(255, 255, 255, 0.85);
}

.system-requirements-item:last-child .system-requirements-text ul li::marker {
    color: rgba(200, 168, 75, 0.6);
    font-size: 14px;
}
