/* ==========================================================================
   WIESENSTR. 14 SMP — OFFICIAL SERVER WIKI (MINECRAFT PIXEL UI + ADVANCED GUI)
   ========================================================================== */

:root {
  --bg-dark: #111115;
  --bg-panel: #212126;
  --bg-slot: #141418;
  --bg-tooltip: rgba(16, 0, 24, 0.96);
  --border-tooltip: #2b005e;
  --mc-gold: #ffaa00;
  --mc-yellow: #ffff55;
  --mc-green: #55ff55;
  --mc-aqua: #55ffff;
  --mc-red: #ff5555;
  --mc-purple: #aa00aa;
  --mc-light-purple: #ff55ff;
  --mc-gray: #aaaaaa;
  --mc-dark-gray: #555555;
  --btn-bg: #4a4a54;
  --btn-hover: #5c5c68;
  --btn-active: #274827;
  --font-headline: 'Minecraftia', 'Silkscreen', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(45, 65, 45, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #141418 0%, #0e0e12 100%);
  color: #e6e6ee;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Pixel Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  background: #121214;
}
::-webkit-scrollbar-thumb {
  background: #484852;
  border: 2px solid;
  border-color: #727280 #202026 #202026 #727280;
}
::-webkit-scrollbar-thumb:hover {
  background: #5c5c68;
}

/* --- Floating Authentic Minecraft Hover Tooltip --- */
.mc-floating-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  display: none;
  max-width: 350px;
  min-width: 230px;
  background: rgba(16, 0, 16, 0.96);
  border: 2px solid #2c0863;
  box-shadow:
    0 0 0 2px #100010,
    inset 0 0 0 1px rgba(80, 0, 255, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.9);
  padding: 10px 12px;
  color: #aaaaaa;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
}

.mc-floating-tooltip.visible {
  display: block;
}

.mc-tt-title {
  font-family: var(--font-headline);
  font-size: 12px;
  line-height: 1.4;
  color: var(--mc-yellow);
  text-shadow: 2px 2px 0 #3f3f00;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(90, 30, 150, 0.45);
}

.mc-tt-meta {
  font-family: var(--font-headline);
  font-size: 9.5px;
  color: #9e9eb0;
  margin-bottom: 6px;
}

.mc-tt-lore {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d6d6e4;
}

.mc-tt-lore li {
  margin-bottom: 4px;
}

.mc-tt-footer {
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px solid rgba(90, 30, 150, 0.35);
  font-family: var(--font-headline);
  font-size: 9.5px;
  color: var(--mc-green);
}

/* --- Top Hero Header (Logo + Subtitle + Search Bar) --- */
.wiki-header {
  background: #19191e;
  border-bottom: 4px solid #0c0c10;
  box-shadow: inset 0 -2px 0 #32323c, 0 6px 24px rgba(0, 0, 0, 0.8);
  padding: 20px 16px 18px;
  text-align: center;
  position: relative;
  z-index: 20;
}

.wiki-logo {
  max-width: 420px;
  width: min(86vw, 420px);
  height: auto;
  filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 12px rgba(0,0,0,0.85));
  margin-bottom: 8px;
}

.wiki-subtitle {
  font-family: var(--font-headline);
  color: var(--mc-gold);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-shadow: 2px 2px 0 #3f2a00, 1px 1px 0 #000;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.header-search-wrap {
  max-width: 580px;
  margin: 0 auto;
}

.mc-input {
  width: 100%;
  background: #101014;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border: 3px solid;
  border-color: #0a0a0c #383842 #383842 #0a0a0c;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.8);
  outline: none;
}

.mc-input:focus {
  border-color: #55aa55 #274827 #274827 #55aa55;
}

.mc-input::placeholder {
  color: #7c7c8a;
}

/* --- Body Layout: Left Sidebar + Right Content --- */
.wiki-body-layout {
  display: flex;
  flex: 1;
  align-items: stretch;
}

/* --- Left Minecraft Sidebar with Expandable Subnav --- */
.wiki-sidebar {
  width: 295px;
  flex-shrink: 0;
  background: #212126;
  border-right: 4px solid #101014;
  box-shadow: inset -2px 0 0 #3a3a42, 4px 0 20px rgba(0,0,0,0.7);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-links-group {
  padding-top: 14px;
  border-top: 2px solid #32323c;
}

