:root {
      --bg: #12111a;
      --surface: #1a1927;
      --surface-2:#211f31; 
      --surface-3:#28263c;

      --border: rgba(255,255,255,.07);
      --border-gold: rgba(201,162,39,.3);

      --text: #e2ddd6;
      --text-muted: #8b8599;
      --text-dim: #5c5772;

      --gold: #c9a227;
      --gold-bright: #f0c93a;
      --violet: #6d4fc2;
      --violet-soft: #9575d9;
      --teal: #4ab8b8;

      --font-body: 'Nunito',sans-serif;
      --font-title: 'Cinzel',serif;
      --font-mono: 'JetBrains Mono',monospace;
      --radius:6px;

      /* ── Minecraft rarity colours ── */
      --rarity-common: #aaaaaa;
      --rarity-uncommon: #55ff55;
      --rarity-rare: #5555ff;
      --rarity-epic: #aa00aa;
      --rarity-legendary: #ffaa00;
      --rarity-mythic: #ff55ff;
      --rarity-divine: #55ffff;
      --rarity-special: #ff5555;
}

*,

*::before,

*::after {
      box-sizing:border-box;
      margin:0;
      padding:0
}

body {
      background:var(--bg);
      color:var(--text);
      font-family:var(--font-body);
      font-size:15px;
      line-height:1.6
}

a {
      color:var(--teal);
      text-decoration:none
}

a:hover {
      color:#6dd4d4;
      text-decoration:underline
}


/*****************************
*          NAVBAR            *
******************************/

#mainNav {
      background: var(--surface)!important;
      border-bottom: 1px solid var(--border);
      padding: .6rem 0
}

#mainNav .container {
      padding-left: 1.5rem;
      padding-right: 1.5rem
}

.navbar-brand {
      font-family: var(--font-title);
      font-weight: 700;
      font-size: 1.1rem;
      color: var(--text)!important;
      letter-spacing: .04em
}

.nav-link {
      font-weight:600;
      font-size:.85rem;
      color:var(--text-muted)!important;
      padding:.35rem .8rem!important;
      border-radius:4px;
      transition:color .15s,background .15s
}

.nav-link:hover,

.nav-link.active {
      color:var(--text)!important;
      background:var(--surface-3)
}

.nav-link.wiki-active {
      color:var(--gold)!important;
      background:rgba(201,162,39,.1)
}


/*****************************
*          BANNER            *
******************************/

.wiki-banner {
      background:var(--surface);
      border-bottom:1px solid var(--border);
      padding:3.5rem 0 2.5rem;
      margin-top:56px;
      position:relative;
      overflow:hidden
}

.wiki-banner::before {
      content:'';
      position:absolute;
      inset:0;
      background:radial-gradient(ellipse 80% 60% at 50% -10%,rgba(109,79,194,.25) 0%,transparent 70%),radial-gradient(ellipse 40% 30% at 80% 50%,rgba(74,184,184,.06) 0%,transparent 60%);
      pointer-events:none
}

.wiki-banner .inner {
      position:relative;
      text-align:center
}

.wiki-banner .eyebrow {
      display:inline-flex;
      align-items:center;
      gap:.5rem;
      font-size:.7rem;
      font-weight:700;
      letter-spacing:.18em;
      text-transform:uppercase;
      color:var(--gold);
      background:rgba(201,162,39,.1);
      border:1px solid rgba(201,162,39,.2);
      border-radius:20px;
      padding:.3rem .9rem;
      margin-bottom:1.25rem
}

.wiki-banner h1 {
      font-family:var(--font-title);
      font-weight:900;
      font-size:clamp(1.9rem,5vw,3.2rem);
      color:#fff;letter-spacing:.02em;
      margin-bottom:.6rem;
      text-shadow:0 0 60px rgba(109,79,194,.5)
}

.wiki-banner h1 em {
      font-style:normal;
      color:var(--gold)
}

.wiki-banner .tagline {
      color:var(--text-muted);
      font-size:.95rem;
      max-width:440px;
      margin:0 auto 2rem
}


/*****************************
*        PAGE HEADER         *
******************************/

.page-header {
      background:var(--surface);
      border-bottom:1px solid var(--border);
      padding:2rem 2.5rem 1.5rem;
      position:relative;
      overflow:hidden
}

@media (max-width:860px) {
      .page-header{
            padding:1.5rem 1rem 1.25rem
      }
}

.page-header::before {
      content:'';
      position:absolute;
      inset:0;background:radial-gradient(ellipse 90% 80% at 0% 50%,rgba(109,79,194,.12) 0%,transparent 60%);
      pointer-events:none
}

.page-header .inner {
      position:relative
}

.page-header .breadcrumb-line {
      display:flex;
      align-items:center;
      gap:.4rem;
      font-size:.75rem;
      color:var(--text-dim);
      margin-bottom:.8rem;
      flex-wrap:wrap
}

.page-header .breadcrumb-line a {
      color:var(--text-muted)
}

.page-header .breadcrumb-line a:hover {
      color:var(--text)
}

.page-header .breadcrumb-line .sep {
      opacity:.35
}

.page-header h1 {
      font-family:var(--font-title);
      font-weight:700;
      font-size:clamp(1.5rem,3.5vw,2.2rem);
      color:#fff;
      letter-spacing:.02em
}

