/* ======================= ОСНОВНЫЕ НАСТРОЙКИ ======================= */
:root {
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --bg-card: #1E293B;
    --text-light: #E5E7EB;
    --text-gray: #94A3B8;
    --gold: #00BFFF;
    --gold-dark: #00A8E8;
    --blue-accent: #3B82F6;
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', sans-serif;
    background: 
        linear-gradient(rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.7)),
        url('fon.png') center/cover no-repeat fixed;
    color: var(--text-light);
    line-height: 1.6;
    cursor: url('cursor.png') 8 8, auto;
}
/* ======================= ШАПКА ======================= */


.header {
    background-image: url('header-bg.png');
    background-size: 100% 100%;
    background-position: center;
    border-bottom: 2px solid var(--gold);
    padding: 0;
    max-width: 1160px;
    width: 100%;
    height: 267px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* ======================= ШАПКА ВНУТРЕННЯЯ ======================= */
.header-inner {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.logo img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.logo span {
    font-size: 32px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Almendra', serif;
}
/* ======================= КНОПКИ МУЗЫКИ ======================= */
.music-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 0;
}

.music-nav {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2C3E50;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 10px;
    text-align: center;
    padding: 0;
    border: 2px solid #00BFFF;
    cursor: pointer;
    transition: all 0.3s;
}

.music-nav:hover {
    background: #34495E;
    border: 2px solid #22C55E;
}

.music-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2C3E50;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 12px;
    padding: 0;
    border: 2px solid #00BFFF;
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.5s, background 0.3s, border 0.3s;
}

.music-btn:hover {
    background: #34495E;
    border: 2px solid #22C55E;
}

.music-btn span {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.music-btn::after {
    content: '♫';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #22C55E;
    color: #000000;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.music-btn.flipped {
    transform: rotateY(180deg);
    background: #22C55E;
    border-color: #22C55E;
    color: transparent;
}

.music-btn.flipped::after {
    opacity: 1;
}

.music-btn:active {
    background: #22C55E;
    color: transparent;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    color: #FFFFFF;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    text-decoration: none;
    font-weight: bold;
    font-size: 23px;
    font-family: 'Almendra', serif;
    transition: color 0.3s;
    cursor: url('cursor.png') 8 8, auto;
}

.menu a:hover {
    color: var(--text-light);
}

/* ======================= ОСНОВНОЙ КОНТЕНТ ======================= */
.main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
}

/* ======================= КУРСОР-МЕЧ НА КНОПКАХ «РЕСУРСЫ» ======================= */
.sidebar-left .sidebar-btn {
    cursor: url('cursor.png') 8 8, auto;
}

/* ======================= КУРСОР ДЛЯ КНОПКИ СКАЧАТЬ ======================= */
.btn-download {
    cursor: url('download-cursor.png') 8 8, pointer;
}

/* Кнопки скачивания в сайдбаре */
.sidebar-btn,
.sidebar-right .btn-download,
.content .btn-download {
    cursor: url('download-cursor.png') 8 8, pointer;
}

.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.sidebar-block {
    margin-bottom: 20px;
}

.sidebar-block h3 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    font-family: 'Almendra', serif;
}

.sidebar-block a {
    color: var(--blue-accent);
    text-decoration: none;
}

.sidebar-block a:hover {
    color: var(--gold);
}

.online {
    font-size: 14px;
    color: var(--text-gray);
}

.online span {
    color: #22C55E;
    font-weight: bold;
}

.online span.rate {
    color: var(--gold);
    font-weight: bold;
}

.sidebar-block ul {
    list-style: none;
    padding: 0;
}

.sidebar-block ul li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.sidebar-right {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    position: relative; /* ВАЖНО! Чтобы гном позиционировался внутри сайдбара */
}

.sidebar-right .sidebar-block h3 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    font-family: 'Almendra', serif;
}

.sidebar-right .sidebar-block a {
    color: var(--blue-accent);
    text-decoration: none;
}

.sidebar-right .sidebar-block a:hover {
    color: var(--gold);
}

.sidebar-right .online {
    font-size: 14px;
    color: var(--text-gray);
}

.sidebar-right .online span {
    color: #22C55E;
    font-weight: bold;
}

