:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-2: #0d1018;
  --panel: rgba(18, 22, 32, 0.86);
  --panel-solid: #121620;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f5f7ff;
  --muted: #aeb7cc;
  --cyan: #39d6ff;
  --blue: #5a72ff;
  --green: #53df9d;
  --gold: #ffcf55;
  --red: #ff6b6b;
  --purple: #b073ff;
  --orange: #ff985f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% 14%, rgba(57, 214, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 84% 24%, rgba(176, 115, 255, 0.16), transparent 28rem),
    linear-gradient(180deg, #07080c 0%, #0b0d13 44%, #07080c 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  padding: 0.8rem clamp(1rem, 4vw, 3.6rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-size: 1.06rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 28px rgba(57, 214, 255, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.5rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  text-transform: uppercase;
}

.site-nav a {
  padding: 0.4rem 0;
}

.site-nav a:hover,
.site-footer a:hover,
.site-nav a[aria-current="page"],
.site-footer a[aria-current="page"] {
  color: var(--cyan);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(82svh - 74px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(10, 12, 18, 0.98), rgba(10, 12, 18, 0.7) 48%, rgba(10, 12, 18, 0.32)),
    #0b0d13;
}

.hero-map {
  position: absolute;
  inset: -80px -120px -90px 18%;
  z-index: -4;
  width: calc(100% + 140px);
  height: calc(100% + 170px);
  border: 0;
  opacity: 0.5;
  filter: saturate(1.12) contrast(1.12);
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 70% 32%, rgba(57, 214, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 84% 60%, rgba(255, 207, 85, 0.16), transparent 22rem),
    linear-gradient(90deg, rgba(7, 8, 12, 0.98), rgba(7, 8, 12, 0.76) 44%, rgba(7, 8, 12, 0.28)),
    linear-gradient(0deg, rgba(7, 8, 12, 0.9), transparent 38%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(57, 214, 255, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 214, 255, 0.14) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 44%, transparent 82%);
  mask-image: linear-gradient(90deg, black 0%, black 44%, transparent 82%);
}

.hero-content {
  width: min(780px, calc(100% - 2rem));
  align-self: center;
  margin-left: clamp(1rem, 7vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.eyebrow,
.strip-kicker {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-size: 0.77rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.2rem, 10vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  text-shadow:
    0 0 24px rgba(57, 214, 255, 0.18),
    0 12px 50px rgba(0, 0, 0, 0.55);
}

h2 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2rem, 4.8vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  color: rgba(245, 247, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  min-height: 48px;
  max-width: 100%;
  padding: 0.86rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(57, 214, 255, 0.44);
  outline-offset: 3px;
}

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 40px rgba(57, 214, 255, 0.24);
}

.button-primary:hover {
  box-shadow: 0 20px 46px rgba(57, 214, 255, 0.34);
}

.button-quiet {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.button-quiet:hover {
  border-color: rgba(57, 214, 255, 0.45);
  background: rgba(57, 214, 255, 0.13);
}

.button-discord {
  background: #5865f2;
}

.button-telegram {
  background: #2ea8df;
}

.button-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.08rem;
  height: 1.08rem;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.server-address {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-top: 1.15rem;
  color: var(--muted);
}

.server-address strong {
  color: var(--gold);
  font-size: clamp(1rem, 2.4vw, 1.28rem);
}

.copy-status {
  min-height: 1.5rem;
  margin: 0.48rem 0 0;
  color: var(--green);
  font-weight: 850;
}

.hero-panel {
  position: absolute;
  right: clamp(1rem, 5vw, 4.5rem);
  bottom: clamp(1rem, 5vw, 3.8rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 1px;
  width: min(520px, calc(100% - 2rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  padding: 0.95rem;
  background: rgba(10, 13, 20, 0.72);
}

.hero-panel span,
.server-metrics span,
.feature-number,
.path-list span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-panel strong,
.server-metrics strong {
  display: block;
  margin-top: 0.22rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.server-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 4vw, 2.2rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(57, 214, 255, 0.12), transparent 44%),
    var(--bg-2);
}

.server-strip h2 {
  max-width: 12ch;
}

.server-strip p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.server-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.server-metrics div {
  min-height: 112px;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.mechanics,
.path-section,
.map-section,
.community {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  max-width: 1180px;
  margin: 0 auto 2rem;
}

.section-heading.compact {
  margin-bottom: 1.5rem;
}

.mechanic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.mechanic-card {
  position: relative;
  min-height: 276px;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.mechanic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background: linear-gradient(135deg, var(--accent), transparent 58%);
  pointer-events: none;
}

.mechanic-card h3,
.mechanic-card p,
.feature-number {
  position: relative;
}

.mechanic-card h3 {
  margin-top: 3.2rem;
}

.mechanic-card p,
.path-list p,
.map-copy p,
.community p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.card-green { --accent: var(--green); }
.card-gold { --accent: var(--gold); }
.card-blue { --accent: var(--blue); }
.card-red { --accent: var(--red); }
.card-purple { --accent: var(--purple); }
.card-cyan { --accent: var(--cyan); }

.path-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 10%, rgba(83, 223, 157, 0.12), transparent 24rem),
    #090b10;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.path-list article {
  min-height: 210px;
  padding: 1.15rem;
  background: rgba(18, 22, 32, 0.92);
}

.path-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #071015;
  background: var(--cyan);
}

.path-list h3 {
  margin-top: 1.8rem;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2.4rem);
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(176, 115, 255, 0.12), transparent 42%),
    var(--bg-2);
}

