/* ==========================================================================
   FemboyMC — Official Wiki Stylesheet (wiki.femboymc.ru)
   Theme: Cute Modern Pink & White Aesthetics + Documentation UI
   ========================================================================== */

:root {
  /* Color Palette - identical to main site */
  --bg-main: #fff8fa;
  --bg-card: #ffffff;
  --bg-card-subtle: #fff1f5;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-strong: rgba(255, 255, 255, 0.95);
  
  --primary: #ff5c8d;
  --primary-hover: #ff4077;
  --primary-light: #ffe5ed;
  --primary-gradient: linear-gradient(135deg, #ff5c8d 0%, #ff8aa5 100%);
  --secondary-gradient: linear-gradient(135deg, #f472b6 0%, #c084fc 100%);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  
  --text-main: #2b141e;
  --text-muted: #785363;
  --text-light: #9e7486;
  
  --border-color: rgba(255, 122, 162, 0.2);
  --border-hover: rgba(255, 92, 141, 0.45);
  
  --shadow-sm: 0 4px 12px rgba(255, 92, 141, 0.08);
  --shadow-md: 0 8px 24px rgba(255, 92, 141, 0.12);
  --shadow-lg: 0 16px 36px rgba(255, 92, 141, 0.18);
  --shadow-glow: 0 0 25px rgba(255, 92, 141, 0.35);

  --discord: #5865F2;
  --discord-hover: #4752c4;
  --telegram: #229ED9;
  --telegram-hover: #1c88bc;
  
  /* Rarity Colors */
  --rarity-common: #22c55e;
  --rarity-common-bg: rgba(34, 197, 94, 0.12);
  --rarity-rare: #3b82f6;
  --rarity-rare-bg: rgba(59, 130, 246, 0.12);
  --rarity-epic: #a855f7;
  --rarity-epic-bg: rgba(168, 85, 247, 0.12);
  --rarity-mythic: #ec4899;
  --rarity-mythic-bg: rgba(236, 72, 153, 0.15);
  --rarity-mythic-gradient: linear-gradient(135deg, #ff5c8d 0%, #a855f7 50%, #f59e0b 100%);

  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-width: 290px;
  --header-height: 72px;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #ffeef2;
}
::-webkit-scrollbar-thumb {
  background: #ff9cb7;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Background Elements */
#starsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  animation: floatSlow 20s ease-in-out infinite alternate;
}

.glow-1 {
  width: 550px;
  height: 550px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, #ffb8d2 0%, rgba(255, 230, 240, 0) 70%);
}

.glow-2 {
  width: 650px;
  height: 650px;
  top: 40%;
  left: -200px;
  background: radial-gradient(circle, #ffd0e3 0%, rgba(255, 240, 248, 0) 70%);
  animation-delay: -7s;
}

.glow-3 {
  width: 600px;
  height: 600px;
  bottom: 100px;
  right: -100px;
  background: radial-gradient(circle, #ffe0eb 0%, rgba(255, 245, 250, 0) 70%);
  animation-delay: -14s;
}

@keyframes floatSlow {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.06); }
  100% { transform: translateY(-20px) scale(0.96); }
}

/* Typography & Helpers */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

code {
  font-family: var(--font-mono);
  background: var(--primary-light);
  color: var(--primary-hover);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 700;
  border: 1px solid rgba(255, 92, 141, 0.15);
}

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

a:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.wiki-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  box-shadow: 0 2px 16px rgba(255, 92, 141, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.sidebar-toggle-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  user-select: none;
}

.logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 6px rgba(255, 92, 141, 0.3));
}

.logo-highlight {
  color: var(--primary);
}

.wiki-badge {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 92, 141, 0.3);
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 42px 10px 40px;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 92, 141, 0.2);
  background: #fff;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-light);
  cursor: pointer;
  display: none;
  line-height: 1;
}

.search-clear-btn.visible {
  display: block;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-home-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}

