@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Silkscreen:wght@400;700&family=Changa:wght@500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');



:root {

  /* Minecraft Color Palette */

  --mc-grass: #5c8e32;

  --mc-grass-dark: #3a5c1f;

  --mc-grass-light: #7ec347;

  --mc-dirt: #866043;

  --mc-dirt-dark: #583d28;

  --mc-stone: #717171;

  --mc-stone-dark: #434343;

  --mc-stone-light: #999999;

  --mc-bedrock: #222222;

  --mc-diamond: #4dedf4;

  --mc-diamond-dark: #1ea7ad;

  --mc-gold: #fdb813;

  --mc-gold-dark: #c68a00;

  --mc-emerald: #17dd62;

  --mc-redstone: #e61a1a;

  --mc-wood: #a17441;

  --mc-wood-dark: #6e4921;

  --mc-gui-bg: #c6c6c6;

  --mc-gui-dark: #373737;

  --mc-gui-light: #ffffff;

  --mc-gui-shadow: #555555;



  --primary: #5c8e32;

  --primary-light: #7ec347;

  --primary-dark: #3a5c1f;

  --secondary: #e61a1a;

  --accent: #4dedf4;

  --success: #17dd62;

  --warning: #fdb813;

  --danger: #e61a1a;

  --purple: #9c27b0;



  --bg-gradient: #1a140f;

  --card-bg: #ffffff;

  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);

  --border-radius-lg: 10px;

  --border-radius-md: 8px;

  --border-radius-sm: 4px;

  --transition: all 0.15s ease;

}



* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: 'Tajawal', sans-serif;

  -webkit-tap-highlight-color: transparent;

}



/* Custom Minecraft Scrollbar */

::-webkit-scrollbar {

  width: 14px;

  height: 14px;

}



::-webkit-scrollbar-track {

  background: #2b1d14;

  border: 2px solid #1a100a;

}



::-webkit-scrollbar-thumb {

  background: #5c8e32;

  border: 2px solid #3a5c1f;

  box-shadow: inset 2px 2px 0 #7ec347, inset -2px -2px 0 #284013;

}



::-webkit-scrollbar-thumb:hover {

  background: #7ec347;

}



body {

  direction: rtl;

  text-align: right;

  background-color: #18120c;

  background-image:

    radial-gradient(circle at 50% 0%, rgba(92, 142, 50, 0.3) 0%, transparent 60%),

    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),

    repeating-linear-gradient(0deg, transparent, transparent 16px, rgba(0, 0, 0, 0.2) 16px, rgba(0, 0, 0, 0.2) 32px),

    repeating-linear-gradient(90deg, #261911, #261911 16px, #20140d 16px, #20140d 32px);

  min-height: 100vh;

  color: #1e293b;

  overflow-x: hidden;

  position: relative;

  display: flex;

  flex-direction: column;

}



/* Background Minecraft 3D Floating Voxel Blocks */

.bg-decorations {

  position: fixed;

  top: 0;

  left: 0;

  width: 100vw;

  height: 100vh;

  pointer-events: none;

  z-index: 0;

  overflow: hidden;

}



.floating-shape {

  position: absolute;

  opacity: 0.25;

  animation: floatBlock 25s infinite ease-in-out alternate;

  image-rendering: pixelated;

  border: 4px solid #1c1c1c;

  border-radius: 4px;

}



.shape-1 {

  width: 120px;

  height: 120px;

  background: linear-gradient(to bottom, #5c8e32 30%, #866043 30%);

  top: 50px;

  left: 40px;

  box-shadow: inset 4px 4px 0 #7ec347, inset -4px -4px 0 #583d28, 0 10px 25px rgba(0, 0, 0, 0.5);

  transform: rotate(15deg);

}



.shape-2 {

  width: 100px;

  height: 100px;

  background: radial-gradient(circle, #4dedf4 20%, #717171 21%);

  background-size: 25px 25px;

  bottom: 80px;

  right: 50px;

  box-shadow: inset 4px 4px 0 #999999, inset -4px -4px 0 #434343, 0 10px 25px rgba(0, 0, 0, 0.5);

  animation-duration: 30s;

  transform: rotate(-20deg);

}



.shape-3 {

  width: 80px;

  height: 80px;

  background: radial-gradient(circle, #e61a1a 25%, #717171 26%);

  background-size: 20px 20px;

  top: 45%;

  left: 85%;

  box-shadow: inset 4px 4px 0 #999999, inset -4px -4px 0 #434343, 0 10px 25px rgba(0, 0, 0, 0.5);

  animation-duration: 22s;

  transform: rotate(25deg);

}



@keyframes floatBlock {

  0% {

    transform: translateY(0) rotate(0deg);

  }



  50% {

    transform: translateY(-30px) rotate(10deg);

  }



  100% {

    transform: translateY(-15px) rotate(-10deg);

  }

}



/* Canvas Confetti */

#confettiCanvas {

  position: fixed;

  top: 0;

  left: 0;

  width: 100vw;

  height: 100vh;

  pointer-events: none;

  z-index: 9999;

}



/* App Container */

.app-container {

  position: relative;

  z-index: 1;

  max-width: 1300px;

  width: 100%;

  margin: 0 auto;

  padding: 16px 20px 40px;

  display: flex;

  flex-direction: column;

  min-height: 100vh;

}



/* ========================================================

   MINECRAFT HERO HEADER

   ======================================================== */

.hero-header.mc-hero-header {

  background: linear-gradient(135deg, rgba(16, 26, 12, 0.95) 0%, rgba(15, 23, 42, 0.92) 100%),

    url('../images/2.png') center/cover no-repeat;

  border: 4px solid #373737;

  outline: 3px solid #1a1a1a;

  box-shadow: inset 4px 4px 0 #8b8b8b, inset -4px -4px 0 #222222, 0 15px 35px rgba(0, 0, 0, 0.7);

  border-radius: 8px;

  padding: 22px 28px;

  color: white;

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 20px;

  position: relative;

  overflow: hidden;

  margin-bottom: 18px;

}







.hero-profile {

  display: flex;

  align-items: center;

  gap: 20px;

}



/* Minecraft Steve Avatar for Mimi */

.minecraft-avatar-wrap {

  position: relative;

  width: 82px;

  height: 82px;

  background: #373737;

  border: 4px solid #fff;

  outline: 3px solid #1b1b1b;

  border-radius: 6px;

  cursor: pointer;

  box-shadow: inset 3px 3px 0 #8b8b8b, inset -3px -3px 0 #1b1b1b, 0 6px 15px rgba(0, 0, 0, 0.6);

  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;

  flex-shrink: 0;

}



.minecraft-avatar-wrap:hover {

  transform: scale(1.08) rotate(3deg);

  box-shadow: 0 0 25px rgba(77, 237, 244, 0.8), inset 3px 3px 0 #ffffff;

}



.minecraft-avatar-img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  image-rendering: pixelated;

  border-radius: 2px;

  display: block;

}



.mc-avatar-crown {

  position: absolute;

  top: -16px;

  right: -10px;

  font-size: 26px;

  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));

  animation: crownBounce 2.5s infinite ease-in-out;

  pointer-events: none;

}