.sidebar-group-title {
  font-family: var(--font-headline);
  font-size: 11px;
  color: var(--mc-gold);
  text-shadow: 2px 2px 0 #3f2a00, 1px 1px 0 #000;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 6px 4px;
}

.nav-item-wrap {
  display: flex;
  flex-direction: column;
}

.nav-chevron {
  margin-left: auto;
  font-size: 11px;
  color: #b0b0c0;
  transition: transform 0.15s;
}

.sidebar-subnav {
  display: none;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0 6px 12px;
  padding-left: 10px;
  border-left: 2px solid #3c5c3c;
}

.nav-item-wrap.open .sidebar-subnav {
  display: flex;
}

.subnav-btn {
  background: #17171c;
  border: 1px solid #30303a;
  color: #c8c8d6;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subnav-btn:hover {
  background: #25252e;
  color: var(--mc-yellow);
  border-color: #525264;
}

.subnav-btn.active {
  background: #1d351d;
  border-color: #55bb55;
  color: var(--mc-green);
  font-weight: 600;
}

/* --- Minecraft 3D Buttons --- */
.mc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-headline);
  font-size: 11px;
  line-height: 1.3;
  color: #e8e8f0;
  background: var(--btn-bg);
  border: 3px solid;
  border-color: #787884 #222228 #222228 #787884;
  box-shadow: 2px 2px 0 #0c0c10;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
  transition: background 0.12s, border-color 0.12s, transform 0.05s;
  user-select: none;
}

.mc-btn:hover {
  background: var(--btn-hover);
  border-color: #9696a4 #2a2a32 #2a2a32 #9696a4;
  color: #ffffa0;
}

.mc-btn:active {
  border-color: #222228 #787884 #787884 #222228;
  transform: translate(1px, 1px);
}

.mc-btn.active {
  background: var(--btn-active);
  border-color: #55bb55 #142814 #142814 #55bb55;
  color: var(--mc-green);
  box-shadow: inset 1px 1px 0 #77dd77, 2px 2px 0 #0c0c10;
}

.mc-btn.btn-green {
  background: #274827;
  border-color: #55bb55 #142814 #142814 #55bb55;
  color: var(--mc-green);
}

.mc-btn.btn-green:hover {
  background: #325c32;
  border-color: #77dd77 #1b361b #1b361b #77dd77;
  color: #ffffff;
}

.mc-btn.btn-gold {
  background: #4e3814;
  border-color: #cc8822 #241806 #241806 #cc8822;
  color: var(--mc-gold);
}

.mc-btn.btn-gold:hover {
  background: #64481a;
  color: var(--mc-yellow);
}

.wiki-sidebar .tab-btn,
.wiki-sidebar .sidebar-link-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 9px 12px;
  font-size: 11px;
}

/* Inline Item Icons */
.inline-item-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}

/* --- Main Content Container --- */
.wiki-container {
  flex: 1;
  min-width: 0;
  max-width: 1180px;
  margin: 24px auto 60px;
  padding: 0 28px;
}

.wiki-section {
  display: none;
}

.wiki-section.active {
  display: block;
}

/* --- Minecraft GUI Panels & Cards --- */
.mc-panel {
  background: var(--bg-panel);
  border: 3px solid;
  border-color: #52525e #141418 #141418 #52525e;
  box-shadow: 4px 4px 0 #0a0a0e;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.mc-panel.pulse-highlight {
  animation: panelPulse 1.4s ease;
}