/* КНОПКИ В САЙДБАРЕ — С БЕЛЫМ ДИАГОНАЛЬНЫМ БЛИКОМ */
.sidebar-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background: #2C3E50;
    color: #FFFFFF;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.sidebar-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.sidebar-btn:hover {
    background: #34495E;
}

.sidebar-btn:hover::after {
    left: 100%;
}

/* ======================= ОСНОВНАЯ ОБЛАСТЬ ======================= */
.content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}

.block {
    margin-bottom: 30px;
}

.block h2 {
    color: var(--gold);
    font-size: 26px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    font-family: 'Almendra', serif;
}

.block p {
    margin-bottom: 10px;
}

.btn-download {
    display: inline-block;
    background: var(--gold);
    color: var(--bg-darker);
    font-weight: bold;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-download:hover {
    background: var(--gold-dark);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.events-table th,
.events-table td {
    padding: 10px;
    border: 1px solid var(--border);
    text-align: left;
}

.events-table th {
    background: var(--bg-darker);
    color: var(--gold);
    font-weight: bold;
}

.events-table tr:hover {
    background: var(--bg-darker);
}

article {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

article h3 {
    color: var(--blue-accent);
    font-size: 20px;
    margin-bottom: 5px;
    font-family: 'Almendra', serif;
}

article p {
    color: var(--text-gray);
}

.date {
    font-size: 12px;
    color: var(--text-gray);
    display: block;
    margin-top: 5px;
}

#contact a {
    color: var(--blue-accent);
    text-decoration: none;
}

#contact a:hover {
    color: var(--gold);
}

/* ======================= ПОДВАЛ ======================= */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--gold);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer p {
    color: var(--text-gray);
    font-size: 14px;
}

.footer p:first-child {
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 5px;
}

/* ======================= АДАПТИВНОСТЬ ======================= */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .main {
        grid-template-columns: 1fr;
    }

    .sidebar-right {
        order: -1;
    }
}

/* ======================= СКАЧИВАНИЕ (DOWNLOAD LIST) ======================= */
.download-list {
    display: none;
    margin-top: 10px;
}

.download-list.show {
    display: block;
}

.download-item {
    display: block;
    padding: 10px;
    margin-bottom: 5px;
    background: #2C3E50;
    color: #FFFFFF;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.download-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.download-item:hover {
    background: #34495E;
}

.download-item:hover::after {
    left: 100%;
}

/* ======================= АДАПТИВНОСТЬ (ТЕЛЕФОН) ======================= */
@media (max-width: 1100px) {
    .header {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 10px 0;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 0 10px;
    }

    .logo {
        gap: 2px;
    }

    .logo img {
        width: 69px;
        height: 69px;
    }

    .logo span {
        font-size: 15px;
        color: #FFFFFF;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
        font-family: 'Almendra', serif;
    }

    .music-controls {
        gap: 3px;
    }

    .music-nav {
        width: 22px;
        height: 22px;
        font-size: 7px;
    }

    .music-btn {
        width: 28px;
        height: 28px;
        font-size: 8px;
        border-radius: 50%;
        border: 2px solid #00BFFF;
        padding: 0;
    }

    .music-btn::after {
        content: '♫';
        position: absolute;
        top: -2px;
        left: -2px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #22C55E;
        color: #000000;
        font-size: 14px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: rotateY(180deg);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s;
    }

    .music-btn.flipped {
        transform: rotateY(180deg);
        background: #22C55E;
        border-color: #22C55E;
        color: transparent;
    }

    .music-btn.flipped::after {
        opacity: 1;
    }

    .music-btn:active {
        background: #22C55E;
        color: transparent;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 11px;
        font-family: 'Almendra', serif;
    }

    .menu a {
        font-size: 13px;
        color: #FFFFFF;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
        font-family: 'Almendra', serif;
    }
}

/* ======================= ЭФФЕКТ ГОРЯЩЕГО МЕНЮ ======================= */
.menu a {
    position: relative;
    transition: color 0.3s, text-shadow 0.3s;
}

.menu a:hover {
    color: #FFD700;
    text-shadow: 
        0 0 5px rgba(255, 140, 0, 0.8),
        0 0 10px rgba(255, 69, 0, 0.6),
        0 0 15px rgba(255, 215, 0, 0.4);
    animation: flameFlicker 0.5s infinite alternate;
}

