.ui {
  --color-fd-primary: var(--ui-color);
}

.headless {
  --color-fd-primary: var(--headless-color);
}

:root {
  --headless-color: hsl(250, 80%, 54%);
  --ui-color: hsl(220, 91%, 54%);
}

.dark {
  --headless-color: hsl(250 100% 80%);
  --ui-color: hsl(217 92% 76%);
}

body {
  --site-shell-offset: 3.5rem;
  overscroll-behavior-y: none;
  background-color: var(--color-fd-background);
}

.site-shell {
  min-height: 100svh;
}

.site-shell__main {
  flex: 1 1 auto;
  padding-top: var(--site-shell-offset);
}

.wiki-callout {
  border-color: rgb(255 255 255 / 0.07);
  background:
    linear-gradient(0deg, rgba(var(--callout-acgb), 0.045), rgba(var(--callout-acgb), 0.045)),
    var(--color-fd-card);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.02);
}

.wiki-callout__content {
  color: var(--color-fd-muted-foreground);
  font-size: 0.95rem;
  line-height: 1.8;
}

.wiki-callout__content > :first-child {
  margin-top: 0;
}

.wiki-callout__content > :last-child {
  margin-bottom: 0;
}

.wiki-callout__content p,
.wiki-callout__content ul,
.wiki-callout__content ol {
  margin: 0.5rem 0 0;
}

.wiki-callout__content ul,
.wiki-callout__content ol {
  padding-left: 1.25rem;
}

.wiki-callout__content li {
  margin: 0.35rem 0;
}

.wiki-callout__content strong {
  color: var(--color-fd-card-foreground);
  font-weight: 600;
}

.wiki-callout__content a {
  color: rgb(251 146 60);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgb(251 146 60 / 0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition:
    color 150ms ease,
    text-decoration-color 150ms ease;
}

.wiki-callout__content a:hover {
  color: rgb(253 186 116);
  text-decoration-color: rgb(253 186 116 / 0.75);
}

.wiki-callout__content code {
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 0.6rem;
  background: rgb(255 255 255 / 0.04);
  padding: 0.14rem 0.45rem;
  color: var(--color-fd-card-foreground);
  font-size: 0.9em;
}

.wiki-callout__content mark {
  background: transparent;
  color: var(--color-fd-card-foreground);
}

.gitbook-fa-icon {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  vertical-align: -0.18em;
  border-radius: 0.4rem;
  background: rgb(251 146 60 / 0.12);
  color: rgb(251 146 60);
}

.gitbook-fa-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

.gitbook-shortcode {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(251 146 60 / 0.2);
  border-radius: 0.55rem;
  background: rgb(251 146 60 / 0.08);
  padding: 0.08rem 0.45rem;
  color: rgb(251 146 60);
  font-family: var(--default-mono-font-family);
  font-size: 0.9em;
  line-height: 1.4;
  white-space: nowrap;
}

.gitbook-inline-image {
  display: inline-block !important;
  width: 1.15em !important;
  height: 1.15em !important;
  margin: 0 0 0 0.38rem !important;
  vertical-align: -0.18em !important;
  object-fit: contain;
}

.prose mark,
.prose mark strong {
  background: transparent !important;
  padding: 0 !important;
  color: rgb(251 146 60) !important;
}

.prose .role-title {
  font-weight: 700;
}

.prose .role-title--founder {
  color: rgb(239 68 68) !important;
}

.prose .role-title--administrator {
  color: #ff7f7f !important;
}

.prose .role-title--moderator {
  color: rgb(96 165 250) !important;
}

.prose :is(h1, h2, h3, h4, h5, h6) img[data-size="line"] {
  display: inline-block !important;
  width: 1.15em !important;
  height: 1.15em !important;
  margin: 0 0 0 0.38rem !important;
  vertical-align: -0.18em !important;
  object-fit: contain;
}

.prose figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.prose figure > img,
.prose figure > picture,
.prose figure > video {
  margin-inline: auto;
}

.prose figure > figcaption {
  max-width: min(100%, 42rem);
  text-align: center;
}

.prose :is(p, li, blockquote, td, th) a[href],
.prose details a[href] {
  color: rgb(251 146 60) !important;
  font-weight: 650 !important;
  text-decoration: underline;
  text-decoration-color: rgb(251 146 60 / 0.5) !important;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition:
    color 150ms ease,
    text-decoration-color 150ms ease;
}

.prose :is(p, li, blockquote, td, th) a[href]:hover,
.prose details a[href]:hover {
  color: rgb(253 186 116) !important;
  text-decoration-color: rgb(253 186 116 / 0.75) !important;
}

.prose :is(p, li, blockquote, td, th) a[href] strong,
.prose details a[href] strong {
  color: inherit !important;
}

.prose details {
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 0.9rem;
  background-color: var(--color-fd-card);
}

.wallet-cart-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgb(96 165 250 / 0.65) transparent;
}