@keyframes panelPulse {
  0% { box-shadow: 0 0 0 3px #ffaa00, 4px 4px 0 #0a0a0e; }
  100% { box-shadow: 4px 4px 0 #0a0a0e; }
}

.mc-panel-title {
  font-family: var(--font-headline);
  color: var(--mc-gold);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 12px;
  text-shadow: 2px 2px 0 #3f2a00, 1px 1px 0 #000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid #32323c;
  padding-bottom: 10px;
}

.mc-panel-subtitle {
  font-family: var(--font-body);
  color: #c2c2d0;
  font-size: 14.5px;
  line-height: 1.6;
  margin-top: -4px;
  margin-bottom: 18px;
}

/* ==========================================================================
   INGAME ADVANCEDSKILLS / MINECRAFT GUI RECREATION (PROGRESS & TALENTS)
   ========================================================================== */
.ingame-gui-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  background: #141418;
  border: 3px solid;
  border-color: #0c0c10 #343440 #343440 #0c0c10;
  padding: 20px;
}

.adv-gui-frame {
  position: relative;
  width: min(100%, 512px);
  aspect-ratio: 256 / 255;
  flex-shrink: 0;
  user-select: none;
  /* Crop empty bottom transparent space visually via negative margin */
  margin-bottom: -85px;
}

.adv-gui-bg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.85));
}

/* Exact 9-column Minecraft Chest Slot Grid aligned to 256x255 Resourcepack Bitmap
   X = 51 / 256 = 19.921875%, Width = 162 / 256 = 63.28125%
   Y = 74 / 255 = 29.019608%
   5 rows height = 90 / 255 = 35.294118%
   6 rows height = 108 / 255 = 42.352941%
*/
.adv-gui-slot-grid {
  position: absolute;
  left: 19.9219%;
  top: 29.0196%;
  width: 63.2813%;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
}

.adv-gui-slot-grid.rows-5 {
  height: 35.2941%;
  grid-template-rows: repeat(5, 1fr);
}

.adv-gui-slot-grid.rows-6 {
  height: 42.3529%;
  grid-template-rows: repeat(6, 1fr);
}

.adv-gui-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv-gui-slot.has-item {
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.1s, transform 0.1s, box-shadow 0.1s;
}

.adv-gui-slot.has-item:hover {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 2px #ffff55, 0 0 10px rgba(255, 255, 85, 0.5);
  z-index: 5;
}

.adv-gui-slot.slot-active {
  background: rgba(85, 255, 85, 0.16);
  box-shadow: inset 0 0 0 2px #55ff55, 0 0 10px rgba(85, 255, 85, 0.35);
}

.adv-gui-slot.slot-milestone {
  background: rgba(255, 170, 0, 0.22);
  box-shadow: inset 0 0 0 2px #ffaa00, 0 0 12px rgba(255, 170, 0, 0.5);
}

.adv-gui-slot.slot-ultimate {
  background: rgba(255, 85, 255, 0.25);
  box-shadow: inset 0 0 0 2px #ff55ff, 0 0 14px rgba(255, 85, 255, 0.65);
}

.adv-gui-slot img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.75));
}

.slot-lvl-badge {
  position: absolute;
  bottom: 0px;
  right: 2px;
  font-family: var(--font-headline);
  font-size: 9px;
  line-height: 1;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  pointer-events: none;
}

.slot-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55ff55;
  box-shadow: 0 0 4px #55ff55, 0 0 0 1px #000;
  pointer-events: none;
}

.gui-side-panel {
  flex: 1;
  min-width: 290px;
  max-width: 460px;
}

.talent-active-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.talent-active-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #181820;
  border: 1px solid #3a3a4a;
  padding: 7px 10px;
  border-left: 3px solid var(--mc-green);
}

.talent-active-pill img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ==========================================================================
   VERTICAL CATEGORIZED ITEM & MOB DATABASE ROWS
   ========================================================================== */
.db-category-block {
  margin-bottom: 28px;
}

.db-category-block:last-child {
  margin-bottom: 0;
}

.db-category-title {
  font-family: var(--font-headline);
  font-size: 13px;
  color: var(--mc-gold);
  background: #17171d;
  border: 2px solid #343442;
  border-left: 4px solid var(--mc-gold);
  padding: 10px 14px;
  margin: 0 0 12px;
  text-shadow: 2px 2px 0 #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Class Showcase Row ([3D Character Portrait] | [Attributes & Passives]) */
.db-class-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  background: var(--bg-tooltip);
  border: 2px solid var(--border-tooltip);
  box-shadow: 0 0 0 2px #08000c, 4px 4px 12px rgba(0, 0, 0, 0.85);
  padding: 18px 20px;
  align-items: stretch;
  transition: border-color 0.12s;
}

.db-class-row:hover {
  border-color: #5400b8;
}

