/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-dark: #2d5a27;
  --green-main: #4a8f3f;
  --green-light: #7ec850;
  --brown-dark: #4a3728;
  --brown-main: #8b6914;
  --brown-light: #c4a44a;
  --nether-red: #8b0000;
  --nether-orange: #cc4400;
  --end-purple: #6b21a8;
  --end-dark: #1a0533;
  --sky-blue: #78b9e8;
  --diamond: #4aedd9;
  --gold: #fcdb05;
  --redstone: #ff0000;
  --text-light: #f5f0e1;
  --text-dark: #1a1a2e;
  --bg-light: #f5f0e1;
  --bg-card: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.25);
  --pixel-font: 'Press Start 2P', cursive;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(45, 90, 39, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.nav-brand {
  font-family: var(--pixel-font);
  font-size: 18px;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--brown-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--gold);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a3a1a 0%, #2d5a27 30%, #4a8f3f 60%, #7ec850 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(255,255,255,0.03) 31px, rgba(255,255,255,0.03) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(255,255,255,0.03) 31px, rgba(255,255,255,0.03) 32px);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(122,201,69,0.3) 0%, transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(75,0,130,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.pixel-title {
  font-family: var(--pixel-font);
  font-size: clamp(36px, 8vw, 80px);
  color: var(--gold);
  text-shadow:
    4px 4px 0 var(--brown-dark),
    8px 8px 0 rgba(0,0,0,0.3);
  letter-spacing: 4px;
  margin-bottom: 20px;
  animation: titleFloat 3s ease-in-out infinite;
}

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

.hero-subtitle {
  font-size: clamp(16px, 3vw, 24px);
  color: var(--text-light);
  margin-bottom: 40px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--gold), var(--brown-light));
  color: var(--brown-dark);
  font-family: var(--pixel-font);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(252,219,5,0.4);
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(252,219,5,0.6);
}

/* Floating blocks animation */
.hero::after {
  content: '⛏️';
  position: absolute;
  font-size: 48px;
  top: 20%;
  left: 10%;
  animation: floatBlock 6s ease-in-out infinite;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes floatBlock {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(15deg); }
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--text-light);
}

.section-title {
  font-family: var(--pixel-font);
  font-size: clamp(20px, 4vw, 32px);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--green-light);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-dark .section-title::after {
  background: var(--diamond);
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  opacity: 0.7;
  margin-top: -40px;
  margin-bottom: 40px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 17px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text strong {
  color: var(--green-dark);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-light);
}

.stat-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.stat-number {
  font-family: var(--pixel-font);
  font-size: 22px;
  color: var(--green-dark);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  opacity: 0.6;
}

/* ===== MODES ===== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.mode-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.mode-survival::before { background: var(--redstone); }
.mode-creative::before { background: var(--diamond); }
.mode-hardcore::before { background: #ff4444; }
.mode-adventure::before { background: var(--gold); }

.mode-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
}

.mode-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.mode-card h3 {
  font-family: var(--pixel-font);
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--gold);
}

.mode-card > p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 16px;
}

.mode-card ul {
  list-style: none;
  padding: 0;
}

.mode-card li {
  font-size: 13px;
  padding: 4px 0;
  opacity: 0.7;
}

.mode-card li::before {
  content: '✦ ';
  color: var(--green-light);
}

/* ===== WORLDS ===== */
.worlds-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.world-card {
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  color: white;
  transition: all 0.3s;
}

