*,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --bg: #111111;
      --bg-surface: #161616;
      --bg-card: #1c1c1c;
      --bg-card-hover: #222222;
      --bg-card-alt: rgba(10, 10, 12, 0.95);
      --border: rgba(255, 255, 255, 0.08);
      --border-hover: rgba(255, 255, 255, 0.16);
      --border-red: rgba(255, 26, 26, 0.35);
      --red: #ff1a1a;
      --red-bright: #ff3344;
      --red-glow: rgba(255, 26, 26, 0.3);
      --text: #f3f3f3;
      --text-dim: #a6a6a6;
      --text-muted: #737373;
      --header-h: 68px;
      --sidebar-w: 290px;
      --toc-w: 240px;
      --font-heading: 'Bebas Neue', cursive, sans-serif;
      --font-body: 'Inter', sans-serif;
      --font-code: 'JetBrains Mono', Consolas, monospace;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: var(--font-body);
      line-height: 1.68;
      overflow-x: hidden;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
      width: 5px;
      height: 5px;
    }

    ::-webkit-scrollbar-track {
      background: #050506;
    }

    ::-webkit-scrollbar-thumb {
      background: var(--red);
      border-radius: 0px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--red);
    }

    /* PARTICLES CANVAS */
    #bg-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      pointer-events: none;
      z-index: 0;
    }

    /* ── HEADER ── */
    .wiki-header {
      position: sticky;
      top: 0;
      height: var(--header-h);
      width: 100%;
      background: rgba(8, 8, 10, 0.85);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(255, 26, 26, 0.18);
      z-index: 100;
      display: flex;
      align-items: center;
    }

    .header-inner {
      width: 100%;
      max-width: 1600px;
      margin: 0 auto;
      padding: 0 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }

    .brand-wrap {
      display: flex;
      align-items: center;
      gap: .85rem;
      text-decoration: none;
      color: #fff;
      flex-shrink: 0;
    }

    .brand-logo-img {
      width: 38px;
      height: 38px;
      object-fit: contain;
      filter: drop-shadow(0 0 10px rgba(255, 26, 26, 0.65));
    }

    .brand-text {
      display: flex;
      align-items: baseline;
      gap: .4rem;
    }

    .brand-title {
      font-family: var(--font-heading);
      font-size: 1.85rem;
      letter-spacing: .05em;
      line-height: 1;
    }

    .brand-title span {
      color: var(--red-bright);
    }

    .brand-badge {
      background: rgba(255, 26, 26, 0.16);
      border: 1px solid var(--border-red);
      color: var(--red-bright);
      font-size: .68rem;
      font-weight: 800;
      padding: .15rem .5rem;
      border-radius: 0px;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    /* Header Search Box */
    .header-search {
      flex: 1;
      max-width: 480px;
      position: relative;
    }

    .header-search i {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: .88rem;
      pointer-events: none;
    }

    .header-search input {
      width: 100%;
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 0px;
      padding: .6rem 3rem .6rem 2.5rem;
      color: #fff;
      font-size: .88rem;
      font-family: inherit;
      outline: none;
      transition: all .2s;
    }

    .header-search input:focus {
      border-color: var(--red);
      box-shadow: 0 0 0 3px rgba(255, 26, 26, 0.2);
      background: #050506;
    }

    .search-shortcut {
      position: absolute;
      right: .8rem;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(25, 25, 30, 0.9);
      border: 1px solid #333;
      color: #999;
      font-size: .68rem;
      padding: .15rem .4rem;
      border-radius: 0px;
      font-family: var(--font-code);
      pointer-events: none;
    }

    /* Header Links */
    .header-nav {
      display: flex;
      align-items: center;
      gap: 1.1rem;
    }

    .header-nav a {
      color: var(--text-dim);
      font-size: .88rem;
      font-weight: 600;
      text-decoration: none;
      transition: color .2s;
      white-space: nowrap;
    }

    .header-nav a:hover {
      color: #fff;
    }

    .btn-header-discord {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      background: #5865F2;
      color: #fff !important;
      padding: .5rem 1rem;
      border-radius: 0px;
      font-size: .84rem;
      font-weight: 700;
      transition: all .2s;
    }

    .btn-header-discord:hover {
      background: #4752c4;
      transform: translateY(-1px);
    }

    .btn-menu-toggle {
      display: none;
      background: transparent;
      border: 1px solid var(--border);
      color: #fff;
      width: 40px;
      height: 40px;
      border-radius: 0px;
      cursor: pointer;
      font-size: 1.1rem;
    }

    /* ── MAIN LAYOUT ── */
    .wiki-container {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 1600px;
      margin: 0 auto;
      display: flex;
      flex: 1;
      padding: 1.5rem;
      gap: 2rem;
    }

    /* ── SIDEBAR ── */
    .wiki-sidebar {
      width: var(--sidebar-w);
      flex-shrink: 0;
      position: sticky;
      top: calc(var(--header-h) + 1.5rem);
      height: calc(100vh - var(--header-h) - 3rem);
      overflow-y: auto;
      padding-right: .5rem;
    }

    .sidebar-group {
      margin-bottom: 1.8rem;
    }

    .sidebar-group-title {
      font-size: .74rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text-muted);
      margin-bottom: .6rem;
      display: flex;
      align-items: center;
      gap: .5rem;
      padding-left: .5rem;
    }

    .sidebar-group-title i {
      color: var(--red-bright);
      font-size: .8rem;
      width: 16px;
    }

    .sidebar-nav-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: .2rem;
    }

    .sidebar-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: .48rem .75rem;
      color: var(--text-dim);
      text-decoration: none;
      font-size: .88rem;
      font-weight: 500;
      border-radius: 0px;
      transition: all .2s;
      border-left: 2px solid transparent;
    }

    .sidebar-link:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.04);
      border-left-color: rgba(255, 26, 26, 0.6);
      padding-left: .95rem;
    }

    .sidebar-link.active {
      color: #fff;
      font-weight: 700;
      background: rgba(255, 26, 26, 0.14);
      border-left-color: var(--red);
    }

    .sidebar-pill {
      font-size: .66rem;
      font-weight: 700;
      padding: .1rem .4rem;
      border-radius: 0px;
      background: rgba(25, 25, 30, 0.9);
      color: #888;
    }

    /* ── CONTENT AREA ── */
    .wiki-content {
      flex: 1;
      min-width: 0;
      max-width: 920px;
    }

    /* Breadcrumbs */
    .wiki-breadcrumbs {
      display: flex;
      align-items: center;
      gap: .5rem;
      font-size: .82rem;
      color: var(--text-muted);
      margin-bottom: 1.5rem;
    }

    .wiki-breadcrumbs a {
      color: var(--text-dim);
      text-decoration: none;
    }

    .wiki-breadcrumbs a:hover {
      color: var(--red-bright);
    }

    /* Banner Hero */
    .wiki-hero {
      background: linear-gradient(135deg, rgba(255, 26, 26, 0.15), rgba(28, 28, 28, 0.95)), var(--bg-card);
      border: 1px solid var(--border-red);
      border-radius: 0px;
      padding: 2.2rem 2.5rem;
      margin-bottom: 2.5rem;
      position: relative;
      overflow: hidden;
    }

    .wiki-hero::after {
      content: '';
      position: absolute;
      right: -20px;
      bottom: -20px;
      width: 220px;
      height: 220px;
      background: radial-gradient(circle, rgba(255, 26, 26, 0.28) 0%, transparent 70%);
      pointer-events: none;
    }

    .wiki-hero-tag {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      background: rgba(255, 26, 26, 0.2);
      border: 1px solid var(--border-red);
      color: var(--red-bright);
      font-size: .75rem;
      font-weight: 800;
      letter-spacing: .05em;
      text-transform: uppercase;
      padding: .25rem .7rem;
      border-radius: 0px;
      margin-bottom: .8rem;
    }

    .wiki-hero h1 {
      font-family: var(--font-heading);
      font-size: 2.8rem;
      line-height: 1.1;
      letter-spacing: .03em;
      color: #fff;
      margin-bottom: .6rem;
    }

    .wiki-hero h1 span {
      color: var(--red-bright);
    }

    .wiki-hero p {
      color: var(--text-dim);
      font-size: .98rem;
      max-width: 680px;
      margin-bottom: 1.3rem;
    }

    .wiki-hero-meta {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      font-size: .82rem;
      color: var(--text-muted);
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      padding-top: 1.1rem;
      flex-wrap: wrap;
    }

    .wiki-hero-meta span {
      display: flex;
      align-items: center;
      gap: .45rem;
    }

    /* Quick Cards Grid */
    .quick-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
      margin-bottom: 2.5rem;
    }

    .quick-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 0px;
      padding: 1.25rem;
      text-decoration: none;
      color: inherit;
      transition: all .2s;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .quick-card:hover {
      border-color: var(--border-red);
      background: var(--bg-card-hover);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .quick-card-icon {
      width: 42px;
      height: 42px;
      border-radius: 0px;
      background: rgba(255, 26, 26, 0.12);
      border: 1px solid rgba(255, 0, 0, 0.5);
      color: var(--red-bright);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.15rem;
      margin-bottom: .8rem;
    }

    .quick-card h3 {
      font-size: 1.05rem;
      color: #fff;
      margin-bottom: .3rem;
      font-weight: 700;
    }

    .quick-card p {
      font-size: .84rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* Article Sections & Anchor Offsets */
    [id] {
      scroll-margin-top: calc(var(--header-h) + 1.5rem);
    }

    .wiki-section {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 0px;
      padding: 2.2rem;
      margin-bottom: 2.2rem;
      scroll-margin-top: calc(var(--header-h) + 1.5rem);
    }

    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      border-bottom: 1px solid rgba(255, 26, 26, 0.18);
      padding-bottom: 1.1rem;
      margin-bottom: 1.5rem;
    }

    .section-title-wrap {
      display: flex;
      align-items: center;
      gap: .8rem;
    }

    .section-icon {
      width: 44px;
      height: 44px;
      border-radius: 0px;
      background: rgba(255, 26, 26, 0.12);
      border: 1px solid var(--border-red);
      color: var(--red-bright);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      flex-shrink: 0;
    }

    .section-title {
      font-size: 1.45rem;
      font-weight: 800;
      color: #fff;
    }

    .section-badge {
      background: #222;
      border: 1px solid #333;
      color: #aaa;
      font-size: .72rem;
      font-weight: 700;
      padding: .2rem .55rem;
      border-radius: 0px;
    }

    /* Typography inside sections */
    .wiki-section h2 {
      font-size: 1.25rem;
      color: #fff;
      margin: 1.6rem 0 .6rem;
      font-weight: 700;
    }

    .wiki-section h3 {
      font-size: 1.05rem;
      color: #e5e5e5;
      margin: 1.3rem 0 .4rem;
      font-weight: 600;
    }

    .wiki-section p {
      color: #ccc;
      margin-bottom: 1rem;
      font-size: .93rem;
    }

    .wiki-section ul,
    .wiki-section ol {
      padding-left: 1.3rem;
      margin-bottom: 1.2rem;
      color: #bbb;
      font-size: .93rem;
    }

    .wiki-section li {
      margin-bottom: .4rem;
    }

    .wiki-section strong {
      color: #fff;
    }

    /* Callout Boxes */
    .callout {
      border-radius: 0px;
      padding: 1rem 1.25rem;
      margin: 1.2rem 0;
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      font-size: .9rem;
      line-height: 1.6;
    }

    .callout i {
      font-size: 1.2rem;
      margin-top: .15rem;
      flex-shrink: 0;
    }

    .callout.info {
      background: rgba(14, 165, 233, 0.08);
      border: 1px solid rgba(14, 165, 233, 0.25);
      color: #7dd3fc;
    }

    .callout.info strong {
      color: #38bdf8;
    }

    .callout.tip {
      background: rgba(34, 197, 94, 0.08);
      border: 1px solid rgba(34, 197, 94, 0.25);
      color: #86efac;
    }

    .callout.tip strong {
      color: #22c55e;
    }

    .callout.warning {
      background: rgba(234, 179, 8, 0.08);
      border: 1px solid rgba(234, 179, 8, 0.25);
      color: #fde047;
    }

    .callout.warning strong {
      color: #eab308;
    }

    .callout.danger {
      background: rgba(255, 26, 26, 0.1);
      border: 1px solid rgba(255, 26, 26, 0.35);
      color: #fca5a5;
    }

    .callout.danger strong {
      color: #ff4747;
    }

    /* Command Table */
    .cmd-table-wrap {
      overflow-x: auto;
      margin: 1.2rem 0;
      border: 1px solid var(--border);
      border-radius: 0px;
      background: var(--bg-surface);
    }

    .cmd-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: .88rem;
    }

    .cmd-table th {
      background: #1f1f1f;
      padding: .75rem 1rem;
      color: #eee;
      font-weight: 700;
      border-bottom: 1px solid rgba(255, 26, 26, 0.18);
    }

    .cmd-table td {
      padding: .75rem 1rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      color: #ccc;
    }

    .cmd-table tr:last-child td {
      border-bottom: none;
    }

    .cmd-table tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    /* Code & Copy Box */
    .code-box {
      background: #0d0d0d;
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 0px;
      padding: .6rem .9rem;
      display: inline-flex;
      align-items: center;
      gap: .75rem;
      margin: .25rem 0;
    }

    .code-box code {
      font-family: var(--font-code);
      color: #ff8080;
      font-size: .88rem;
    }

    .btn-copy {
      background: #222;
      border: 1px solid #333;
      color: #aaa;
      padding: .2rem .5rem;
      border-radius: 0px;
      cursor: pointer;
      font-size: .75rem;
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      gap: .35rem;
      transition: all .2s;
    }

    .btn-copy:hover {
      background: var(--red);
      color: #fff;
      border-color: var(--red);
    }

    /* Rank comparison grid */
    .rank-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: .8rem;
      margin: 1.3rem 0;
    }

    .rank-card {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 0px;
      padding: 1rem;
      text-align: center;
      transition: all .2s;
    }

    .rank-card:hover {
      border-color: var(--red);
      transform: translateY(-2px);
    }

    .rank-name {
      font-family: var(--font-heading);
      font-size: 1.4rem;
      letter-spacing: .04em;
      margin-bottom: .2rem;
    }

    .rank-badge-pill {
      display: inline-block;
      font-size: .68rem;
      font-weight: 800;
      padding: .15rem .45rem;
      border-radius: 0px;
      margin-bottom: .5rem;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .rank-price {
      font-size: .95rem;
      color: var(--red-bright);
      font-weight: 800;
      margin-bottom: .6rem;
    }

    .rank-prefix-tag {
      background: #111;
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 0px;
      padding: .25rem .5rem;
      font-family: var(--font-code);
      font-size: .75rem;
      color: #ddd;
      margin-bottom: .75rem;
      display: inline-block;
    }

    .rank-features {
      font-size: .78rem;
      color: #aaa;
      line-height: 1.6;
      text-align: left;
      padding-left: 1.1rem;
      margin-bottom: .85rem;
    }

    .rank-store-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .4rem;
      width: 100%;
      padding: .4rem .6rem;
      background: rgba(255, 26, 26, 0.15);
      border: 1px solid var(--border-red);
      color: #fff;
      border-radius: 0px;
      font-size: .76rem;
      font-weight: 700;
      text-decoration: none;
      transition: all .2s;
    }

    .rank-store-btn:hover {
      background: var(--red);
      color: #fff;
      box-shadow: 0 0 10px var(--red-glow);
    }

    /* Vote & Crate Cards */
    .vote-reward-banner {
      display: flex;
      flex-wrap: wrap;
      gap: 1.2rem;
      background: rgba(255, 26, 26, 0.08);
      border: 1px solid var(--border-red);
      border-radius: 0px;
      padding: 1.25rem 1.4rem;
      margin: 1.2rem 0;
      align-items: center;
      justify-content: space-between;
    }

    .crate-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
      margin: 1.2rem 0;
    }

    .crate-card {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 0px;
      padding: 1.2rem;
      transition: all .2s;
    }

    .crate-card:hover {
      border-color: rgba(255, 255, 255, 0.18);
      transform: translateY(-2px);
    }

    .crate-badge {
      font-size: .68rem;
      font-weight: 800;
      padding: .15rem .5rem;
      border-radius: 0px;
      text-transform: uppercase;
      letter-spacing: .04em;
      display: inline-block;
      margin-bottom: .5rem;
    }

    /* ── RIGHT TOC (TABLE OF CONTENTS) ── */
    .wiki-toc {
      width: var(--toc-w);
      flex-shrink: 0;
      position: sticky;
      top: calc(var(--header-h) + 1.5rem);
      height: calc(100vh - var(--header-h) - 3rem);
      overflow-y: auto;
    }

    .toc-title {
      font-size: .75rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text-muted);
      margin-bottom: .8rem;
      display: flex;
      align-items: center;
      gap: .5rem;
    }

    .toc-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: .35rem;
      border-left: 1px solid var(--border);
      padding-left: .8rem;
    }

    .toc-link {
      color: var(--text-muted);
      text-decoration: none;
      font-size: .82rem;
      line-height: 1.4;
      transition: color .2s;
      display: block;
    }

    .toc-link:hover,
    .toc-link.active {
      color: var(--red-bright);
      font-weight: 600;
    }

    /* ── FOOTER ── */
    .wiki-footer {
      background: #0e0e0e;
      border-top: 1px solid var(--border);
      padding: 2.5rem 1.5rem;
      margin-top: auto;
      position: relative;
      z-index: 1;
    }

    .footer-inner {
      max-width: 1600px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .footer-left {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .footer-logo {
      height: 30px;
      width: auto;
    }

    .footer-credits {
      font-size: .84rem;
      color: #777;
    }

    .footer-links {
      display: flex;
      gap: 1.5rem;
    }

    .footer-links a {
      color: #aaa;
      font-size: .84rem;
      text-decoration: none;
      transition: color .2s;
    }

    .footer-links a:hover {
      color: var(--red-bright);
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 1200px) {
      .wiki-toc {
        display: none;
      }
    }

    @media (max-width: 900px) {
      .wiki-sidebar {
        position: fixed;
        top: var(--header-h);
        left: -100%;
        width: 290px;
        height: calc(100vh - var(--header-h));
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(20px);
        z-index: 99;
        padding: 1.5rem;
        transition: left .3s ease;
        border-right: 1px solid var(--border);
      }

      .wiki-sidebar.open {
        left: 0;
      }

      .btn-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .header-search {
        max-width: 240px;
      }

      .header-nav .nav-link-hide {
        display: none;
      }
    }

    @media (max-width: 600px) {
      .wiki-container {
        padding: 1rem;
      }

      .wiki-hero {
        padding: 1.6rem 1.4rem;
      }

      .wiki-hero h1 {
        font-size: 2.1rem;
      }

      .wiki-section {
        padding: 1.4rem;
      }

      .header-search {
        display: none;
      }
    }

    /* ── SCROLL TO TOP BUTTON ── */
    .btn-scroll-top {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 46px;
      height: 46px;
      border-radius: 0px;
      background: rgba(22, 22, 22, 0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.14);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.15rem;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(16px);
      transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 99;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    .btn-scroll-top.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .btn-scroll-top:hover {
      background: var(--red);
      border-color: var(--red);
      color: #fff;
      transform: translateY(-3px);
      box-shadow: 0 10px 24px rgba(255, 26, 26, 0.45);
    }

    .btn-scroll-top:active {
      transform: translateY(0);
    }

    @media (max-width: 600px) {
      .btn-scroll-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
        font-size: 1rem;
      }
    }