.page-header .desc {
      color:var(--text-muted);
      font-size:.9rem;
      margin-top:.35rem
}

.page-header .page-meta {
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      gap:.75rem;
      margin-top:.9rem
}


/*****************************
*          SEARCH            *
******************************/

.wiki-search {
      max-width:580px;
      margin:0 auto;
      position:relative
}

.wiki-search input {
      width:100%;
      background:var(--surface-2);
      border:1px solid var(--border);
      border-radius:var(--radius);
      color:var(--text);
      font-family:var(--font-body);
      font-size:.95rem;
      padding:.8rem 1rem .8rem 3rem;
      outline:none;
      transition:border-color .2s,box-shadow .2s
}

.wiki-search input:focus {
      border-color:var(--violet);
      box-shadow:0 0 0 3px rgba(109,79,194,.2)
}

.wiki-search input::placeholder {
      color:var(--text-dim)
}

.wiki-search .si {
      position:absolute;
      left:1.1rem;
      top:50%;
      transform:translateY(-50%);
      color:var(--text-dim);
      pointer-events:none;
      font-size:.9rem
}

.wiki-search .sh {
      position:absolute;
      right:1rem;
      top:50%;
      transform:translateY(-50%);
      font-size:.7rem;
      color:var(--text-dim);
      background:var(--surface-3);
      border:1px solid var(--border);
      border-radius:3px;
      padding:.1rem .4rem;
      pointer-events:none
}


/*****************************
*         STATS BAR          *
******************************/

.wiki-stats-bar {
      background:var(--surface-2);
      border-bottom:1px solid var(--border)
}

.stats-inner {
      display:flex;
      align-items:center;
      padding:.6rem 0;
      overflow-x:auto
}

.stat-item {
      display:flex;
      align-items:center;
      gap:.5rem;
      padding:0 1.25rem;
      border-right:1px solid var(--border);
      font-size:.8rem;
      color:var(--text-muted);
      white-space:nowrap
}

.stat-item:last-child {
      border-right:none;
      margin-left:auto
}

.stat-item .num {
      font-weight:700;
      color:var(--text)
}

.stat-item i {
      color:var(--gold);
      font-size:.75rem
}

.status-dot {
      width:8px;
      height:8px;
      border-radius:50%;
      background:#2ecc71;
      box-shadow:0 0 6px #2ecc71;
      flex-shrink:0
}


/*****************************
*           BODY             *
******************************/

.wiki-body {
      padding:2.5rem 0 4rem
}

.wiki-body > .container {
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 1300px
}

@media (min-width:1600px) {
      .wiki-body>.container{
            margin-left:3rem
      }
}

.wiki-two-col {
      display:grid;
      grid-template-columns:1fr auto;
      gap:1.5rem
}

@media (max-width:900px) {
      .wiki-two-col{
            grid-template-columns:1fr
      }
}

.wiki-layout {
      display:grid;
      grid-template-columns:240px 1fr;
      gap:0;padding:0;
      min-height:calc(100vh - 200px)
}

@media (max-width:860px) {
      .wiki-layout{
            grid-template-columns:1fr
      }
}


/*****************************
*      SECTION HEADING       *
******************************/

.sec-head {
      font-family:var(--font-title);
      font-size:.65rem;
      font-weight:700;
      letter-spacing:.2em;
      text-transform:uppercase;
      color:var(--gold);
      margin-bottom:1rem;
      display:flex;
      align-items:center;
      gap:.75rem
}

.sec-head::after {
      content:'';
      flex:1;
      height:1px;
      background:linear-gradient(90deg,var(--border-gold),transparent)
}


/*****************************
*        CATEGORIES          *
******************************/

.cat-grid {
      display:grid;
      grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
      gap:1px;
      background:var(--border);
      border:1px solid var(--border);
      border-radius:var(--radius);
      overflow:hidden
}

.cat-card {
      background:var(--surface);
      padding:1.4rem 1.25rem;
      text-decoration:none;
      color:var(--text);
      display:flex;
      flex-direction:column;
      gap:.6rem;
      transition:background .15s
}

.cat-card:hover {
      background:var(--surface-2);
      color:var(--text);
      text-decoration:none
}

.cat-icon {
      width:40px;
      height:40px;
      border-radius:8px;
      display:flex;
      align-items:center;
      justify-content:center;
      font-size:1.15rem;
      flex-shrink:0
}

.cat-name {
      font-family:var(--font-title);
      font-size:.85rem;
      font-weight:600;
      letter-spacing:.03em;
      color:#fff
}

.cat-desc {
      font-size:.78rem;
      color:var(--text-muted);
      line-height:1.5
}

.cat-count {
      font-size:.7rem;
      color:var(--text-dim);
      margin-top:auto;
      padding-top:.5rem;
      border-top:1px solid var(--border)
}

.cat-count span {
      color:var(--teal);
      font-weight:600
}

.cat-tag {
      display:inline-flex;
      align-items:center;
      gap:.35rem;
      background:var(--surface-2);
      border:1px solid var(--border);
      border-radius:20px;
      padding:.2rem .75rem;
      font-size:.7rem;
      color:var(--text-dim);
      font-weight:600;
      transition:border-color .15s,color .15s,background .15s;
      text-decoration:none!important
}

.cat-tag:hover {
      border-color:rgba(201,162,39,.4);
      color:var(--gold);
      background:rgba(201,162,39,.06);
      text-decoration:none!important
}

