/* ============================================
   VANILLA+ WIKI — Premium Design System v2
   ============================================ */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252540;
  --bg-glass: rgba(26, 26, 46, 0.7);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --accent-primary: #7c4dff;
  --accent-secondary: #448aff;
  --accent-gold: #ffd54f;
  --accent-emerald: #4caf50;
  --accent-ruby: #e53935;
  --accent-nether: #ff5722;
  --accent-end: #9c27b0;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(124, 77, 255, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: "Inter", -apple-system, sans-serif;
  --font-display: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}
@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1.5);
  }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
}
.logo-icon {
  font-size: 1.5rem;
}
.logo-plus {
  color: var(--accent-primary);
}
.nav-links {
  display: flex;
  gap: 0.25rem;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(124, 77, 255, 0.1);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Language Selector */
.language-selector {
  margin-left: 1rem;
}

.lang-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.lang-select:hover {
  border-color: var(--accent-primary);
}

.lang-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(124, 77, 255, 0.2);
}

.lang-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0f, #1a1a2e 50%, #0d0d1a);
  transition: transform 0.1s ease-out;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    rgba(124, 77, 255, 0.08),
    transparent
  );
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(124, 77, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(68, 138, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 213, 79, 0.05) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  background: rgba(124, 77, 255, 0.05);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.8); }
  50% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

.title-vanilla {
  background: linear-gradient(180deg, #fff, #a0a0b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

.title-plus {
  background: linear-gradient(135deg, #7c4dff, #448aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: slideInRight 0.8s ease-out 0.2s both, titlePulse 2s ease-in-out infinite 1s;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 30px rgba(124, 77, 255, 0.4); }
  50% { text-shadow: 0 0 50px rgba(124, 77, 255, 0.8), 0 0 70px rgba(68, 138, 255, 0.4); }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.stat {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  min-width: 100px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c4dff, #448aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
}
.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, #7c4dff, #448aff);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.3);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(124, 77, 255, 0.5);
}

/* Sections */
.section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}
.section-alt {
  background: var(--bg-secondary);
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}
.subsection-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

/* Filter */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.filter-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Ore Cards */
.ore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}
.ore-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ore-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ore-color, var(--accent-primary));
}
.ore-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--ore-color);
}
.ore-card.hidden {
  display: none;
}
.ore-tier-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.tier1 {
  background: rgba(158, 158, 158, 0.15);
  color: #bbb;
  border: 1px solid rgba(158, 158, 158, 0.3);
}
.tier2 {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.tier3 {
  background: rgba(33, 150, 243, 0.15);
  color: #448aff;
  border: 1px solid rgba(33, 150, 243, 0.3);
}
.tier4 {
  background: rgba(124, 77, 255, 0.15);
  color: #b388ff;
  border: 1px solid rgba(124, 77, 255, 0.3);
}
.ore-images {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ore-img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
}
.ore-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}
.ore-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ore-color);
}
.ore-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ore-xp,
.ore-location {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.ore-ability {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  background: rgba(255, 213, 79, 0.08);
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
  border: 1px solid rgba(255, 213, 79, 0.15);
}
.ore-ability.tool {
  color: #00bcd4;
  background: rgba(0, 188, 212, 0.08);
  border-color: rgba(0, 188, 212, 0.15);
}

/* Ability Cards */
.ability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}
.ability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ability-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}
.ability-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}
.ability-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.ability-mineral {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}
.ability-req {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  color: var(--text-muted);
}
.ability-armor-imgs {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
  justify-content: center;
}
.armor-piece-img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  transition: var(--transition);
}
.armor-piece-img:hover {
  transform: scale(1.3);
  border-color: var(--accent);
}
.ability-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.ability-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Creature Armor */
.creature-armor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.creature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.creature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
}
.creature-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.creature-armor-imgs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* Weapons */
.weapons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.weapon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.weapon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-ruby);
}
.weapon-card.special {
  border-top: 3px solid var(--accent-ruby);
}
.weapon-img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.weapon-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.weapon-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.ore-swords-row {
  max-width: 1200px;
  margin: 2rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}
.ore-swords-row h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Entity Images (replacing 3D models) */
.entity-img-container {
  width: 100%;
  height: 180px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.entity-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform 0.3s ease;
}

.entity-card:hover .entity-img {
  transform: scale(1.1);
}