@keyframes crownBounce {



  0%,

  100% {

    transform: translateY(0);

  }



  50% {

    transform: translateY(-5px);

  }

}



.hero-title h1 {

  font-family: 'Changa', sans-serif;

  font-size: 1.8rem;

  font-weight: 900;

  color: #fff;

  text-shadow: none !important;

  margin-bottom: 4px;

}



.hero-title p {

  font-size: 0.95rem;

  color: #c6c6c6;

  margin-bottom: 10px;

}



.mc-edition-tag {

  display: inline-block;

  font-family: 'Press Start 2P', monospace;

  font-size: 9px;

  background: #5c8e32;

  color: #fff;

  padding: 3px 8px;

  border: 2px solid #3a5c1f;

  box-shadow: inset 1px 1px 0 #7ec347, inset -1px -1px 0 #203510;

  margin-bottom: 6px;

  letter-spacing: 1px;

}



/* XP Bar */

.mc-xp-container {

  min-width: 260px;

  max-width: 380px;

}



.mc-xp-bar {

  width: 100%;

  height: 10px;

  background: #111;

  border: 2px solid #373737;

  border-radius: 2px;

  overflow: hidden;

  position: relative;

  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.8);

}



.mc-xp-bar-fill {

  width: 85%;

  height: 100%;

  background: linear-gradient(to right, #17dd62, #7ec347);

  box-shadow: 0 0 8px #17dd62;

  transition: width 0.5s ease;

}



.mc-xp-labels {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 5px;

  gap: 10px;

}



.mc-level-tag {

  font-size: 12px;

  color: #a3e635;

  font-weight: 700;

}



.mc-level-badge {

  font-family: 'Press Start 2P', monospace;

  font-size: 11px;

  color: #7ec347;

  text-shadow: none !important;

  font-weight: bold;

}



/* Stats Badges */

.stats-badges {

  display: flex;

  align-items: center;

  gap: 12px;

  flex-wrap: wrap;

}



.mc-stat-item {

  background: rgba(30, 20, 14, 0.9);

  border: 3px solid #583d28;

  outline: 2px solid #20140d;

  box-shadow: inset 2px 2px 0 #866043, inset -2px -2px 0 #3a2516, 0 4px 8px rgba(0, 0, 0, 0.5);

  border-radius: 4px;

  padding: 8px 14px;

  display: flex;

  align-items: center;

  gap: 10px;

  color: #fff;

  transition: transform 0.15s ease;

}



.mc-stat-item:hover {

  transform: translateY(-2px);

  border-color: #fdb813;

}



.stat-icon {

  font-size: 1.5rem;

  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));

}



.stat-val {

  font-family: 'Press Start 2P', monospace;

  font-size: 13px;

  color: #4dedf4;

  text-shadow: none !important;

}



/* زر العب مع ستيف */

