/* =========================================
   БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ========================================= */
 

body {
    font-family: 'BlockBlueprint', sans-serif;
    background-color: #0a0610;
    background-image:
        radial-gradient(ellipse 60% 40% at 20% 0%, rgba(147, 51, 234, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(249, 115, 22, 0.06), transparent 60%);
    background-attachment: fixed;
    
    zoom: 1.25;
}



   
@font-face {
    font-family: 'BlockBlueprint';
    src: url('fonts/BlockBlueprint.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.mono { 
    font-family: 'BlockBlueprint';
}

.gradient-text {
    background: linear-gradient(135deg, #FDBA74 0%, #FB923C 30%, #F97316 55%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0610; }
::-webkit-scrollbar-thumb { background: #2a1a3a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #4a2f60; }

/* =========================================
   АНИМАЦИИ И ОБЩИЕ КОМПОНЕНТЫ
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

.pulse-dot { animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}
.glow-pulse { animation: glow-pulse 2.4s infinite; }

/* Карточки */
.ds-card {
    position: relative;
    border: 1px solid #2a1a3a;
    background: linear-gradient(180deg, rgba(30, 18, 41, 0.75) 0%, rgba(10, 6, 16, 0.7) 100%);
    border-radius: 1rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                background 0.35s ease,
                box-shadow 0.35s ease;
    overflow: hidden;
}
.ds-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(249, 115, 22, 0.10), transparent 40%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.ds-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 10px 40px -20px rgba(249, 115, 22, 0.3);
}
.ds-card:hover::before { opacity: 1; }
.ds-card[data-no-spotlight="true"]::before { display: none !important; }
.ds-card[data-no-hover="true"]:hover { transform: none !important; border-color: #2a1a3a !important; box-shadow: none !important; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #b8a8c8;
}
.section-label .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.4rem;
    padding: 0 0.5rem;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.15);
    color: #C084FC;
    font-size: 0.65rem;
    font-family: 'BlockBlueprint';
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.btn-glow {
    box-shadow: 0 0 40px -8px rgba(249, 115, 22, 0.55), 0 0 20px -4px rgba(168, 85, 247, 0.25);
}
.btn-glow:hover {
    box-shadow: 0 0 50px -6px rgba(249, 115, 22, 0.75), 0 0 30px -4px rgba(168, 85, 247, 0.4);
}

/* =========================================
   INDEX.HTML (Главная)
   ========================================= */
.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-image: url('images/herobg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0) scale(1.05);
    transition: transform 0.1s ease-out;
}
.hero-bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to top, rgba(10, 5, 10, 0.9) 0%, transparent 40%),
        linear-gradient(90deg, rgba(10, 5, 10, 0.98) 0%, rgba(10, 5, 10, 0.85) 40%, rgba(10, 5, 10, 0.5) 70%, rgba(10, 5, 10, 0.1) 100%);
}

/* =========================================
   WIKI.HTML (Вики)
   ========================================= */
.wiki-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.875rem;
    color: #a3a3a3;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}
.wiki-link:hover {
    background: #170d21;
    color: #FB923C;
    border-color: #2a1a3a;
    transform: translateX(2px);
}
.wiki-link.active {
    background: rgba(249, 115, 22, 0.10);
    color: #FB923C;
    border-color: rgba(249, 115, 22, 0.35);
    font-weight: 600;
}

.wiki-content h2 { font-size: 1.75rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #fafafa; letter-spacing: -0.02em; }
.wiki-content h2:first-child { margin-top: 0; }
.wiki-content h3 { font-size: 1.125rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.6rem; color: #fafafa; }
.wiki-content p { margin-bottom: 1rem; line-height: 1.75; color: #a3a3a3; }
.wiki-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; color: #a3a3a3; }
.wiki-content ul li { margin-bottom: 0.4rem; }
.wiki-content a { color: #FB923C; text-decoration: underline; text-decoration-color: rgba(249, 115, 22, 0.4); text-underline-offset: 3px; transition: all 0.15s; }
.wiki-content a:hover { color: #FDBA74; text-decoration-color: #FDBA74; }
.wiki-content code { font-family: 'BlockBlueprint'; font-size: 0.85em; background: #170d21; border: 1px solid #2a1a3a; border-radius: 6px; padding: 0.15em 0.45em; color: #FB923C; }
.wiki-content blockquote { border-left: 3px solid #F97316; padding: 0.5rem 0 0.5rem 1.25rem; margin: 1.25rem 0; color: #fdf7f7; font-size: 1.1rem; font-weight: 500; }
.wiki-content img { display: block; max-width: 100%; height: auto; margin: 1.5rem 0; border-radius: 1rem; border: 1px solid #2a1a3a; background: #170d21; }
.wiki-content img.wiki-img-full { width: 100%; }
.wiki-content img.wiki-img-small { max-width: 320px; }
.wiki-content img.wiki-img-center { margin-left: auto; margin-right: auto; }
.wiki-content .wiki-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.wiki-content .wiki-gallery img { margin: 0; width: 100%; height: 180px; object-fit: cover; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s; }
.wiki-content .wiki-gallery img:hover { transform: scale(1.02); border-color: rgba(249, 115, 22, 0.4); }
.wiki-content figure { margin: 1.5rem 0; }
.wiki-content figure img { margin: 0; }
.wiki-content figcaption { margin-top: 0.65rem; font-size: 0.85rem; color: #737373; text-align: center; font-style: italic; }

#mobile-sidebar { transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
#mobile-sidebar.open { transform: translateX(0); }

.wiki-content > * { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.wiki-content.visible > * { opacity: 1; transform: translateY(0); }

.segmented-control { display: flex; background: #170d21; border: 1px solid #2a1a3a; border-radius: 0.5rem; padding: 0.2rem; width: 100%; max-width: 180px; }
.segmented-control input { display: none; }
.segmented-control label { flex: 1; text-align: center; padding: 0.4rem 0.8rem; font-size: 0.75rem; font-weight: 600; color: #a3a3a3; cursor: pointer; border-radius: 0.35rem; transition: all 0.2s; }
.segmented-control input:checked + label { background: #F97316; color: #0a0610; }

input[type="color"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; background: none; border: none; cursor: pointer; padding: 0; width: 100%; height: 48px; border-radius: 0.5rem; overflow: hidden; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 1px solid #2a1a3a; border-radius: 0.5rem; }
input[type="color"]::-moz-color-swatch { border: 1px solid #2a1a3a; border-radius: 0.5rem; }

#chatcolor-app { margin-top: 2rem; }
#chatcolor-app h2 { font-size: 1.125rem; margin-top: 0; margin-bottom: 0; color: #fafafa; font-weight: 700; }
#chatcolor-app .text-sm { color: #737373; margin-top: 1rem; }
#chatcolor-app .ds-card { padding: 1.5rem; margin: 0; }

/* =========================================
   PLAYERS.HTML (Игроки)
   ========================================= */
.role-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.fade-in { animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.sort-btn.active { background: rgba(249, 115, 22, 0.12); color: #FB923C; border-color: rgba(249, 115, 22, 0.5); }
.skin-shadow { filter: drop-shadow(0 20px 40px rgba(249, 115, 22, 0.18)); }

.skeleton { background: linear-gradient(90deg, #1a0f24 25%, #2a1a3a 50%, #1a0f24 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 1rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.online-dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 9999px; border: 2px solid #0a0610; }
.online-dot.on  { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.online-dot.off { background: #52525b; }


/* =========================================
   ЭФФЕКТ ПЕРЕХОДА МЕЖДУ СТРАНИЦАМИ
   ========================================= */
#page-transition {
    position: fixed;
    inset: 0;
    background-color: #0a0610; /* Цвет твоего фона */
    z-index: 999999; /* Поверх всего, включая конфеты */
    pointer-events: none; /* Чтобы не мешал кликать, когда прозрачный */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Когда мы кликаем по ссылке, оверлей становится непрозрачным */
#page-transition.is-active {
    opacity: 1;
    pointer-events: all; /* Блокируем клики, пока грузится новая страница */
}

/* Анимация появления страницы при загрузке */
body {
    animation: fadeInPage 0.4s ease-in-out;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}