.cat-tag i {
      font-size:.6rem
}

.ic-start {
      background:rgba(74,184,184,.15);
      color:var(--teal)
}

.ic-rules {
      background:rgba(201,162,39,.12);
      color:var(--gold)
}

.ic-claims {
      background:rgba(109,79,194,.15);
      color:var(--violet-soft)
}

.ic-craft {
      background:rgba(192,57,43,.12);
      color:#e74c3c
}

.ic-world {
      background:rgba(39,174,96,.12);
      color:#2ecc71
}

.ic-staff {
      background:rgba(241,196,15,.12);
      color:#f1c40f
}
.ic-cmd {
      background:rgba(52,152,219,.12);
      color:#3498db
}

.no-results {
      display:none;
      text-align:center;
      padding:2rem;
      color:var(--text-muted);
      font-size:.9rem;
      grid-column:1/-1
}

.no-results i {
      font-size:1.5rem;
      margin-bottom:.5rem;
      display:block;
      color:var(--text-dim)
}


/*****************************
*        SIDE PANEL          *
******************************/

.side-panel-parent {
      display:flex;
      flex-direction:column;
      align-items: flex-end;
      gap:1rem
}

.side-panel {
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      gap:1rem
}

.side-box {
      background:var(--surface);
      border:1px solid var(--border);
      border-radius:var(--radius);
      overflow:hidden
}

.side-box-head {
      background:var(--surface-2);
      border-bottom:1px solid var(--border);
      padding:.6rem 1rem;
      font-family:var(--font-title);
      font-size:.7rem;
      font-weight:700;
      letter-spacing:.15em;
      text-transform:uppercase;
      color:var(--gold);
      display:flex;
      align-items:center;
      gap:.5rem
}

.side-box-body {
      padding:1rem
}

.patch-list {
      list-style:none;
      display:flex;
      flex-direction:column;
      gap:.1rem
}

.patch-list li a {
      display:flex;
      align-items:flex-start;
      gap:.6rem;
      padding:.45rem .5rem;
      border-radius:4px;
      color:var(--text-muted);
      font-size:.8rem;
      transition:background .12s,color .12s
}

.patch-list li a:hover {
      background:var(--surface-2);
      color:var(--text);
      text-decoration:none
}

.pdot {
      width:6px;
      height:6px;
      border-radius:50%;
      background:var(--violet-soft);
      flex-shrink:0;
      margin-top:.45rem
}

.pdate {
      font-size:.68rem;
      color:var(--text-dim);
      font-family:var(--font-mono);
      margin-top:.15rem;
      display:block
}

.quick-links {
      display:flex;
      flex-direction:column;
      gap:.25rem
}

.quick-link {
      display:flex;
      align-items:center;
      gap:.7rem;
      padding:.5rem .6rem;
      border-radius:4px;
      color:var(--text-muted);
      font-size:.83rem;
      transition:background .12s,color .12s
}

.quick-link:hover {
      background:var(--surface-2);
      color:var(--text);
      text-decoration:none
}

.quick-link i {
      width:16px;
      text-align:center;
      color:var(--teal);
      font-size:.8rem
}

.wiki-ip-button {
      background: none;
      transition: background 0.3s ease;
      border: none;
}

.wiki-ip-button:hover {
      background:var(--surface-2);
}


/*****************************
*        PAGE SIDEBAR        *
******************************/

.wiki-sidebar {
      background:var(--surface);
      border-right:1px solid var(--border);
      padding:1rem 0 1.5rem;
      position:sticky;
      top:56px;
      height:calc(100vh - 56px);
      overflow-y:auto;
      align-self:start
}

.wiki-sidebar::-webkit-scrollbar {
      width:3px
}

.wiki-sidebar::-webkit-scrollbar-thumb {
      background:var(--surface-3);
      border-radius:2px
}

/* MOBILE SIDEBAR DRAWER */
@media (max-width:860px) {
      .wiki-sidebar{
      position:fixed;
      top:56px;
      left:0;
      width:280px;
      height:calc(100vh - 56px);
      z-index:1040;
      transform:translateX(-100%);
      transition:transform .28s cubic-bezier(.4,0,.2,1);
      box-shadow:4px 0 24px rgba(0,0,0,.5);
      }
      .wiki-sidebar.mob-open{
            transform:translateX(0)
      }
}

/* Backdrop overlay */
.sidebar-overlay {
      display:none;
      position:fixed;
      inset:0;top:56px;
      background:rgba(0,0,0,.55);
      z-index:1039;
      backdrop-filter:blur(2px);
      -webkit-backdrop-filter:blur(2px);
}

.sidebar-overlay.vis {
      display:block
}

@media (min-width:861px) {
      .sidebar-overlay{
            display:none!important
      }
}

/* Mobile sidebar toggle button */
.mob-sb-btn {
      display:none;
      align-items:center;
      justify-content:center;
      background:none;
      border:1px solid var(--border);
      color:var(--text-muted);
      border-radius:4px;
      width:34px;
      height:34px;
      font-size:.85rem;
      cursor:pointer;
      transition:background .15s,color .15s;
      flex-shrink:0;
      margin-right:.5rem;
}

.mob-sb-btn:hover {
      background:var(--surface-3);
      color:var(--text)
}