.btn-discord:hover {
  background: var(--discord-hover);
  color: #fff;
}

.btn-telegram {
  background: var(--telegram);
  color: #fff;
}

.btn-telegram:hover {
  background: var(--telegram-hover);
  color: #fff;
}

.nav-copy-btn {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-copy-btn .icon {
  width: 16px;
  height: 16px;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}

/* ==========================================================================
   Announcement / Friendly Banner
   ========================================================================== */

.friendly-banner {
  background: linear-gradient(90deg, #ffeef4 0%, #fff0fa 50%, #f4edff 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
  z-index: 10;
}

.friendly-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
}

.friendly-flag {
  font-size: 1rem;
}

.friendly-title {
  font-weight: 700;
  color: var(--text-main);
}

.friendly-disclaimer {
  font-size: 0.74rem;
  color: var(--text-light);
  font-style: italic;
}

/* ==========================================================================
   Wiki Main Layout (Sidebar + Content)
   ========================================================================== */

.wiki-wrapper {
  position: relative;
  padding: 32px 0 64px;
}

.wiki-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */

.wiki-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
}

.sidebar-header-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-close-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.sidebar-heading {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1px;
  padding: 8px 12px 4px;
  margin-top: 12px;
}

.sidebar-heading:first-child,
.sidebar-header-mobile .sidebar-heading {
  margin-top: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
  padding-left: 14px;
}

.sidebar-link.active {
  background: var(--primary-light);
  color: var(--primary-hover);
  border-left-color: var(--primary);
  font-weight: 800;
}

.sidebar-link-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-icon {
  font-size: 1.05rem;
}

.sidebar-counter {
  font-size: 0.72rem;
  font-weight: 800;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-divider {
  height: 1px;
  background: var(--border-color);
  margin: 14px 8px;
}

.sidebar-footer-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-external-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
}

.sidebar-external-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   Content Area & Sections
   ========================================================================== */

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

.wiki-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 36px 42px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.wiki-section:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 26px;
}

/* Quick Jump Tiles (Overview) */
.quick-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.quick-tile {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-tile:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.tile-icon {
  font-size: 2rem;
}

.tile-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.tile-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Callouts / Alerts */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.93rem;
  line-height: 1.55;
  border-left: 4px solid;
}

.callout-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.callout-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.callout-info {
  background: #f0f7ff;
  border-color: #3b82f6;
  color: #1e3a8a;
}

.callout-success {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #14532d;
}

.callout-warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #78350f;
}

.callout-femboy {
  background: #fff0f5;
  border-color: var(--primary);
  color: #6d1a3b;
}

/* ==========================================================================
   Section: Nether Stars (Звезды Незера)
   ========================================================================== */

.stars-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.star-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.star-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.star-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.star-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.star-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 6px rgba(255, 92, 141, 0.3));
}

.star-slot-badge {
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.star-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.star-target {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.star-lore-box {
  background: #181419;
  color: #d1b8c8;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #33222e;
  line-height: 1.45;
}

.star-lore-line {
  display: block;
}

.lore-purple {
  color: #d8b4fe;
}

.lore-gold {
  color: #fbbf24;
}

.lore-pink {
  color: #ff9cb7;
}

/* ==========================================================================
   Section: Gem Crusher Hammer (3x3 Crafting Bench & Mechanics)
   ========================================================================== */

.hammer-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin: 24px 0;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hammer-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.crafting-bench-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.crafting-bench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bench-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
}

.bench-badge {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(229, 139, 67, 0.15);
  color: #e58b43;
  border: 1px solid rgba(229, 139, 67, 0.3);
}

.crafting-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.crafting-interface {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #201a1e;
  border: 2px solid #362932;
  border-radius: var(--radius-md);
  padding: 24px 18px;
  margin-bottom: 18px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 520px) {
  .crafting-interface {
    flex-direction: column;
    gap: 14px;
  }
}

.crafting-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  grid-template-rows: repeat(3, 58px);
  gap: 6px;
}