.class-portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 170, 0, 0.16) 0%, #121018 75%);
  border: 3px solid;
  border-color: #0b0b10 #3a3a48 #3a3a48 #0b0b10;
  padding: 14px 10px;
  text-align: center;
}

.class-portrait-img-wrap {
  width: 185px;
  height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.class-portrait-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.9));
}

.class-details-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 780px) {
  .db-class-row {
    grid-template-columns: 1fr;
  }
}

/* Single Item Row (Full Width, Untereinander) */
.db-item-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-tooltip);
  border: 2px solid var(--border-tooltip);
  box-shadow: 0 0 0 2px #08000c, 3px 3px 8px rgba(0, 0, 0, 0.75);
  padding: 14px 18px;
  transition: border-color 0.12s, transform 0.12s;
}

.db-item-row:hover {
  border-color: #5400b8;
}

/* Framed Minecraft 16x16 Inventory Slot */
.mc-item-slot {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  background: #1a1a22;
  border: 3px solid;
  border-color: #0d0d12 #464656 #464656 #0d0d12;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}

.mc-item-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.75));
}

.db-item-main {
  flex: 1;
  min-width: 0;
}

.db-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(90, 30, 140, 0.4);
}

.db-item-source {
  font-size: 13px;
  color: #a8a8ba;
  margin-bottom: 6px;
}

.db-item-desc {
  color: #dcdce8;
  font-size: 14px;
  line-height: 1.6;
}

/* Single Mob / Boss Row (Full Width, Untereinander: [Mob Preview] | [Info & Skills] | [Drops with ItemIcons]) */
.db-mob-row {
  display: grid;
  grid-template-columns: 175px 1fr 330px;
  gap: 18px;
  background: var(--bg-tooltip);
  border: 2px solid var(--border-tooltip);
  box-shadow: 0 0 0 2px #08000c, 4px 4px 12px rgba(0, 0, 0, 0.85);
  padding: 16px 18px;
  align-items: stretch;
  transition: border-color 0.12s;
}

.db-mob-row:hover {
  border-color: #5400b8;
}

/* Left Column: 3D Mob Preview Render + Core Stats */
.mob-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 45%, rgba(90, 40, 140, 0.26) 0%, #121018 75%);
  border: 3px solid;
  border-color: #0b0b10 #3a3a48 #3a3a48 #0b0b10;
  padding: 12px 10px;
  text-align: center;
}

.mob-preview-img-wrap {
  width: 115px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.mob-preview-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.85));
}

.mob-stat-badges {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.mob-stat-badges .mc-badge {
  width: 100%;
  text-align: center;
  font-size: 9.5px;
}

/* Middle Column: Mob Name, Spawn, Mechanics */
.mob-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mob-spawn-line {
  font-size: 13px;
  color: var(--mc-aqua);
  margin-bottom: 8px;
}

/* Right Column: Structured Drops with [ItemIcon] [ItemName] */
.mob-drops-col {
  background: rgba(10, 6, 16, 0.75);
  border: 2px solid #2b1842;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mob-drops-title {
  font-family: var(--font-headline);
  font-size: 11px;
  color: var(--mc-gold);
  text-transform: uppercase;
  border-bottom: 1px solid #352050;
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.drop-item-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.drop-row-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #181422;
  border: 1px solid #34284a;
  padding: 6px 9px;
  transition: border-color 0.12s, background 0.12s;
}

.drop-row-pill:hover {
  border-color: var(--mc-gold);
  background: #211a30;
}

.drop-icon-box {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: #121018;
  border: 2px solid;
  border-color: #09080c #3e3a4c #3e3a4c #09080c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.drop-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drop-text-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.drop-item-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: #f0f0f8;
  line-height: 1.3;
}

.drop-item-sub {
  font-size: 11.5px;
  color: #a6a6b8;
  line-height: 1.35;
}

.drop-chance-badge {
  flex-shrink: 0;
  font-family: var(--font-headline);
  font-size: 9px;
  padding: 2px 6px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

/* --- Minecraft Item Tooltip Box (Authentic Lore Style) --- */
.mc-tooltip-card {
  background: var(--bg-tooltip);
  border: 2px solid var(--border-tooltip);
  box-shadow: 0 0 0 2px #08000c, 4px 4px 10px rgba(0, 0, 0, 0.85);
  padding: 16px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.12s, border-color 0.12s;
}

.mc-tooltip-card:hover {
  border-color: #5400b8;
}

.mc-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(90, 30, 140, 0.45);
  padding-bottom: 8px;
}

.mc-tooltip-title {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--mc-yellow);
  text-shadow: 2px 2px 0 #3f3f00;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mc-badge {
  display: inline-block;
  font-family: var(--font-headline);
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.3;
  background: #1e1e26;
  border: 1px solid #484858;
  color: #d0d0dc;
  text-shadow: 1px 1px 0 #000;
}