@media (max-width:860px) {
      .mob-sb-btn{
            display:flex
      }
}

/* Sidebar search */
.sb-search {
      padding:.75rem 1rem;
      border-bottom:1px solid var(--border);
      margin-bottom:.25rem
}

.sb-search-wrap {
      position:relative
}

.sb-search-wrap input {
      width:100%;
      background:var(--surface-2);
      border:1px solid var(--border);
      border-radius:var(--radius);
      color:var(--text);
      font-family:var(--font-body);
      font-size:.8rem;
      padding:.45rem .75rem .45rem 2rem;
      outline:none;
      transition:border-color .2s,box-shadow .2s
}

.sb-search-wrap input:focus {
      border-color:var(--violet);
      box-shadow:0 0 0 2px rgba(109,79,194,.2)
}

.sb-search-wrap input::placeholder {
      color:var(--text-dim)
}

.sb-search-wrap .si {
      position:absolute;
      left:.6rem;
      top:50%;
      transform:translateY(-50%);
      color:var(--text-dim);
      font-size:.7rem;
      pointer-events:none
}

.sb-section {
      margin-bottom:.25rem
}

.sb-section-head {
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:.5rem 1.25rem;
      cursor:pointer;
      user-select:none;
      font-family:var(--font-title);
      font-size:.62rem;
      font-weight:700;
      letter-spacing:.18em;
      text-transform:uppercase;
      color:var(--gold);
      transition:background .12s
}

.sb-section-head:hover {
      background:var(--surface-2)
}

.sb-section-head .chevron {
      font-size:.6rem;
      transition:transform .2s;
      color:var(--text-dim)
}

.sb-section-head.collapsed .chevron {
      transform:rotate(-90deg)
}

.sb-links {
      list-style:none;
      padding:0 0 .5rem;
      overflow:hidden;
      transition:max-height .25s ease
}

.sb-links.collapsed {
      max-height:0!important;
      overflow:hidden
}

.sb-link {
      display:flex;
      align-items:center;
      gap:.6rem;
      padding:.38rem 1.25rem .38rem 1.5rem;
      color:var(--text-muted);
      font-size:.82rem;
      transition:background .12s,color .12s;
      position:relative
}

.sb-link:hover {
      background:var(--surface-2);
      color:var(--text);
      text-decoration:none
}

.sb-link.active {
      color:var(--teal);
      background:rgba(74,184,184,.08)
}

.sb-link.active::before {
      content:'';
      position:absolute;
      left:0;top:0;bottom:0;width:2px;
      background:var(--teal)
}

.sb-link i {
      width:14px;
      text-align:center;
      font-size:.75rem;
      flex-shrink:0
}

.sb-divider {
      height:1px;
      background:var(--border);
      margin:.5rem 0
}


/*****************************
*          ARTICLE           *
******************************/

.wiki-article-wrap {
      padding:2rem 2.5rem 4rem;
      min-width:0
}

@media (max-width:860px) {
      .wiki-article-wrap{
            padding:1.5rem 1rem 3rem
      }
}

/* WIKI LINKS (internal cross-references) */
.wiki-content a {
      color:var(--teal);
      border-bottom:1px solid rgba(74,184,184,.25);
      padding-bottom:1px;
      transition:color .15s,border-color .15s
}

.wiki-content a:hover {
      color:#6dd4d4;
      border-bottom-color:rgba(74,184,184,.7);
      text-decoration:none
}

/* Wiki-internal links get a subtle arrow indicator */
.wiki-content a:not([href^="/wiki/"]):not(.no-arrow)::after {
  content: ' ↗';
  font-size: .65em;
  opacity: .55;
  vertical-align: super;
}

/* Article content styles */
.wiki-content h2 {
      font-family:var(--font-title);
      font-weight:700;
      font-size:1.2rem;
      color:#fff;
      margin:2.25rem 0 .85rem;
      padding-bottom:.5rem;
      border-bottom:1px solid var(--border);
      display:flex;
      align-items:center;
      gap:.6rem;
      scroll-margin-top:80px
}

.wiki-content h2:first-child {
      margin-top:0
}

.wiki-content h3 {
      font-family:var(--font-title);
      font-size:.95rem;
      color:var(--gold);
      margin:1.5rem 0 .6rem;
      scroll-margin-top:80px
}

.wiki-content p {
      color:var(--text);
      line-height:1.75;
      margin-bottom:1rem
}

.wiki-content ul,.wiki-content ol {
      color:var(--text);
      padding-left:1.5rem;
      line-height:1.75;
      margin-bottom:1rem
}

.wiki-content li {
      margin-bottom:.3rem
}

.wiki-content hr {
      border:none;
      border-top:1px solid var(--border);
      margin:2rem 0
}

/* Inline code & pre */
.wiki-content code {
      background:rgba(109,79,194,.15);
      border:1px solid rgba(109,79,194,.25);
      border-radius:3px;
      padding:.12em .42em;
      font-size:.85em;
      color:#b09ef0;
      font-family:var(--font-mono)
}

.wiki-content pre {
      background:var(--surface-2);
      border:1px solid var(--border);border-radius:var(--radius);
      padding:1.2rem;
      overflow-x:auto;
      margin-bottom:1.25rem
}

.wiki-content pre code {
      background:none;
      border:none;
      padding:0;
      font-size:.83rem;
      line-height:1.6;
      color:var(--text-muted)
}