.craft-slot {
  width: 58px;
  height: 58px;
  background: #2b2229;
  border: 2px solid #443440;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-fast);
  cursor: default;
}

.craft-slot:not(.empty):hover {
  border-color: #e58b43;
  background: #352932;
  transform: translateY(-2px);
}

.craft-slot.empty {
  background: #191417;
  border-color: #2b2127;
  opacity: 0.6;
}

.craft-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.craft-name {
  font-size: 0.58rem;
  font-weight: 700;
  color: #d1b8c8;
  margin-top: 2px;
  text-align: center;
  white-space: nowrap;
}

.crafting-arrow {
  font-size: 1.8rem;
  font-weight: 900;
  color: #e58b43;
  user-select: none;
  animation: pulseArrow 2s infinite ease-in-out;
}

@keyframes pulseArrow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.crafting-result-slot {
  width: 76px;
  height: 76px;
  background: radial-gradient(circle at center, #3d2a23 0%, #20171a 100%);
  border: 2px solid #e58b43;
  box-shadow: 0 0 16px rgba(229, 139, 67, 0.35);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-normal);
}

.crafting-result-slot:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(229, 139, 67, 0.55);
}

.result-icon {
  font-size: 2rem;
  line-height: 1;
}

.result-durability-pill {
  font-size: 0.62rem;
  font-weight: 800;
  background: #e58b43;
  color: #fff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.crafting-ingredients-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hammer-item-preview {
  display: flex;
  flex-direction: column;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hammer-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.hammer-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.hammer-feature-card:hover {
  border-color: #e58b43;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

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

/* ==========================================================================
   Section: Gemstone Interactive Database (50 Gems)
   ========================================================================== */

.gems-control-panel {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.control-row:last-child {
  margin-bottom: 0;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-family: var(--font-family);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.filter-tab.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(255, 92, 141, 0.3);
}

/* Rarity Filters */
.rarity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rarity-pill {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.rarity-pill.active {
  color: #fff;
}

.rarity-pill[data-rarity="all"].active {
  background: #374151;
  border-color: #374151;
}

.rarity-pill[data-rarity="common"].active {
  background: var(--rarity-common);
  border-color: var(--rarity-common);
}

.rarity-pill[data-rarity="rare"].active {
  background: var(--rarity-rare);
  border-color: var(--rarity-rare);
}

.rarity-pill[data-rarity="epic"].active {
  background: var(--rarity-epic);
  border-color: var(--rarity-epic);
}

.rarity-pill[data-rarity="mythic"].active {
  background: var(--rarity-mythic-gradient);
  border-color: transparent;
}

/* Level Slider Simulator */
.level-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.slider-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 6px;
  background: #ffe0eb;
  border-radius: var(--radius-full);
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 92, 141, 0.4);
  transition: transform 0.15s ease;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.level-badge {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  min-width: 60px;
  text-align: center;
}

/* View Mode Switcher */
.view-switchers {
  display: flex;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
}

.view-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.view-btn.active {
  background: var(--primary-light);
  color: var(--primary-hover);
}

/* Gems Grid (Card View) */
.gems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.gem-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.gem-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.gem-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gem-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gem-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
}

.gem-card.rarity-common .gem-icon-box { background: var(--rarity-common-bg); border-color: rgba(34, 197, 94, 0.3); }
.gem-card.rarity-rare .gem-icon-box { background: var(--rarity-rare-bg); border-color: rgba(59, 130, 246, 0.3); }
.gem-card.rarity-epic .gem-icon-box { background: var(--rarity-epic-bg); border-color: rgba(168, 85, 247, 0.3); }
.gem-card.rarity-mythic .gem-icon-box { background: var(--rarity-mythic-bg); border-color: rgba(236, 72, 153, 0.4); }

.gem-name-group {
  min-width: 0;
}

.gem-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.gem-slot-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.rarity-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.rarity-tag.common { background: var(--rarity-common-bg); color: var(--rarity-common); }
.rarity-tag.rare { background: var(--rarity-rare-bg); color: var(--rarity-rare); }
.rarity-tag.epic { background: var(--rarity-epic-bg); color: var(--rarity-epic); }
.rarity-tag.mythic { background: var(--rarity-mythic-gradient); color: #fff; }

.gem-stats-list {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 12px 0;
}

.gem-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.gem-stat-row:last-child {
  margin-bottom: 0;
}

.gem-stat-name {
  font-weight: 700;
  color: var(--text-muted);
}

.gem-stat-value {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--primary-hover);
  background: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  font-size: 0.86rem;
}

.gem-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 6px;
}

.gem-meta-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-light);
}