.map-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.map-copy p {
  max-width: 34rem;
  font-size: 1.04rem;
}

.map-frame-wrap {
  min-height: min(70svh, 640px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(57, 214, 255, 0.16), transparent 42%),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(70svh, 640px);
  border: 0;
}

.community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 207, 85, 0.13), transparent 24rem),
    #07080c;
}

.community h2 {
  max-width: 14ch;
}

.community p {
  max-width: 42rem;
}

.community-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1.2rem;
  padding: 1.6rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.site-footer span {
  color: var(--text);
}

.rules-page {
  min-height: calc(100svh - 74px);
  background:
    linear-gradient(135deg, rgba(57, 214, 255, 0.11), transparent 38rem),
    radial-gradient(circle at 82% 12%, rgba(255, 207, 85, 0.11), transparent 24rem),
    #080a10;
}

.rules-hero {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(7, 8, 12, 0.96), rgba(13, 16, 24, 0.78)),
    var(--bg);
}

.rules-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.92;
  white-space: normal;
}

.rules-hero p {
  max-width: 56rem;
  margin: 1.2rem 0 0;
  color: rgba(245, 247, 255, 0.88);
  font-size: clamp(1.03rem, 2vw, 1.22rem);
}

.rules-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.rules-meta span {
  padding: 0.52rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.84rem;
  font-weight: 850;
}