/* Tables */
.wiki-content table {
      width:100%;
      border-collapse:collapse;
      margin-bottom:1.25rem;
      font-size:.875rem
}

.wiki-content thead th {
      background:var(--surface-2);
      border:1px solid var(--border);
      padding:.55rem .9rem;
      font-family:var(--font-title);
      font-size:.65rem;
      letter-spacing:.12em;
      text-transform:uppercase;
      color:var(--gold);
      text-align:left
}

.wiki-content tbody td {
      border:1px solid rgba(255,255,255,.05);
      padding:.5rem .9rem;
      color:var(--text);
      vertical-align:top
}

.wiki-content tbody tr:nth-child(even) td {
      background:rgba(255,255,255,.02)
}

.wiki-content tbody td:first-child code {
      color:var(--teal)
}

/* ── Callout boxes ── */
.wiki-notice,.wiki-callout {
      display:flex;
      gap:.9rem;
      align-items:flex-start;
      border-radius:var(--radius);
      padding:.9rem 1.1rem;
      margin:1.25rem 0;
      font-size:.875rem;
      line-height:1.6
}

.wiki-notice .ni,.wiki-callout .callout-icon {
      font-size:1rem;
      flex-shrink:0;
      margin-top:.1rem
}

.wiki-notice.info,.wiki-callout.info {
      background:rgba(52,152,219,.1);
      border-left:3px solid #3498db
}.wiki-notice.info .ni,.wiki-callout.info .callout-icon {
      color:#5dade2
}

.wiki-notice.tip,.wiki-callout.tip {
      background:rgba(39,174,96,.1);
      border-left:3px solid #27ae60
}.wiki-notice.tip .ni,.wiki-callout.tip .callout-icon {
      color:#2ecc71
}

.wiki-notice.warning,.wiki-callout.warning {
      background:rgba(230,126,34,.1);
      border-left:3px solid #e67e22
}.wiki-notice.warning .ni,.wiki-callout.warning .callout-icon {
      color:#f39c12
}

.wiki-notice.danger,.wiki-callout.danger {
      background:rgba(192,57,43,.1);
      border-left:3px solid #c0392b
}.wiki-notice.danger .ni,.wiki-callout.danger .callout-icon {
      color:#e74c3c
}

/* ── INFOBOX (Hypixel item card style) ── */
.infobox {
      float:right;
      clear:right;
      display: flex;
      flex-direction:column;
      justify-content:center;
      margin:0 0 1.5rem 1.5rem;
      background:var(--surface-2);
      border:1px solid var(--border);
      border-radius:var(--radius);
      overflow:hidden;
      font-size:.82rem
}

@media (max-width:640px) {
      .infobox{
            float:none;
            width:100%;
            margin:0 0 1.5rem
      }
}

.infobox-title {
      background:var(--surface-3);
      padding:.65rem .85rem;
      font-family:var(--font-title);
      font-size:1rem;
      font-weight:700;
      color:#fff;
      text-align:center;
      border-bottom:1px solid var(--border);
}

.infobox-img {
      background: var(--bg);
      display: flex;
      justify-content: center;
      align-items: center;
      padding:.45rem .85rem;
      border-bottom: 1px solid var(--border);
      gap: .5rem
}

.infobox-img img {
      max-width:300px;
      width: auto;
      flex: 0 0 auto
}

.infobox-img .mc-icon {
      font-size:3rem;
      line-height:1
}

.infobox-section {
      background:var(--surface-3);
      padding:.3rem .85rem;
      font-family:var(--font-title);
      font-size:.9rem;
      font-weight:700;
      text-align:center;
      text-transform:uppercase;
      color:var(--gold);
      border-bottom:1px solid var(--border)
}

.infobox-row {
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      padding:.45rem .85rem;
      border-bottom:1px solid rgba(255,255,255,.04);
      gap:.5rem
}

.infobox-row:last-child {
      border-bottom:none
}

.infobox-row .label {
      color:var(--text);
      font-size:.9rem;
      flex-shrink:0;
      padding-top:.05rem
}

.infobox-row .value {
      color:var(--text);
      text-align:right;
      font-weight:600;
      max-width:160px;
      word-break:break-word
}

.infobox-column {
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      align-items:center;
      padding:.45rem .85rem;
      border-bottom:1px solid rgba(255,255,255,.04);
      gap:.5rem
}

.infobox-column .label {
      color:var(--text);
      font-size:.9rem;
      flex-shrink:0;
      padding-top:.05rem
}

.infobox-column .value {
      color:var(--text);
      text-align:center;
      font-weight:600;
      max-width:160px;
      word-break:break-word
}

.info-link {
      display:flex;
      align-items:center;
      gap:.7rem;
      padding:.5rem .6rem;
      color:var(--text-muted);
      font-size:.83rem;
      transition:background .12s,color .12s
}

.info-link:hover {
      background:var(--surface-2);
      color:var(--text);
      text-decoration:none
}


/* Rarity values */
.r-common {
      color:var(--rarity-common)!important
}

.r-uncommon {
      color:var(--rarity-uncommon)!important
}

.r-rare {
      color:var(--rarity-rare)!important
}

.r-epic {
      color:var(--rarity-epic)!important
}

.r-legendary {
      color:var(--rarity-legendary)!important
}

.r-mythic {
      color:var(--rarity-mythic)!important
}