.entity-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* Modal entity image */
.modal-entity-img-container {
  width: 100%;
  height: 350px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-entity-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  image-rendering: pixelated;
}
.swords-strip {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.sword-thumb {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px;
  transition: var(--transition);
  cursor: pointer;
}
.sword-thumb:hover {
  transform: scale(1.5);
  border-color: var(--accent-primary);
  z-index: 10;
  position: relative;
}

/* Entity 3D Cards */
.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}
.entity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  padding-bottom: 1rem;
}
.entity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.entity-card.hidden {
  display: none;
}
.entity-behavior {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 5;
}
.entity-behavior.passive {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}
.entity-behavior.neutral {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
}
.entity-behavior.hostile {
  background: rgba(229, 57, 53, 0.15);
  color: #e53935;
}
.entity-3d-container {
  width: 100%;
  height: 220px;
  cursor: grab;
  position: relative;
}
.entity-3d-container:active {
  cursor: grabbing;
}
.entity-3d-container canvas {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.entity-fallback-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  image-rendering: pixelated;
  padding: 1rem;
}
.entity-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 0.5rem;
}
.nether-card {
  border-color: rgba(255, 87, 34, 0.2);
}
.nether-card:hover {
  border-color: var(--accent-nether);
}
.end-card {
  border-color: rgba(156, 39, 176, 0.2);
}
.end-card:hover {
  border-color: var(--accent-end);
}
.boss-card {
  border: 2px solid rgba(255, 213, 79, 0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 213, 79, 0.03));
  grid-column: span 2;
}
.boss-card:hover {
  border-color: var(--accent-gold);
}
.boss-card .entity-3d-container {
  height: 300px;
}
.npc-card {
  border-color: rgba(68, 138, 255, 0.2);
}

/* Blocks */
.block-categories {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
.block-category {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.category-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.block-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.block-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.block-item:hover {
  background: rgba(124, 77, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}
.block-tex-img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  border-radius: 2px;
}

/* Food */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.food-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}
.food-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-emerald);
}
.food-card.cookable {
  border-top: 2px solid var(--accent-nether);
}
.food-card.cooked {
  border-top: 2px solid var(--accent-emerald);
}
.food-img {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.food-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Utility */
.utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.utility-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}
.utility-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-secondary);
}
.utility-img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  margin-bottom: 0.75rem;
  object-fit: contain;
}
.utility-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