.world-overworld {
  background: linear-gradient(135deg, #2d5a27, #4a8f3f, #78b9e8);
}

.world-nether {
  background: linear-gradient(135deg, #8b0000, #cc4400, #ff6600);
}

.world-end {
  background: linear-gradient(135deg, #1a0533, #6b21a8, #9333ea);
}

.world-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.world-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.world-badge.danger { background: rgba(255,0,0,0.4); }
.world-badge.legendary { background: rgba(107,33,168,0.6); }

.world-card h3 {
  font-family: var(--pixel-font);
  font-size: 20px;
  margin-bottom: 12px;
}

.world-card p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 20px;
}

.world-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.world-features span {
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  backdrop-filter: blur(4px);
}

/* ===== MOBS ===== */
.mobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.mob-card {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.mob-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  box-shadow: var(--shadow-hover);
}

.mob-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.mob-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  image-rendering: pixelated;
}

.mob-card h3 {
  font-family: var(--pixel-font);
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 8px;
}

.mob-card p {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 8px;
}

.mob-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.mob-tag.hostile { background: rgba(255,0,0,0.3); color: #ff6666; }
.mob-tag.neutral { background: rgba(255,165,0,0.3); color: #ffaa44; }
.mob-tag.friendly { background: rgba(0,200,0,0.3); color: #66ff66; }
.mob-tag.boss { background: rgba(147,51,234,0.4); color: #c084fc; }

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--green-light), var(--diamond), var(--end-purple));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--green-light);
  border: 3px solid var(--bg-light);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--green-main);
}

.timeline-date {
  font-family: var(--pixel-font);
  font-size: 11px;
  color: var(--green-main);
  margin-bottom: 8px;
}

.timeline-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.timeline-content:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.timeline-content h3 {
  font-family: var(--pixel-font);
  font-size: 13px;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 15px;
  opacity: 0.85;
}

/* ===== FACTS ===== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.fact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s;
}

.fact-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
  border-color: var(--diamond);
}

.fact-number {
  font-family: var(--pixel-font);
  font-size: 32px;
  color: rgba(255,255,255,0.08);
  position: absolute;
  top: 16px;
  right: 20px;
}

.fact-card p {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.9;
}

/* ===== PLATFORMS ===== */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.platform-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.platform-card:hover {
  transform: translateY(-6px);
  border-color: var(--green-light);
  box-shadow: var(--shadow-hover);
}

.platform-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.platform-card h3 {
  font-family: var(--pixel-font);
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.platform-card p {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 12px;
}

.platform-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green-main);
  color: white;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.platform-badge.crossplay { background: var(--diamond); color: var(--text-dark); }
.platform-badge.mobile { background: var(--sky-blue); }
.platform-badge.vr { background: var(--end-purple); }

/* ===== FOOTER ===== */
.footer {
  background: #0d1117;
  color: var(--text-light);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--pixel-font);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.6;
}

.footer-links h4,
.footer-info h4 {
  font-family: var(--pixel-font);
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--green-light);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.6;
  transition: all 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-info p {
  font-size: 13px;
  opacity: 0.5;
  line-height: 1.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  opacity: 0.4;
}

/* ===== QUIZ ===== */
.hidden {
  display: none !important;
}

/* Start screen */
.quiz-start {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: var(--shadow);
}

.quiz-start-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: titleFloat 2s ease-in-out infinite;
}

.quiz-start h3 {
  font-family: var(--pixel-font);
  font-size: 20px;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.quiz-start p {
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 32px;
}

/* Quiz game */
.quiz-game {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
}

.quiz-progress {
  text-align: center;
  font-family: var(--pixel-font);
  font-size: 14px;
  color: var(--green-main);
  margin-bottom: 8px;
}

.quiz-bar {
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}

.quiz-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-main), var(--green-light));
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 0%;
}

.quiz-score {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--gold);
  background: rgba(252,219,5,0.1);
  padding: 6px 14px;
  border-radius: 20px;
}

.quiz-question {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
  min-height: 60px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.quiz-option {
  padding: 18px 20px;
  background: rgba(0,0,0,0.04);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  transition: all 0.3s;
  line-height: 1.4;
}

.quiz-option:hover:not(.disabled) {
  border-color: var(--green-main);
  background: rgba(74,143,63,0.08);
  transform: translateY(-2px);
}

.quiz-option.correct {
  border-color: #22c55e;
  background: rgba(34,197,94,0.15);
  color: #16a34a;
  animation: correctPulse 0.5s ease;
}

.quiz-option.wrong {
  border-color: #ef4444;
  background: rgba(239,68,68,0.15);
  color: #dc2626;
  animation: wrongShake 0.5s ease;
}

.quiz-option.disabled {
  cursor: default;
  opacity: 0.6;
}

@keyframes correctPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Feedback */
.quiz-feedback {
  text-align: center;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.6;
}

.quiz-feedback.correct {
  background: rgba(34,197,94,0.12);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,0.3);
}