.r-divine {
      color:var(--rarity-divine)!important
}

.r-special {
      color:var(--rarity-special)!important
}

/* ── RANK badge ── */
.rank-badge {
      display:inline-block;
      padding:.2rem .65rem;
      border-radius:3px;
      font-family:var(--font-mono);
      font-size:.75rem;
      font-weight:700;
      letter-spacing:.05em
}

.rank-wanderer {
      background:rgba(255,255,255,.08);
      color:#aaa
}

.rank-settler {
      background:rgba(39,174,96,.15);
      color:#2ecc71
}

.rank-villager {
      background:rgba(52,152,219,.15);
      color:#3498db
}

.rank-elder {
      background:rgba(241,196,15,.15);
      color:#f1c40f
}

.rank-patron {
      background:rgba(201,162,39,.15);
      color:var(--gold)
}

.rank-arcane {
      background:rgba(109,79,194,.2);
      color:var(--violet-soft)
}

.rank-helper {
      background:rgba(39,174,96,.12);
      color:#2ecc71
}

.rank-mod {
      background:rgba(52,152,219,.15);
      color:#3498db
}

.rank-admin {
      background:rgba(201,162,39,.15);
      color:var(--gold)
}

.rank-owner {
      background:rgba(192,57,43,.15);
      color:#e74c3c
}

/* ── SEE ALSO box ── */
.see-also {
      background:var(--surface-2);
      border:1px solid var(--border);
      border-radius:var(--radius);
      padding:1rem 1.25rem;
      margin:2rem 0 1rem
}

.see-also-head {
      font-family:var(--font-title);
      font-size:.65rem;
      font-weight:700;
      letter-spacing:.18em;
      text-transform:uppercase;
      color:var(--gold);
      margin-bottom:.7rem;
      display:flex;
      align-items:center;
      gap:.5rem
}

.see-also-links {
      display:flex;
      flex-wrap:wrap;
      gap:.5rem
}

.see-also-link {
      display:inline-flex;
      align-items:center;
      gap:.4rem;
      background:var(--surface);
      border:1px solid var(--border);
      border-radius:4px;
      padding:.3rem .75rem;
      font-size:.82rem;color:var(--teal);
      transition:border-color .15s,background .15s
}

.see-also-link:hover {
      border-color:rgba(74,184,184,.4);
      background:rgba(74,184,184,.06);
      color:#6dd4d4;
      text-decoration:none
}

.see-also-link i {
      font-size:.7rem
}

/* ── PAGE HISTORY MODULE ── */
.wiki-history {
      border:1px solid var(--border);
      border-radius:var(--radius);
      overflow:hidden;
      margin:2.5rem 0 1rem;
      font-size:.82rem
}

.wiki-history-head {
  display:flex;
  align-items:center;
  gap:.75rem;
  background:var(--surface-2);
  padding:.55rem .9rem;
  cursor:pointer;user-select:none;
  border-bottom:1px solid transparent;
  transition:background .15s;
}

.wiki-history-head:hover {
      background:var(--surface-3)
}

.wiki-history-head.open {
      border-bottom-color:var(--border)
}

.wiki-history-head .wh-icon {
      color:var(--gold);
      font-size:.7rem;
      flex-shrink:0
}

.wiki-history-head .wh-label {
  font-family:var(--font-title);
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold);
}

.wiki-history-head .wh-chevron {
  margin-left:auto;
  font-size:.6rem;
  color:var(--text-dim);
  transition:transform .2s;
}

.wiki-history-head.open .wh-chevron {
      transform:rotate(180deg)
}

.wiki-history-body {
      display:none
}

.wiki-history-body.open {
      display:block
}

.wh-table {
      width:100%;
      border-collapse:collapse
}

.wh-table thead th {
  background:var(--surface-3);
  border-bottom:1px solid var(--border);
  padding:.4rem .85rem;
  font-family:var(--font-title);
  font-size:.6rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-dim);
  text-align:left;
  white-space:nowrap;
}

.wh-table tbody tr {
      border-bottom:1px solid rgba(255,255,255,.035)
}

.wh-table tbody tr:last-child {
      border-bottom:none
}

.wh-table tbody tr:nth-child(even) td {
      background:rgba(255,255,255,.018)
}

.wh-table td {
      padding:.45rem .85rem;
      vertical-align:top;
      color:var(--text)
}

.wh-table td.wh-ver {
  white-space:nowrap;
  font-family:var(--font-mono);
  font-size:.78rem;
  color:var(--teal);
  min-width:80px;
}

.wh-table td.wh-date {
  white-space:nowrap;
  color:var(--text-muted);
  font-size:.78rem;
  min-width:110px;
}

.wh-table td.wh-changes {
      color:var(--text);
      line-height:1.55
}

/* On mobile, version+date stack above changes */
@media (max-width:540px) {
      .wh-table thead{
            display:none
      }
      .wh-table tbody tr{
            display:block;
            padding:.6rem .85rem;
            border-bottom:1px solid rgba(255,255,255,.06)
      }
      .wh-table td{
            display:block;
            padding:.1rem 0;
            border:none
      }
      .wh-table td.wh-ver::before{
            content:'Version: ';
            color:var(--text-dim)
      }
      .wh-table td.wh-date::before{
            content:'Date: ';
            color:var(--text-dim)
      }
}