.wallet-cart-scrollbar::-webkit-scrollbar {
  width: 10px;
}

.wallet-cart-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.wallet-cart-scrollbar::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(96 165 250 / 0.72), rgb(59 130 246 / 0.52));
  background-clip: padding-box;
}

.wallet-cart-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgb(125 211 252 / 0.82), rgb(96 165 250 / 0.68));
  background-clip: padding-box;
}

.server-gallery-marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.server-gallery-track {
  display: flex;
  width: max-content;
  gap: var(--gallery-gap);
  animation: server-gallery-scroll var(--gallery-duration) linear infinite;
  will-change: transform;
}

.server-gallery-group {
  display: flex;
  gap: var(--gallery-gap);
}

@keyframes server-gallery-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - (var(--gallery-gap) / 2)));
  }
}

@media (max-width: 1024px) {
  .server-gallery-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .server-gallery-track {
    animation: none;
    transform: none;
  }
}

.prose details > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1rem;
  color: var(--color-fd-card-foreground);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 150ms ease;
}

.prose details > summary:hover {
  background: rgb(255 255 255 / 0.025);
}

.prose details > summary::-webkit-details-marker {
  display: none;
}

.prose details > summary::marker {
  content: "";
}

.prose details > summary::before {
  content: "›";
  width: 0.9rem;
  flex: none;
  color: var(--color-fd-muted-foreground);
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  transition:
    transform 150ms ease,
    color 150ms ease;
}

.prose details[open] > summary::before {
  transform: rotate(90deg);
  color: var(--color-fd-card-foreground);
}

.prose details[open] > summary {
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.prose details > summary img {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  margin: 0;
  border-radius: 0.25rem;
  object-fit: cover;
}

.prose details > summary strong {
  color: inherit;
  font-weight: 600;
}

.prose details > :not(summary) {
  margin-right: 1rem;
  margin-left: 3rem;
}

.prose details > :last-child {
  margin-bottom: 1rem;
}

.status-host-details > summary::-webkit-details-marker {
  display: none;
}

.status-host-details > summary::marker {
  content: "";
}

.status-host-details[open] > summary {
  border-bottom-color: rgb(255 255 255 / 0.06);
}

.status-host-details[open] .status-host-chevron {
  transform: rotate(90deg);
  color: var(--color-fd-card-foreground);
}

@media (max-width: 1023px) {
  #nd-nav nav > ul {
    display: none;
  }

  #nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden {
    display: flex !important;
    order: 2 !important;
    flex: 0 0 auto;
    margin-left: auto !important;
    gap: 0.25rem;
  }

  #nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden > button[data-search-full] {
    display: none;
  }

  #nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden > ul {
    display: flex;
    gap: 0.25rem;
  }

  #nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden > ul > .mobile-search-slot,
  #nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden > ul > .mobile-auth-slot,
  #nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden > ul > .mobile-menu-slot {
    display: flex;
    align-items: center;
  }

  #nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden > ul > .mobile-search-slot {
    order: 1;
  }

  #nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden > ul > .mobile-menu-slot {
    order: 2;
  }

  #nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden > ul > .mobile-auth-slot {
    order: 3;
  }

  #nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden > ul > .hidden.lg\:block {
    display: none !important;
  }

  #nd-nav nav > div.flex.flex-row.items-center.ms-auto.-me-1\.5.lg\:hidden {
    display: none !important;
  }

  .mobile-nav-popover {
    margin-top: 0.35rem;
  }
}