.mc-btn-play-steve {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: linear-gradient(135deg, #16a34a, #15803d);

  color: #fff;

  text-decoration: none;

  font-family: 'Changa', sans-serif;

  font-weight: 800;

  font-size: 14px;

  padding: 9px 16px;

  border-radius: 4px;

  border: 3px solid #14532d;

  box-shadow: inset 2px 2px 0 #4ade80, inset -2px -2px 0 #052e16, 0 4px 10px rgba(0, 0, 0, 0.4);

  transition: all 0.15s ease;

  cursor: pointer;

}



.mc-btn-play-steve:hover {

  background: linear-gradient(135deg, #22c55e, #16a34a);

  transform: translateY(-2px);

  box-shadow: 0 0 15px rgba(34, 197, 94, 0.6), inset 2px 2px 0 #86efac;

}



.mc-btn-sound {

  background: #373737;

  border: 3px solid #1c1c1c;

  box-shadow: inset 2px 2px 0 #8b8b8b, inset -2px -2px 0 #1b1b1b;

  border-radius: 4px;

  color: white;

  width: 44px;

  height: 44px;

  font-size: 1.2rem;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: all 0.15s ease;

}



.mc-btn-sound:hover {

  background: #4a4a4a;

  transform: translateY(-2px);

}



/* ========================================================

   MINECRAFT NAVIGATION BAR (QUEST NAV)

   ======================================================== */

.locker-room {

  background: linear-gradient(to bottom, #2b1f16, #1e150f);

  border: 4px solid #583d28;

  outline: 3px solid #160e0a;

  box-shadow: inset 3px 3px 0 #866043, inset -3px -3px 0 #140d07, 0 8px 20px rgba(0, 0, 0, 0.6);

  border-radius: 8px;

  padding: 16px 20px;

  margin-bottom: 20px;

  z-index: 10;

}



.nav-level {

  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 12px;

  width: 100%;

}



.nav-title {

  width: 100%;

  text-align: center;

  color: #fdb813;

  font-family: 'Changa', sans-serif;

  font-weight: 800;

  font-size: 1.3rem;

  text-shadow: none !important;

  padding-bottom: 10px;

  margin-bottom: 12px;

  border-bottom: 2.5px solid #f0abfc;

}



.nav-btn {

  background: #717171;

  color: #ffffff;

  border: 3px solid #222222;

  outline: 2px solid #111111;

  box-shadow: inset 2px 2px 0 #999999, inset -2px -2px 0 #373737, 0 4px 6px rgba(0, 0, 0, 0.3);

  padding: 10px 18px;

  border-radius: 4px;

  font-family: 'Tajawal', sans-serif;

  font-size: 1.05rem;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.15s ease;

  display: inline-flex;

  align-items: center;

  gap: 10px;

  text-shadow: none !important;

}



.nav-btn:hover {

  background: #8b8b8b;

  transform: translateY(-2px);

  box-shadow: inset 2px 2px 0 #ffffff, inset -2px -2px 0 #4a4a4a, 0 6px 12px rgba(0, 0, 0, 0.4);

}



.nav-btn:active,

.nav-btn.active {

  background: #373737 !important;

  color: #4dedf4 !important;

  box-shadow: inset 3px 3px 0 #1b1b1b, inset -3px -3px 0 #555555 !important;

  transform: translateY(1px);

}



/* Specific Minecraft Button Styles */

.mc-home-btn {

  background: linear-gradient(135deg, #1e3a8a, #172554) !important;

  border-color: #0f172a !important;

  box-shadow: inset 2px 2px 0 #3b82f6, inset -2px -2px 0 #0f172a !important;

  color: #93c5fd !important;

}



.mc-home-btn:hover {

  background: linear-gradient(135deg, #2563eb, #1e40af) !important;

  color: #fff !important;

}



.unit-btn {

  background: linear-gradient(135deg, #5c8e32, #3a5c1f);

  border-color: #203510;

  box-shadow: inset 2px 2px 0 #7ec347, inset -2px -2px 0 #1b2e0e;

  font-size: 1.1rem;

}



.unit-btn:hover {

  background: linear-gradient(135deg, #7ec347, #5c8e32);

}



.chapter-btn {

  background: linear-gradient(135deg, #866043, #583d28);

  border-color: #2b1d14;

  box-shadow: inset 2px 2px 0 #a17441, inset -2px -2px 0 #3a2516;

}



.chapter-btn:hover {

  background: linear-gradient(135deg, #a17441, #866043);

}



.lesson-btn {

  background: #475569;

  border-color: #1e293b;

  box-shadow: inset 2px 2px 0 #64748b, inset -2px -2px 0 #0f172a;

}



.lesson-btn:hover {

  background: #64748b;

}



.match-btn {

  background: linear-gradient(135deg, #e61a1a, #991b1b) !important;

  border-color: #450a0a !important;

  box-shadow: inset 2px 2px 0 #f87171, inset -2px -2px 0 #7f1d1d !important;

  color: #fff !important;

}



.match-btn:hover {

  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;

  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6), inset 2px 2px 0 #fca5a5 !important;

}



.final-exam-btn {

  font-family: 'Changa', sans-serif !important;

  font-size: 1.35rem !important;

  font-weight: 900 !important;

  background: linear-gradient(135deg, #f59e0b, #d97706) !important;

  border-color: #78350f !important;

  box-shadow: inset 2px 2px 0 #fde68a, inset -2px -2px 0 #92400e, 0 6px 15px rgba(245, 158, 11, 0.4) !important;

  color: #fff !important;

  padding: 12px 28px !important;

}



.final-exam-btn:hover {

  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;

  box-shadow: 0 0 25px rgba(251, 191, 36, 0.7), inset 2px 2px 0 #fef08a !important;

}



.back-btn {

  background: #373737 !important;

  border-color: #1b1b1b !important;

  box-shadow: inset 2px 2px 0 #717171, inset -2px -2px 0 #1b1b1b !important;

  margin-bottom: 12px;

}



.back-btn:hover {

  background: #4f4f4f !important;

}



.chapter-lessons {

  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  width: 100%;

}



.hidden {

  display: none !important;

}



/* ========================================================

   MAIN CONTENT AREA (PARCHMENT / INVENTORY UI)

   ======================================================== */

.pitch.mc-main-area {

  flex-grow: 1;

  background: transparent;

  background-image:

    radial-gradient(circle at 50% 50%, rgba(92, 142, 50, 0.15) 0%, transparent 80%),

    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0px, rgba(0, 0, 0, 0.4) 32px, transparent 32px, transparent 64px),

    repeating-linear-gradient(90deg, #1e1711 0px, #1e1711 32px, #16100b 32px, #16100b 64px);

  position: relative;

  padding: 30px 20px;

  display: flex;

  justify-content: center;

  align-items: flex-start;

  border: 4px solid #3a281c;

  border-radius: 8px;

  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);

}



.content-container.mc-parchment {

  background: #fbf7ee;

  background-image: radial-gradient(#e9dfcc 1px, transparent 1px);

  background-size: 16px 16px;

  border: 5px solid #866043;

  outline: 4px solid #372417;

  border-radius: 8px;

  padding: 32px;

  max-width: 950px;

  width: 100%;

  z-index: 5;

  box-shadow: inset 4px 4px 0 #fff8ec, inset -4px -4px 0 #d9c8af, 0 15px 35px rgba(0, 0, 0, 0.7);

  position: relative;

  color: #1e293b;

}



/* Welcome Screen */

.welcome-screen {

  text-align: center;

  padding: 40px 15px;

}



.mc-welcome-badge {

  display: inline-block;

  font-family: 'Press Start 2P', monospace;

  font-size: 11px;

  background: #5c8e32;

  color: #fff;

  padding: 6px 14px;

  border: 2px solid #284013;

  box-shadow: inset 2px 2px 0 #7ec347, inset -2px -2px 0 #1b2e0e;

  border-radius: 4px;

  margin-bottom: 16px;

}



.welcome-screen h1 {

  font-family: 'Changa', sans-serif;

  font-size: 2.1rem;

  font-weight: 900;

  color: #2b1a0e;

  margin-bottom: 15px;

  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);

}



.welcome-screen p {

  font-size: 1.25rem;

  line-height: 1.8;

  color: #4b3621;

  max-width: 700px;

  margin: 0 auto;

}



/* Lesson Content Styles */

.lesson-card {

  animation: fadeIn 0.4s ease-in-out;

}



.lesson-title {

  color: #7e22ce !important;

  font-family: 'Marhey', 'Changa', 'Tajawal', sans-serif !important;

  font-size: 1.85rem !important;

  font-weight: 900 !important;

  border-bottom: 3.5px solid #f0abfc !important;

  padding-bottom: 12px !important;

  margin-bottom: 24px !important;

  display: flex !important;

  align-items: center !important;

  gap: 12px !important;

  text-shadow: none !important;

}



.lesson-section {

  background: #ffffff !important;

  border: 2px solid #f0abfc !important;

  border-radius: 24px !important;

  padding: 24px !important;

  margin-bottom: 24px !important;

  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.12) !important;

}



.lesson-section h3 {

  font-family: 'Changa', sans-serif;

  color: #1e3a8a;

  font-size: 1.45rem;

  font-weight: 800;

  margin-bottom: 14px;

  display: flex;

  align-items: center;

  gap: 8px;

}



.lesson-section p,

.lesson-section li {

  font-size: 1.15rem;

  line-height: 1.85;

  margin-bottom: 12px;

  color: #1f2937;

}



.lesson-section ul,

.lesson-section ol {

  padding-right: 25px;

  margin-bottom: 14px;

}



.highlight {

  background: #fef08a;

  border: 1px solid #fde047;

  padding: 2px 8px;

  border-radius: 4px;

  font-weight: bold;

  color: #854d0e;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

}



/* Map SVG Container */

.svg-container {

  width: 100%;

  display: flex;

  justify-content: center;

  margin: 22px 0;

  background-color: #f0fdf4;

  border-radius: 8px;

  padding: 18px;

  border: 3px dashed #16a34a;

  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);

}



svg {

  max-width: 100%;

  height: auto;

}



.interactive-path {

  transition: fill 0.2s, transform 0.2s;

  cursor: pointer;

}



.interactive-path:hover {

  fill: #fdb813 !important;

  transform: scale(1.02);

}



/* ========================================================
   9. QUIZ STYLES (UNICORN MAGIC CHALLENGE 🦄✨)
   ======================================================== */
.quiz-container {
  animation: fadeIn 0.4s ease-in-out;
}

.quiz-header {
  text-align: center;
  margin-bottom: 25px;
}

.quiz-header h2 {
  font-family: 'Changa', sans-serif;
  background: linear-gradient(135deg, #ec4899, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.2rem;
  font-weight: 900;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(236, 72, 153, 0.15));
}

.question-card {
  background: #ffffff;
  border: 2.5px solid #e9d5ff;
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.12);
}

.question-text {
  font-family: 'Changa', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #581c87;
  margin-bottom: 24px;
  line-height: 1.6;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.option-btn {
  background: #ffffff;
  color: #4c1d95;
  border: 2.5px solid #e9d5ff;
  outline: none;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.1);
  padding: 18px 20px;
  border-radius: 20px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-btn:hover {
  background: linear-gradient(135deg, #fdf4ff, #fae8ff);
  border-color: #c084fc;
  color: #7e22ce;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 22px rgba(168, 85, 247, 0.22);
}

.option-btn.correct {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  color: #065f46 !important;
  border-color: #10b981 !important;
  outline: none !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5) !important;
  transform: scale(1.04);
}

.option-btn.wrong {
  background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
  color: #991b1b !important;
  border-color: #f87171 !important;
  outline: none !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35) !important;
  animation: unicornShake 0.4s ease-in-out;
}

/* ========================================================
   10. FEEDBACK MODAL (UNICORN MAGIC REWARDS 🦄✨)
   ======================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal-content.mc-feedback-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 244, 255, 0.98)) !important;
  border: 3.5px solid #f0abfc !important;
  outline: none !important;
  box-shadow: 0 25px 60px rgba(168, 85, 247, 0.25) !important;
  padding: 35px 45px;
  border-radius: 28px !important;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #4c1d95 !important;
  min-width: 320px;
}

.modal:not(.hidden) .modal-content.mc-feedback-box {
  transform: scale(1);
}

.mc-feedback-header {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #9333ea !important;
  letter-spacing: 0 !important;
  margin-bottom: 14px;
}

.mc-feedback-box h2 {
  font-family: 'Changa', sans-serif !important;
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 16px;
  text-shadow: none !important;
  color: #7e22ce !important;
}

.mc-feedback-box i {
  font-size: 4.5rem;
  filter: drop-shadow(0 4px 10px rgba(168, 85, 247, 0.3));
}

.goal-feedback h2 {
  color: #059669 !important;
}

.goal-feedback i {
  color: #ec4899 !important;
  filter: drop-shadow(0 4px 12px rgba(236, 72, 153, 0.4));
  animation: unicornDiamondBounce 0.8s ease-in-out infinite alternate;
}

.miss-feedback h2 {
  color: #dc2626 !important;
}

.miss-feedback i {
  color: #f43f5e !important;
  animation: unicornWrongWobble 0.4s ease-in-out infinite;
}

@keyframes unicornDiamondBounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-10px) scale(1.1); }
}

@keyframes unicornWrongWobble {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(-3deg); }
  75% { transform: scale(1.05) rotate(3deg); }
}

/* ========================================================
   11. MINI-GAMES MODAL & ACTIVITIES (UNICORN MAGIC THEME 🦄✨)
   ======================================================== */

.minigame-content.mc-minigame-box,
.minigame-content.unicorn-minigame-box {
  width: 92% !important;
  max-width: 860px !important;
  min-height: 520px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 244, 255, 0.98), rgba(240, 249, 255, 0.95)) !important;
  border: 4px solid #f0abfc !important;
  outline: none !important;
  border-radius: 32px !important;
  position: relative !important;
  overflow: hidden !important;
  color: #4c1d95 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 32px 28px !important;
  box-shadow: 0 25px 60px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.mc-minigame-tag,
.unicorn-minigame-tag {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #9333ea !important;
  background: linear-gradient(135deg, #fdf4ff, #fae8ff) !important;
  border: 1.5px solid #f0abfc !important;
  border-radius: 20px !important;
  padding: 4px 18px !important;
  display: inline-block !important;
  margin: 0 auto 10px auto !important;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.12) !important;
}

#minigame-title {
  color: #7e22ce !important;
  background: linear-gradient(135deg, #ec4899, #9333ea) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-family: 'Changa', sans-serif !important;
  font-size: 2.1rem !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  margin-bottom: 20px !important;
  text-align: center !important;
  filter: drop-shadow(0 2px 4px rgba(236, 72, 153, 0.15)) !important;
}

.close-btn.mc-close-btn,
.close-btn.unicorn-close-btn {
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  background: #fdf4ff !important;
  border: 2px solid #f5d0fe !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2) !important;
  color: #9333ea !important;
  border-radius: 50% !important;
  width: 42px !important;
  height: 42px !important;
  cursor: pointer !important;
  z-index: 10 !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.close-btn.mc-close-btn:hover,
.close-btn.unicorn-close-btn:hover {
  background: #fae8ff !important;
  color: #7e22ce !important;
  transform: scale(1.1) rotate(90deg) !important;
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3) !important;
}

.mini-game-btn {
  background: linear-gradient(135deg, #ec4899, #a855f7) !important;
  color: #ffffff !important;
  border: 2px solid #fbcfe8 !important;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.28) !important;
  padding: 12px 22px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 10px 8px !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.mini-game-btn:hover {
  background: linear-gradient(135deg, #f43f5e, #9333ea) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4) !important;
}

.gameplay-area {
  position: relative !important;
  width: 100% !important;
  min-height: 400px !important;
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.95) 0%, rgba(253, 242, 248, 0.95) 100%) !important;
  border: 2.5px solid #e9d5ff !important;
  border-radius: 26px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 24px 20px !important;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.08) !important;
}

.unicorn-game-header-tag,
.mc-game-header-tag {
  background: linear-gradient(135deg, #ffffff, #fdf4ff) !important;
  border: 1.5px solid #f0abfc !important;
  color: #7e22ce !important;
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  border-radius: 20px !important;
  padding: 6px 22px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 3px 10px rgba(168, 85, 247, 0.12) !important;
}

.question-banner {
  background: #ffffff !important;
  border: 2.5px solid #d8b4fe !important;
  color: #581c87 !important;
  padding: 14px 28px !important;
  border-radius: 22px !important;
  font-family: 'Changa', sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  margin-bottom: 25px !important;
  text-align: center !important;
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.12) !important;
  max-width: 95% !important;
}

/* Base Option Card Styling - Pastel Unicorn */
.target-box,
.penalty-ball-opt,
.glove-btn,
.teammate,
.cup-btn,
.lane-opt,
.cone-opt,
.unicorn-target-card,
.unicorn-crystal-card,
.unicorn-shield-card,
.unicorn-ally-card,
.unicorn-rainbow-lane,
.unicorn-cloud-pillar,
.unicorn-surprise-box {
  background: #ffffff !important;
  color: #4c1d95 !important;
  border: 2.5px solid #e9d5ff !important;
  outline: none !important;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.12) !important;
  border-radius: 20px !important;
  padding: 18px 20px !important;
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin: 6px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: center !important;
}

.target-box:hover,
.penalty-ball-opt:hover,
.glove-btn:hover,
.teammate:hover,
.cup-btn:hover,
.lane-opt:hover,
.cone-opt:hover,
.unicorn-target-card:hover,
.unicorn-crystal-card:hover,
.unicorn-shield-card:hover,
.unicorn-ally-card:hover,
.unicorn-rainbow-lane:hover,
.unicorn-cloud-pillar:hover,
.unicorn-surprise-box:hover {
  background: linear-gradient(135deg, #fdf4ff, #fae8ff) !important;
  border-color: #c084fc !important;
  color: #7e22ce !important;
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.25) !important;
}

/* 1. Archery Targets */
.mc-archery-targets-grid,
.unicorn-targets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 15px 0;
  z-index: 2;
}

.unicorn-target-bullseye,
.mc-target-bullseye {
  font-size: 2.2rem;
  animation: targetPulse 2s infinite ease-in-out;
}

@keyframes targetPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.mc-archery-bow-station,
.unicorn-bow-station {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.unicorn-bow-icon,
.mc-bow-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 8px rgba(236, 72, 153, 0.3));
}

.unicorn-arrow,
.mc-arrow {
  position: absolute;
  font-size: 2.2rem;
  color: #fbbf24;
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  filter: drop-shadow(0 0 10px #f59e0b);
}

/* 2. Crystal Mining / Gathering */
.mc-mining-ores-grid,
.unicorn-crystals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 15px 0;
  z-index: 2;
}

.unicorn-crystal-cube,
.mc-ore-block-cube {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #fdf4ff, #fae8ff);
  border: 2px solid #f0abfc;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.unicorn-tool-station,
.mc-mining-tool-station {
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 10px rgba(168, 85, 247, 0.4));
  margin-top: 10px;
}

/* 3. Rainbow Shield Defense (goalkeeper) */
.unicorn-incoming-magic-zone,
.mc-incoming-fire-zone {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.magic-star-icon,
.mc-incoming-ball .fire-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 18px rgba(236, 72, 153, 0.5));
  animation: cometFlicker 0.8s infinite alternate ease-in-out;
}

@keyframes cometFlicker {
  0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 12px #c084fc); }
  100% { transform: scale(1.15) translateY(-5px); filter: drop-shadow(0 0 24px #f472b6); }
}

.unicorn-shields-container,
.mc-shields-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 15px 0;
  z-index: 2;
}

.unicorn-shield-card,
.mc-shield-card {
  background: #ffffff !important;
  border: 2.5px solid #f0abfc !important;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.12) !important;
  border-radius: 20px !important;
  padding: 18px 20px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: #4c1d95 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

.unicorn-shield-card:hover,
.mc-shield-card:hover {
  background: linear-gradient(135deg, #fdf4ff, #fae8ff) !important;
  transform: translateY(-4px) scale(1.02) !important;
  border-color: #ec4899 !important;
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.28) !important;
  color: #7e22ce !important;
}

.unicorn-shield-emblem,
.mc-shield-emblem {
  font-size: 2.6rem;
  filter: drop-shadow(0 4px 8px rgba(236, 72, 153, 0.25));
}

.unicorn-shield-label,
.mc-shield-label {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #4c1d95 !important;
}

/* 4. Rainbow Portal & Unicorn Allies */
.unicorn-portal-active-vortex,
.mc-portal-active-vortex {
  margin: 10px 0;
}

.unicorn-vortex-portal,
.mc-vortex-portal {
  font-size: 3.5rem;
  animation: portalSpin 10s infinite linear;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

@keyframes portalSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.unicorn-allies-field,
.mc-allies-field {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  z-index: 2;
}

.unicorn-bubble,
.mc-scroll-bubble {
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
  color: #4c1d95;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid #e9d5ff;
  font-weight: 800;
  font-size: 1.1rem;
  width: 100%;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.08);
}

.unicorn-ally-avatar,
.mc-ally-avatar {
  font-family: 'Changa', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #9333ea;
}

.unicorn-magic-orb,
.mc-portal-caster {
  font-size: 2.5rem;
  margin-top: 10px;
  filter: drop-shadow(0 0 15px rgba(192, 132, 252, 0.6));
}

/* 5. Rainbow Fast Track & Carriage */
.unicorn-lanes-field,
.mc-rails-field {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 15px 0;
  z-index: 2;
}

.unicorn-rainbow-track,
.mc-rail-track-line {
  color: #c084fc;
  font-size: 0.95rem;
  letter-spacing: 2px;
  font-weight: bold;
}

.unicorn-lane-gift,
.mc-rail-chest {
  font-size: 2rem;
  filter: drop-shadow(0 2px 6px rgba(236, 72, 153, 0.3));
}

.unicorn-carriage-hero,
.mc-minecart-station {
  font-size: 3rem;
  filter: drop-shadow(0 4px 10px rgba(168, 85, 247, 0.3));
}

/* 6. Rainbow Cloud Parkour */
.unicorn-clouds-field,
.mc-parkour-field {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 15px 0;
  z-index: 2;
}

.unicorn-pillar-cap,
.mc-pillar-cap {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #9333ea;
  background: linear-gradient(135deg, #fdf4ff, #fae8ff);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #f0abfc;
}

.jumper-unicorn,
.mc-parkour-steve {
  font-size: 3rem;
  filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.35));
}

/* 7. Unicorn Surprise Boxes */
.unicorn-surprise-grid,
.mc-lucky-chests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 15px 0;
  z-index: 2;
}

.unicorn-surprise-cube,
.mc-lucky-cube {
  font-size: 2.6rem;
  animation: luckyHop 2s infinite ease-in-out;
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

@keyframes luckyHop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.unicorn-star-beacon,
.mc-beacon-star {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 20px #facc15);
  animation: beaconPulse 1.5s infinite alternate ease-in-out;
}

@keyframes beaconPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 15px #facc15); }
  100% { transform: scale(1.2); filter: drop-shadow(0 0 30px #c084fc); }
}

/* Feedback & Win Modal Cards */
.minigame-question-card,
.minigame-question-card.mc-win-card,
.minigame-question-card.unicorn-win-card {
  background: linear-gradient(135deg, #ffffff, #fdf4ff) !important;
  border: 3px solid #f0abfc !important;
  color: #4c1d95 !important;
  padding: 30px 24px !important;
  border-radius: 28px !important;
  margin: 20px auto !important;
  width: 90% !important;
  text-align: center !important;
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.18) !important;
}

.unicorn-win-icon,
.mc-win-icon {
  font-size: 3.5rem !important;
  margin-bottom: 12px !important;
  filter: drop-shadow(0 4px 10px rgba(168, 85, 247, 0.3)) !important;
}

.modal-content.mc-feedback-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 244, 255, 0.98)) !important;
  border: 3px solid #f0abfc !important;
  outline: none !important;
  border-radius: 28px !important;
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.25) !important;
  color: #4c1d95 !important;
  padding: 26px !important;
}