/* FOOTER */
.wiki-footer {
      background:var(--surface);
      border-top:1px solid var(--border);
      padding:2.5rem 0
}

.wiki-footer-inner {
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:1.25rem;
      text-align:center
}
.wiki-footer-links {
      display:flex;
      flex-wrap:wrap;
      justify-content:center;
      gap:.5rem 1.5rem
}
.wiki-footer-links a {
      color:var(--text-muted);
      font-size:.82rem
}
.wiki-footer-links a:hover {
      color:var(--text);
      text-decoration:none
}

.copy {
      font-size:.78rem;
      color:var(--text-dim)
}

/* ── MOBILE MISC ── */
/* Tables scroll horizontally on small screens */
@media (max-width:860px) {
      .wiki-content table{
            display:block;
            overflow-x:auto;
            -webkit-overflow-scrolling:touch;
            max-width:100%
      }
}

/* Footer: stack on small screens */
@media (max-width:540px) {
      .wiki-footer-links{
            gap:.75rem
      }
}

/* Crafting recipe: ensure it fits narrow screens */
@media (max-width:480px) {
      .mc-recipe{
            width:100%;
            overflow-x:auto
      }
      .mc-recipe-row{
            gap:.5rem
      }
}

/* Infobox stacks below content on mobile (already float:none but ensure width) */
@media (max-width:540px) {
      .infobox{
            width:100%;
            margin-left:0
      }
}

/* Increase tap targets in sidebar */
@media (max-width:860px) {
      .sb-link{
            padding:.55rem 1.25rem .55rem 1.5rem;
            font-size:.88rem
      }
      .sb-section-head{
            padding:.65rem 1.25rem
      }
}


/*****************************
*          MINETIPS          *
******************************/

@font-face {
    font-family: 'Minecraftia';
    src: url('/css/minecraftia/Minecraftia.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.format-0 {
	color: #000;
	text-shadow: 0.125em 0.125em 0 #000;
}

.format-1 {
	color: #0000A8;
	text-shadow: 0.125em 0.125em 0 #00002A;
}

.format-2 {
	color: #00A800;
	text-shadow: 0.125em 0.125em 0 #002A00;
}

.format-3 {
	color: #00A8A8;
	text-shadow: 0.125em 0.125em 0 #002A2A;
}

.format-4 {
	color: #A80000;
	text-shadow: 0.125em 0.125em 0 #2A0000;
}

.format-5 {
	color: #A800A8;
	text-shadow: 0.125em 0.125em 0 #2A002A;
}

.format-6 {
	color: #FBA800;
	text-shadow: 0.125em 0.125em 0 #3E2A00;
}

.format-7 {
	color: #A8A8A8;
	text-shadow: 0.125em 0.125em 0 #2A2A2A;
}

.format-8 {
	color: #545454;
	text-shadow: 0.125em 0.125em 0 #151515;
}

.format-9 {
	color: #5454FB;
	text-shadow: 0.125em 0.125em 0 #15153E;
}

.format-a {
	color: #54FB54;
	text-shadow: 0.125em 0.125em 0 #153E15;
}

.format-b {
	color: #54FBFB;
	text-shadow: 0.125em 0.125em 0 #153E3E;
}

.format-c {
	color: #FB5454;
	text-shadow: 0.125em 0.125em 0 #3E1515;
}

.format-d {
	color: #FB54FB;
	text-shadow: 0.125em 0.125em 0 #3E153E;
}

.format-e {
	color: #FBFB54;
	text-shadow: 0.125em 0.125em 0 #3E3E15;
}

.format-l{
      font-weight:bold
}

.format-o{
      font-style:italic
}

.format-n{
      text-decoration:underline
}

.format-m{
      text-decoration:line-through
}

.format-f,

#minetip-tooltip {
	color: #FBFBFB;
	text-shadow: 0.125em 0.125em 0 #3E3E3E;
}

/* Styling for minecraft style tooltip */
#minetip-tooltip {
	position: fixed;
	top: 0;
	left: 0;
	background-color: #100010;
	background-color: rgba(16, 0, 16, 0.94);
	padding: 0.375em;
	font-family: 'Minecraftia', sans-serif;
	font-size: 16px;
	word-spacing: 4px;
	white-space: nowrap;
	line-height: 1.25em;
	margin: 0.125em 0.25em;
	pointer-events: none;
	z-index: 9999;
}

#minetip-tooltip::before {
	content: "";
	position: absolute;
	top: 0.125em;
	right: -0.125em;
	bottom: 0.125em;
	left: -0.125em;
	border: 0.15em solid #100010;
	border-style: none solid;
	border-color: rgba(16, 0, 16, 0.94);
}

#minetip-tooltip::after {
	content: "";
	position: absolute;
	top: 0.125em;
	right: 0;
	bottom: 0.125em;
	left: 0;
	border: 0.125em solid #2D0A63;
	border-image: -webkit-linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)) 1;
	border-image: linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)) 1;
}

#minetip-tooltip > .description,

#minetip-tooltip > .minetip-description {
	display: block;
	margin-top: 0.25em;
}

/*****************************
*          MINETIPS          *
******************************/
.mc-recipe {
  display: inline-flex;
  flex-direction: column;
  gap: .5rem;
  background: #C6C6C6;
  border: 2px solid;
  border-color: #FFF #555 #555 #FFF;
  padding: .85rem 1.1rem 1rem;
  margin: 1.25rem 0;
  user-select: none;
  border-radius: 2px;
}