#nd-nav > div {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: 0 0 1.75rem 1.75rem;
  background: rgb(19 21 27 / 0.92);
  box-shadow:
    0 26px 80px rgb(0 0 0 / 0.34),
    0 10px 30px rgb(0 0 0 / 0.22);
  backdrop-filter: blur(22px);
}

#nd-nav > div > div {
  max-width: none;
}

#nd-nav nav {
  min-height: 5rem;
  padding-inline: 1.125rem;
  gap: 0.75rem;
}

#nd-nav nav > a.inline-flex.items-center.gap-2\.5.font-semibold {
  margin-left: 0.5rem;
}

#nd-nav nav > ul {
  flex: 1 1 auto;
  gap: 0.2rem;
  padding-inline: 0.5rem;
}

#nd-nav nav > ul a,
#nd-nav nav > ul button {
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: rgb(255 255 255 / 0.72);
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

#nd-nav nav > ul a:hover,
#nd-nav nav > ul button:hover,
#nd-nav nav > ul button[data-state='open'] {
  background: rgb(255 255 255 / 0.06);
  color: white;
}

#nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden {
  flex: 0 0 auto;
  gap: 0.6rem;
}

#nd-nav button[data-search-full] {
  height: 2.8rem;
  max-width: 13.5rem;
  border-color: rgb(255 255 255 / 0.07);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
}

#nd-nav button[data-search-full]:hover {
  background: rgb(255 255 255 / 0.07);
}

#nd-nav .hidden.lg\:block [aria-label='Меню аккаунта'],
#nd-nav .hidden.lg\:block [aria-label='Войти через Discord'] {
  border-radius: 0.9rem;
  border-color: rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.04);
}

#nd-home-layout {
  padding-top: var(--site-header-offset);
}

article#nd-page {
  padding-top: calc(var(--site-header-offset) - 2rem) !important;
}

@media (max-width: 1200px) {
  #nd-nav {
    width: min(calc(100% - 1.5rem), 42rem);
  }

  #nd-nav nav > ul a,
  #nd-nav nav > ul button {
    padding-inline: 0.85rem;
  }
}

@media (max-width: 850px) {
  body {
    --site-shell-offset: 3.5rem;
  }

  body {
    --site-header-offset: 5.25rem;
  }

  #nd-nav {
    top: 0;
    left: 0;
    width: 100%;
    transform: none;
  }

  #nd-nav > div {
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 1.75rem 1.75rem;
  }

  #nd-nav nav {
    min-height: 4.5rem;
    padding-inline: 1rem;
  }

  #nd-nav nav > a.inline-flex.items-center.gap-2\.5.font-semibold {
    margin-left: 0;
  }

  #nd-nav nav > div.flex.flex-row.items-center.ms-auto.lg\:hidden button[data-search-full] {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    gap: 0;
    border-radius: 0.8rem;
    border-color: rgb(255 255 255 / 0.08);
    background: rgb(255 255 255 / 0.04);
    color: transparent;
    font-size: 0;
  }

  #nd-nav nav > div.flex.flex-row.items-center.ms-auto.lg\:hidden button[data-search-full] div {
    display: none;
  }

  #nd-nav nav > div.flex.flex-row.items-center.ms-auto.lg\:hidden button[data-search-full] svg {
    color: rgb(255 255 255 / 0.8);
  }

  #nd-home-layout {
    padding-top: var(--site-header-offset);
  }

  article#nd-page {
    padding-top: calc(var(--site-header-offset) - 0.5rem) !important;
  }
}

#nd-nav > div {
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--color-fd-border);
  border-radius: 0;
  background: color-mix(in srgb, var(--color-fd-background) 80%, transparent);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

#nd-nav > div > div {
  max-width: var(--fd-layout-width, 90rem);
  margin-inline: auto;
}

#nd-nav nav {
  min-height: 3.5rem;
  padding-inline: 1rem;
  gap: 0;
}