.rules-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.rules-toc {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 0.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 22, 32, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.rules-toc strong {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.rules-toc a {
  padding: 0.48rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.rules-toc a:hover {
  color: var(--cyan);
}

.rules-content {
  min-width: 0;
}

.rules-section {
  padding: 0 0 clamp(2rem, 5vw, 3.25rem);
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}

.rules-section:last-child {
  margin-bottom: 0;
}

.rules-section h2 {
  max-width: none;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.06;
}

.rules-section h3 {
  margin-top: 1.65rem;
  color: var(--cyan);
}

.rules-section p,
.rules-section li {
  color: var(--muted);
}

.rules-section ol {
  display: grid;
  gap: 0.72rem;
  margin: 0.85rem 0 0;
  padding-left: 0;
  counter-reset: rule-point;
  list-style: none;
}

.rules-section li {
  position: relative;
  padding-left: 4.8rem;
  counter-increment: rule-point;
}

.rules-section li::before {
  content: var(--rule-prefix) counter(rule-point) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 950;
}

.rules-section p {
  margin: 0.95rem 0 0;
}

.penalty {
  display: block;
  margin-top: 0.35rem;
  color: var(--gold) !important;
  font-weight: 900;
}

.rules-table-wrap {
  margin-top: 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 22, 32, 0.86);
}

.rules-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.rules-table th,
.rules-table td {
  padding: 0.82rem 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rules-table th {
  color: var(--text);
  background: rgba(57, 214, 255, 0.1);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.rules-table td {
  color: var(--muted);
}

.rules-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1080px) {
  .mechanic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-map {
    inset: -70px -170px -80px 0;
    opacity: 0.34;
  }

  .hero-layer {
    background:
      radial-gradient(circle at 70% 32%, rgba(57, 214, 255, 0.18), transparent 22rem),
      linear-gradient(90deg, rgba(7, 8, 12, 0.98), rgba(7, 8, 12, 0.74)),
      linear-gradient(0deg, rgba(7, 8, 12, 0.92), transparent 48%);
  }

  .hero-panel {
    position: static;
    align-self: end;
    margin: 0 auto 1rem;
  }

  .server-strip,
  .map-section {
    grid-template-columns: 1fr;
  }

  .rules-shell {
    grid-template-columns: 1fr;
  }

  .rules-toc {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-content {
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding-top: 3.2rem;
  }

  .hero-panel,
  .server-metrics,
  .mechanic-grid,
  .path-list {
    grid-template-columns: 1fr;
  }

  .mechanic-card {
    min-height: 236px;
  }

  .map-frame-wrap,
  .map-frame-wrap iframe {
    min-height: 58svh;
  }

  .community {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-actions,
  .community-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .rules-shell {
    width: min(100% - 1rem, 1180px);
  }

  .rules-meta {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

code {
  padding: 0.12rem 0.34rem;
  border: 1px solid rgba(57, 214, 255, 0.22);
  border-radius: 6px;
  background: rgba(57, 214, 255, 0.08);
  color: #d9f6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wiki-page {
  background:
    radial-gradient(circle at 12% 9%, rgba(83, 223, 157, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 207, 85, 0.12), transparent 24rem),
    linear-gradient(180deg, #07080c 0%, #0d1018 36%, #07080c 100%);
}

.wiki-main {
  min-height: 100svh;
}

.wiki-main h1,
.wiki-main h2,
.wiki-main h3 {
  text-transform: none;
}

.wiki-hero {
  position: relative;
  display: grid;
  min-height: min(700px, calc(82svh - 74px));
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.wiki-hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) contrast(1.08);
}

.wiki-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 26%, rgba(57, 214, 255, 0.18), transparent 28rem),
    linear-gradient(90deg, rgba(7, 8, 12, 0.96), rgba(7, 8, 12, 0.78) 46%, rgba(7, 8, 12, 0.38)),
    linear-gradient(0deg, rgba(7, 8, 12, 0.94), rgba(7, 8, 12, 0.12) 52%, rgba(7, 8, 12, 0.68));
}

.wiki-hero-content {
  align-self: center;
  width: min(780px, calc(100% - 2rem));
  margin-left: clamp(1rem, 7vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}

.wiki-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  white-space: normal;
}

.wiki-hero-content > p:not(.eyebrow) {
  max-width: 49rem;
  margin: 1.25rem 0 0;
  color: rgba(245, 247, 255, 0.92);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.wiki-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.command-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: 100%;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(18, 22, 32, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
}

.command-pill:hover {
  border-color: rgba(57, 214, 255, 0.48);
}

.wiki-hero-panel {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.9rem;
  width: min(360px, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(18, 22, 32, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.wiki-hero-panel img {
  grid-row: span 3;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  image-rendering: pixelated;
}

.wiki-hero-panel div {
  min-width: 0;
}

.wiki-hero-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wiki-hero-panel strong {
  display: block;
  margin-top: 0.08rem;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiki-toolbar {
  position: sticky;
  top: 74px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.9rem clamp(1rem, 4vw, 3.6rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 8, 12, 0.86);
  backdrop-filter: blur(18px);
}

.wiki-search {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}

.wiki-search span,
.wiki-result-count {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wiki-search input {
  width: 100%;
  min-height: 44px;
  padding: 0.74rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(18, 22, 32, 0.88);
  color: var(--text);
  font: inherit;
  outline: none;
}

.wiki-search input:focus {
  border-color: rgba(57, 214, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(57, 214, 255, 0.12);
}

.wiki-filters {
  display: flex;
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.08rem;
}

.wiki-filter {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.62rem 0.74rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(18, 22, 32, 0.7);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.wiki-filter:hover,
.wiki-filter.is-active {
  border-color: rgba(83, 223, 157, 0.54);
  background: rgba(83, 223, 157, 0.12);
  color: var(--text);
}

.wiki-result-count {
  min-width: 7rem;
  margin: 0 0 0.58rem;
  text-align: right;
}

.wiki-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}

.wiki-toc {
  position: sticky;
  top: 168px;
  align-self: start;
  display: grid;
  gap: 0.12rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 22, 32, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.wiki-toc strong {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.wiki-toc a {
  padding: 0.46rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.wiki-toc a:hover {
  color: var(--cyan);
}

.wiki-content {
  min-width: 0;
}

.wiki-section {
  margin-bottom: clamp(2.4rem, 6vw, 4.4rem);
  scroll-margin-top: 178px;
}

.wiki-section-heading {
  margin-bottom: 1.2rem;
}

.wiki-section-heading h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.02;
}

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wiki-card {
  min-width: 0;
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(18, 22, 32, 0.86);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.wiki-card-wide {
  grid-column: 1 / -1;
}

.wiki-card.is-hidden {
  display: none;
}

.wiki-card h3 {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.wiki-card p,
.wiki-card li,
.wiki-note {
  color: var(--muted);
}

.wiki-card p {
  margin: 0.75rem 0 0;
}

.wiki-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wiki-card-header p {
  margin: 0.24rem 0 0;
}

.wiki-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 12px 26px rgba(0, 0, 0, 0.28);
}

.wiki-feature {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(83, 223, 157, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(83, 223, 157, 0.13), transparent),
    rgba(18, 22, 32, 0.76);
}

.wiki-feature img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
}

.wiki-feature-image {
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  border-color: rgba(255, 207, 85, 0.26);
  background:
    linear-gradient(90deg, rgba(255, 207, 85, 0.11), transparent),
    rgba(18, 22, 32, 0.76);
}

.wiki-feature-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  image-rendering: auto;
}

.wiki-feature h3,
.wiki-feature p {
  margin: 0;
}

.wiki-feature p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.wiki-list,
.wiki-steps {
  display: grid;
  gap: 0.62rem;
  margin: 0.82rem 0 0;
  padding-left: 1.2rem;
}

.wiki-steps {
  counter-reset: wiki-step;
  list-style: none;
  padding-left: 0;
}

.wiki-steps li {
  position: relative;
  min-height: 2rem;
  padding-left: 2.65rem;
  counter-increment: wiki-step;
}

.wiki-steps li::before {
  content: counter(wiki-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
  background: rgba(57, 214, 255, 0.14);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 950;
}

.wiki-table-wrap {
  margin-top: 0.95rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(7, 8, 12, 0.28);
}

.wiki-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.wiki-table th,
.wiki-table td {
  padding: 0.78rem 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.wiki-table th {
  color: var(--text);
  background: rgba(57, 214, 255, 0.1);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.wiki-table td {
  color: var(--muted);
}

.wiki-table tr:last-child td {
  border-bottom: 0;
}

.wiki-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.wiki-tags span {
  padding: 0.32rem 0.52rem;
  border: 1px solid rgba(255, 207, 85, 0.26);
  border-radius: 8px;
  background: rgba(255, 207, 85, 0.08);
  color: #ffe4a2;
  font-size: 0.78rem;
  font-weight: 850;
}

.wiki-note {
  padding: 0.72rem 0.84rem;
  border: 1px solid rgba(255, 207, 85, 0.26);
  border-radius: 8px;
  background: rgba(255, 207, 85, 0.08);
}

.wiki-empty {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 107, 107, 0.28);
  border-radius: 8px;
  background: rgba(255, 107, 107, 0.08);
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .wiki-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .wiki-result-count {
    min-width: 0;
    margin: 0;
    text-align: left;
  }
}

@media (max-width: 980px) {
  .wiki-hero {
    min-height: 620px;
  }

  .wiki-hero-content {
    margin: 0 auto;
    padding-top: 4rem;
    padding-bottom: 9.5rem;
  }

  .wiki-hero-panel {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }

  .wiki-shell {
    grid-template-columns: 1fr;
  }

  .wiki-toc {
    position: static;
  }

  .wiki-section {
    scroll-margin-top: 220px;
  }
}

@media (max-width: 740px) {
  .wiki-toolbar {
    position: static;
  }

  .wiki-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .wiki-hero-content {
    padding-top: 3rem;
    padding-bottom: 15.5rem;
  }

  .wiki-hero-panel {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .wiki-hero-panel img {
    width: 48px;
    height: 48px;
  }

  .wiki-grid,
  .wiki-feature,
  .wiki-feature-image {
    grid-template-columns: 1fr;
  }

  .wiki-card-header {
    align-items: flex-start;
  }

  .wiki-feature img {
    width: 72px;
    height: 72px;
  }

  .wiki-feature-image img {
    width: 100%;
    height: 190px;
  }

  .wiki-table {
    min-width: 560px;
  }
}

.docs-page {
  color-scheme: light;
  min-width: 320px;
  background: #ffffff;
  color: #1c1e21;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  line-height: 1.65;
}

.docs-page a {
  color: #2367d1;
  text-decoration: none;
}

.docs-page a:hover {
  text-decoration: underline;
}

.docs-page code {
  padding: 0.1rem 0.28rem;
  border: 1px solid #d7dce5;
  border-radius: 4px;
  background: #f4f6fa;
  color: #1f2937;
  font-size: 0.9em;
  font-weight: 650;
}

.docs-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: #111827 !important;
  font-size: 0.98rem;
  font-weight: 800;
}

.docs-brand:hover {
  text-decoration: none !important;
}

.docs-brand img {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.docs-topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.15rem;
  min-width: 0;
  overflow-x: auto;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}

.docs-topnav a {
  color: #4b5563;
}

.docs-topnav a:hover,
.docs-topnav a[aria-current="page"] {
  color: #1f5fbf;
  text-decoration: none;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 2rem;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.docs-sidebar,
.docs-onpage {
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100svh - 88px);
  overflow-y: auto;
  padding: 1.25rem 0;
}

.docs-sidebar {
  border-right: 1px solid #eef0f4;
}

.docs-sidebar-title,
.docs-onpage-title {
  margin-bottom: 0.55rem;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.docs-sidebar a,
.docs-onpage a {
  display: block;
  padding: 0.34rem 0.8rem 0.34rem 0;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.35;
}

.docs-onpage {
  padding-left: 1rem;
  border-left: 1px solid #eef0f4;
}

.docs-onpage a {
  padding-right: 0;
  color: #6b7280;
  font-size: 0.82rem;
}

.docs-sidebar a:hover,
.docs-onpage a:hover {
  color: #1f5fbf;
  text-decoration: none;
}

.docs-content {
  min-width: 0;
  max-width: 900px;
  padding: 2rem 0 4rem;
}

.docs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.15rem;
  color: #6b7280;
  font-size: 0.86rem;
}

.docs-breadcrumbs a,
.docs-breadcrumbs span {
  color: #6b7280;
}

.docs-page h1,
.docs-page h2,
.docs-page h3 {
  max-width: none;
  color: #111827;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: none;
}

.docs-page h1 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
  font-weight: 800;
}

.docs-page h2 {
  margin: 0 0 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid #eef0f4;
  font-size: 1.78rem;
  font-weight: 800;
}

.docs-page h3 {
  margin: 1.8rem 0 0.7rem;
  font-size: 1.22rem;
  font-weight: 760;
}

.docs-lead {
  margin: 0 0 1.25rem;
  color: #374151;
  font-size: 1.08rem;
}

.docs-section {
  margin-top: 2.35rem;
  scroll-margin-top: 84px;
}

.docs-section p {
  margin: 0.75rem 0;
  color: #374151;
}

.docs-alert {
  margin: 1rem 0 1.3rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid #f0b429;
  border-radius: 4px;
  background: #fff8e6;
  color: #493b16;
}

.docs-alert-info {
  border-left-color: #2f80ed;
  background: #eef6ff;
  color: #1e3a5f;
}

.docs-table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border: 1px solid #e5e7eb;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  font-size: 0.92rem;
}

.docs-table th,
.docs-table td {
  padding: 0.72rem 0.85rem;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.docs-table th:last-child,
.docs-table td:last-child {
  border-right: 0;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table th {
  background: #f6f8fb;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.docs-table td {
  color: #2f3745;
}

.docs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: inherit;
  font-weight: 650;
}

.docs-item img {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
  image-rendering: pixelated;
  background:
    linear-gradient(180deg, #ffffff, #f1f4f8);
  box-shadow:
    inset 0 0 0 1px rgba(17, 24, 39, 0.08),
    0 1px 2px rgba(17, 24, 39, 0.08);
}

.docs-item img[src$="server-icon.png"] {
  image-rendering: pixelated;
}

.docs-item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}

.docs-table tr:nth-child(even) td {
  background: #fbfcfe;
}

.docs-table-compact th,
.docs-table-compact td {
  padding: 0.58rem 0.75rem;
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .docs-onpage {
    display: none;
  }
}

@media (max-width: 860px) {
  .docs-navbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 1rem;
  }

  .docs-topnav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.9rem;
    padding-bottom: 0.1rem;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1rem;
  }

  .docs-sidebar {
    position: static;
    display: flex;
    gap: 0.7rem;
    max-height: none;
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #eef0f4;
    background: #fafbfc;
  }

  .docs-sidebar-title {
    display: none;
  }

  .docs-sidebar a {
    flex: 0 0 auto;
    padding: 0.35rem 0;
    white-space: nowrap;
  }

  .docs-content {
    padding-top: 1.4rem;
  }

  .docs-page h1 {
    font-size: 2rem;
  }

  .docs-page h2 {
    font-size: 1.48rem;
  }

  .docs-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .docs-table table,
  .docs-table thead,
  .docs-table tbody,
  .docs-table tr {
    width: 100%;
  }

  .docs-table th,
  .docs-table td {
    min-width: 180px;
  }
}