.mc-recipe-label {
  font-family: var(--font-title);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: .2rem;
}

.mc-recipe-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* 3×3 crafting grid */
.mc-grid {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-template-rows: repeat(3, 40px);
  gap: 2px;
  background: #8B8B8B;
  border: 2px solid #373737;
  padding: 2px;
  flex-shrink: 0;
}

/* Inventory slot outer shell */
.invslot {
  width: 40px;
  height: 40px;
  background: #8B8B8B;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Item cell — hover-able, tooltip-triggering */
.invslot-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  position: relative;
  background: #3C3C3C;
  border-top: 2px solid #555;
  border-left: 2px solid #555;
  border-bottom: 2px solid #1A1A1A;
  border-right: 2px solid #1A1A1A;
  overflow: hidden;
}

.invslot-item:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.18);
  pointer-events: none;
  z-index: 1;
}

/* Item image — pixelated scaling */
.invslot-item img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

/* Result slot — slightly larger */
.mc-result-slot .invslot {
      width:50px;
      height:50px;
}

.mc-result-slot .invslot-item {
      width:46px;
      height:46px;
}

.mc-result-slot .invslot-item img {
      width:36px;
      height:36px;
}

/* Arrow */
.mc-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Item icon pixel-blocks (CSS-only, no images needed) ── */
.mc-icon {
  width: 28px;
  height: 28px;
  display: block;
  image-rendering: pixelated;
  flex-shrink: 0;
}

/* Leather — saddle-brown with bevel */
.mc-icon-leather {
  background: #8B4513;
  box-shadow:
    inset 2px 2px 0 #A0552A,
    inset -2px -2px 0 #6B340E,
    inset 4px 4px 0 0px #9B4A1A;
}

/* Chest — oak plank coloured */
.mc-icon-chest {
  background: #96742A;
  box-shadow:
    inset 2px 2px 0 #B08A38,
    inset -2px -2px 0 #7A5C1E,
    inset 8px 8px 0 -6px #6B4F18,
    inset -8px -8px 0 -6px #B08A38;
}

/* Iron Ingot — silver-gray */
.mc-icon-iron {
  background: #BEBEBE;
  box-shadow:
    inset 2px 2px 0 #D4D4D4,
    inset -2px -2px 0 #9A9A9A,
    inset 5px 0 0 0 #C8C8C8,
    inset 0 14px 0 0 #AAAAAA;
}

/* String — off-white */
.mc-icon-string {
  background: #DCDCDC;
  box-shadow:
    inset 0 0 0 2px #C0C0C0,
    inset 12px 0 0 10px #E8E8E8,
    inset 0 12px 0 10px #E8E8E8;
}

/* Diamond — cyan */
.mc-icon-diamond {
  background: #44E6E6;
  box-shadow:
    inset 2px 2px 0 #7AF0F0,
    inset -2px -2px 0 #26B8B8,
    inset 6px 6px 0 -4px #5AEAEA;
}

/* Stick — wood brown */
.mc-icon-stick {
  background: #8B6914;
  box-shadow:
    inset 2px 0 0 0 #A07820,
    inset -2px 0 0 0 #6B4F0E,
    inset 0 14px 0 0 #7A5C10;
}

/* Backpack (custom) — dark tan with strap hint */
.mc-icon-backpack {
  background: #7A5230;
  box-shadow:
    inset 2px 2px 0 #9B6A40,
    inset -2px -2px 0 #5C3A1C,
    inset 4px 4px 0 -2px #8B5C35,
    inset 12px 2px 0 -10px #5C3A1C;
}

/* Repair Kit (custom) — silver + gold clasp */
.mc-icon-repair-kit {
  background: #C8C8C8;
  box-shadow:
    inset 2px 2px 0 #E0E0E0,
    inset -2px -2px 0 #909090,
    inset 8px 8px 0 -6px #FFD700;
}

/* Gold Ingot */
.mc-icon-gold {
  background: #FFD700;
  box-shadow:
    inset 2px 2px 0 #FFE84D,
    inset -2px -2px 0 #C8A800,
    inset 5px 0 0 0 #FFD700;
}

/* Wood Planks */
.mc-icon-planks {
  background: #A0744E;
  box-shadow:
    inset 2px 2px 0 #BA8A60,
    inset -2px -2px 0 #7A5535,
    inset 0 10px 0 0 #8B6240;
}

/* Stone */
.mc-icon-stone {
  background: #808080;
  box-shadow:
    inset 2px 2px 0 #969696,
    inset -2px -2px 0 #606060;
}


/*****************************
*        ANNOUNCEMENT        *
******************************/

.wiki-ann {
      background:linear-gradient(90deg,rgba(109,79,194,.15),rgba(74,184,184,.08));
      border:1px solid rgba(109,79,194,.3);
      border-radius:var(--radius);
      padding:.75rem 1.1rem;
      display:flex;
      align-items:flex-start;
      gap:.8rem;
      margin-bottom:1.5rem;
      font-size:.85rem;
      color:var(--text-muted)
}

.wiki-ann i {
      color:var(--violet-soft);
      flex-shrink:0;
      margin-top:.1rem
}

.wiki-ann strong {
      color:var(--text)
}