.quiz-feedback.wrong {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.3);
}

/* Next button */
.quiz-btn {
  display: inline-block;
  padding: 14px 36px;
  border: none;
  border-radius: 12px;
  font-family: var(--pixel-font);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.quiz-btn-start {
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  color: white;
  box-shadow: 0 4px 16px rgba(74,143,63,0.4);
}

.quiz-btn-start:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,143,63,0.5);
}

.quiz-btn-next {
  background: linear-gradient(135deg, var(--gold), var(--brown-light));
  color: var(--brown-dark);
  box-shadow: 0 4px 16px rgba(252,219,5,0.3);
  display: block;
  margin: 0 auto;
}

.quiz-btn-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(252,219,5,0.5);
}

.quiz-btn-restart {
  background: linear-gradient(135deg, var(--diamond), var(--sky-blue));
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(74,237,217,0.3);
}

.quiz-btn-restart:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,237,217,0.5);
}

/* Result screen */
.quiz-result {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: var(--shadow);
}

.quiz-result-icon {
  font-size: 80px;
  margin-bottom: 16px;
}

.quiz-result h3 {
  font-family: var(--pixel-font);
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.quiz-result-score {
  font-family: var(--pixel-font);
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.quiz-result-score span {
  color: var(--text-dark);
  opacity: 0.4;
}

.quiz-result-text {
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 32px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-game {
    padding: 24px 20px;
  }

  .quiz-score {
    position: static;
    text-align: center;
    margin-bottom: 16px;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOB MODAL ===== */
.mob-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s;
  padding: 20px;
}

.mob-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mob-modal {
  background: #1a1a2e;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.08);
  transform: scale(0.85) translateY(30px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-light);
}

.mob-modal-overlay.active .mob-modal {
  transform: scale(1) translateY(0);
}

.mob-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.mob-modal-close:hover {
  background: rgba(255,0,0,0.4);
  transform: rotate(90deg);
}

.mob-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.mob-modal-emoji {
  font-size: 64px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.mob-modal-title-area {
  flex: 1;
}

.mob-modal-name {
  font-family: var(--pixel-font);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 8px;
}

.mob-modal-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mob-modal-tag.hostile { background: rgba(255,50,50,0.3); color: #ff6666; }
.mob-modal-tag.neutral { background: rgba(255,165,0,0.3); color: #ffaa44; }
.mob-modal-tag.friendly { background: rgba(0,200,0,0.3); color: #66ff66; }
.mob-modal-tag.boss { background: rgba(147,51,234,0.4); color: #c084fc; }

.mob-modal-body {
  padding: 24px 32px 32px;
}

/* Stats bars */
.mob-modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.mob-stat-bar {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 16px;
}

.mob-stat-bar:last-child {
  grid-column: 1 / -1;
}

.mob-stat-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  opacity: 0.7;
}

.mob-stat-value {
  font-family: var(--pixel-font);
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--gold);
}

.mob-hp-bar, .mob-dmg-bar {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
}

.mob-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff3333, #ff6666);
  border-radius: 5px;
  transition: width 0.6s ease-out;
  width: 0%;
}

.mob-dmg-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff8800, #ffaa00);
  border-radius: 5px;
  transition: width 0.6s ease-out;
  width: 0%;
}

.mob-modal-section {
  margin-bottom: 20px;
}

.mob-modal-section h3 {
  font-family: var(--pixel-font);
  font-size: 11px;
  color: var(--diamond);
  margin-bottom: 10px;
}

.mob-modal-section p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.85;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .nav-links a {
    font-size: 11px;
    padding: 6px 10px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .worlds-carousel {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 30px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .mobs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .platforms {
    grid-template-columns: 1fr 1fr;
  }
}