.badge-gold { background: #3a2608; border-color: #ffaa00; color: #ffaa00; }
.badge-green { background: #143314; border-color: #55ff55; color: #55ff55; }
.badge-aqua { background: #0e2d38; border-color: #55ffff; color: #55ffff; }
.badge-purple { background: #2c0e38; border-color: #ff55ff; color: #ff55ff; }
.badge-red { background: #381212; border-color: #ff5555; color: #ff5555; }

.mc-lore {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: #d4d4e0;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.mc-lore li {
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.mc-lore li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #88889a;
  font-weight: 700;
}

.mc-lore-section {
  font-family: var(--font-headline);
  color: var(--mc-gold);
  font-weight: 400;
  margin-top: 8px;
  margin-bottom: 2px;
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}

/* Text Color Helpers */
.c-gold { color: var(--mc-gold); font-weight: 600; }
.c-yellow { color: var(--mc-yellow); font-weight: 600; }
.c-green { color: var(--mc-green); font-weight: 600; }
.c-aqua { color: var(--mc-aqua); font-weight: 600; }
.c-red { color: var(--mc-red); font-weight: 600; }
.c-purple { color: var(--mc-light-purple); font-weight: 600; }
.c-gray { color: var(--mc-gray); }
.c-white { color: #ffffff; font-weight: 600; }

/* --- Path Snake Level Table --- */
.mc-table-wrap {
  overflow-x: auto;
  background: var(--bg-slot);
  border: 3px solid;
  border-color: #0c0c0e #32323c #32323c #0c0c0e;
  padding: 4px;
}

.mc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
}

.mc-table th,
.mc-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #22222a;
}

.mc-table th {
  font-family: var(--font-headline);
  background: #24242c;
  color: var(--mc-gold);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}

.mc-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.mc-table tr.row-milestone td {
  background: rgba(255, 170, 0, 0.10);
  border-top: 1px solid rgba(255, 170, 0, 0.4);
  border-bottom: 1px solid rgba(255, 170, 0, 0.4);
}

.mc-table tr.row-ultimate td {
  background: rgba(170, 0, 170, 0.16);
  border: 1px solid #aa00aa;
}

/* --- Command Pill --- */
.cmd-pill {
  display: inline-block;
  font-family: var(--font-headline);
  background: #0d0d11;
  border: 1px solid #3c3c48;
  color: var(--mc-aqua);
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.3;
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

/* --- Search Results Banner --- */
#search-status {
  display: none;
  background: #1e321e;
  border: 2px solid #55bb55;
  padding: 10px 16px;
  margin-bottom: 18px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  justify-content: space-between;
  align-items: center;
}

/* --- Footer --- */
.wiki-footer {
  font-family: var(--font-headline);
  text-align: center;
  padding: 24px 16px;
  color: #6c6c78;
  font-size: 11px;
  border-top: 3px solid #1c1c22;
  background: #121216;
  z-index: 20;
}

@media (max-width: 980px) {
  .db-mob-row {
    grid-template-columns: 1fr;
  }
  .mob-preview-col {
    flex-direction: row;
    gap: 16px;
  }
  .mob-preview-img-wrap {
    width: 90px;
    height: 90px;
    margin-bottom: 0;
  }
}

@media (max-width: 900px) {
  .wiki-body-layout {
    flex-direction: column;
  }
  .wiki-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 4px solid #101014;
    padding: 14px;
    gap: 14px;
  }
  .wiki-container {
    padding: 0 14px;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .adv-gui-frame {
    margin-bottom: -50px;
  }
}
