@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html {
	scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #060708;
    font-family: "Nunito", sans-serif;
    color: white;
    overflow-x: hidden;
}

.top-bar {
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: #0f1114;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding-left: 15px;
	
	z-index: 9999;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #3390ec;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 30%;
    object-fit: cover;
}

.nav-left span {
    position: relative;
}

.nav-left span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #3390ec;
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-left:hover span::after {
    width: 100%;
}

.nav-left:active {
    opacity: 0.8;
}

.container {
    opacity: 0;
    width: 100%;
    max-width: 650px;
    margin-top: 70px;
    padding-left: 25px;
    padding-right: 25px;
}

.wiki-content {
    text-align: left;
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.wiki-content h1 {
    font-size: 29px;
    font-weight: 700;
	margin-bottom: 15px;
}

.wiki-content h2 {
	color: white;
    font-size: 23px;
    font-weight: 700;
	margin-bottom: 15px;
}

.wiki-content h2 + br {
    display: none;
}

.wiki-content .wiki-text {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.wiki-content a,
.mobile-search-link__title {
    color: #3390ec;
    text-decoration: none;
    font-weight: 700;
    display: inline;
    vertical-align: baseline;
    margin-left: 4px;
    background-image: linear-gradient(#3390ec, #3390ec);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0 2px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
	transition: opacity 0.3s ease, background-size 0.3s ease;
}

.wiki-content a::before,
.mobile-search-link__title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/icons/link.svg') no-repeat center center;
    background-size: contain;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.wiki-content a:hover,
.mobile-search-link:hover .mobile-search-link__title,
.mobile-search-link:active .mobile-search-link__title {
    background-size: 100% 2px;
}

.wiki-content a:active {
    opacity: 0.8;
}

.wiki-content a[icon-src]::before {
    content: '';
    background: var(--icon) no-repeat center center;
    background-size: contain;
    width: 16px;
    height: 16px;
    margin-right: var(--icon-gap, 6px);
    vertical-align: middle;
    position: relative;
    top: -1px;
}


@media (max-width: 480px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
        margin-top: 80px;
    }

    .wiki-content h1 {
        font-size: 24px;
    }

    .wiki-content p {
        font-size: 16px;
    }

    .nav-left {
        font-size: 16px;
    }

    .nav-logo {
        width: 28px;
        height: 28px;
    }
}

block {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-block;
    background: rgba(51, 144, 236, 0.11);
    padding: 10px 14px 13px;
    border-radius: 10px;
    margin: 6px 0;
    padding-left: 18px;
}

block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    z-index: 0;
    background: repeating-linear-gradient(
        45deg,
        #3390ec 0px,
        #3390ec 6px,
        #0f3f73 6px,
        #0f3f73 12px
    );
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

block > * {
    position: relative;
    z-index: 1;
}


.search-box {
    margin-left: auto;
    margin-right: 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-inner input {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    outline: none;
    color: white;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    padding: 10px 12px 10px 34px;
    border-radius: 10px;
    width: 200px;
    transition: all 0.3s ease;
}

.search-inner input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}


.search-icon {
    position: absolute;
    left: 10px;
    width: 15px;
    height: 15px;
    opacity: 0.5;
}

.search-toggle {
	pointer-events: auto;
    display: none;
    width: 20px;
    height: 20px;
    opacity: 0.7;
    cursor: pointer;
}

.search-inner {
    position: fixed;
    top: 8px;
    right: 15px;
    display: none;
    align-items: center;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
    z-index: 10000;
}

body.page-ready .search-inner {
    display: flex;
}

.search-backdrop,
.mobile-search-results {
    display: none;
}

@media (max-width: 600px) {
    .search-toggle {
        display: block;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .search-toggle.close {
        transform: rotate(90deg) scale(0.9);
        opacity: 0.7;
    }

	.search-inner {
		position: fixed;
		top: 55px;
		left: 50%;
		right: auto;
		transform: translateX(-50%) translateY(-20px) scale(0.95);
		z-index: 5000;
		width: 15%;
		opacity: 0;
		pointer-events: none;
		transition: all 0.3s ease;
	}

    .search-inner.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(10px) scale(1);
        width: 95%;
    }

    .search-inner input {
        width: 100%;
        background: #0f1114;
        border: 1px solid rgba(255, 255, 255, 0.08);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        -webkit-appearance: none;
        appearance: none;
        padding: 14px 16px 14px 42px;
        font-size: 15px;
        border-radius: 20px;
        box-shadow: none;
    }

    .search-icon {
        left: 14px;
        width: 17px;
        height: 17px;
        opacity: 0.5;
    }

    .search-backdrop {
        display: block;
        position: fixed;
        inset: 55px 0 0 0;
        background-color: rgba(6, 7, 8, 0.92);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease, background-color 0.28s ease;
        z-index: 4700;
    }

    .search-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .search-backdrop.idle {
        background-color: rgba(6, 7, 8, 0.3);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-search-results {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: fixed;
        left: 50%;
        width: 95%;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(-6px) scale(0.985);
        transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 4900;
        overflow-y: auto;
        padding: 0 0 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-search-results.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .mobile-search-results::-webkit-scrollbar {
        display: none;
    }

    .mobile-search-card {
        background: #0f1114;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 14px 14px 12px;
        color: white;
        opacity: 0;
        transform: translateY(10px);
    }

    .mobile-search-results.active .mobile-search-card {
        animation: mobileSearchCardIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .mobile-search-results.active .mobile-search-card:nth-child(2) {
        animation-delay: 0.03s;
    }

    .mobile-search-results.active .mobile-search-card:nth-child(3) {
        animation-delay: 0.06s;
    }

    .mobile-search-results.active .mobile-search-card:nth-child(4) {
        animation-delay: 0.09s;
    }

    .mobile-search-results.active .mobile-search-card:nth-child(5) {
        animation-delay: 0.12s;
    }

    .mobile-search-results.active .mobile-search-card:nth-child(6) {
        animation-delay: 0.15s;
    }

    .mobile-search-card__section {
        display: block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.46);
        margin-bottom: 6px;
    }

    .mobile-search-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mobile-search-link {
        display: block;
        padding: 9px 10px 9px 12px;
        border-radius: 14px;
        text-decoration: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .mobile-search-link.best-match {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .mobile-search-link__title {
        font-size: 14px;
        line-height: 1.6;
    }

    .mobile-search-link.best-match .mobile-search-link__title {
        font-size: 15px;
    }

    .mobile-search-link:active {
        opacity: 0.82;
    }

    @keyframes mobileSearchCardIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-search-empty {
        background: #0f1114;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 15px 16px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 14px;
        line-height: 1.45;
    }

    body.search-overlay-open {
        overflow: hidden;
    }
}





.modern-divider {
    width: 100%;
    height: 1px;
    margin: 35px 0; 
    position: relative;
    opacity: 0;
}

.modern-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.18), 
        rgba(255,255,255,0.28),
        rgba(255,255,255,0.18),
        transparent
    );
}

.modern-divider.visible {
    opacity: 1;
}



.bullet {
    display: table;
    max-width: 100%;
    position: relative;
    padding-left: 22px;
    margin: 10px 0;
    isolation: isolate;
    transition: padding-left 0.22s ease;
}

.bullet::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -15px;
    bottom: -4px;
    left: 14px;
    background: rgba(51, 144, 236, 0.08);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.22s ease, left 0.22s ease;
    z-index: -1;
}

.bullet::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #3390ec;
    border-radius: 50%;
}

.bullet + br {
    display: none;
}

.bullet.search-match {
    z-index: 0;
    padding-left: 28px;
}

.bullet.search-match::after {
    opacity: 1;
    left: 20px;
}

.search-char {
    color: inherit;
    transition: color 0.22s ease;
}

.search-char.search-hit {
    color: #7dbdff;
}
