﻿:root {
  --wiki-shell-max: 1380px;
  --wiki-shell-pad: 24px;
  --wiki-rail-width: 292px;
  --wiki-gap: 42px;
  --bg-0: #050505;
  --bg-1: #0a0a0a;
  --panel: rgba(10, 10, 10, 0.7);
  --edge: #232323;
  --edge-soft: #1a1a1a;
  --text: #f1f1f1;
  --text-dim: #a8a8a8;
  --accent: #fc0553;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% -10%, #141414, #050505 56%);
}

.wiki-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(252, 5, 83, 0.14), transparent 36%),
    radial-gradient(circle at 18% 88%, rgba(252, 5, 83, 0.08), transparent 30%),
    repeating-linear-gradient(38deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(128deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, #060606, #040404);
}

.wiki-bg::before,
.wiki-bg::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 260px;
  opacity: 0.34;
  image-rendering: pixelated;
  background:
    linear-gradient(rgba(252, 5, 83, 0.16) 0 0) 0 160px / 54px 54px no-repeat,
    linear-gradient(rgba(252, 5, 83, 0.12) 0 0) 54px 160px / 54px 54px no-repeat,
    linear-gradient(rgba(252, 5, 83, 0.1) 0 0) 108px 160px / 54px 54px no-repeat,
    linear-gradient(rgba(252, 5, 83, 0.14) 0 0) 54px 106px / 54px 54px no-repeat,
    linear-gradient(rgba(252, 5, 83, 0.11) 0 0) 108px 106px / 54px 54px no-repeat,
    linear-gradient(rgba(252, 5, 83, 0.09) 0 0) 162px 106px / 54px 54px no-repeat,
    linear-gradient(rgba(252, 5, 83, 0.12) 0 0) 108px 52px / 54px 54px no-repeat,
    linear-gradient(rgba(252, 5, 83, 0.09) 0 0) 162px 52px / 54px 54px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.wiki-bg::before {
  left: -108px;
  top: 68px;
  transform: rotate(8deg);
  animation: wiki-voxel-drift 16s ease-in-out infinite;
}

.wiki-bg::after {
  right: -98px;
  bottom: 54px;
  transform: rotate(-10deg) scale(0.96);
  opacity: 0.26;
  filter: hue-rotate(-8deg);
  animation: wiki-voxel-drift-reverse 19s ease-in-out infinite;
}

@keyframes wiki-voxel-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(10deg);
  }
}

@keyframes wiki-voxel-drift-reverse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-10deg) scale(0.96);
  }
  50% {
    transform: translate3d(0, 12px, 0) rotate(-8deg) scale(0.98);
  }
}

.wiki-layout {
  max-width: var(--wiki-shell-max);
  margin: 0 auto;
  padding: 34px var(--wiki-shell-pad);
  display: block;
  min-height: 100vh;
}

.wiki-rail {
  position: fixed;
  left: max(calc((100vw - var(--wiki-shell-max)) / 2 + var(--wiki-shell-pad)), var(--wiki-shell-pad));
  top: 50vh;
  transform: translateY(-50%);
  width: var(--wiki-rail-width);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 14px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(252, 5, 83, 0.55) rgba(255, 255, 255, 0.08);
}

.wiki-rail::-webkit-scrollbar {
  width: 8px;
}

.wiki-rail::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.wiki-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(252, 5, 83, 0.8), rgba(252, 5, 83, 0.45));
  border-radius: 999px;
}

.wiki-rail::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(252, 5, 83, 0.95), rgba(252, 5, 83, 0.65));
}

.wiki-back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid #323232;
  background: #0f0f0f;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
}

.wiki-back:hover {
  border-color: var(--accent);
}

.wiki-rail-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.wiki-rail-top-actions .wiki-back {
  margin-bottom: 0;
  flex: 1 1 120px;
  text-align: center;
}

.wiki-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #1d1d1d;
}

.wiki-section--mod-dock {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.wiki-mod-dock {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(252, 5, 83, 0.55) rgba(255, 255, 255, 0.08);
}

.wiki-mod-dock::-webkit-scrollbar {
  height: 8px;
}

.wiki-mod-dock::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.wiki-mod-dock::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(252, 5, 83, 0.8), rgba(252, 5, 83, 0.45));
  border-radius: 999px;
}