/* === CRAFTING RECIPES — Minecraft Style === */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}
.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}
.recipe-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}
.recipe-card.hidden {
  display: none;
}
.recipe-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-align: center;
}
.recipe-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(3, 44px);
  gap: 2px;
  background: #3b3b3b;
  padding: 4px;
  border-radius: 4px;
  border: 2px solid #555;
}
.craft-slot {
  width: 44px;
  height: 44px;
  background: #8b8b8b;
  border: 2px solid;
  border-color: #ffffff40 #55555580 #55555580 #ffffff40;
  display: flex;
  align-items: center;
  justify-content: center;
}
.craft-slot.empty {
  background: #6b6b6b;
}
.craft-slot-img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  cursor: help;
}
.craft-slot {
  position: relative;
}
.craft-slot[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
  margin-bottom: 5px;
}
.craft-slot[data-tooltip]:hover::after {
  opacity: 1;
}
.recipe-arrow {
  font-size: 1.8rem;
  color: var(--text-muted);
  font-weight: 900;
}
.recipe-result {
  width: 52px;
  height: 52px;
  background: #8b8b8b;
  border: 2px solid;
  border-color: #ffffff40 #55555580 #55555580 #ffffff40;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.recipe-result-img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}
.img-error {
  background: repeating-conic-gradient(#ff000020 0% 25%, transparent 0% 50%)
    50%/16px 16px;
}

/* Smelting Recipe */
.smelt-recipe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.smelt-input,
.smelt-output {
  width: 52px;
  height: 52px;
  background: #8b8b8b;
  border: 2px solid;
  border-color: #ffffff40 #55555580 #55555580 #ffffff40;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.smelt-arrow {
  font-size: 1.5rem;
  color: var(--accent-nether);
}
.recipe-item-img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}

/* Systems */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.system-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.system-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.system-toggle {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.8rem;
  background: rgba(124, 77, 255, 0.08);
  border-radius: 100px;
  display: inline-block;
}
.system-details h4 {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 1rem 0 0.5rem;
}
.system-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.system-details li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}
.system-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}
.temp-scale {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.temp-zone {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
}
.hot-critical {
  background: rgba(229, 57, 53, 0.15);
  color: #e53935;
}
.hot-severe {
  background: rgba(255, 87, 34, 0.12);
  color: #ff5722;
}
.hot-mild {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}
.neutral {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}
.cold-mild {
  background: rgba(0, 188, 212, 0.08);
  color: #00bcd4;
}
.cold-moderate {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}
.cold-severe {
  background: rgba(63, 81, 181, 0.12);
  color: #5c6bc0;
}
.hydration-table {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hydra-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #7c4dff, #448aff);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.3);
  transition: var(--transition);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    padding: 1rem;
    flex-direction: column;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-stats {
    gap: 0.75rem;
  }
  .stat {
    min-width: 80px;
    padding: 0.75rem 1rem;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .section {
    padding: 3rem 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .ore-grid,
  .entity-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .ability-grid {
    grid-template-columns: 1fr;
  }
  .boss-card {
    grid-column: span 1;
  }
  .systems-grid {
    grid-template-columns: 1fr;
  }
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================
   ENTITY DETAIL MODAL
   ============================================ */
.entity-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.3s ease;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal-close:hover {
  background: var(--accent-ruby);
  color: white;
  border-color: var(--accent-ruby);
}
.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}
.modal-dim {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-secondary);
}
.modal-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.modal-model {
  width: 100%;
  height: 350px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}
.modal-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.info-section h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}
.info-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.info-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.info-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}
.info-box .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}
.info-box .value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.behavior-passive {
  color: #4caf50;
}
.behavior-neutral {
  color: #ff9800;
}
.behavior-hostile {
  color: #e53935;
}
.drops-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.drops-list li {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Theme colors for modals */
.overworld-theme .modal-dim {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.aquatic-theme .modal-dim {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}
.nether-theme .modal-dim {
  background: rgba(255, 87, 34, 0.15);
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.3);
}
.end-theme .modal-dim {
  background: rgba(156, 39, 176, 0.15);
  color: #9c27b0;
  border: 1px solid rgba(156, 39, 176, 0.3);
}
.boss-theme .modal-dim {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}
.npc-theme .modal-dim {
  background: rgba(68, 138, 255, 0.15);
  color: #448aff;
  border: 1px solid rgba(68, 138, 255, 0.3);
}

/* Dimension labels without emojis */
.dim-overworld {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.dim-aquatic {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}
.dim-nether {
  background: rgba(255, 87, 34, 0.15);
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.3);
}
.dim-end {
  background: rgba(156, 39, 176, 0.15);
  color: #9c27b0;
  border: 1px solid rgba(156, 39, 176, 0.3);
}
.dim-boss {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}
.dim-npc {
  background: rgba(68, 138, 255, 0.15);
  color: #448aff;
  border: 1px solid rgba(68, 138, 255, 0.3);
}

/* HP value without emoji */
.hp-value {
  font-weight: 700;
}
.hp-value::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 4px;
}

/* Tag styles */
.tag-yes {
  color: #4caf50;
  font-weight: 600;
}
.value.damage {
  color: #ef5350;
  font-weight: 700;
}
.value.heal {
  color: #66bb6a;
  font-weight: 700;
}