.mc-feedback-header {
  color: #9333ea !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
}

#feedback-message {
  color: #7e22ce !important;
  font-family: 'Changa', sans-serif !important;
  font-weight: 900 !important;
}

#feedback-icon {
  color: #ec4899 !important;
  filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.4)) !important;
}

/* Success / Failure Animations */
.unicorn-correct-pulse,
.mc-correct-pulse {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  color: #065f46 !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5) !important;
  transform: scale(1.05) !important;
}

.unicorn-wrong-shake,
.mc-wrong-shake {
  background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
  color: #991b1b !important;
  border-color: #f87171 !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35) !important;
  animation: unicornShake 0.4s ease-in-out !important;
}

@keyframes unicornShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px) rotate(-1deg); }
  75% { transform: translateX(8px) rotate(1deg); }
}

/* Interactive Action Animations */
.arrow-shot-to-0 {
  transform: translate(-80px, -150px) rotate(-35deg) !important;
  opacity: 1 !important;
}

.arrow-shot-to-1 {
  transform: translate(0px, -160px) rotate(0deg) !important;
  opacity: 1 !important;
}

.arrow-shot-to-2 {
  transform: translate(80px, -150px) rotate(35deg) !important;
  opacity: 1 !important;
}

.ore-gem-burst {
  animation: oreBurst 0.6s ease-out;
}