/* Gem Table View */
.gems-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #fff;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
  display: none;
}

.gems-table-wrapper.active {
  display: block;
}

.wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.wiki-table th {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-weight: 800;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.wiki-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

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

.wiki-table tr:hover td {
  background: #fff9fb;
}

/* ==========================================================================
   Section: Drops & Probabilities
   ========================================================================== */

.drop-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.drop-tab-btn {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 9px 18px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drop-tab-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.drop-tab-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.drop-content-panel {
  display: none;
}

.drop-content-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Section: Coins Economy
   ========================================================================== */

.economy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.economy-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.economy-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.eco-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.eco-reward {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary-hover);
  margin-bottom: 6px;
}

.eco-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.eco-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.eco-subnote {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}

/* ==========================================================================
   Section: Container Claims + Minecraft Sign Simulator
   ========================================================================== */

.claims-showcase {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  margin: 24px 0;
}

.claims-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.claim-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.claim-step-num {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.claim-step-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.claim-step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Minecraft Sign Simulator */
.sign-simulator-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sign-simulator-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  text-align: center;
}

/* Oak Wood Sign styling */
.minecraft-sign {
  width: 260px;
  height: 165px;
  background: #bf8f54;
  border: 4px solid #8e6231;
  border-radius: 4px;
  box-shadow: inset 0 0 10px rgba(92, 58, 24, 0.4), 0 8px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  position: relative;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  color: #1f140a;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.sign-post {
  width: 24px;
  height: 50px;
  background: #8e6231;
  border: 3px solid #6b451c;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: -2px;
}

.sign-line {
  line-height: 1.45;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sign-line-1 { color: #0000aa; font-weight: 900; }
.sign-line-2 { color: #1f140a; }
.sign-line-3 { color: #008800; }
.sign-line-4 { color: #008800; }

.sign-controls {
  width: 100%;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sign-input-group label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.sign-input {
  width: 100%;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg-card-subtle);
  color: var(--text-main);
  transition: var(--transition);
}

.sign-input:focus {
  border-color: var(--primary);
  background: #fff;
}

/* ==========================================================================
   Section: Newbie Shield & Karma/PK
   ========================================================================== */

.pvp-mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.pvp-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.pvp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pvp-card.pk-card {
  border-color: #ef4444;
}

.pvp-card.pk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.pvp-card.shield-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.pvp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pvp-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.pvp-badge.blue { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.pvp-badge.red { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

.pvp-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.pvp-card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pk-penalties-list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pk-penalty-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #991b1b;
  background: #fef2f2;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
}

/* ==========================================================================
   Section: Commands Reference
   ========================================================================== */

.cmd-table td:first-child {
  width: 220px;
}

.cmd-copy-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cmd-copy-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 3px 6px;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.cmd-copy-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.wiki-footer {
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  margin-top: 48px;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-bottom a {
  font-weight: 700;
}

.rf-disclaimer {
  color: var(--primary-hover);
  font-weight: 700;
  margin-top: 4px;
}

.fine-print {
  font-size: 0.76rem;
  color: var(--text-light);
  display: block;
}

/* ==========================================================================
   Floating Elements: Toast & Back-to-Top
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 90;
}

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

.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Search Highlights */
mark.wiki-highlight {
  background: #fed7aa;
  color: #7c2d12;
  padding: 1px 4px;
  border-radius: 3px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
  .wiki-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }
  
  .claims-showcase {
    grid-template-columns: 1fr;
  }
  
  .sign-simulator-card {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .wiki-wrapper {
    position: static !important;
    z-index: auto !important;
  }

  .sidebar-toggle-btn {
    display: inline-flex;
  }

  .sidebar-close-btn {
    display: block;
  }

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

  .wiki-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-bottom: none !important;
    border-right: 1px solid var(--border-color) !important;
    z-index: 9999 !important;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 6px 0 32px rgba(43, 20, 30, 0.22) !important;
    padding: 24px 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .wiki-sidebar.open {
    left: 0 !important;
  }

  .sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(43, 20, 30, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 9990 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }

  .sidebar-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .header-search {
    max-width: 200px;
  }
  
  .wiki-section {
    padding: 24px 20px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 58px;
  }

  .container {
    padding: 0 12px;
  }

  .wiki-wrapper {
    padding: 16px 0 40px;
  }

  .wiki-header {
    height: 58px;
  }

  .header-container {
    padding: 0 10px;
    gap: 8px;
  }

  .header-left {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  .sidebar-toggle-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .logo {
    font-size: 1.15rem;
    gap: 6px;
  }

  .logo-icon {
    font-size: 1.25rem;
  }

  .wiki-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .header-search {
    display: none;
  }
  
  .header-search.mobile-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 16px;
    box-shadow: var(--shadow-md);
    max-width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .nav-copy-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-copy-btn span {
    display: none;
  }

  .nav-home-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .friendly-banner {
    padding: 5px 10px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .friendly-banner-content {
    gap: 3px;
  }

  .friendly-disclaimer {
    font-size: 0.64rem;
    display: block;
    width: 100%;
  }

  .wiki-section {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .section-title {
    font-size: 1.45rem;
  }

  .gems-grid {
    grid-template-columns: 1fr;
  }
  
  .level-slider-wrapper {
    width: 100%;
    justify-content: space-between;
    padding: 6px 12px;
  }
  
  .slider-input {
    width: 110px;
  }

  .overview-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .callout {
    padding: 14px 12px;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .logo-text {
    font-size: 1.05rem;
  }

  .nav-home-text {
    display: none;
  }

  .nav-home-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
}

/* ==========================================================================
   Minecraft 16x16 Pixel Art Icons Styling
   ========================================================================== */

.mc-icon,
.mc-inline-icon,
.gem-pixel-icon,
.gem-pixel-icon-sm,
.tile-icon-img,
.star-icon-img,
.badge-mc-icon,
.craft-item-img,
.craft-result-img,
.filter-tab-icon,
.tab-mc-icon,
.drop-tab-icon,
.table-mc-icon,
.eco-mc-img,
.coin-mc-icon,
.claim-mc-img,
.pvp-mc-img,
.sidebar-mc-icon {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: inline-block;
  vertical-align: middle;
}

.gem-pixel-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gem-card:hover .gem-pixel-icon {
  transform: scale(1.2) rotate(4deg);
}

.gem-pixel-icon-sm {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.sidebar-mc-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tile-icon-img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
}

.quick-tile:hover .tile-icon-img {
  transform: scale(1.15);
}

.star-icon-img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px rgba(255, 92, 141, 0.35));
}

.badge-mc-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.craft-item-img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.15s ease;
}

.craft-slot:not(.empty):hover .craft-item-img {
  transform: scale(1.15);
}

.craft-result-img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 10px rgba(229, 139, 67, 0.6));
  animation: floatMace 3s ease-in-out infinite alternate;
}

@keyframes floatMace {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.tab-mc-icon,
.filter-tab-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.drop-tab-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.table-mc-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.eco-mc-img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.coin-mc-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.claim-mc-img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.pvp-mc-img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