.wiki-mod-dock::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(252, 5, 83, 0.95), rgba(252, 5, 83, 0.65));
}

.wiki-mod-dock__item {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 6px;
  border: 1px solid #2a2a2a;
  background: rgba(13, 13, 13, 0.72);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.wiki-mod-dock__item:hover {
  border-color: #3a3a3a;
}

.wiki-mod-dock__item:focus-visible {
  outline: 2px solid rgba(252, 5, 83, 0.6);
  outline-offset: 1px;
}

.wiki-mod-dock__item.is-active {
  border-color: rgba(252, 5, 83, 0.7);
  background: linear-gradient(160deg, rgba(252, 5, 83, 0.14), rgba(252, 5, 83, 0.04));
}

.wiki-mod-dock__icon {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 1px solid #333;
}

.wiki-mod-dock__label {
  width: 100%;
  text-align: center;
  color: #d4d4d4;
  font-size: 0.6rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.wiki-section h2,
.wiki-section summary {
  margin: 0 0 9px;
  font-family: "Antonio", sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d9d9d9;
}

.wiki-section summary {
  cursor: pointer;
  list-style: none;
}

.wiki-section summary::-webkit-details-marker {
  display: none;
}

.wiki-section--mods[open] summary {
  margin-bottom: 10px;
}

.wiki-current-mod {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.wiki-current-mod img {
  width: 52px;
  height: 52px;
  border: 1px solid #313131;
}

.wiki-current-mod strong {
  display: block;
  font-size: 0.98rem;
}

.wiki-mod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.wiki-mod-tag {
  padding: 3px 8px;
  border: 1px solid #2a2a2a;
  background: rgba(255, 255, 255, 0.03);
  color: #d6d6d6;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.wiki-mod-description {
  margin: 10px 0 0;
  color: var(--text-dim);
  line-height: 1.55;
  font-size: 0.86rem;
}

.wiki-mod-page-link {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid #2f2f2f;
  background: rgba(12, 12, 12, 0.82);
  color: #e6e6e6;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  line-height: 1.2;
  padding: 6px 8px;
}

.wiki-mod-page-link:hover {
  border-color: var(--accent);
}

.wiki-locale-picker {
  display: block;
}

.wiki-locale-static {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wiki-locale-dropdown {
  border: 1px solid #272727;
  background: rgba(12, 12, 12, 0.76);
}

.wiki-locale-summary {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px 30px 8px 8px;
  cursor: pointer;
}

.wiki-locale-summary::-webkit-details-marker {
  display: none;
}

.wiki-locale-summary::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 10px;
  color: #c7c7c7;
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 150ms ease;
}

.wiki-locale-dropdown[open] .wiki-locale-summary::after {
  transform: rotate(180deg);
}

.wiki-locale-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 8px 8px;
  border-top: 1px solid #1f1f1f;
}

.wiki-locale-summary-label {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.58rem;
}

.wiki-locale-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border: 1px solid #2a2a2a;
  background: rgba(12, 12, 12, 0.88);
  color: #cbcbcb;
  padding: 7px 8px;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.wiki-locale-option {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.wiki-locale-chip:hover {
  border-color: #3a3a3a;
}

.wiki-locale-chip:focus-visible {
  outline: 2px solid rgba(252, 5, 83, 0.62);
  outline-offset: 1px;
}

.wiki-locale-chip.is-active {
  border-color: rgba(252, 5, 83, 0.7);
  background: linear-gradient(160deg, rgba(252, 5, 83, 0.18), rgba(252, 5, 83, 0.05));
  color: #f0f0f0;
}

.wiki-locale-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid #2f2f2f;
  background: #070707;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  flex: 0 0 18px;
}

.wiki-locale-label {
  min-width: 0;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.wiki-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wiki-nav-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wiki-nav-group + .wiki-nav-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #1d1d1d;
}

.wiki-nav-group-title {
  margin: 0;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
}

.wiki-nav-link {
  display: block;
  width: 100%;
  color: var(--text);
  text-decoration: none;
  border: 1px solid #2a2a2a;
  background: rgba(16, 16, 16, 0.8);
  padding: 8px 10px;
  line-height: 1.35;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.wiki-nav-link:hover {
  border-color: #3a3a3a;
}

.wiki-nav-link.is-active {
  border-color: rgba(252, 5, 83, 0.65);
  background: linear-gradient(160deg, rgba(252, 5, 83, 0.14), rgba(252, 5, 83, 0.03));
}

.wiki-stage {
  width: auto;
  max-width: calc(100% - (var(--wiki-rail-width) + var(--wiki-gap)));
  margin-left: calc(var(--wiki-rail-width) + var(--wiki-gap));
  min-width: 0;
  border-left: 1px solid #1f1f1f;
  padding-left: 42px;
}

.wiki-article {
  max-width: 860px;
  padding: 8px 0 28px;
}

.wiki-meta {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wiki-page-title {
  margin: 8px 0 20px;
  font-family: "Antonio", sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  letter-spacing: 0.03em;
}

.wiki-content h1,
.wiki-content h2,
.wiki-content h3 {
  margin: 0 0 10px;
  font-family: "Antonio", sans-serif;
  letter-spacing: 0.03em;
}

.wiki-content h1 {
  font-size: 1.72rem;
}

.wiki-content h2 {
  margin-top: 28px;
  font-size: 1.36rem;
}

.wiki-content h3 {
  margin-top: 20px;
  font-size: 1.08rem;
}

.wiki-content p,
.wiki-content li {
  color: #dddddd;
  line-height: 1.72;
}

.wiki-content ul,
.wiki-content ol {
  margin: 0 0 18px 20px;
  padding: 0;
}

.wiki-content a {
  color: #ffc5da;
}

.wiki-content hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid #202020;
}

.wiki-content code {
  font-family: Consolas, "Courier New", monospace;
}

.wiki-content p code,
.wiki-content li code,
.wiki-content td code,
.wiki-content th code,
.wiki-content h1 code,
.wiki-content h2 code,
.wiki-content h3 code {
  border: 1px solid #292929;
  background: #0f0f0f;
  padding: 0 4px;
}

.wiki-content pre {
  margin: 16px 0;
  border: 1px solid #2b2b2b;
  background: #0e0e0e;
  padding: 12px;
  overflow-x: auto;
}

.wiki-content pre > code {
  border: 0;
  background: transparent;
  padding: 0;
}

.wiki-codeblock {
  margin: 16px 0 20px;
  border: 1px solid #2d2d2d;
  background:
    linear-gradient(180deg, rgba(252, 5, 83, 0.14), rgba(252, 5, 83, 0)),
    #0b0b0b;
}

.wiki-codeblock__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid #232323;
  background: rgba(6, 6, 6, 0.9);
}

.wiki-codeblock__lang {
  font-family: "Antonio", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7d7d7;
}

.wiki-codeblock__copy {
  border: 1px solid #343434;
  background: rgba(18, 18, 18, 0.95);
  color: #efefef;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 8px;
  cursor: pointer;
}

.wiki-codeblock__copy:hover {
  border-color: var(--accent);
}

.wiki-codeblock__copy.is-copied {
  border-color: rgba(113, 219, 164, 0.75);
  color: #aff0d0;
}

.wiki-codeblock__pre {
  margin: 0;
  border: 0;
  background: #0b0b0b;
  padding: 0;
  overflow: auto;
}

.wiki-codeblock__pre code {
  display: block;
  min-width: max-content;
  border: 0;
  background: transparent;
  padding: 10px 0;
  counter-reset: wiki-line;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.56;
  color: #e7e7e7;
}

.wiki-code-line {
  display: block;
  position: relative;
  white-space: pre;
  padding: 0 14px 0 56px;
}

.wiki-code-line::before {
  counter-increment: wiki-line;
  content: counter(wiki-line);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  color: #666;
  border-right: 1px solid #1f1f1f;
  text-align: right;
  padding-right: 10px;
  user-select: none;
}

.wiki-tok-keyword {
  color: #ff7ab2;
}

.wiki-tok-string {
  color: #8fcbff;
}

.wiki-tok-number {
  color: #f5c978;
}

.wiki-tok-comment {
  color: #6d7b83;
}

.wiki-tok-annotation {
  color: #7dddc8;
}

.wiki-tok-key {
  color: #ffd986;
}

.wiki-tok-punct {
  color: #cdd5de;
}

.wiki-figure {
  margin: 18px 0;
  border: 1px solid #272727;
  background: rgba(13, 13, 13, 0.75);
  padding: 10px;
}

.wiki-figure img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.wiki-figure figcaption {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.wiki-audio-card {
  margin: 14px 0 18px;
  border: 1px solid #2a2a2a;
  background:
    linear-gradient(180deg, rgba(252, 5, 83, 0.1), rgba(252, 5, 83, 0)),
    rgba(12, 12, 12, 0.82);
  padding: 11px 12px;
}

.wiki-audio-card__title {
  margin: 0 0 10px;
  color: #efefef;
  font-size: 0.92rem;
}

.wiki-audio-player {
  width: 100%;
  max-width: 540px;
  display: block;
}

.wiki-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}

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

.wiki-table th,
.wiki-table td {
  border: 1px solid #2b2b2b;
  padding: 9px 10px;
  vertical-align: top;
}

.wiki-table th {
  background: #131313;
}

.wiki-tabs {
  margin: 20px 0;
  border: 1px solid #2b2b2b;
  background: rgba(13, 13, 13, 0.82);
}

.wiki-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #242424;
}

.wiki-tab-button {
  border: 0;
  border-right: 1px solid #242424;
  background: #111;
  color: #d2d2d2;
  font-family: inherit;
  padding: 9px 12px;
  cursor: pointer;
}

.wiki-tab-button.is-active {
  background: rgba(252, 5, 83, 0.13);
  color: #fff;
}

.wiki-tab-panels {
  padding: 12px;
}

.wiki-tab-panel {
  display: none;
}

.wiki-tab-panel.is-active {
  display: block;
}

.wiki-admonition {
  margin: 18px 0;
  border: 1px solid #2f2f2f;
  background: rgba(13, 13, 13, 0.8);
}

.wiki-admonition > header,
.wiki-admonition > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  font-family: "Antonio", sans-serif;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  text-transform: uppercase;
  border-bottom: 1px solid #242424;
  cursor: pointer;
  list-style: none;
}

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