@keyframes flameFlicker {
    0% {
        text-shadow: 
            0 0 5px rgba(255, 140, 0, 0.8),
            0 0 10px rgba(255, 69, 0, 0.6),
            0 0 15px rgba(255, 215, 0, 0.4);
    }
    100% {
        text-shadow: 
            0 0 10px rgba(255, 140, 0, 1),
            0 0 20px rgba(255, 69, 0, 0.9),
            0 0 30px rgba(255, 215, 0, 0.7);
    }
}

/* ======================= ДЕКОРАТИВНЫЙ РАЗДЕЛИТЕЛЬ ======================= */
.ornament-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 15px 0;
    overflow: hidden;
}

.ornament-img {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.ornament-img:hover {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .ornament-img {
        width: 180px;
    }
}

/* ======================= УБИРАЕМ ЗАЗОРЫ ТОЛЬКО В ПЕРВОМ БЛОКЕ ======================= */
.ornament-container {
    margin: 0 0 5px 0 !important;
}

.content .block:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.content .block:first-child h2 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
}

.content .block:first-child p:first-of-type {
    margin-top: 0 !important;
}

.block {
    margin-bottom: 20px !important;
}

.block h2 {
    margin-bottom: 10px !important;
    padding-bottom: 5px !important;
}

/* ======================= УГЛОВОЙ ОРНАМЕНТ В ЛЕВОМ САЙДБАРЕ ======================= */
.sidebar-btn {
    position: relative;
    overflow: hidden;
}

.corner-img {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 35px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    opacity: 1;
}

/* ======================= ДЕКОРАТИВНЫЙ УГОЛОК В ЛЕВОМ САЙДБАРЕ ======================= */
.sidebar-corner {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 10px;
    margin-top: -20px;
    margin-left: -20px;
    overflow: hidden;
}

.corner-img-big {
    width: 150px;
    height: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    opacity: 0.9;
}

/* ======================= ДЕКОРАТИВНЫЙ УГОЛОК В ПРАВОМ САЙДБАРЕ ======================= */
.sidebar-corner-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 10px;
    margin-top: -20px;
    margin-right: -20px;
    overflow: hidden;
}

.corner-img-big-right {
    width: 150px;
    height: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    opacity: 0.9;
}

/* ======================= ЭФФЕКТ НАВЕДЕНИЯ ДЛЯ УГЛОВЫХ ОРНАМЕНТОВ ======================= */
.corner-img-big,
.corner-img-big-right {
    transition: all 0.3s ease;
}

.sidebar-corner .corner-img-big:hover,
.sidebar-corner-right .corner-img-big-right:hover {
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    opacity: 1;
    transform: scale(1.02);
}

/* ======================= ЭФФЕКТ НАВЕДЕНИЯ НА ЛОГОТИП ======================= */
.logo img {
    transition: all 0.3s ease;
}

.logo img:hover {
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.7));
}

/* ======================= ЭФФЕКТ ПЛАВНОГО УВЕЛИЧЕНИЯ ДЛЯ МЕНЮ ======================= */
.menu a {
    transition: all 0.3s ease;
}

.menu a:hover {
    transform: scale(1.08);
}

/* ======================= ПЛАВНОЕ УВЕЛИЧЕНИЕ ДЛЯ ВСЕХ БЛОКОВ ======================= */
.content .block {
    transition: all 0.3s ease;
}

.content .block:hover {
    transform: scale(1.02);
}

.content {
    overflow: hidden;
}

/* ======================= ДЕКОРАТИВНЫЙ РАЗДЕЛИТЕЛЬ В НИЖНЕМ ЦЕНТРЕ ======================= */
.ornament-container-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 30px 0;
    overflow: hidden;
}