/* Food cards */
.food-card {
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.food-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.food-heal {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(102, 187, 106, 0.2);
  color: #66bb6a;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.food-card.cookable::after {
  content: "Can Cook";
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
}
.food-card.cooked {
  border-color: #66bb6a;
}

/* Utility cards */
.utility-card {
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.utility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.item-stat {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(66, 165, 245, 0.2);
  color: #42a5f5;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Weapon cards */
.weapon-card {
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.weapon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.weapon-card .item-stat.damage {
  background: rgba(239, 83, 80, 0.2);
  color: #ef5350;
}

/* Item Modal */
.item-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-modal .modal-content {
  max-width: 500px;
}
.item-modal .modal-item-display {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}
.item-modal .modal-item-display img {
  max-width: 128px;
  max-height: 128px;
  image-rendering: pixelated;
}
.modal-type {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

/* Ore Modal */
.ore-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ore-modal .modal-content {
  max-width: 500px;
  width: 90%;
}

.ore-modal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}
.modal-ore-display {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  justify-content: center;
}
.ore-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ore-comparison img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
.ore-arrow-lg {
  font-size: 2rem;
  color: var(--text-secondary);
}
.modal-tier {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}
.modal-tier.tier1 {
  background: linear-gradient(135deg, #8d6e63, #a1887f);
}
.modal-tier.tier2 {
  background: linear-gradient(135deg, #90a4ae, #b0bec5);
}
.modal-tier.tier3 {
  background: linear-gradient(135deg, #ffd54f, #ffecb3);
  color: #5d4037;
}
.modal-tier.tier4 {
  background: linear-gradient(135deg, #7c4dff, #b388ff);
}
.ability-text {
  padding: 1rem;
  background: rgba(124, 77, 255, 0.1);
  border-radius: 8px;
  border-left: 3px solid #7c4dff;
}

/* Clickable cards cursor */
.ore-card,
.food-card,
.utility-card,
.weapon-card,
.entity-card {
  cursor: pointer;
}

/* Icon styles (replacing emojis) */
.icon-pickaxe,
.icon-shield,
.icon-sword,
.icon-entity,
.icon-block,
.icon-paw {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.3em;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
}
.icon-pickaxe {
  background: linear-gradient(135deg, #8d6e63, #5d4037);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20L10 14M14 10L20 4M16 2L22 8L20 10L14 4L16 2Z' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20L10 14M14 10L20 4M16 2L22 8L20 10L14 4L16 2Z' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.icon-shield {
  background: linear-gradient(135deg, #64b5f6, #1976d2);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L4 5V11C4 16 8 20 12 22C16 20 20 16 20 11V5L12 2Z' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L4 5V11C4 16 8 20 12 22C16 20 20 16 20 11V5L12 2Z' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.icon-sword {
  background: linear-gradient(135deg, #90a4ae, #546e7a);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18L14.5 9.5M18 6L14.5 9.5M18 6L20 4L21 5L19 7M14.5 9.5L11 13' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18L14.5 9.5M18 6L14.5 9.5M18 6L20 4L21 5L19 7M14.5 9.5L11 13' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.icon-entity {
  background: linear-gradient(135deg, #ffb74d, #f57c00);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' stroke='white' stroke-width='2' fill='none'/%3E%3Cpath d='M4 20C4 14 8 12 12 12C16 12 20 14 20 20' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' stroke='white' stroke-width='2' fill='none'/%3E%3Cpath d='M4 20C4 14 8 12 12 12C16 12 20 14 20 20' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.icon-block {
  background: linear-gradient(135deg, #a1887f, #5d4037);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.icon-paw {
  background: linear-gradient(135deg, #81c784, #388e3c);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5' ry='4' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='8' cy='8' r='2' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='12' cy='6' r='2' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='16' cy='8' r='2' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5' ry='4' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='8' cy='8' r='2' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='12' cy='6' r='2' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='16' cy='8' r='2' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.icon-water {
  background: linear-gradient(135deg, #64b5f6, #1976d2);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8 8 4 12 4 16C4 19.5 7 22 12 22C17 22 20 19.5 20 16C20 12 16 8 12 2Z' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8 8 4 12 4 16C4 19.5 7 22 12 22C17 22 20 19.5 20 16C20 12 16 8 12 2Z' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.icon-milk {
  background: linear-gradient(135deg, #e0e0e0, #9e9e9e);
}
.icon-bottle {
  background: linear-gradient(135deg, #81d4fa, #29b6f6);
}
.icon-potion {
  background: linear-gradient(135deg, #ce93d8, #ab47bc);
}

/* Colored dots for filter buttons */
.dot-green,
.dot-blue,
.dot-orange,
.dot-purple,
.dot-red,
.dot-cyan {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot-green {
  background: #4caf50;
  box-shadow: 0 0 8px #4caf50;
}
.dot-blue {
  background: #2196f3;
  box-shadow: 0 0 8px #2196f3;
}
.dot-orange {
  background: #ff9800;
  box-shadow: 0 0 8px #ff9800;
}
.dot-purple {
  background: #9c27b0;
  box-shadow: 0 0 8px #9c27b0;
}
.dot-red {
  background: #f44336;
  box-shadow: 0 0 8px #f44336;
}
.dot-cyan {
  background: #00bcd4;
  box-shadow: 0 0 8px #00bcd4;
}

/* Checkmark for safe zone */
.checkmark {
  color: #4caf50;
  font-weight: 600;
}
.checkmark::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  border: solid #4caf50;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-right: 4px;
}

/* Footer Studio */
.footer-studio {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease-out 1.2s both;
}
.studio-by {
  font-style: italic;
  opacity: 0.8;
}
.studio-name {
  color: #64b5f6;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
.studio-name:hover {
  color: #90caf9;
  text-decoration: underline;
}
.discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  border-radius: 50%;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.discord-link:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}
.discord-icon {
  width: 16px;
  height: 16px;
  background: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(124, 77, 255, 0.5);
  }
  50% {
    box-shadow:
      0 0 20px rgba(124, 77, 255, 0.8),
      0 0 40px rgba(124, 77, 255, 0.4);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes slideInStagger {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Animations */
.hero-content {
  animation: fadeInUp 1s ease-out;
}
.hero-badge {
  animation:
    fadeInDown 0.8s ease-out 0.3s both,
    pulse 2s ease-in-out infinite 1.5s;
}
.hero-title {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}
.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.7s both;
}
.hero-stats {
  animation: fadeInUp 0.8s ease-out 0.9s both;
}
.hero-cta {
  animation: fadeInUp 0.8s ease-out 1.1s both;
}

/* Section Animations */
.section-header {
  animation: fadeInUp 0.6s ease-out;
}
.section-title {
  animation: fadeInLeft 0.6s ease-out;
}
.section-desc {
  animation: fadeInRight 0.6s ease-out 0.1s both;
}

/* Card Stagger Animations */
.ore-card,
.food-card,
.utility-card,
.weapon-card,
.entity-card,
.recipe-card,
.ability-card {
  animation: slideInStagger 0.5s ease-out backwards;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.ore-card:nth-child(1) {
  animation-delay: 0.05s;
}
.ore-card:nth-child(2) {
  animation-delay: 0.1s;
}
.ore-card:nth-child(3) {
  animation-delay: 0.15s;
}
.ore-card:nth-child(4) {
  animation-delay: 0.2s;
}
.ore-card:nth-child(5) {
  animation-delay: 0.25s;
}
.ore-card:nth-child(6) {
  animation-delay: 0.3s;
}
.ore-card:nth-child(7) {
  animation-delay: 0.35s;
}
.ore-card:nth-child(8) {
  animation-delay: 0.4s;
}
.ore-card:nth-child(9) {
  animation-delay: 0.45s;
}
.ore-card:nth-child(10) {
  animation-delay: 0.5s;
}

/* Hover Effects */
.ore-card:hover,
.food-card:hover,
.utility-card:hover,
.weapon-card:hover,
.entity-card:hover,
.recipe-card:hover,
.ability-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Filter Button Animations */
.filter-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.filter-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}
.filter-btn:hover::before {
  width: 100px;
  height: 100px;
}
.filter-btn.active {
  animation: glow 2s ease-in-out infinite;
}

/* Navigation Animation */
.nav {
  animation: fadeInDown 0.6s ease-out;
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c4dff, #448aff);
  transition: width 0.3s;
}
.nav-link:hover::after {
  width: 100%;
}

/* Modal Animations */
.modal-content {
  animation: scaleIn 0.3s ease-out;
}
.modal-backdrop {
  animation: fadeIn 0.3s ease-out;
}

/* Back to Top Animation */
.back-to-top {
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s;
}
.back-to-top:hover {
  animation: none;
  transform: scale(1.1);
}

/* Logo Animation */
.logo-icon {
  animation: float 4s ease-in-out infinite;
}
.logo-plus {
  animation: pulse 2s ease-in-out infinite;
}

/* Particle Animation Enhancement */
.particle {
  animation: float 6s ease-in-out infinite;
}

/* Tooltip Enhancement */
.craft-slot-img,
.recipe-item-img {
  transition: transform 0.2s;
}
.craft-slot:hover .craft-slot-img,
.smelt-input:hover img,
.smelt-output:hover img {
  transform: scale(1.15);
}

/* Scroll Reveal Animation Base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NEW ANIMATIONS & RESPONSIVE ENHANCEMENTS v3
   ============================================ */

/* About Section */
.about-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(124, 77, 255, 0.05) 50%, var(--bg-primary) 100%);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124, 77, 255, 0.1) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(124, 77, 255, 0.15);
  animation: cardFloat 6s ease-in-out infinite;
}

.about-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
  animation: shine 8s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.about-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-desc strong {
  color: var(--text-primary);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.about-feature:hover {
  background: rgba(124, 77, 255, 0.1);
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 40px rgba(124, 77, 255, 0.2);
}

.info-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.info-card:hover .info-glow {
  opacity: 1;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.install-steps, .compat-list, .feature-list {
  list-style: none;
}

.install-steps li, .compat-list li, .feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.install-steps li:last-child, .compat-list li:last-child, .feature-list li:last-child {
  border-bottom: none;
}

.install-steps li::before {
  content: attr(data-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  counter-increment: step;
  content: counter(step);
}

.install-steps {
  counter-reset: step;
}

.check {
  color: var(--accent-emerald);
  font-weight: bold;
}

code {
  background: rgba(124, 77, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent-gold);
}

/* Animation Classes */
.animated-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animated-slide-up {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

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

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

/* Card Hover Effects */
.ore-card, .ability-card, .entity-card, .weapon-card, .food-card, .utility-card, .recipe-card {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.ore-card:hover, .ability-card:hover, .entity-card:hover, .weapon-card:hover, 
.food-card:hover, .utility-card:hover, .recipe-card:hover {
  transform: translateY(-8px) scale(1.02) rotateX(5deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 77, 255, 0.2);
}

/* 3D Tilt Effect Base */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.tilt-card .card-content {
  transform: translateZ(20px);
}

/* Shimmer Effect on Hover */
.ore-card::after, .ability-card::after, .entity-card::after, .weapon-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s;
  pointer-events: none;
  opacity: 0;
}

.ore-card:hover::after, .ability-card:hover::after, .entity-card:hover::after, .weapon-card:hover::after {
  opacity: 1;
  animation: shimmer 0.6s ease-out;
}

@keyframes shimmer {
  to {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Glow Pulse for Important Elements */
.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px var(--border-glow); }
  50% { box-shadow: 0 0 20px var(--border-glow), 0 0 40px rgba(124, 77, 255, 0.3); }
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-stats {
    gap: 2rem;
  }
  .about-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-link {
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1rem;
  }
  
  .nav-link:hover {
    background: rgba(124, 77, 255, 0.1);
  }
  
  /* Hero Mobile */
  .hero {
    padding: 100px 1rem 60px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Section Headers Mobile */
  .section {
    padding: 2rem 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-desc {
    font-size: 0.9rem;
  }
  
  /* Filter Bar Mobile */
  .filter-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  /* Grids Mobile */
  .ore-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .entity-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .ability-grid {
    grid-template-columns: 1fr;
  }
  
  .weapons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .food-grid, .utility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  
  /* About Section Mobile */
  .about-card {
    padding: 1.5rem;
  }
  
  .about-title {
    font-size: 1.5rem;
  }
  
  .about-desc {
    font-size: 1rem;
  }
  
  .about-features {
    grid-template-columns: 1fr 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  /* Systems Mobile */
  .systems-grid {
    grid-template-columns: 1fr;
  }
  
  /* Modal Mobile */
  .modal-body {
    grid-template-columns: 1fr;
  }
  .modal-model {
    height: 250px;
  }
  .modal-header h2 {
    font-size: 1.3rem;
  }
  .info-row {
    grid-template-columns: 1fr;
  }
  .ore-comparison {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Footer Mobile */
  .footer-content {
    padding: 1.5rem;
  }
  
  .footer-logo {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .title-vanilla, .title-plus {
    display: block;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .ore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .entity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .creature-armor-grid {
    grid-template-columns: 1fr;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .ore-card:hover, .ability-card:hover, .entity-card:hover,
  .weapon-card:hover, .food-card:hover, .utility-card:hover {
    transform: none;
  }
  
  .back-to-top {
    width: 44px;
    height: 44px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  .nav, .particles, .back-to-top, .hero-cta {
    display: none !important;
  }
  
  .section {
    break-inside: avoid;
  }
}