#nd-nav nav > a.inline-flex.items-center.gap-2\.5.font-semibold {
  margin-left: 0;
}

#nd-nav nav > ul {
  flex: 0 0 auto;
  gap: 0.5rem;
  padding-inline: 1.5rem;
}

#nd-nav nav > ul a,
#nd-nav nav > ul button {
  border-radius: 0.375rem;
  padding: 0.5rem;
  color: var(--color-fd-muted-foreground);
  background: transparent;
}

#nd-nav nav > ul a:hover,
#nd-nav nav > ul button:hover,
#nd-nav nav > ul button[data-state='open'] {
  background: var(--color-fd-accent);
  color: var(--color-fd-accent-foreground);
}

#nd-nav nav > ul a[data-active='true'],
#nd-nav nav > ul button[data-active='true'] {
  background: color-mix(in srgb, var(--color-fd-accent) 88%, transparent);
  color: var(--color-fd-accent-foreground);
  box-shadow: inset 0 -2px 0 var(--color-fd-primary);
}

#nd-nav nav > ul button[data-active='true'] a {
  color: inherit;
}

#nd-nav nav > .flex.flex-row.items-center.justify-end.gap-1\.5.flex-1.max-lg\:hidden {
  flex: 1 1 auto;
  gap: 0.5rem;
}

#nd-nav button[data-search-full] {
  height: auto;
  max-width: 240px;
  border-color: var(--color-fd-border);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--color-fd-secondary) 50%, transparent);
}

#nd-nav button[data-search-full]:hover {
  background: var(--color-fd-accent);
}

#nd-nav .hidden.lg\:block [aria-label='Меню аккаунта'],
#nd-nav .hidden.lg\:block [aria-label='Войти через Discord'] {
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
}

#nd-home-layout {
  padding-top: 0;
}

article#nd-page {
  padding-top: 0 !important;
}

@media (max-width: 1200px) {
  #nd-nav {
    width: 100%;
  }

  #nd-nav nav > ul {
    padding-inline: 1rem;
  }

  #nd-nav nav > ul a,
  #nd-nav nav > ul button {
    padding-inline: 0.5rem;
  }
}

@media (max-width: 850px) {
  #nd-nav {
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
  }

  #nd-nav > div {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  #nd-nav nav {
    min-height: 3.5rem;
    padding-inline: 1rem;
  }

  #nd-nav nav > div.flex.flex-row.items-center.ms-auto.lg\:hidden button[data-search-full] {
    width: auto;
    min-width: auto;
    height: auto;
    padding: 0.5rem;
    gap: 0.5rem;
    border-radius: 0.375rem;
    border-color: transparent;
    background: transparent;
    color: inherit;
    font-size: inherit;
  }

  #nd-nav nav > div.flex.flex-row.items-center.ms-auto.lg\:hidden button[data-search-full] svg {
    color: inherit;
  }

  #nd-home-layout {
    padding-top: 0;
  }

  article#nd-page {
    padding-top: 0 !important;
  }
}

#nd-nav .mobile-auth-slot > a,
#nd-nav .hidden.lg\:block > a {
  border-color: rgb(0 0 0 / 0.08) !important;
  background: white !important;
  color: black !important;
}

#nd-nav .mobile-auth-slot > a:hover,
#nd-nav .hidden.lg\:block > a:hover {
  background: rgb(245 245 245) !important;
  color: black !important;
}

#nd-nav .mobile-search-slot > button,
#nd-nav .mobile-menu-slot > button,
#nd-nav .mobile-auth-slot > button,
#nd-nav .hidden.lg\:block > button[aria-label='Меню аккаунта'] {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

#nd-nav .mobile-search-slot > button:hover,
#nd-nav .mobile-menu-slot > button:hover,
#nd-nav .mobile-auth-slot > button:hover,
#nd-nav .hidden.lg\:block > button[aria-label='Меню аккаунта']:hover {
  background: var(--color-fd-accent) !important;
  color: var(--color-fd-accent-foreground) !important;
}

.mobile-nav-popover a[data-active='true'] {
  background: var(--color-fd-accent);
  color: var(--color-fd-accent-foreground);
}