@keyframes oreBurst {
  0% { transform: scale(1); }
  50% { transform: scale(1.22); filter: brightness(1.4) drop-shadow(0 0 20px #f0abfc); }
  100% { transform: scale(1.05); }
}

.fireball-deflected {
  transform: translateY(-130px) scale(0.3) !important;
  filter: drop-shadow(0 0 35px #a855f7) !important;
  opacity: 0 !important;
  transition: all 0.6s ease-out !important;
}

.eye-fly-to-0 {
  transform: translate(-100px, -120px) scale(1.3) !important;
  transition: all 0.5s ease-out;
}

.eye-fly-to-1 {
  transform: translate(0px, -140px) scale(1.3) !important;
  transition: all 0.5s ease-out;
}

.eye-fly-to-2 {
  transform: translate(100px, -120px) scale(1.3) !important;
  transition: all 0.5s ease-out;
}

.cart-run-to-0 {
  transform: translate(-100px, -80px) !important;
  transition: all 0.5s ease-out;
}

.cart-run-to-1 {
  transform: translate(0px, -100px) !important;
  transition: all 0.5s ease-out;
}

.cart-run-to-2 {
  transform: translate(100px, -80px) !important;
  transition: all 0.5s ease-out;
}

.jumper-leap-to-0 {
  transform: translate(-90px, -70px) scale(1.1) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jumper-leap-to-1 {
  transform: translate(0px, -90px) scale(1.1) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jumper-leap-to-2 {
  transform: translate(90px, -70px) scale(1.1) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lucky-open-burst {
  animation: luckyBurst 0.6s ease-out;
}

@keyframes luckyBurst {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(5deg); filter: brightness(1.5) drop-shadow(0 0 25px #fde047); }
  100% { transform: scale(1.05); }
}

/* Celebration Modal (Steve / Unicorn Dance) */
.steve-dance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.steve-dance-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.steve-dance-modal {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 244, 255, 0.98)) !important;
  border: 4px solid #f0abfc !important;
  outline: none !important;
  box-shadow: 0 25px 60px rgba(168, 85, 247, 0.3) !important;
  border-radius: 32px !important;
  padding: 30px 40px !important;
  max-width: 520px !important;
  width: 90% !important;
  text-align: center !important;
  color: #4c1d95 !important;
  position: relative !important;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.steve-dance-overlay.active .steve-dance-modal {
  transform: scale(1);
}

.steve-dance-close {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  background: #fdf4ff !important;
  border: 2px solid #f5d0fe !important;
  color: #9333ea !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  cursor: pointer !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}


/* ========================================================

   INTERACTIVE SVG & RICH INFORMATION DISPLAY SYSTEM 🦄✨

   ======================================================== */

.interactive-svg-wrap {

  width: 100%;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  margin: 20px 0;

  background: linear-gradient(135deg, rgba(253, 244, 255, 0.95), rgba(245, 243, 255, 0.95), rgba(240, 253, 244, 0.85));

  border-radius: 26px;

  padding: 22px 18px;

  border: 2px solid #f0abfc;

  box-shadow: 0 10px 30px rgba(192, 132, 252, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);

  position: relative;

  overflow: hidden;

  transition: all 0.3s ease;

}



.interactive-svg-wrap:hover {

  border-color: #ec4899;

  box-shadow: 0 14px 36px rgba(236, 72, 153, 0.22);

}



.interactive-svg-title {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  font-family: 'Marhey', 'Changa', sans-serif;

  font-size: 1.15rem;

  font-weight: 800;

  color: #7e22ce;

  background: rgba(255, 255, 255, 0.9);

  padding: 6px 18px;

  border-radius: 20px;

  border: 1.5px solid #f0abfc;

  margin-bottom: 14px;

  box-shadow: 0 3px 10px rgba(192, 132, 252, 0.12);

}



.interactive-svg-wrap svg {

  max-width: 100%;

  height: auto;

  border-radius: 18px;

  filter: drop-shadow(0 4px 12px rgba(147, 51, 234, 0.08));

}



.interactive-hotspot {
  cursor: pointer;
  transition: opacity 0.35s ease, filter 0.35s ease, stroke 0.25s ease, stroke-width 0.25s ease;
}

.interactive-hotspot:hover {
  filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.35)) brightness(1.05);
}

.interactive-hotspot.active {
  opacity: 1 !important;
  filter: drop-shadow(0 4px 14px rgba(147, 51, 234, 0.45)) brightness(1.06) !important;
}

path.interactive-hotspot.active,
rect.interactive-hotspot.active,
circle.interactive-hotspot.active,
polygon.interactive-hotspot.active,
g.interactive-hotspot.active > path,
g.interactive-hotspot.active > circle,
g.interactive-hotspot.active > polygon,
g.interactive-hotspot.active > ellipse {
  stroke: #9333ea !important;
  stroke-width: 2.8px !important;
}

g.interactive-hotspot.active > rect {
  stroke: #9333ea !important;
  stroke-width: 1.6px !important;
}

.interactive-hotspot.dimmed {
  opacity: 0.18 !important;
  filter: grayscale(0.6) !important;
  transition: all 0.35s ease !important;
}

.interactive-info-panel {

  width: 100%;

  max-width: 640px;

  margin-top: 16px;

  background: #ffffff;

  border: 2px solid #f0abfc;

  border-radius: 22px;

  padding: 16px 22px;

  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.18);

  text-align: center;

  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  animation: popIn 0.35s ease-out;

}



@keyframes popIn {

  0% { transform: scale(0.95); opacity: 0; }

  100% { transform: scale(1); opacity: 1; }

}



.interactive-info-header {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  font-family: 'Changa', 'Marhey', sans-serif;

  font-size: 1.25rem;

  font-weight: 900;

  color: #9333ea;

  margin-bottom: 6px;

}



.interactive-info-desc {

  font-family: 'Tajawal', sans-serif;

  font-size: 1.05rem;

  color: #475569;

  line-height: 1.7;

  font-weight: 600;

}



.interactive-tabs-row {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  justify-content: center;

  margin: 12px 0 16px 0;

}



.interactive-pill-btn {

  background: #ffffff;

  border: 1.5px solid #f0abfc;

  color: #7e22ce;

  font-family: 'Changa', sans-serif;

  font-size: 12.5px;

  font-weight: 800;

  padding: 6px 16px;

  border-radius: 20px;

  cursor: pointer;

  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);

  box-shadow: 0 3px 10px rgba(192, 132, 252, 0.12);

  display: inline-flex;

  align-items: center;

  gap: 6px;

}



.interactive-pill-btn:hover {

  transform: translateY(-2px) scale(1.03);

  background: linear-gradient(135deg, #fdf4ff, #fae8ff);

  border-color: #ec4899;

  color: #db2777;

  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25);

}



.interactive-pill-btn.active {

  background: linear-gradient(135deg, #ec4899 0%, #c084fc 100%);

  color: #ffffff;

  border-color: #ffffff;

  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);

  transform: translateY(-2px) scale(1.05);

}



.magic-fact-card {

  background: linear-gradient(135deg, #ffffff 0%, #fdf4ff 100%);

  border: 2px dashed #f0abfc;

  border-radius: 22px;

  padding: 16px 20px;

  margin: 16px 0;

  box-shadow: 0 6px 20px rgba(192, 132, 252, 0.12);

  transition: all 0.25s ease;

}



.magic-fact-card:hover {

  border-color: #ec4899;

  transform: translateY(-2px);

  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2);

}



.magic-fact-trigger {

  width: 100%;

  background: transparent;

  border: none;

  display: flex;

  align-items: center;

  justify-content: space-between;

  cursor: pointer;

  font-family: 'Marhey', 'Changa', sans-serif;

  font-size: 1.1rem;

  font-weight: 800;

  color: #9333ea;

  padding: 4px;

}



.magic-fact-content {

  margin-top: 10px;

  padding-top: 10px;

  border-top: 1.5px solid #f5d0fe;

  font-family: 'Tajawal', sans-serif;

  font-size: 1.05rem;

  color: #475569;

  line-height: 1.7;

  animation: fadeIn 0.3s ease;

}



.interactive-hint {

  font-family: 'Tajawal', sans-serif;

  font-size: 12px;

  font-weight: 700;

  color: #a855f7;

  display: inline-flex;

  align-items: center;

  gap: 5px;

  margin-top: 8px;

}


/* ========================================================
   RESPONSIVE KINETIC MINIGAMES & TOUCH MODAL
   ======================================================== */
@media (max-width: 600px) {
  #minigame-title {
    font-size: 1.35rem !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
  }
  .minigame-content.unicorn-minigame-box {
    padding: 16px 10px !important;
    min-height: 420px !important;
    width: 96% !important;
  }
  .unicorn-minigame-tag {
    font-size: 0.85rem !important;
    padding: 4px 14px !important;
    margin-bottom: 6px !important;
  }
}

/* Hide all emoji overlays from profile avatars across all platforms */
.mc-avatar-crown,
.unicorn-avatar-crown,
.avatar-crown {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