.wiki-admonition__body {
  padding: 11px 12px 12px;
}

.wiki-admonition__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.28);
  color: #f6f6f6;
  font-family: "Antonio", sans-serif;
  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
  flex: 0 0 18px;
}

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

.wiki-admonition--tip > header,
.wiki-admonition--tip > summary {
  background: linear-gradient(90deg, rgba(113, 219, 164, 0.2), rgba(113, 219, 164, 0.06));
}

.wiki-admonition--info > header,
.wiki-admonition--info > summary {
  background: linear-gradient(90deg, rgba(148, 170, 255, 0.2), rgba(148, 170, 255, 0.06));
}

.wiki-admonition--warning > header,
.wiki-admonition--warning > summary {
  background: linear-gradient(90deg, rgba(255, 208, 103, 0.22), rgba(255, 208, 103, 0.06));
}

.wiki-admonition--danger > header,
.wiki-admonition--danger > summary {
  background: linear-gradient(90deg, rgba(255, 126, 126, 0.22), rgba(255, 126, 126, 0.06));
}

.wiki-l10n-summary {
  margin: 8px 0 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.wiki-l10n-controls {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 0;
}

.wiki-l10n-control {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.wiki-l10n-select {
  border: 1px solid #2f2f2f;
  background: #0f0f0f;
  color: var(--text);
  padding: 6px 8px;
  font: inherit;
  min-width: 132px;
  text-transform: none;
  letter-spacing: 0;
}

.wiki-l10n-select:focus-visible {
  outline: 2px solid rgba(252, 5, 83, 0.45);
  outline-offset: 1px;
}

.wiki-l10n-submit {
  border: 1px solid #2f2f2f;
  background: #0f0f0f;
  color: var(--text);
  padding: 6px 9px;
  font: inherit;
}

.wiki-l10n-note {
  margin: 0 0 10px;
  border: 1px solid #2a2a2a;
  background: rgba(12, 12, 12, 0.75);
  color: #d7d7d7;
  font-size: 0.82rem;
  padding: 9px 10px;
}

.wiki-l10n-missing {
  color: #8f8f8f;
}

.wiki-empty {
  border: 1px solid #2a2a2a;
  background: rgba(12, 12, 12, 0.75);
  color: var(--text-dim);
  padding: 14px;
}

.wiki-support-block {
  position: relative;
  margin-top: 30px;
  padding: 16px 16px 18px;
  border: 1px solid rgba(252, 5, 83, 0.45);
  border-left: 2px solid rgba(252, 5, 83, 0.72);
  background:
    radial-gradient(circle at 86% 14%, rgba(252, 5, 83, 0.2), transparent 44%),
    linear-gradient(148deg, rgba(17, 11, 14, 0.92), rgba(10, 9, 12, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.25);
}

.wiki-support-kicker {
  margin: 0;
  color: #ffc6dc;
  font-family: "Antonio", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.68rem;
}

.wiki-support-block h2 {
  margin: 6px 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.42rem);
}

.wiki-support-text {
  margin: 8px 0 0;
  color: #e3d8dd;
  line-height: 1.62;
  max-width: 62ch;
}

.wiki-support-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.wiki-support-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #363238;
  background: rgba(12, 11, 14, 0.86);
  color: #f6f2f4;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: "Antonio", sans-serif;
  font-size: 0.66rem;
}

.wiki-support-link:hover,
.wiki-support-link:focus-visible {
  border-color: rgba(252, 5, 83, 0.88);
}

.wiki-support-link--patreon {
  border-color: rgba(252, 5, 83, 0.65);
  background: linear-gradient(150deg, rgba(252, 5, 83, 0.22), rgba(252, 5, 83, 0.08));
}

.wiki-support-why {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px dashed rgba(252, 5, 83, 0.62);
  background:
    radial-gradient(circle at 14% 16%, rgba(252, 5, 83, 0.24), transparent 48%),
    rgba(11, 10, 14, 0.9);
  color: #fff5f9;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Antonio", sans-serif;
  font-size: 0.64rem;
}

.wiki-support-why:hover,
.wiki-support-why:focus-visible {
  border-color: rgba(252, 5, 83, 0.9);
}

.wiki-support-why__emoji {
  display: inline-block;
  font-size: 1.04rem;
  line-height: 1;
  transform-origin: 50% 72%;
  animation: wiki-support-think 2.9s ease-in-out infinite;
}

@keyframes wiki-support-think {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg) scale(1);
  }
  46% {
    transform: translateY(-2px) rotate(-2deg) scale(1.05);
  }
  74% {
    transform: translateY(-1px) rotate(4deg) scale(1.01);
  }
}