.ornament-img-bottom {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.ornament-img-bottom:hover {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .ornament-img-bottom {
        width: 180px;
    }
}

/* ======================= ДЕКОРАТИВНЫЙ УГОЛОК В ПРАВОМ НИЖНЕМ УГЛУ (ЛЕВЫЙ САЙДБАР) ======================= */
.sidebar-left {
    position: relative;
}

.sidebar-corner-bottom-right-left {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.corner-img-big-bottom-right-left {
    width: 150px;
    height: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    opacity: 0.9;
}

.sidebar-corner-bottom-right-left .corner-img-big-bottom-right-left {
    transition: all 0.3s ease;
}

.sidebar-corner-bottom-right-left .corner-img-big-bottom-right-left:hover {
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    opacity: 1;
    transform: scale(1.02);
}

/* ======================= ДЕКОРАТИВНЫЙ УГОЛОК В ПРАВОМ САЙДБАРЕ, В ЛЕВОМ НИЖНЕМ УГЛУ ======================= */
.sidebar-corner-bottom-left-right {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.corner-img-big-bottom-left-right {
    width: 150px;
    height: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    opacity: 0.9;
}

.sidebar-corner-bottom-left-right .corner-img-big-bottom-left-right {
    transition: all 0.3s ease;
}

.sidebar-corner-bottom-left-right .corner-img-big-bottom-left-right:hover {
    filter: brightness(0) saturate(100%) invert(52%) sepia(89%) saturate(1900%) hue-rotate(180deg) brightness(100%) contrast(90%);
    opacity: 1;
    transform: scale(1.02);
}

/* ======================= ГНОМА В ПРАВОМ НИЖНЕМ УГЛУ (ПРАВЫЙ САЙДБАР) ======================= */
.gnome-container-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 70px;
    height: auto;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gnome-container-right img {
    width: 110%;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.gnome-container-right:hover img {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.5));
    opacity: 1;
}

/* ======================= ГНОМА В ЛЕВОМ НИЖНЕМ УГЛУ (ЛЕВЫЙ САЙДБАР) ======================= */
.knight-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 70px;
    height: auto;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.knight-container img {
    width: 160%;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.knight-container:hover img {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.5));
    opacity: 1;
}

/* ======================= МОБИЛЬНАЯ АДАПТАЦИЯ ОБОИХ ПЕРСОНАЖЕЙ ======================= */
@media (max-width: 768px) {
    .knight-container,
    .gnome-container-right {
        position: static;
        width: 30px;
        margin-bottom: 10px;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .knight-container img,
    .gnome-container-right img {
        border-radius: 2px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
    
    .knight-container:hover img,
    .gnome-container-right:hover img {
        transform: none;
    }
}

/* ======================= ПЕРЕМЕСТИТЬ ОРНАМЕНТ ПОД ЧАТ НА МОБИЛЬНЫХ ======================= */
@media (max-width: 768px) {
    .sidebar-corner-bottom-left-right {
        position: static !important; /* Убираем абсолютное позиционирование */
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        margin-top: 20px !important; /* Отступ от чата */
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        height: auto !important;
        z-index: 1 !important;
        pointer-events: none; /* Чтобы орнамент не блокировал нажатия, если вдруг перекроет */
    }
    
    .sidebar-corner-bottom-left-right img {
        width: 150px !important; /* Маленький размер, чтобы не мешал */
        height: auto !important;
        display: block !important;
        margin-left: 0 !important;
        opacity: 0.8 !important;
    }
    
    /* Страховка: если поле ввода все еще перекрыто, скрываем орнамент */
    .chat-window input {
        position: relative;
        z-index: 10;
    }
}
/* ======================= СКРЫТЬ ГНОМОВ НА МОБИЛЬНЫХ ======================= */
@media (max-width: 768px) {
    .knight-container,
    .gnome-container-right {
        display: none;
    }
}

/* ======================= ПЛАВНОЕ УВЕЛИЧЕНИЕ КНОПОК В САЙДБАРАХ ======================= */
.sidebar-btn {
    transition: all 0.3s ease;
}

.sidebar-btn:hover {
    transform: scale(1.05);
    background: #34495E;
}

/* ======================= ЭФФЕКТ НАВЕДЕНИЯ НА НАДПИСЬ LOGO ======================= */
.logo span {
    transition: all 0.3s ease;
}

.logo span:hover {
    color: #00BFFF;
    text-shadow: 
        0 0 5px rgba(0, 191, 255, 0.8),
        0 0 10px rgba(0, 191, 255, 0.6),
        0 0 20px rgba(0, 191, 255, 0.4),
        0 0 30px rgba(0, 191, 255, 0.2);
    transform: scale(1.05);
}

/* ======================= ВЕРНУТЬ КУРСОР-МЕЧ ======================= */
* {
    cursor: url('cursor.png') 8 8, auto !important;
}