.wiki-under-construction {
  margin: 0 0 14px;
  border: 1px solid rgba(252, 5, 83, 0.48);
  background: linear-gradient(160deg, rgba(252, 5, 83, 0.14), rgba(252, 5, 83, 0.04));
  padding: 12px 14px;
}

.wiki-under-construction h2 {
  margin: 0 0 6px;
  font-family: "Antonio", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: #ffd7e6;
}

.wiki-under-construction p {
  margin: 0;
  color: #f1e4ea;
}

.wiki-mod-status {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 8px;
  border: 1px solid #3a3a3a;
  background: rgba(13, 13, 13, 0.7);
  color: #d8d8d8;
  font-family: "Antonio", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.62rem;
}

.wiki-mod-status--construction {
  border-color: rgba(252, 5, 83, 0.52);
  background: rgba(252, 5, 83, 0.14);
  color: #ffd8e6;
}

.wiki-back-to-top {
  position: fixed;
  right: 14px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  border: 1px solid #2f2f2f;
  background: rgba(12, 12, 12, 0.92);
  color: var(--text);
  font-family: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.wiki-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wiki-back-to-top:hover {
  border-color: var(--accent);
}

.ff-recipe {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.85rem 0;
}

.ff-recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(3, 44px);
  gap: 4px;
  padding: 8px;
  border: 1px solid #2f2f2f;
  background: #111;
}

.ff-slot {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #303030;
  background: #1a1a1a;
}

.ff-slot img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.ff-slot--cycle {
  position: relative;
  overflow: hidden;
}

.ff-slot--cycle .ff-slot-cycle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 32px;
  height: 32px;
  opacity: 0;
  animation: ff-slot-cycle 20s steps(1, end) infinite;
}

.ff-slot--cycle .ff-slot-cycle:nth-child(1) { animation-delay: 0s; }
.ff-slot--cycle .ff-slot-cycle:nth-child(2) { animation-delay: -18s; }
.ff-slot--cycle .ff-slot-cycle:nth-child(3) { animation-delay: -16s; }
.ff-slot--cycle .ff-slot-cycle:nth-child(4) { animation-delay: -14s; }
.ff-slot--cycle .ff-slot-cycle:nth-child(5) { animation-delay: -12s; }
.ff-slot--cycle .ff-slot-cycle:nth-child(6) { animation-delay: -10s; }
.ff-slot--cycle .ff-slot-cycle:nth-child(7) { animation-delay: -8s; }
.ff-slot--cycle .ff-slot-cycle:nth-child(8) { animation-delay: -6s; }
.ff-slot--cycle .ff-slot-cycle:nth-child(9) { animation-delay: -4s; }
.ff-slot--cycle .ff-slot-cycle:nth-child(10) { animation-delay: -2s; }

@keyframes ff-slot-cycle {
  0%, 9% { opacity: 1; }
  10%, 100% { opacity: 0; }
}

.ff-recipe-arrow {
  font-size: 1.55rem;
  color: #ccc;
}

.ff-recipe-result .ff-slot {
  border-color: rgba(252, 5, 83, 0.6);
  background: rgba(252, 5, 83, 0.14);
}

@media (max-width: 1280px) {
  .wiki-bg::before {
    left: 6px;
    top: 72px;
    opacity: 0.27;
  }

  .wiki-bg::after {
    right: 6px;
    bottom: 42px;
    opacity: 0.22;
  }
}

@media (max-width: 980px) {
  .wiki-bg::before,
  .wiki-bg::after {
    width: 240px;
    height: 196px;
    animation: none;
  }

  .wiki-bg::before {
    left: 10px;
    top: 76px;
    opacity: 0.26;
    transform: rotate(9deg) scale(0.86);
  }

  .wiki-bg::after {
    right: 8px;
    bottom: 34px;
    opacity: 0.21;
    transform: rotate(-9deg) scale(0.82);
  }

  .wiki-layout {
    padding-inline: 14px;
    --wiki-gap: 30px;
  }
}

@media (max-width: 760px) {
  .wiki-layout {
    display: block;
    padding: 20px 14px 26px;
    min-height: auto;
  }

  .wiki-rail {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    max-height: none;
    overflow: visible;
    transform: none;
  }

  .wiki-article {
    max-width: none;
  }

  .wiki-stage {
    max-width: none;
    margin-left: 0;
    border-left: 0;
    padding-left: 0;
  }

  .wiki-mod-dock__item {
    flex-basis: 66px;
    padding: 7px 5px;
  }

  .wiki-mod-dock__label {
    font-size: 0.57rem;
  }

  .wiki-l10n-controls {
    justify-content: flex-start;
  }

  .wiki-l10n-control {
    width: 100%;
    justify-content: space-between;
  }

  .wiki-l10n-select {
    min-width: 0;
    width: 56%;
  }

  .wiki-support-block {
    margin-top: 24px;
    padding: 14px 12px 14px;
  }

  .wiki-support-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wiki-support-link,
  .wiki-support-why {
    justify-content: center;
    width: 100%;
  }

  .wiki-back-to-top {
    right: 10px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  .wiki-bg::before,
  .wiki-bg::after {
    width: 210px;
    height: 172px;
  }

  .wiki-bg::before {
    left: 6px;
    top: 90px;
    opacity: 0.24;
  }

  .wiki-bg::after {
    right: 4px;
    bottom: 18px;
    opacity: 0.19;
  }
}

@media (min-width: 761px) {
  .wiki-back-to-top {
    display: none;
  }
}
