@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 {
  /* Cute Floral Color Palette (ثيم الورود اللطيفة) */
  --mc-grass: #f43f5e;
  --mc-grass-dark: #e11d48;
  --mc-grass-light: #ff758c;
  --mc-dirt: #fff1f2;
  --mc-dirt-dark: #ffe4e6;
  --mc-stone: #f472b6;
  --mc-stone-dark: #db2777;
  --mc-stone-light: #fbcfe8;
  --mc-bedrock: #881337;
  --mc-diamond: #f43f5e;
  --mc-diamond-dark: #be123c;
  --mc-gold: #fbbf24;
  --mc-gold-dark: #d97706;
  --mc-emerald: #fb7185;
  --mc-emerald-dark: #f43f5e;
  --mc-redstone: #e11d48;
  --mc-redstone-dark: #9f1239;
  --mc-wood: #fda4af;
  --mc-wood-dark: #fb7185;
  --mc-obsidian: #fff5f8;
  --mc-gui-bg: #fff5f8;
  --mc-gui-dark: #fecdd3;
  --mc-gui-light: #ffffff;
  --mc-gui-shadow: #fda4af;

  --primary: #f43f5e;
  --primary-light: #ff758c;
  --primary-dark: #e11d48;
  --secondary: #fb7185;
  --accent: #ff7eb3;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #e11d48;

  --bg-gradient: #fff5f8;
  --card-bg: #ffffff;
  --transition: all 0.25s ease;
  --bounce-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  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;
}

/* 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: radial-gradient(circle, #fda4af 30%, #f43f5e 100%) !important; 
  top: 60px; 
  left: 50px; 
  border-radius: 50% 15% 50% 50% !important;
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.25) !important;
  transform: rotate(25deg);
  opacity: 0.65 !important;
}

.shape-2 { 
  width: 100px; 
  height: 100px; 
  background: radial-gradient(circle, #fbcfe8 30%, #ec4899 100%) !important; 
  bottom: 90px; 
  right: 60px; 
  border-radius: 50% 50% 15% 50% !important;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.25) !important;
  transform: rotate(-15deg);
  opacity: 0.6 !important;
}

.shape-3 {
  width: 85px;
  height: 85px;
  background: radial-gradient(circle, #fed7aa 30%, #f43f5e 100%) !important;
  top: 45%;
  right: 20%;
  border-radius: 50% !important;
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.2) !important;
  opacity: 0.55 !important;
}

@keyframes floatBlock {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(10deg); }
  100% { transform: translateY(-20px) rotate(-10deg); }
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 60px;
}

/* ========================================================
   MINECRAFT HERO HEADER
   ======================================================== */
.hero-header.mc-hero-header {
  background: linear-gradient(135deg, rgba(16, 26, 12, 0.94) 0%, rgba(15, 23, 42, 0.9) 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: 24px 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.hero-header.mc-hero-header::after {
  content: '⛏️';
  position: absolute;
  left: 10px;
  bottom: -15px;
  font-size: 110px;
  opacity: 0.15;
  transform: rotate(-20deg);
  pointer-events: none;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Minecraft Steve Avatar for Muhammad Asad */
.minecraft-avatar-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  background: #5c8e32;
  border: 4px solid #373737;
  outline: 3px solid #1a1a1a;
  box-shadow: inset 3px 3px 0 #8ce144, inset -3px -3px 0 #2d4a16, 0 8px 24px rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.minecraft-avatar-wrap:hover {
  transform: scale(1.06) rotate(-2deg);
}

.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 4px rgba(0,0,0,0.8));
  animation: crownBounce 2s infinite ease-in-out alternate;
}

@keyframes crownBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.mc-edition-tag {
  font-family: 'Marhey', 'Changa', monospace;
  font-size: 11.5px;
  color: #ffff55;
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 2px;
  margin-bottom: 4px;
  display: inline-block;
}

.hero-title h1 {
  font-family: 'Changa', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 3px 3px 0 #000000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-title p {
  font-size: 14.5px;
  color: #e2e8f0;
  text-shadow: 1px 1px 0 #000;
  margin-top: 2px;
}

/* Minecraft XP Bar Container */
.mc-xp-container {
  margin-top: 10px;
  max-width: 480px;
}

.mc-xp-bar {
  background: #111111;
  border: 2px solid #373737;
  outline: 1px solid #1a1a1a;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 1px 1px 0 #000;
}

.mc-xp-bar-fill {
  background: linear-gradient(90deg, #17dd62, #85ff55);
  box-shadow: 0 0 10px #55ff55;
  height: 100%;
  width: 90%;
  animation: xpPulse 2s infinite alternate;
}

@keyframes xpPulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.25); }
}

.mc-xp-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.student-tag.mc-level-tag {
  background: #2b2b2b;
  border: 2px solid #555555;
  color: #ffffff;
  font-size: 12.5px;
  padding: 2px 10px;
  border-radius: 4px;
  text-shadow: 1px 1px 0 #000;
}

.mc-level-badge {
  font-family: 'Marhey', monospace;
  font-size: 15px;
  font-weight: 900;
  color: #85ff55;
  text-shadow: 2px 2px 0 #000;
}

/* Minecraft Hotbar Gamification Stats */
.stats-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-item.mc-stat-item {
  background: #2b2b2b;
  border-top: 3px solid #5a5a5a;
  border-left: 3px solid #5a5a5a;
  border-right: 3px solid #151515;
  border-bottom: 3px solid #151515;
  box-shadow: inset 2px 2px 0 #7e7e7e, inset -2px -2px 0 #111111;
  border-radius: 4px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.stat-item.mc-stat-item:hover {
  transform: translateY(-3px);
  border-top-color: #7ec347;
  border-left-color: #7ec347;
}

.stat-val {
  font-size: 18px;
  font-family: 'Changa', 'Marhey', sans-serif;
  color: #ffff55;
  text-shadow: 2px 2px 0 #000;
}

.sound-toggle-btn.mc-btn-sound {
  background: #707070;
  border-top: 3px solid #aeaeae;
  border-left: 3px solid #aeaeae;
  border-right: 3px solid #373737;
  border-bottom: 3px solid #373737;
  box-shadow: inset 1px 1px 0 #dbdbdb, inset -1px -1px 0 #222222;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.1s ease;
}

.sound-toggle-btn.mc-btn-sound:hover {
  background: #5c8e32;
  border-color: #8ce144 #2d4a16 #2d4a16 #8ce144;
}

/* ========================================================
   MINECRAFT PLATFORM LAYOUT
   ======================================================== */
/* ========================================================
   MINECRAFT PLATFORM LAYOUT & LESSONS HUB
   ======================================================== */
.platform-layout {
  width: 100%;
  display: block;
  margin-top: 24px;
}

/* 1. LESSONS SELECTION HUB */
.lessons-hub-view {
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.mc-hub-header {
  background: linear-gradient(135deg, rgba(36, 24, 16, 0.95), rgba(20, 13, 8, 0.95));
  border: 4px solid #573d26;
  outline: 3px solid #140d08;
  box-shadow: inset 4px 4px 0 #866043, inset -4px -4px 0 #3a2618, 0 10px 25px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.mc-hub-header h2 {
  font-family: 'Changa', sans-serif;
  font-size: 26px;
  color: #ffff55;
  text-shadow: 2px 2px 0 #000;
  margin: 8px 0;
}

.mc-hub-header p {
  color: #cbd5e1;
  font-size: 15px;
}

.mc-lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.mc-lesson-portal-btn {
  background: #2b1d14;
  border: 4px solid #573d26;
  outline: 3px solid #140d08;
  box-shadow: inset 4px 4px 0 #866043, inset -4px -4px 0 #3a2618, 0 10px 25px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  text-align: right;
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
}

.mc-lesson-portal-btn:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #8ce144;
  box-shadow: inset 4px 4px 0 #a2f25c, inset -4px -4px 0 #284013, 0 14px 30px rgba(92, 142, 50, 0.4);
}

.mc-lesson-portal-btn:active {
  transform: scale(0.97);
}

.mc-portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-portal-num-tag {
  background: #1c130d;
  color: #ffff55;
  font-family: 'Marhey', 'Changa', monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 2px solid #573d26;
  text-shadow: 1px 1px 0 #000;
}

.mc-portal-status-badge {
  font-size: 18px;
}

.mc-portal-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mc-portal-thumb-wrap {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border: 3px solid #373737;
  outline: 2px solid #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  background: #18120c;
}

.mc-portal-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mc-portal-info {
  flex: 1;
}

.mc-portal-title {
  font-family: 'Changa', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000;
  line-height: 1.4;
  margin-bottom: 6px;
}

.mc-portal-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.mc-portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 2px dashed #422d1c;
}

.mc-portal-pills {
  font-size: 12px;
  color: #a3e635;
  font-weight: 700;
}

.mc-portal-action-cta {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #f43f5e 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
}
.mc-portal-action-cta:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.4) !important;
  background: linear-gradient(135deg, #ff607d 0%, #ff6fa7 50%, #e11d48 100%) !important;
}

/* Advancement Certificate Promo Card */
.certificate-promo-card.mc-cert-promo {
  margin-top: 20px;
  background: linear-gradient(135deg, #1b263b, #0d1b2a);
  border: 3px solid #4dedf4;
  outline: 2px solid #1a1a1a;
  box-shadow: 0 0 18px rgba(77, 237, 244, 0.35), inset 2px 2px 0 #a0f4f8, inset -2px -2px 0 #0f4c5c;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.certificate-promo-card.mc-cert-promo:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(77, 237, 244, 0.6), inset 2px 2px 0 #ffffff;
}

.mc-promo-img-wrap {
  text-align: center;
  margin-bottom: 8px;
}

.mc-promo-creeper-img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.certificate-promo-card.mc-cert-promo h4 {
  font-family: 'Changa', sans-serif;
  color: #4dedf4;
  font-size: 18px;
  text-shadow: 2px 2px 0 #000;
}

.certificate-promo-card.mc-cert-promo p {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 6px;
}

.mc-promo-btn-mini {
  display: inline-block;
  margin-top: 10px;
  background: #707070;
  border-top: 2px solid #aeaeae;
  border-left: 2px solid #aeaeae;
  border-right: 2px solid #373737;
  border-bottom: 2px solid #373737;
  color: #ffffff;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 3px;
  text-shadow: 1px 1px 0 #000;
}

/* 2. ACTIVE LESSON TOP & BOTTOM BARS */
.mc-lesson-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #372518;
  border-bottom: 4px solid #140d08;
  padding: 14px 20px;
  gap: 14px;
  flex-wrap: wrap;
}

.mc-btn-back-hub {
  background: #707070 !important;
  border-top: 3px solid #aeaeae !important;
  border-left: 3px solid #aeaeae !important;
  border-right: 3px solid #373737 !important;
  border-bottom: 3px solid #373737 !important;
  box-shadow: inset 2px 2px 0 #dbdbdb, inset -2px -2px 0 #222222 !important;
  color: #ffffff !important;
  text-shadow: 2px 2px 0 #000000 !important;
  font-family: 'Changa', sans-serif !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  padding: 10px 18px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
  touch-action: manipulation;
}

.mc-btn-back-hub:hover {
  background: #b91c1c !important;
  border-color: #f87171 #450a0a #450a0a #f87171 !important;
  color: #ffff55 !important;
  transform: translateY(-2px);
}

/* Minecraft Back to Games Button */
.mc-btn-back-games {
  background: #2563eb !important;
  border-top: 3px solid #60a5fa !important;
  border-left: 3px solid #60a5fa !important;
  border-right: 3px solid #1e3a8a !important;
  border-bottom: 3px solid #1e3a8a !important;
  box-shadow: inset 2px 2px 0 #93c5fd, inset -2px -2px 0 #172554 !important;
  color: #ffffff !important;
  text-shadow: 2px 2px 0 #000000 !important;
  font-family: 'Changa', sans-serif !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  padding: 10px 20px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
  touch-action: manipulation;
  margin-bottom: 18px !important;
}

.mc-btn-back-games:hover {
  background: #1d4ed8 !important;
  border-color: #93c5fd #0f172a #0f172a #93c5fd !important;
  color: #ffff55 !important;
  transform: translateY(-2px);
}

/* Minecraft Home Header Button (العودة لصفحة الكود) */


.mc-btn-home:active {
  transform: translateY(1px);
}

/* Minecraft Play with Steve Header Button */


.mc-current-lesson-indicator {
  font-family: 'Changa', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #ffff55;
  text-shadow: 2px 2px 0 #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-lesson-bottom-nav {
  padding: 24px 0 10px;
  text-align: center;
  border-top: 3px dashed #cbd5e1;
  margin-top: 30px;
}

/* ========================================================
   MINECRAFT MAIN VIEW & WORKSPACE
   ======================================================== */
.lesson-view-container {
  background: #c6c6c6;
  border: 4px solid #373737;
  outline: 3px solid #1a1a1a;
  box-shadow: inset 4px 4px 0 #ffffff, inset -4px -4px 0 #555555, 0 15px 35px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Minecraft Creative Menu Navigation Tabs */
.lesson-tabs-header {
  display: flex;
  background: #9c9c9c;
  padding: 8px 12px 0;
  gap: 8px;
  border-bottom: 4px solid #373737;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #555555;
  border-bottom: 3px solid #555555;
  background: #b5b5b5;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  color: #2b2b2b;
  text-shadow: 1px 1px 0 #ffffff;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: #5c8e32;
  color: #ffff55;
  text-shadow: 2px 2px 0 #000;
  border-color: #8ce144 #2d4a16 #2d4a16 #8ce144;
}

.tab-btn.active {
  background: #c6c6c6;
  color: #1e293b;
  text-shadow: none;
  border-top: 4px solid #ffffff;
  border-left: 4px solid #ffffff;
  border-right: 4px solid #555555;
  border-bottom: 4px solid #c6c6c6;
  margin-bottom: -4px;
  z-index: 2;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.tab-btn .tab-badge {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #f87171;
}

.tab-btn.active .tab-badge {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* Tab Contents */
.tab-content {
  display: none;
  padding: 26px;
  background: #f8fafc;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   MINECRAFT BUTTONS (THE CLASSIC 3D BEVEL BUTTON)
   ======================================================== */
.btn-check-all,
.btn-cert-print,
.btn-sound-mini,
.btn-transform-capsule,
.quiz-btn,
button.btn-cert-close {
  background: #707070 !important;
  border-top: 3px solid #aeaeae !important;
  border-left: 3px solid #aeaeae !important;
  border-right: 3px solid #373737 !important;
  border-bottom: 3px solid #373737 !important;
  box-shadow: inset 2px 2px 0 #dbdbdb, inset -2px -2px 0 #222222 !important;
  color: #ffffff !important;
  text-shadow: 2px 2px 0 #000000 !important;
  font-family: 'Changa', 'Tajawal', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  transition: all 0.1s ease !important;
}

.btn-check-all:hover,
.btn-cert-print:hover,
.btn-sound-mini:hover,
.btn-transform-capsule:hover {
  background: #5c8e32 !important;
  border-color: #8ce144 #2d4a16 #2d4a16 #8ce144 !important;
  box-shadow: inset 2px 2px 0 #b3f27f, inset -2px -2px 0 #1e330f, 0 0 12px rgba(92,142,50,0.6) !important;
  color: #ffff55 !important;
  transform: translateY(-2px);
}

.btn-check-all:active,
.btn-cert-print:active,
.btn-transform-capsule:active {
  background: #466e25 !important;
  border-color: #2d4a16 #8ce144 #8ce144 #2d4a16 !important;
  box-shadow: inset 2px 2px 0 #1e330f, inset -2px -2px 0 #b3f27f !important;
  transform: translateY(2px) !important;
}

button.btn-cert-close,
.mc-btn-red {
  background: #991b1b !important;
  border-color: #f87171 #450a0a #450a0a #f87171 !important;
}
button.btn-cert-close:hover,
.mc-btn-red:hover {
  background: #dc2626 !important;
  border-color: #fca5a5 #7f1d1d #7f1d1d #fca5a5 !important;
}

/* Minecraft Story Visual Wrapper */
.mc-story-visual-wrap {
  text-align: center;
  margin-bottom: 18px;
}

.mc-story-banner-thumb {
  max-height: 230px;
  width: auto;
  max-width: 100%;
  border-radius: 20px;
  border: 3px solid #fecdd3;
  outline: none;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.18);
  display: inline-block;
  image-rendering: auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mc-story-banner-thumb:hover {
  transform: scale(1.03) rotate(0.5deg);
}

/* Minecraft Select Boxes (Chat / Command Dropdown) */
.quiz-select {
  background: #1e1e1e !important;
  border-top: 3px solid #373737 !important;
  border-left: 3px solid #373737 !important;
  border-right: 3px solid #555555 !important;
  border-bottom: 3px solid #555555 !important;
  box-shadow: inset 2px 2px 0 #000000 !important;
  color: #55ff55 !important;
  font-family: 'Changa', 'Tajawal', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 3px !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  outline: none !important;
}

/* SECTION 1: EXPLANATION TAB STYLES */
.story-banner-card {
  background: linear-gradient(135deg, #fff5f8 0%, #ffe4e6 100%) !important;
  border: 2px solid #fecdd3 !important;
  border-radius: 24px !important;
  padding: 24px !important;
  margin-bottom: 28px !important;
  position: relative !important;
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.08) !important;
}

.story-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 16px !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.story-header h3 {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #881337 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-shadow: none !important;
  margin: 0 !important;
}

/* زر قراءة القصة - ثيم الوردة المتألقة أزل حيدر 🌸 */
.story-header .story-listen-btn,
button.story-listen-btn,
.story-listen-btn,
#readStoryBtn,
#readStoryBtn2,
#readStoryBtn3,
#readStoryBtn4,
#readStoryBtn5,
#readStoryBtn6,
#readStoryBtn7,
#readStoryBtn8,
#readStoryBtn9,
#readStoryBtn10,
#readStoryBtn11 {
  background: linear-gradient(135deg, #ff758c 0%, #ff4b72 50%, #f43f5e 100%) !important;
  color: #ffffff !important;
  border: 2px solid #fda4af !important;
  padding: 11px 26px !important;
  border-radius: 50px !important;
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  letter-spacing: 0.2px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18) !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  outline: none !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.story-header .story-listen-btn span,
button.story-listen-btn span,
.story-listen-btn span {
  font-size: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.25s ease !important;
}

.story-header .story-listen-btn:hover,
button.story-listen-btn:hover,
.story-listen-btn:hover,
#readStoryBtn:hover,
#readStoryBtn2:hover,
#readStoryBtn3:hover,
#readStoryBtn4:hover,
#readStoryBtn5:hover,
#readStoryBtn6:hover,
#readStoryBtn7:hover,
#readStoryBtn8:hover,
#readStoryBtn9:hover,
#readStoryBtn10:hover,
#readStoryBtn11:hover {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 26px rgba(244, 63, 94, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  border-color: #ffffff !important;
}

.story-header .story-listen-btn:hover span,
button.story-listen-btn:hover span,
.story-listen-btn:hover span {
  transform: scale(1.15) !important;
}

.story-header .story-listen-btn:active,
button.story-listen-btn:active,
.story-listen-btn:active,
#readStoryBtn:active,
#readStoryBtn2:active,
#readStoryBtn3:active,
#readStoryBtn4:active,
#readStoryBtn5:active,
#readStoryBtn6:active,
#readStoryBtn7:active,
#readStoryBtn8:active,
#readStoryBtn9:active,
#readStoryBtn10:active,
#readStoryBtn11:active {
  transform: translateY(1px) scale(0.97) !important;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3) !important;
}

/* حالة التشغيل (التحول إلى زر إيقاف القراءة مع نبض وردي متوهج وثيم المنصة) ⏹️ */
.story-header .story-listen-btn.is-reading,
.story-header .story-listen-btn.playing,
button.story-listen-btn.is-reading,
button.story-listen-btn.playing,
.story-listen-btn.is-reading,
.story-listen-btn.playing,
#readStoryBtn.is-reading,
#readStoryBtn.playing,
#readStoryBtn2.is-reading,
#readStoryBtn2.playing,
#readStoryBtn3.is-reading,
#readStoryBtn3.playing,
#readStoryBtn4.is-reading,
#readStoryBtn4.playing,
#readStoryBtn5.is-reading,
#readStoryBtn5.playing,
#readStoryBtn6.is-reading,
#readStoryBtn6.playing,
#readStoryBtn7.is-reading,
#readStoryBtn7.playing,
#readStoryBtn8.is-reading,
#readStoryBtn8.playing,
#readStoryBtn9.is-reading,
#readStoryBtn9.playing,
#readStoryBtn10.is-reading,
#readStoryBtn10.playing,
#readStoryBtn11.is-reading,
#readStoryBtn11.playing {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 50%, #9f1239 100%) !important;
  border-color: #fda4af !important;
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(225, 29, 72, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  animation: floralAudioPulse 1.5s infinite ease-in-out !important;
}

.story-header .story-listen-btn.is-reading:hover,
.story-header .story-listen-btn.playing:hover,
button.story-listen-btn.is-reading:hover,
button.story-listen-btn.playing:hover,
.story-listen-btn.is-reading:hover,
.story-listen-btn.playing:hover {
  background: linear-gradient(135deg, #be123c 0%, #881337 100%) !important;
  box-shadow: 0 0 28px rgba(225, 29, 72, 0.85) !important;
}

@keyframes floralAudioPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(225, 29, 72, 0.5), 0 4px 12px rgba(159, 18, 57, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 26px rgba(225, 29, 72, 0.85), 0 6px 18px rgba(159, 18, 57, 0.45);
    transform: scale(1.03);
  }
}

.story-text {
  font-size: 18px;
  line-height: 2.2;
  color: #471a2a;
  background: #ffffff;
  padding: 22px 26px;
  border-radius: 18px;
  border: 1.5px solid #ffe4e6;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.05);
}

.story-highlight-past {
  background-color: #fee2e2;
  color: var(--past-color);
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.story-highlight-present {
  background-color: #ccfbf1;
  color: var(--present-color);
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.story-highlight-imperative {
  background-color: #f3e8ff;
  color: var(--imperative-color);
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Three Verb Cards */
.verb-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 868px) {
  .verb-cards-grid {
    grid-template-columns: 1fr;
  }
}

.verb-card {
  border-radius: var(--border-radius-md);
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.verb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.12);
}

.verb-card.past {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.verb-card.present {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.verb-card.imperative {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.verb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.verb-card-header h3 {
  font-family: 'Changa', sans-serif;
  font-size: 22px;
}

.verb-badge-tag {
  background: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 12px;
}

.verb-card-desc {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  background: rgba(0,0,0,0.12);
  padding: 12px;
  border-radius: var(--border-radius-sm);
}

.verb-card-examples {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  padding: 14px;
  border-radius: var(--border-radius-sm);
}

.verb-card-examples h5 {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.example-chip {
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

/* Master Rule Card (القاعدة) */
.rule-master-card {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 3px dashed #f59e0b;
  border-radius: var(--border-radius-md);
  padding: 24px;
  position: relative;
}

.rule-master-card::before {
  content: '📌';
  position: absolute;
  top: -16px;
  right: 25px;
  font-size: 32px;
}

.rule-master-title {
  font-family: 'Changa', sans-serif;
  font-size: 22px;
  color: #b45309;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rule-item {
  display: flex;
  gap: 12px;
  background: white;
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  border-right: 5px solid var(--primary);
  font-size: 16px;
  line-height: 1.7;
}

.rule-item strong {
  color: #1e293b;
  white-space: nowrap;
}

.rule-item.past { border-right-color: var(--past-color); }
.rule-item.present { border-right-color: var(--present-color); }
.rule-item.imperative { border-right-color: var(--imperative-color); }

/* SECTION 2: EXAMPLES TAB STYLES */
.examples-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-sub-title {
  font-family: 'Changa', sans-serif;
  font-size: 20px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  text-align: center;
}

.custom-table th {
  background: #3b82f6;
  color: white;
  font-family: 'Changa', sans-serif;
  padding: 14px 16px;
  font-size: 16px;
}

.custom-table th.th-past { background: var(--past-color); }
.custom-table th.th-present { background: var(--present-color); }
.custom-table th.th-imperative { background: var(--imperative-color); }

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 16px;
  font-weight: 700;
}

.custom-table tr:hover {
  background: #f8fafc;
}

/* Audio button inside tables and sentences */
.speaker-btn {
  background: #e0e7ff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 15px;
  margin-right: 8px;
  vertical-align: middle;
  transition: var(--transition);
}

.speaker-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.15);
}

.example-sentence-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 18px 22px;
  border-right: 6px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sentence-content {
  font-size: 17px;
  font-weight: 600;
}

.sentence-analysis {
  background: #f8fafc;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* SECTION 3: EXERCISES TAB STYLES */
.exercises-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.exercise-box {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  padding: 24px;
  transition: var(--transition);
}

.exercise-box:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.exercise-header h4 {
  font-family: 'Changa', sans-serif;
  font-size: 19px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.exercise-score-pill {
  background: #ecfdf5;
  color: #059669;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}

.exercise-instruction {
  font-size: 16px;
  color: #334155;
  margin-bottom: 20px;
  font-weight: 600;
  background: #f8fafc;
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  border-right: 4px solid var(--accent);
}

.exercise-questions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: var(--border-radius-sm);
  border: 1px solid #eee;
  transition: var(--transition);
}

.question-row.correct {
  background: #f0fdf4;
  border-color: #86efac;
}

.question-row.wrong {
  background: #fef2f2;
  border-color: #fca5a5;
}

.question-text {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  min-width: 200px;
}

.exercise-options-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-option {
  background: white;
  border: 2px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-option:hover {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary);
}

.btn-option.selected-correct {
  background: #10b981;
  color: white;
  border-color: #059669;
}

.btn-option.selected-wrong {
  background: #ef4444;
  color: white;
  border-color: #dc2626;
}

.question-feedback {
  font-size: 13px;
  font-weight: 700;
  margin-right: auto;
}

/* Text Story Exercise (Exercise 5) */
.story-interactive-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  padding: 20px;
  line-height: 2.4;
  font-size: 18px;
}

.clickable-verb {
  display: inline-block;
  cursor: pointer;
  padding: 2px 8px;
  margin: 0 4px;
  border-radius: 8px;
  font-weight: 800;
  background: white;
  border: 2px solid #cbd5e1;
  transition: var(--transition);
}

.clickable-verb:hover {
  border-color: var(--primary);
  background: #eef2ff;
}

.clickable-verb.selected-past {
  background: #fee2e2;
  border-color: var(--past-color);
  color: var(--past-color);
  text-decoration: underline;
}

.clickable-verb.selected-present {
  background: #ccfbf1;
  border-color: var(--present-color);
  color: var(--present-color);
  border-bottom: 3px double var(--present-color);
}

.clickable-verb.selected-imperative {
  background: #f3e8ff;
  border-color: var(--imperative-color);
  color: var(--imperative-color);
  border-radius: 50px;
}

.verb-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-badge {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* SECTION 4: GAMES TAB STYLES (3 EXCITING GAMES) */
.games-hub-header {
  text-align: center;
  margin-bottom: 25px;
}

.games-hub-header h2 {
  font-family: 'Changa', sans-serif;
  font-size: 26px;
  color: #1e293b;
  margin-bottom: 6px;
}

.games-hub-header p {
  color: #64748b;
  font-size: 15px;
}

.game-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}

@media (max-width: 868px) {
  .game-selector-grid {
    grid-template-columns: 1fr;
  }
}

.game-select-card {
  background: white;
  border: 2px solid #fecdd3;
  border-radius: 22px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.06);
}

.game-select-card:hover {
  transform: translateY(-5px);
  border-color: #f43f5e;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.18);
  background: #fff5f8;
}

.game-select-card.active {
  border-color: #f43f5e;
  background: #fff0f5;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.22);
}

.game-icon-large {
  font-size: 42px;
  margin-bottom: 12px;
  display: inline-block;
  animation: bounce-icon 2s infinite ease-in-out;
}

@keyframes bounce-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.game-select-card h4 {
  font-family: 'Changa', sans-serif;
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 6px;
}

.game-select-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.game-screen-area {
  background: white;
  border: 2px solid #fecdd3;
  border-radius: 26px;
  padding: 26px;
  min-height: 480px;
  position: relative;
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
}

/* GAME 1: Balloon Pop & Sort */
.balloon-game-board {
  position: relative;
  height: 380px;
  background: linear-gradient(180deg, #fff0f5 0%, #ffe4e6 60%, #fff5f8 100%);
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid #fda4af;
  box-shadow: inset 0 2px 10px rgba(244, 63, 94, 0.08);
}

.balloon-element {
  position: absolute;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  color: white;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  user-select: none;
}

.balloon-element::after {
  content: '▼';
  font-size: 8px;
  color: inherit;
  position: absolute;
  bottom: -6px;
}

.balloon-element:hover {
  transform: scale(1.1);
}

.balloon-target-buckets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 18px;
}

.target-bucket {
  padding: 14px;
  border-radius: var(--border-radius-md);
  text-align: center;
  color: white;
  font-family: 'Changa', sans-serif;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: var(--transition);
}

.target-bucket:hover {
  transform: scale(1.03);
}

.target-bucket.past-b { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.target-bucket.present-b { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.target-bucket.imperative-b { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }

/* GAME 2: Verb Morphing Machine */
.morph-machine-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 650px;
  margin: 0 auto;
}

.machine-display-box {
  background: linear-gradient(135deg, #fff5f8, #ffe4e6);
  color: #1e293b;
  border-radius: 24px;
  padding: 24px 32px;
  text-align: center;
  width: 100%;
  border: 2.5px solid #fda4af;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.15);
  position: relative;
}

.machine-display-box h3 {
  font-family: 'Changa', sans-serif;
  font-size: 20px;
  color: #fbbf24;
  margin-bottom: 8px;
}

.current-noun-badge {
  font-size: 32px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 1px;
}

.morph-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
}

.morph-slot-card {
  background: #f8fafc;
  border: 2px dashed #94a3b8;
  border-radius: var(--border-radius-md);
  padding: 16px;
  text-align: center;
}

.slot-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 10px;
}

.slot-input-holder {
  min-height: 48px;
  background: white;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  border: 2px solid #e2e8f0;
  color: #1e293b;
}

.morph-choices-pool {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.morph-word-btn {
  background: white;
  border: 2px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

.morph-word-btn:hover {
  background: #eef2ff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* GAME 3: Speed Challenge */
.speed-challenge-panel {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.speed-timer-bar-wrap {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.speed-timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  transition: width 0.1s linear;
}

.speed-question-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius-lg);
  padding: 30px;
  margin-bottom: 24px;
}

.speed-verb-text {
  font-size: 38px;
  font-weight: 900;
  color: #1e293b;
  margin: 15px 0;
  font-family: 'Changa', sans-serif;
}

.speed-sentence-hint {
  font-size: 16px;
  color: #64748b;
}

.speed-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.btn-speed-choice {
  padding: 18px 12px;
  border: none;
  border-radius: var(--border-radius-md);
  color: white;
  font-family: 'Changa', sans-serif;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.btn-speed-choice:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-speed-choice.past { background: linear-gradient(135deg, #ef4444, #dc2626); }
.btn-speed-choice.present { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.btn-speed-choice.imperative { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

/* Certificate Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.certificate-card.mc-certificate-card {
  background: #271a11;
  width: 100%;
  max-width: 780px;
  border: 6px solid #573d26;
  outline: 4px solid #140d08;
  box-shadow: inset 4px 4px 0 #866043, inset -4px -4px 0 #3a2618, 0 25px 60px rgba(0,0,0,0.85);
  border-radius: 8px;
  padding: 24px 30px 30px;
  text-align: center;
  position: relative;
  color: #f8fafc;
}

.mc-cert-banner-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  border: 3px solid #373737;
  outline: 2px solid #1a1a1a;
  margin-bottom: 20px;
}

.mc-cert-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mc-cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(39, 26, 17, 0.7));
}

.mc-cert-profile-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: -65px;
  margin-bottom: 12px;
  position: relative;
  z-index: 3;
}

.mc-cert-avatar-frame {
  width: 90px;
  height: 90px;
  border: 4px solid #fdb813;
  outline: 3px solid #1a1a1a;
  box-shadow: inset 3px 3px 0 #ffe066, 0 8px 24px rgba(0,0,0,0.7);
  border-radius: 6px;
  background: #5c8e32;
  overflow: hidden;
}

.mc-cert-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}

.mc-cert-sword-icon {
  font-size: 32px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
}

.mc-advancement-tag {
  font-family: 'Marhey', 'Changa', monospace;
  font-size: 13px;
  color: #ffff55;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #000;
  background: #1c130d;
  padding: 6px 16px;
  border: 2px solid #573d26;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.cert-title {
  font-family: 'Changa', sans-serif;
  font-size: 30px;
  color: #ffffff;
  text-shadow: 3px 3px 0 #000000;
}

.mc-cert-subtitle {
  color: #cbd5e1;
  font-size: 15px;
  margin-top: 6px;
}

.cert-name {
  font-family: 'Changa', sans-serif;
  font-size: 36px;
  color: #55ff55;
  text-shadow: 3px 3px 0 #000000;
  margin: 12px 0;
  text-decoration: none;
}

.cert-desc {
  font-size: 15.5px;
  line-height: 1.85;
  color: #f1f5f9;
  background: #1c130d;
  border: 2px solid #3d2919;
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.mc-cert-meta-grid {
  background: #25170e;
  border: 2px solid #3d2919;
  padding: 12px 16px;
  border-radius: 6px;
  color: #cbd5e1;
}

.cert-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.btn-cert-print.mc-btn-green {
  background: #5c8e32 !important;
  border-color: #8ce144 #2d4a16 #2d4a16 #8ce144 !important;
  color: #ffffff !important;
  padding: 12px 28px !important;
  font-size: 16px !important;
}

.btn-cert-print.mc-btn-green:hover {
  background: #7ec347 !important;
  color: #ffff55 !important;
}

.btn-cert-close.mc-btn-red {
  background: #991b1b !important;
  border-color: #f87171 #450a0a #450a0a #f87171 !important;
  color: #ffffff !important;
  padding: 12px 28px !important;
  font-size: 16px !important;
}

/* Floating Confetti Canvas */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Footer */
.platform-footer {
  margin-top: 40px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.platform-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

/* =========================================
   LESSON 2 (الفاعل) ADDITIONS
========================================= */
.lesson-container-wrap {
  width: 100%;
}

.lesson-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fdf2f8;
  color: #db2777;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  border: 1px solid #fbcfe8;
}

/* Fruit / Bubble Catcher Game for Subject */
.catcher-game-board {
  position: relative;
  height: 380px;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 70%, #fef3c7 100%);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 2px solid #a7f3d0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.subject-bubble {
  padding: 12px 22px;
  background: white;
  border: 3px solid #10b981;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2);
  transition: var(--transition);
  animation: float-bubble 3s infinite ease-in-out alternate;
  user-select: none;
}

.subject-bubble:hover {
  transform: scale(1.15);
  background: #10b981;
  color: white;
}

.subject-bubble.non-subject {
  border-color: #64748b;
  box-shadow: 0 6px 15px rgba(100, 116, 139, 0.15);
}

.subject-bubble.non-subject:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

@keyframes float-bubble {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

/* Train cars game */
.train-station-box {
  background: #f8fafc;
  border: 2px dashed #94a3b8;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
}

.train-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  min-height: 80px;
}

.train-car {
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  position: relative;
}

.train-car.engine {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.train-car.verb-car {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
}

.train-car.subject-car {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.train-choices {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* Irab Tables styling */
.irab-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: white;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.irab-table th {
  background: #4361ee;
  color: white;
  padding: 12px 16px;
  font-family: 'Changa', sans-serif;
}

.irab-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  font-weight: 600;
}

/* =========================================
   LESSON 3 (المفعول به) ADDITIONS
========================================= */
.object-highlight {
  color: #d97706;
  font-weight: 800;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 6px;
}

/* 3-Piece Puzzle Board */
.puzzle-board-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.puzzle-piece {
  min-width: 140px;
  padding: 18px 20px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  position: relative;
  transition: var(--transition);
}

.puzzle-piece.verb-piece {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.puzzle-piece.subject-piece {
  background: linear-gradient(135deg, #10b981, #047857);
}

.puzzle-piece.object-piece {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.puzzle-piece .piece-tag {
  font-size: 11px;
  opacity: 0.9;
  display: block;
  margin-bottom: 4px;
  background: rgba(0,0,0,0.15);
  padding: 2px 6px;
  border-radius: 8px;
}

.puzzle-connector {
  font-size: 24px;
  color: #94a3b8;
  font-weight: 900;
}

/* Radar Target Board */
.radar-board {
  position: relative;
  min-height: 380px;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 2px solid #334155;
  overflow: hidden;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: radar-spin 10s infinite linear;
}

@keyframes radar-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.radar-target-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 14px 22px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  z-index: 2;
}

.radar-target-card:hover {
  background: rgba(245, 158, 11, 0.85);
  border-color: #fbbf24;
  color: #0f172a;
  transform: scale(1.12);
}

/* =========================================
   LESSON 4 (المبتدأ والخبر) ADDITIONS
========================================= */
.balance-scale-wrap {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
}

.scale-beam {
  width: 240px;
  height: 8px;
  background: #64748b;
  margin: 15px auto 30px;
  border-radius: 4px;
  position: relative;
}

.scale-pivot {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 24px;
  background: #0f172a;
  border-radius: 4px;
}

.scale-pans-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.scale-pan {
  width: 200px;
  padding: 16px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  border: 3px solid transparent;
  transition: var(--transition);
}

.scale-pan.mubtada-pan {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #3b82f6;
  color: #1e40af;
}

.scale-pan.khabar-pan {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #10b981;
  color: #065f46;
}

.pan-title {
  font-family: 'Changa', sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
}

.pan-slot-val {
  font-size: 20px;
  font-weight: 900;
  min-height: 32px;
}

/* Matching twin cards grid */
.matching-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.matching-card {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 18px 10px;
  border-radius: var(--border-radius-md);
  text-align: center;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.matching-card:hover {
  transform: translateY(-4px);
  border-color: #4361ee;
}

.matching-card.selected {
  background: #e0e7ff;
  border-color: #4361ee;
  color: #312e81;
  transform: scale(1.05);
}

.matching-card.matched {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   LESSON 5 (كان وأخواتها) ADDITIONS
========================================= */
.transform-lab-container {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 2px dashed #38bdf8;
  border-radius: var(--border-radius-lg);
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.08);
}

.lab-beakers-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.lab-card {
  width: 230px;
  padding: 20px;
  border-radius: var(--border-radius-md);
  text-align: center;
  background: white;
  border: 3px solid transparent;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.lab-card.mubtada-beaker {
  border-color: #0284c7;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.lab-card.khabar-beaker {
  border-color: #10b981;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.beaker-tag {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 8px;
}

.beaker-word {
  font-size: 26px;
  font-weight: 900;
  color: #1e293b;
  font-family: 'Changa', sans-serif;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-operator-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
  animation: pulse-op 2s infinite ease-in-out;
}

@keyframes pulse-op {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Compass Meaning Game */
.compass-game-board {
  background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 100%);
  border-radius: var(--border-radius-lg);
  padding: 35px 25px;
  text-align: center;
  border: 3px solid #6366f1;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
  color: white;
  margin-top: 15px;
}

.compass-target-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  margin-bottom: 30px;
  min-width: 280px;
}

.compass-verb-display {
  font-size: 32px;
  font-weight: 900;
  color: #38bdf8;
  font-family: 'Changa', sans-serif;
  margin-top: 8px;
}

.compass-directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.btn-compass-dir {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 18px 15px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Cairo', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.btn-compass-dir:hover {
  background: #6366f1;
  border-color: #a5b4fc;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-compass-dir span.dir-icon {
  font-size: 24px;
}

/* =========================================
   LESSON 6 (إنّ وكأنّ) ADDITIONS
========================================= */
.duel-arena-card {
  background: linear-gradient(135deg, #fef2f2 0%, #faf5ff 100%);
  border: 3px solid #e11d48;
  border-radius: var(--border-radius-lg);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.1);
}

.duel-fighters-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.fighter-badge {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.fighter-badge.kana-side {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
}

.fighter-badge.inna-side {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  color: white;
}

.side-title {
  display: block;
  font-family: 'Changa', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.side-rule {
  font-size: 13px;
  opacity: 0.95;
  font-weight: 700;
}

.duel-vs-circle {
  width: 50px;
  height: 50px;
  background: #e11d48;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: 'Changa', sans-serif;
  font-size: 18px;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.5);
  animation: pulse-op 1.5s infinite ease-in-out;
}

.duel-target-box {
  background: white;
  border: 2px dashed #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin: 0 auto;
  max-width: 480px;
}

.duel-requested-tool {
  font-family: 'Changa', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #e11d48;
}

.duel-base-sentence {
  font-size: 26px;
  font-weight: 900;
  color: #1e293b;
  margin-top: 6px;
}

/* Theater Stage Game */
.theater-stage-box {
  background: radial-gradient(circle at center, #3b0764 0%, #1e1b4b 100%);
  border: 3px solid #c084fc;
  border-radius: var(--border-radius-lg);
  padding: 35px 20px;
  text-align: center;
  color: white;
  box-shadow: 0 12px 35px rgba(147, 51, 234, 0.25);
  margin-top: 15px;
}

.theater-spotlight {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 25px;
  border-radius: 20px;
  display: inline-block;
  min-width: 320px;
  margin-bottom: 30px;
}

.theater-scene-text {
  font-size: 32px;
  font-weight: 900;
  color: #fef08a;
  font-family: 'Changa', sans-serif;
  margin-top: 10px;
  text-shadow: 0 2px 10px rgba(254, 240, 138, 0.4);
}

.theater-buttons-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 650px;
  margin: 0 auto;
}

.btn-theater-act {
  flex: 1;
  min-width: 220px;
  padding: 20px;
  border-radius: 18px;
  border: 2px solid transparent;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-theater-act.tawkeed-act {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #f87171;
}

.btn-theater-act.tashbeeh-act {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  border-color: #c084fc;
}

.btn-theater-act:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

/* =========================================
   LESSON 7 (الجار والمجرور) ADDITIONS
========================================= */
.prep-card {
  transition: all 0.25s ease;
}

.prep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08) !important;
}

/* 1. Magnet Game Styles */
#magnetIconAnim {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.magnet-attracting #magnetIconAnim {
  transform: scale(1.35) rotate(-15deg);
}

.btn-magnet-piece {
  background: #ffffff;
  border: 2px solid #3b82f6;
  color: #1d4ed8;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-magnet-piece:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* 2. Train Game Styles */
.train-car-btn {
  background: #ffffff;
  border: 2px solid #10b981;
  color: #065f46;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
  position: relative;
}

.train-car-btn::after {
  content: '🚃';
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.train-car-btn:hover {
  background: #10b981;
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}

.train-car-target.connected {
  background: #d1fae5 !important;
  border: 3px solid #059669 !important;
  color: #047857 !important;
  animation: trainPop 0.4s ease;
}

@keyframes trainPop {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 3. Kasra Radar Styles */
.radar-pulse-ring {
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
  animation: radarPulse 1.6s infinite;
}

@keyframes radarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(139, 92, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

/* =========================================
   LESSON 8 (الاسم المثنى وإعرابه) ADDITIONS
========================================= */
.dual-scale-arena {
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.12);
  transition: var(--transition);
}

.scale-sentence-box {
  background: #ffffff;
  padding: 16px 24px;
  border-radius: 14px;
  border: 2px solid #e9d5ff;
  display: inline-block;
  min-width: 280px;
}

.btn-transform-capsule {
  background: #ffffff;
  border: 2px solid #10b981;
  color: #065f46;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-transform-capsule:hover {
  background: #10b981;
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.speed-dual-arena {
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.12);
}

/* =========================================
   LESSON 9 (جمع المذكر السالم وإعرابه) ADDITIONS
========================================= */
.plural-shield-arena {
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
  transition: var(--transition);
}

/* =========================================
   LESSON 10 (جمع المؤنث السالم وإعرابه) ADDITIONS
========================================= */
.fem-hl {
  background: #fce7f3;
  color: #9d174d;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
}

/* ========================================================
   RESPONSIVE DESIGN & TOUCH/MOUSE OPTIMIZATION
   ======================================================== */

/* Fast touch response (0ms delay) & no unwanted text selection */
button, 
.btn-check-all, 
.btn-cert-print, 
.story-listen-btn, 
.btn-transform-capsule, 
.quiz-btn,
.tab-btn,
.lesson-nav-item,
.option-card,
.example-chip,
.target-bucket,
.mc-hotbar-slot,
.sound-toggle-btn,
.sidebar-heading {
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* Active physical tactile tap effect */
button:active,
.btn-check-all:active,
.btn-cert-print:active,
.story-listen-btn:active,
.tab-btn:active,
.lesson-nav-item:active,
.option-card:active {
  transform: scale(0.97) !important;
}

/* Responsive Table Wrappers for safe horizontal swiping */
.table-responsive,
div:has(> table),
div:has(> .custom-table),
div:has(> .irab-table) {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border-radius: 8px;
}

table.custom-table,
table.irab-table {
  min-width: 520px;
}

/* 1. Large Screens & Laptops (<= 1200px) */
@media (max-width: 1200px) {
  .app-container {
    padding: 14px 16px 50px;
  }
  .mc-lessons-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
  }
}

/* 2. Tablets in Portrait & Medium Screens (<= 992px) */
@media (max-width: 992px) {
  .hero-header.mc-hero-header {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }

  .hero-profile {
    width: 100%;
    justify-content: flex-start;
  }

  .mc-xp-container {
    max-width: 100%;
  }

  .stats-badges {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 8px;
  }

  .stat-item.mc-stat-item {
    justify-content: center;
    padding: 8px 10px;
  }

  .mc-lessons-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }

  .game-selector-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* 3. Small Tablets & Phones (<= 768px) */
@media (max-width: 768px) {
  .app-container {
    padding: 10px 10px 40px;
  }

  .hero-header.mc-hero-header {
    padding: 16px 14px;
    border-width: 3px;
  }

  .minecraft-avatar-wrap {
    width: 68px;
    height: 68px;
  }

  .hero-title h1 {
    font-size: 21px;
    gap: 6px;
  }

  .hero-title p {
    font-size: 13px;
  }

  .mc-edition-tag {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .stats-badges {
    grid-template-columns: repeat(2, 1fr);
  }

  .sound-toggle-btn.mc-btn-sound {
    grid-column: span 2;
    width: 100%;
    height: 42px;
  }

  .lesson-tabs-header {
    padding: 6px 6px 0;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .lesson-tabs-header::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    min-width: 105px;
    padding: 10px 8px;
    font-size: 13.5px;
  }

  .tab-btn .tab-badge {
    display: none; /* Hide badge on small screens for cleaner fit */
  }

  .tab-content {
    padding: 16px 12px;
  }

  .story-banner-card {
    padding: 16px 12px;
    margin-bottom: 20px;
  }

  .story-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .story-header h3 {
    font-size: 18px !important;
    text-align: center;
    justify-content: center;
  }

  .story-header .story-listen-btn,
  button.story-listen-btn,
  .story-listen-btn {
    width: auto !important;
    min-width: 220px !important;
    max-width: 100% !important;
    align-self: center !important;
    justify-content: center !important;
    padding: 12px 28px !important;
  }

  .mc-story-banner-thumb {
    max-height: 180px;
  }

  .story-text {
    font-size: 15px !important;
    line-height: 2 !important;
  }

  .cards-interactive-grid,
  .verb-cards-grid,
  .rules-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* Exercise buttons on mobile */
  .btn-check-all,
  .btn-transform-capsule {
    width: 100%;
    justify-content: center;
    padding: 14px 18px !important;
    font-size: 17px !important;
  }

  /* Balloon game board on mobile */
  .balloon-game-board {
    height: 300px;
  }

  .balloon-element {
    padding: 8px 12px;
    font-size: 14px;
  }

  .balloon-target-buckets {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .target-bucket {
    padding: 10px;
    font-size: 15px;
  }

  /* Radar & Arenas */
  .radar-target-card {
    padding: 10px 14px;
    font-size: 16px;
  }

  .theater-stage-box {
    padding: 20px 12px;
  }

  .theater-scene-text {
    font-size: 22px;
  }

  .theater-buttons-row {
    flex-direction: column;
  }

  .btn-theater-act {
    width: 100%;
  }

  /* Certificate Modal */
  .certificate-card.mc-certificate-card {
    padding: 16px 14px 20px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mc-cert-banner-wrapper {
    height: 120px;
  }

  .mc-cert-avatar-frame {
    width: 65px;
    height: 65px;
  }

  .cert-title {
    font-size: 20px;
  }

  .cert-name {
    font-size: 26px;
  }

  .cert-desc {
    font-size: 13.5px !important;
    line-height: 1.8 !important;
  }

  .mc-cert-meta-grid {
    flex-direction: column !important;
    gap: 6px !important;
    text-align: right;
  }

  .cert-actions {
    flex-direction: column;
    gap: 10px;
  }

  .cert-actions button {
    width: 100%;
  }
}

/* 4. Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .hero-profile {
    gap: 12px;
  }

  .minecraft-avatar-wrap {
    width: 58px;
    height: 58px;
  }

  .mc-avatar-crown {
    font-size: 20px;
    top: -12px;
    right: -8px;
  }

  .hero-title h1 {
    font-size: 18px;
  }

  .mc-level-badge {
    font-size: 13px;
  }

  .student-tag.mc-level-tag {
    font-size: 11px;
    padding: 2px 6px;
  }

  .stat-val {
    font-size: 16px;
  }

  .mc-hotbar-slot {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 13px;
  }

  .tab-btn {
    min-width: 90px;
    padding: 8px 6px;
    font-size: 12px;
  }

  .section-sub-title {
    font-size: 17px !important;
  }

  .exercise-box,
  .rule-card-mini,
  .verb-card {
    padding: 14px !important;
  }
}

/* ========================================================
   INTERACTIVE EXPLANATION & EXAMPLES HUD & LABS
   ======================================================== */

/* 1. Magic Grammar HUD Inspector Bar */
.mc-interactive-hud {
  background: linear-gradient(135deg, #1c130d 0%, #2b1d14 100%);
  border: 3px solid #8ce144;
  outline: 2px solid #140d08;
  box-shadow: 0 0 16px rgba(92, 142, 50, 0.4), inset 2px 2px 0 #a2f25c;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  transition: all 0.25s ease;
}

.hud-pulse-glow {
  box-shadow: 0 0 25px rgba(253, 184, 19, 0.8), inset 2px 2px 0 #ffe066 !important;
  border-color: #fdb813 !important;
  transform: scale(1.01);
}

.hud-mascot {
  font-family: 'Changa', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #ffff55;
  text-shadow: 1px 1px 0 #000;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hud-word-pill {
  background: #372518;
  border: 2px solid #fdb813;
  color: #ffff55;
  padding: 4px 14px;
  border-radius: 4px;
  font-family: 'Changa', sans-serif;
  font-size: 19px;
  font-weight: 900;
  text-shadow: 2px 2px 0 #000;
}

.hud-role-pill {
  background: #5c8e32;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 800;
  border: 1px solid #8ce144;
  text-shadow: 1px 1px 0 #000;
}

.hud-details-text {
  color: #cbd5e1;
  font-size: 13.5px;
}

/* Chip sparkles on click */
.example-chip {
  cursor: pointer !important;
  user-select: none !important;
  touch-action: manipulation !important;
  transition: all 0.15s ease !important;
}

.example-chip:hover {
  transform: translateY(-2px) scale(1.06);
  background: #5c8e32 !important;
  color: #ffffff !important;
}

.chip-sparkle-active {
  animation: chipSparkle 0.4s ease;
  background: #fdb813 !important;
  color: #000000 !important;
  transform: scale(1.15) !important;
}

@keyframes chipSparkle {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(3deg); }
  100% { transform: scale(1); }
}

/* 2. Interactive Grammar Laboratory Box */
.mc-grammar-lab {
  background: #ffffff;
  border: 4px solid #573d26;
  outline: 3px solid #140d08;
  border-radius: 8px;
  padding: 22px;
  margin: 25px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 12px;
}

.lab-title {
  font-family: 'Changa', sans-serif;
  font-size: 20px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lab-badge {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #facc15;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
}

.lab-roots-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-morph-root {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #334155;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'Changa', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-morph-root:hover,
.btn-morph-root.active {
  background: #3b82f6;
  border-color: #1d4ed8;
  color: white;
  transform: translateY(-2px);
}

.lab-tenses-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn-morph-tense {
  flex: 1;
  min-width: 140px;
  padding: 12px;
  border-radius: 6px;
  font-family: 'Changa', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 3px solid transparent;
}

.btn-morph-tense[data-tense="past"] {
  background: #fee2e2;
  color: #991b1b;
}
.btn-morph-tense[data-tense="past"].active {
  background: #ef4444;
  color: white;
  border-color: #b91c1c;
}

.btn-morph-tense[data-tense="present"] {
  background: #dcfce7;
  color: #166534;
}
.btn-morph-tense[data-tense="present"].active {
  background: #22c55e;
  color: white;
  border-color: #15803d;
}

.btn-morph-tense[data-tense="imperative"] {
  background: #f3e8ff;
  color: #6b21a8;
}
.btn-morph-tense[data-tense="imperative"].active {
  background: #a855f7;
  color: white;
  border-color: #7e22ce;
}

.morph-stage-display {
  background: #18120c;
  border: 4px solid #373737;
  outline: 2px solid #140d08;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.morph-word-huge {
  font-family: 'Changa', sans-serif;
  font-size: 44px;
  font-weight: 900;
  color: #ffff55;
  text-shadow: 3px 3px 0 #000;
  display: inline-block;
  transition: transform 0.2s ease;
}

.morph-tense-badge {
  display: inline-block;
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  margin-top: 8px;
}

.morph-info-text {
  color: #e2e8f0;
  font-size: 16px;
  margin-top: 10px;
}

/* 3. Interactive Sentence Dissector */
.interactive-sentence-dissector {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
  margin: 16px 0;
}

.dissect-words-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn-dissect-word {
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #1e293b;
  font-family: 'Changa', sans-serif;
  font-size: 24px;
  font-weight: 900;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.btn-dissect-word:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  color: #1d4ed8;
}

.btn-dissect-word.active {
  background: #3b82f6;
  border-color: #1d4ed8;
  color: #ffffff;
  transform: scale(1.06);
}

.dissect-card-popup {
  background: #ffffff;
  border: 3px solid #3b82f6;
  border-radius: 6px;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

.dissect-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dissect-word-label {
  font-family: 'Changa', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #1e293b;
}

.dissect-role-badge {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
}

.dissect-desc-text {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
}

.speaker-btn-inline {
  margin-top: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.speaker-btn-inline:hover {
  background: #e2e8f0;
}

/* 4. Click-to-Reveal Secret Rule Box */
.mc-rule-secret-btn {
  width: 100%;
  margin-top: 14px;
  background: #372518 !important;
  border: 2px dashed #fdb813 !important;
  color: #fef08a !important;
  padding: 10px 14px !important;
  border-radius: 4px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.mc-rule-secret-btn:hover {
  background: #5c8e32 !important;
  border-color: #8ce144 !important;
  color: #ffffff !important;
}

.mc-rule-secret-btn.active-secret-btn {
  background: #1e3a8a !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}

.mc-rule-secret-content {
  margin-top: 10px;
  background: #18120c;
  border: 2px solid #5c8e32;
  border-radius: 4px;
  padding: 12px 14px;
  color: #a3e635;
  font-size: 13.5px;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

/* Lab Actions and Buttons */
.lab-action-btn {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #1e293b;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lab-action-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.lab-action-btn:active {
  transform: translateY(0);
}

.lab-action-btn.active {
  background: #3b82f6;
  border-color: #1d4ed8;
  color: #ffffff;
}

.lab-result-stage {
  background: #ffffff;
  border: 3px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-top: 14px;
}

.lab-sentence-text {
  font-family: 'Changa', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.lab-info-note {
  font-size: 14px;
  color: #475569;
  font-weight: 600;
}







/* ========================================================
   MINECRAFT DANCING STEVE MODAL & SVG ANIMATIONS (7 SECONDS)
   ======================================================== */
.minecraft-avatar-wrap {
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  position: relative;
}
.minecraft-avatar-wrap:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 16px #55ff55);
}
.minecraft-avatar-wrap::after {
  content: 'اضغط للمفاجأة 🎵';
  position: absolute;
  bottom: -22px;
  right: 50%;
  transform: translateX(50%);
  background: #111827;
  border: 1px solid #55ff55;
  color: #55ff55;
  font-size: 11px;
  font-family: 'Changa', sans-serif;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.minecraft-avatar-wrap:hover::after {
  opacity: 1;
  transform: translateX(50%) translateY(2px);
}

.steve-dance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  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-box {
  background: #2b2b2b;
  border-top: 4px solid #aeaeae;
  border-left: 4px solid #aeaeae;
  border-right: 4px solid #1a1a1a;
  border-bottom: 4px solid #1a1a1a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 3px 3px 0 #dbdbdb, inset -3px -3px 0 #111111;
  border-radius: 8px;
  width: 90%;
  max-width: 460px;
  padding: 24px;
  text-align: center;
  position: relative;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #ffffff;
}

.steve-dance-overlay.active .steve-dance-box {
  transform: scale(1);
}

.steve-dance-close-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc2626;
  border: 2px solid #f87171;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.steve-dance-close-btn:hover {
  background: #b91c1c;
  transform: scale(1.1);
}

.steve-dance-header h3 {
  font-family: 'Changa', sans-serif;
  color: #ffff55;
  text-shadow: 2px 2px 0 #000000;
  font-size: 18px;
  margin: 10px 0 6px;
}

.steve-svg-stage {
  position: relative;
  width: 220px;
  height: 260px;
  margin: 10px auto;
  background: radial-gradient(circle, rgba(0, 170, 170, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.steve-svg-graphic {
  width: 190px;
  height: 250px;
  image-rendering: pixelated;
  animation: steveGrooveBounce 0.38s infinite alternate ease-in-out;
}

/* Animations of Steve Body Parts */
@keyframes steveGrooveBounce {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(2deg); }
}

.steve-head-anim {
  animation: steveHeadTilt 0.45s infinite alternate ease-in-out;
  transform-origin: 120px 105px;
}
@keyframes steveHeadTilt {
  0% { transform: rotate(-8deg) scale(1); }
  100% { transform: rotate(8deg) scale(1.03); }
}

.steve-arm-left {
  animation: steveLeftArmPump 0.38s infinite alternate ease-in-out;
  transform-origin: 75px 115px;
}
@keyframes steveLeftArmPump {
  0% { transform: rotate(-15deg); }
  100% { transform: rotate(50deg); }
}

.steve-arm-right {
  animation: steveRightArmPump 0.38s infinite alternate ease-in-out;
  transform-origin: 165px 115px;
}
@keyframes steveRightArmPump {
  0% { transform: rotate(35deg); }
  100% { transform: rotate(-35deg); }
}

.steve-leg-left {
  animation: steveLeftLegStep 0.38s infinite alternate ease-in-out;
  transform-origin: 102px 186px;
}
@keyframes steveLeftLegStep {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(-10deg); }
}

.steve-leg-right {
  animation: steveRightLegStep 0.38s infinite alternate-reverse ease-in-out;
  transform-origin: 138px 186px;
}
@keyframes steveRightLegStep {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(10deg); }
}

/* Floating Music Notes & Diamonds */
.steve-music-notes .note {
  position: absolute;
  font-size: 22px;
  animation: floatUpParticle 1.6s infinite ease-out;
  pointer-events: none;
}
.note-1 { top: 70%; right: 10%; animation-delay: 0s; }
.note-2 { top: 60%; left: 10%; animation-delay: 0.3s; font-size: 26px; }
.note-3 { top: 40%; right: 15%; animation-delay: 0.6s; font-size: 24px; }
.note-4 { top: 50%; left: 15%; animation-delay: 0.9s; }
.note-5 { top: 80%; left: 25%; animation-delay: 1.2s; }
.note-6 { top: 75%; right: 25%; animation-delay: 1.4s; font-size: 24px; }

@keyframes floatUpParticle {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.6) rotate(0deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-90px) scale(1.2) rotate(25deg);
  }
}

/* 7 Seconds Countdown Bar */
.steve-dance-timer-bar {
  background: #1e1e1e;
  border: 2px solid #555555;
  border-radius: 4px;
  height: 12px;
  width: 100%;
  margin: 14px 0 10px;
  overflow: hidden;
  box-shadow: inset 1px 1px 0 #000;
}

.steve-timer-fill {
  background: linear-gradient(90deg, #55ff55, #ffff55, #55ffff);
  height: 100%;
  width: 100%;
  transform-origin: right center;
  transition: width 0.05s linear;
}

.steve-dance-quote {
  font-size: 13px;
  color: #a7f3d0;
  font-weight: 700;
  margin-top: 6px;
  text-shadow: 1px 1px 0 #000;
}


/* ========================================================
   🌸 CUTE FLORAL THEME OVERRIDE (ثيم الورود اللطيفة) 🌸
   مُصَمَّمٌ خصيصاً لمنصة الوردة المتألقة أزل حيدر
   ======================================================== */

:root {
  --primary: #f43f5e !important;
  --primary-light: #fb7185 !important;
  --primary-dark: #be123c !important;
  --secondary: #ff758c !important;
  --accent: #ec4899 !important;
  --success: #10b981 !important;
  --warning: #f59e0b !important;
  --card-bg: #ffffff !important;
  --border-radius-lg: 20px !important;
  --border-radius-md: 14px !important;
  --border-radius-sm: 8px !important;
}

/* Floral Scrollbar */
::-webkit-scrollbar {
  width: 12px !important;
  height: 12px !important;
}
::-webkit-scrollbar-track {
  background: #fff0f5 !important;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff758c, #ff7eb3) !important;
  border-radius: 10px !important;
  border: 2px solid #fff0f5 !important;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f43f5e, #ff758c) !important;
}

/* Floral Body & Background */
body {
  background-color: #fff5f8 !important;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 117, 140, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(255, 126, 179, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(254, 205, 211, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #fff5f7 0%, #fff0f5 50%, #fdf2f8 100%) !important;
  color: #334155 !important;
}

/* Floral Ambient Decorations */
.floating-shape {
  border: none !important;
  border-radius: 50% !important;
  image-rendering: auto !important;
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.floating-shape::after {
  font-size: 55px;
  filter: drop-shadow(0 6px 12px rgba(244, 63, 94, 0.2));
}
.shape-1 {
  background: radial-gradient(circle, rgba(255, 182, 193, 0.35) 0%, rgba(255, 240, 245, 0.1) 70%) !important;
  width: 140px !important;
  height: 140px !important;
}
.shape-1::after { content: '🌸'; }

.shape-2 {
  background: radial-gradient(circle, rgba(254, 205, 211, 0.35) 0%, rgba(255, 240, 245, 0.1) 70%) !important;
  width: 120px !important;
  height: 120px !important;
}
.shape-2::after { content: '🌷'; }

.shape-3 {
  background: radial-gradient(circle, rgba(253, 164, 175, 0.35) 0%, rgba(255, 240, 245, 0.1) 70%) !important;
  width: 100px !important;
  height: 100px !important;
}
.shape-3::after { content: '🌺'; }

/* Floral Hero Header */
.hero-header.mc-hero-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 2px solid rgba(255, 182, 193, 0.7) !important;
  outline: none !important;
  box-shadow: 0 15px 35px rgba(244, 63, 94, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  border-radius: 24px !important;
  padding: 24px 30px !important;
  color: #334155 !important;
  position: relative !important;
  overflow: hidden !important;
}
.hero-header.mc-hero-header::after {
  content: '🌸' !important;
  position: absolute !important;
  left: 15px !important;
  bottom: -20px !important;
  font-size: 110px !important;
  opacity: 0.12 !important;
  transform: rotate(-15deg) !important;
  pointer-events: none !important;
}

/* Floral Avatar Frame */
.minecraft-avatar-wrap {
  position: relative !important;
  width: 86px !important;
  height: 86px !important;
  background: linear-gradient(135deg, #fff0f5, #ffe4e6) !important;
  border: 3px solid #fda4af !important;
  outline: none !important;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.25), 0 0 15px rgba(255, 117, 140, 0.3) !important;
  border-radius: 50% !important;
  padding: 3px !important;
}
.minecraft-avatar-wrap:hover {
  transform: scale(1.08) rotate(3deg) !important;
}
.minecraft-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  image-rendering: auto !important;
}
.mc-avatar-crown {
  font-size: 26px !important;
  filter: drop-shadow(0 2px 5px rgba(245, 158, 11, 0.6)) !important;
}

/* Hero Title & Edition Tag */
.mc-edition-tag {
  font-family: 'Marhey', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #be123c !important;
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
  margin-bottom: 6px !important;
}
.hero-title h1 {
  font-family: 'Changa', sans-serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #be123c !important;
  text-shadow: none !important;
}
.hero-title p {
  font-size: 15px !important;
  color: #64748b !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}

/* Floral XP Bar */
.mc-xp-bar {
  background: #fff0f5 !important;
  border: 1.5px solid #fecdd3 !important;
  outline: none !important;
  height: 14px !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
}
.mc-xp-bar-fill {
  background: linear-gradient(90deg, #ff758c, #f43f5e) !important;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.45) !important;
  border-radius: 10px !important;
}
.student-tag.mc-level-tag {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #be123c !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  text-shadow: none !important;
}
.mc-level-badge {
  font-family: 'Changa', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #be123c !important;
  text-shadow: none !important;
}

/* Floral Stats Badges & Actions */
.stat-item.mc-stat-item {
  background: #ffffff !important;
  border: 1.5px solid #fecdd3 !important;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.08) !important;
  border-radius: 16px !important;
  padding: 8px 16px !important;
  color: #334155 !important;
  transition: all 0.25s ease !important;
}
.stat-item.mc-stat-item:hover {
  transform: translateY(-2px) !important;
  border-color: #f43f5e !important;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.15) !important;
}
.stat-val {
  font-family: 'Changa', sans-serif !important;
  color: #be123c !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}





.sound-toggle-btn.mc-btn-sound {
  background: #ffffff !important;
  border: 1.5px solid #fecdd3 !important;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.08) !important;
  color: #be123c !important;
  border-radius: 16px !important;
}
.sound-toggle-btn.mc-btn-sound:hover {
  background: #fff1f2 !important;
  border-color: #f43f5e !important;
}

/* Floral Lessons Hub */
.mc-hub-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  border: 2px solid rgba(255, 182, 193, 0.7) !important;
  outline: none !important;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08) !important;
  border-radius: 24px !important;
  padding: 24px !important;
}
.mc-hub-header h2 {
  font-family: 'Changa', sans-serif !important;
  font-size: 26px !important;
  color: #be123c !important;
  text-shadow: none !important;
}
.mc-hub-header p {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* Floral Lesson Portal Cards */
.mc-lesson-portal-btn {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  border: 2px solid #fecdd3 !important;
  outline: none !important;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.06) !important;
  border-radius: 22px !important;
  padding: 20px !important;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.mc-lesson-portal-btn:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: #f43f5e !important;
  box-shadow: 0 18px 35px rgba(244, 63, 94, 0.18), 0 0 20px rgba(255, 117, 140, 0.2) !important;
}
.mc-portal-num-tag {
  background: #fff1f2 !important;
  color: #be123c !important;
  font-family: 'Marhey', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  border: 1px solid #fecdd3 !important;
  text-shadow: none !important;
}
.mc-portal-thumb-wrap {
  border: 2px solid #fda4af !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #fff5f7 !important;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.1) !important;
}
.mc-portal-title {
  color: #1e293b !important;
  text-shadow: none !important;
}
.mc-lesson-portal-btn:hover .mc-portal-title {
  color: #be123c !important;
}
.mc-portal-desc {
  color: #64748b !important;
}
.mc-portal-footer {
  border-top: 1px dashed #fecdd3 !important;
}
.mc-portal-pills {
  color: #881337 !important;
  font-weight: 600 !important;
}
.mc-portal-action-cta {
  background: linear-gradient(135deg, #ff758c, #f43f5e) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 6px 16px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25) !important;
}

/* Floral Certificate Card in Hub */
.certificate-promo-card.mc-cert-promo {
  background: linear-gradient(135deg, #ffffff, #fff5f7) !important;
  border: 2px solid #fda4af !important;
  outline: none !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.12) !important;
}
.certificate-promo-card.mc-cert-promo h4 {
  color: #be123c !important;
  text-shadow: none !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}
.certificate-promo-card.mc-cert-promo p {
  color: #64748b !important;
  font-weight: 600 !important;
}
.mc-promo-btn-mini {
  background: linear-gradient(135deg, #ff758c, #f43f5e) !important;
  border: none !important;
  border-radius: 14px !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.25) !important;
}

/* Floral Active Lesson Top Bar & HUD */
.mc-lesson-top-bar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  border: 2px solid #fecdd3 !important;
  border-radius: 20px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.06) !important;
}
.mc-btn-back-hub {
  background: linear-gradient(135deg, #fff0f5, #ffe4e6) !important;
  border: 1.5px solid #fda4af !important;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.1) !important;
  color: #be123c !important;
  text-shadow: none !important;
  border-radius: 14px !important;
  transition: all 0.2s ease !important;
}
.mc-btn-back-hub:hover {
  background: linear-gradient(135deg, #ff758c, #f43f5e) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}
.mc-current-lesson-indicator {
  color: #be123c !important;
  font-weight: 800 !important;
  font-size: 17px !important;
}

.mc-interactive-hud {
  background: #ffffff !important;
  border: 2px solid #fda4af !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.08) !important;
  margin-bottom: 22px !important;
}
.hud-mascot {
  color: #be123c !important;
  font-weight: 800 !important;
}
.hud-word-pill {
  background: #fff1f2 !important;
  color: #be123c !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 12px !important;
}
.hud-role-pill {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 12px !important;
}

/* Floral Tabs inside Lesson */
.lesson-tabs-header {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid #fecdd3 !important;
  border-radius: 20px !important;
  padding: 8px !important;
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-bottom: 22px !important;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.06) !important;
}
.lesson-tabs-header .tab-btn {
  background: #fff5f7 !important;
  border: 1.5px solid #fecdd3 !important;
  color: #475569 !important;
  border-radius: 14px !important;
  padding: 10px 20px !important;
  font-family: 'Changa', sans-serif !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}
.lesson-tabs-header .tab-btn:hover {
  background: #ffe4e6 !important;
  color: #be123c !important;
  border-color: #fda4af !important;
  transform: translateY(-2px) !important;
}
.lesson-tabs-header .tab-btn.active {
  background: linear-gradient(135deg, #ff758c, #f43f5e) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* Floral Content Boxes, Rules & Examples */
.lesson-container-wrap,
.explanation-card,
.rules-card,
.example-box,
.exercise-card {
  background: #ffffff !important;
  border: 2px solid #fecdd3 !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.06) !important;
  color: #334155 !important;
}

.rule-highlight-box {
  background: #fff1f2 !important;
  border-right: 6px solid #f43f5e !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  color: #881337 !important;
  font-weight: 600 !important;
}

/* Floral Buttons in Lesson */
.btn-primary,
.check-btn,
.action-btn,
.mc-action-btn {
  background: linear-gradient(135deg, #ff758c, #f43f5e) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 10px 22px !important;
  font-family: 'Changa', sans-serif !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.3) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.btn-primary:hover,
.check-btn:hover,
.action-btn:hover,
.mc-action-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.4) !important;
}



/* ========================================================
   🌸 CUTE FLORAL BUTTONS & BADGES (ثيم الورود اللطيفة) 🌸
   ======================================================== */

.mc-portal-action-cta,
.mc-lesson-portal-btn .mc-portal-action-cta,
.mc-btn-green,
.btn-primary,
.check-btn,
.action-btn,
.mc-action-btn,
.mc-btn-back-hub {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #f43f5e 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  font-family: 'Changa', 'Tajawal', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  border-radius: 25px !important;
  cursor: pointer !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.mc-portal-action-cta:hover,
.mc-lesson-portal-btn:hover .mc-portal-action-cta,
.btn-primary:hover,
.check-btn:hover,
.action-btn:hover,
.mc-action-btn:hover,
.mc-btn-back-hub:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.45) !important;
  background: linear-gradient(135deg, #ff607d 0%, #ff6fa7 50%, #e11d48 100%) !important;
}

/* ========================================================
   🌸 CUTE FLORAL HEADER BUTTONS (واحة الألعاب & الرئيسية) 🌸
   ======================================================== */
.mc-btn-home {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4e6 100%) !important;
  color: #be123c !important;
  border: 1.5px solid #fda4af !important;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.15) !important;
  border-radius: 22px !important;
  padding: 8px 18px !important;
  font-family: 'Tajawal', 'Changa', sans-serif !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  white-space: nowrap !important;
  text-shadow: none !important;
  letter-spacing: normal !important;
  line-height: 1.3 !important;
  animation: none !important;
}

.mc-btn-home span,
.mc-btn-home * {
  font-family: 'Tajawal', 'Changa', sans-serif !important;
  text-shadow: none !important;
  color: #be123c !important;
  letter-spacing: normal !important;
  line-height: 1.3 !important;
}

.mc-btn-home:hover {
  background: linear-gradient(135deg, #ff758c 0%, #f43f5e 100%) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.35) !important;
  text-shadow: none !important;
}

.mc-btn-home:hover span,
.mc-btn-home:hover * {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Floral Games Oasis Header Button (واحة الألعاب) */
.mc-btn-play-steve {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35) !important;
  border-radius: 22px !important;
  padding: 8px 20px !important;
  font-family: 'Tajawal', 'Changa', sans-serif !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  white-space: nowrap !important;
  text-shadow: none !important;
  letter-spacing: normal !important;
  line-height: 1.3 !important;
  animation: none !important;
}

.mc-btn-play-steve span,
.mc-btn-play-steve * {
  font-family: 'Tajawal', 'Changa', sans-serif !important;
  text-shadow: none !important;
  color: #ffffff !important;
  letter-spacing: normal !important;
  line-height: 1.3 !important;
}

.mc-btn-play-steve:hover {
  background: linear-gradient(135deg, #db2777 0%, #9333ea 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45) !important;
  text-shadow: none !important;
}

.mc-btn-play-steve:active,
.mc-btn-home:active {
  transform: translateY(1px) scale(0.98) !important;
}



/* ========================================================
   🌸 BLOOMING ROSE & FALLING PETALS CELEBRATION MODAL 🌸
   ======================================================== */
.steve-dance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.steve-dance-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.steve-dance-box {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 3px solid #fda4af !important;
  outline: none !important;
  box-shadow: 0 25px 60px rgba(244, 63, 94, 0.3), 0 0 40px rgba(255, 117, 140, 0.2) !important;
  border-radius: 32px !important;
  width: 90%;
  max-width: 480px;
  padding: 26px 22px;
  text-align: center;
  position: relative;
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.steve-dance-overlay.active .steve-dance-box {
  transform: scale(1);
}

.steve-dance-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff1f2 !important;
  border: 1.5px solid #fecdd3 !important;
  color: #be123c !important;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.15);
  transition: all 0.2s ease;
  z-index: 20;
}

.steve-dance-close-btn:hover {
  background: #f43f5e !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  transform: scale(1.1) rotate(90deg);
}

.steve-svg-stage {
  margin: 10px auto;
  width: 250px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Dynamic Falling Petal Particles across modal */
.floating-petal-particle {
  position: absolute;
  pointer-events: none;
  animation: fallAndSway linear infinite;
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(244, 63, 94, 0.25));
  opacity: 0.85;
}

@keyframes fallAndSway {
  0% {
    transform: translateY(-40px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  50% {
    transform: translateY(45vh) translateX(35px) rotate(160deg);
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(95vh) translateX(-25px) rotate(340deg);
    opacity: 0;
  }
}

/* Rose SVG Blooming & Breathing Animation */
.rose-bloom-head {
  transform-origin: 130px 145px;
  animation: roseBloomPulse 2.8s infinite ease-in-out;
}

@keyframes roseBloomPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(2deg); filter: drop-shadow(0 0 16px rgba(244, 63, 94, 0.45)); }
}

.rose-stem-group {
  transform-origin: 130px 290px;
  animation: stemSway 3s infinite ease-in-out;
}

@keyframes stemSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-2deg); }
}

.rose-crown-group {
  transform-origin: 130px 65px;
  animation: crownFloatAnim 2s infinite ease-in-out alternate;
}

@keyframes crownFloatAnim {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-7px) rotate(2deg); }
}

.rose-butterfly-group {
  transform-origin: 200px 100px;
  animation: butterflyFloatAnim 2.2s infinite ease-in-out;
}

@keyframes butterflyFloatAnim {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-10px, -14px) scale(1.1) rotate(-8deg); }
}

/* Individual Falling Petals from the Rose (تساقط أوراق الورد) */
.falling-petal {
  position: absolute;
  pointer-events: none;
}

.petal-p1 {
  transform-origin: 0 0;
  animation: dropPetal1 3.2s infinite ease-in;
}
@keyframes dropPetal1 {
  0% { transform: translate(110px, 155px) scale(0.2) rotate(0deg); opacity: 0; }
  15% { opacity: 1; transform: translate(100px, 170px) scale(1) rotate(25deg); }
  50% { transform: translate(75px, 220px) scale(0.95) rotate(70deg); }
  85% { opacity: 0.9; transform: translate(95px, 270px) scale(0.9) rotate(140deg); }
  100% { transform: translate(80px, 305px) scale(0.85) rotate(190deg); opacity: 0; }
}

.petal-p2 {
  transform-origin: 0 0;
  animation: dropPetal2 3.6s infinite ease-in 0.7s;
}
@keyframes dropPetal2 {
  0% { transform: translate(150px, 155px) scale(0.2) rotate(0deg); opacity: 0; }
  15% { opacity: 1; transform: translate(160px, 175px) scale(1) rotate(-30deg); }
  50% { transform: translate(185px, 225px) scale(0.95) rotate(-80deg); }
  85% { opacity: 0.9; transform: translate(165px, 275px) scale(0.9) rotate(-130deg); }
  100% { transform: translate(175px, 310px) scale(0.85) rotate(-180deg); opacity: 0; }
}

.petal-p3 {
  transform-origin: 0 0;
  animation: dropPetal3 2.9s infinite ease-in 1.4s;
}
@keyframes dropPetal3 {
  0% { transform: translate(125px, 160px) scale(0.2) rotate(0deg); opacity: 0; }
  20% { opacity: 1; transform: translate(115px, 185px) scale(1) rotate(40deg); }
  55% { transform: translate(135px, 235px) scale(0.95) rotate(90deg); }
  85% { opacity: 0.9; transform: translate(115px, 280px) scale(0.9) rotate(160deg); }
  100% { transform: translate(125px, 315px) scale(0.85) rotate(220deg); opacity: 0; }
}

.petal-p4 {
  transform-origin: 0 0;
  animation: dropPetal4 3.4s infinite ease-in 2.1s;
}
@keyframes dropPetal4 {
  0% { transform: translate(140px, 150px) scale(0.2) rotate(0deg); opacity: 0; }
  20% { opacity: 1; transform: translate(155px, 180px) scale(0.95) rotate(-45deg); }
  60% { transform: translate(130px, 230px) scale(0.9) rotate(-110deg); }
  85% { opacity: 0.9; transform: translate(150px, 275px) scale(0.85) rotate(-170deg); }
  100% { transform: translate(140px, 310px) scale(0.8) rotate(-230deg); opacity: 0; }
}

.petal-p5 {
  transform-origin: 0 0;
  animation: dropPetal5 3.8s infinite ease-in 1.0s;
}
@keyframes dropPetal5 {
  0% { transform: translate(130px, 165px) scale(0.2) rotate(0deg); opacity: 0; }
  20% { opacity: 1; transform: translate(105px, 195px) scale(0.9) rotate(30deg); }
  60% { transform: translate(145px, 245px) scale(0.85) rotate(120deg); }
  85% { opacity: 0.85; transform: translate(120px, 290px) scale(0.8) rotate(180deg); }
  100% { transform: translate(135px, 320px) scale(0.75) rotate(240deg); opacity: 0; }
}

.steve-music-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.steve-music-notes .note {
  position: absolute;
  font-size: 18px;
  animation: noteFloat 2.5s infinite ease-in;
  opacity: 0;
}
.note-1 { top: 20%; left: 10%; animation-delay: 0s; }
.note-2 { top: 15%; right: 12%; animation-delay: 0.5s; }
.note-3 { top: 55%; left: 8%; animation-delay: 1.0s; }
.note-4 { top: 60%; right: 10%; animation-delay: 1.5s; }
.note-5 { top: 35%; right: 5%; animation-delay: 2.0s; }
.note-6 { top: 35%; left: 5%; animation-delay: 2.5s; }

@keyframes noteFloat {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  30% { opacity: 1; transform: translateY(-15px) scale(1.1); }
  80% { opacity: 0.8; transform: translateY(-40px) scale(1); }
  100% { transform: translateY(-60px) scale(0.8); opacity: 0; }
}


/* ========================================================
   🌹 محرك نمو وتفتح الوردة الحمراء الرائعة (عربي) 🌹
   ======================================================== */
.rose-growth-stage {
  position: relative;
  width: 260px;
  height: 280px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.growth-aura-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 205, 211, 0.55) 0%, rgba(244, 63, 94, 0.18) 50%, transparent 75%);
  filter: blur(14px);
  pointer-events: none;
  animation: auraPulse 3s infinite alternate ease-in-out;
}
@keyframes auraPulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

/* 1. الساق التي تنمو وترتفع للأعلى */
.rose-growing-stem {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.rose-growth-stage.growth-active .rose-growing-stem {
  animation: stemGrowAnim 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes stemGrowAnim {
  0% { stroke-dashoffset: 180; opacity: 0; }
  10% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.rose-thorn {
  opacity: 0;
  transform: scale(0);
}
.rose-growth-stage.growth-active .thorn-1 {
  animation: popThorn 0.5s ease 1.5s forwards;
}
.rose-growth-stage.growth-active .thorn-2 {
  animation: popThorn 0.5s ease 1.8s forwards;
}
@keyframes popThorn {
  0% { opacity: 0; transform: scale(0); }
  70% { transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* 2. الأوراق الخضراء التي تتفتح وتورق */
.growth-leaf-left {
  opacity: 0;
  transform: scale(0) rotate(25deg);
}
.rose-growth-stage.growth-active .growth-leaf-left {
  animation: leafLeftGrow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s forwards;
}
@keyframes leafLeftGrow {
  0% { opacity: 0; transform: scale(0) rotate(25deg); }
  70% { transform: scale(1.15) rotate(-5deg); opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.growth-leaf-right {
  opacity: 0;
  transform: scale(0) rotate(-25deg);
}
.rose-growth-stage.growth-active .growth-leaf-right {
  animation: leafRightGrow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 2.0s forwards;
}
@keyframes leafRightGrow {
  0% { opacity: 0; transform: scale(0) rotate(-25deg); }
  70% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* 3. برعم الوردة الصغير الذي ينمو ويكبر ويصير وردة حمراء رائعة */
.growth-blossom-container {
  transform: translate(0px, 142px) scale(0.18);
  opacity: 0;
}
.rose-growth-stage.growth-active .growth-blossom-container {
  animation: roseBudGrowAndBloom 4.5s cubic-bezier(0.25, 1, 0.35, 1) forwards;
}
@keyframes roseBudGrowAndBloom {
  0% {
    transform: translate(0px, 145px) scale(0.15);
    opacity: 0;
  }
  8% {
    opacity: 1;
    transform: translate(0px, 140px) scale(0.22);
  }
  25% {
    transform: translate(0px, 100px) scale(0.32);
    opacity: 1;
  }
  45% {
    transform: translate(0px, 15px) scale(0.48);
    opacity: 1;
  }
  65% {
    transform: translate(0px, 0px) scale(0.75);
    opacity: 1;
  }
  82% {
    transform: translate(0px, 0px) scale(1.08);
    opacity: 1;
  }
  92% {
    transform: translate(0px, 0px) scale(0.97);
    opacity: 1;
  }
  100% {
    transform: translate(0px, 0px) scale(1);
    opacity: 1;
  }
}

/* 4. تفتح طبقات بتلات الوردة الحمراء تدريجياً */
.petal-layer-back .bloom-petal {
  opacity: 0;
  transform: scale(0.25);
  transform-origin: 140px 132px;
}
.rose-growth-stage.growth-active .petal-layer-back .petal-back-left {
  animation: petalUnfoldBackLeft 1.4s cubic-bezier(0.25, 1, 0.5, 1) 2.8s forwards;
}
.rose-growth-stage.growth-active .petal-layer-back .petal-back-right {
  animation: petalUnfoldBackRight 1.4s cubic-bezier(0.25, 1, 0.5, 1) 2.9s forwards;
}
.rose-growth-stage.growth-active .petal-layer-back .petal-back-top {
  animation: petalUnfoldBackTop 1.4s cubic-bezier(0.25, 1, 0.5, 1) 3.1s forwards;
}

@keyframes petalUnfoldBackLeft {
  0% { opacity: 0; transform: scale(0.2) rotate(-20deg); }
  60% { opacity: 1; transform: scale(1.1) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes petalUnfoldBackRight {
  0% { opacity: 0; transform: scale(0.2) rotate(20deg); }
  60% { opacity: 1; transform: scale(1.1) rotate(-5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes petalUnfoldBackTop {
  0% { opacity: 0; transform: scale(0.2) translateY(20px); }
  60% { opacity: 1; transform: scale(1.08) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.petal-layer-mid .bloom-petal {
  opacity: 0;
  transform: scale(0.3);
  transform-origin: 140px 132px;
}
.rose-growth-stage.growth-active .petal-layer-mid .petal-mid-left {
  animation: petalUnfoldMidLeft 1.2s cubic-bezier(0.25, 1, 0.5, 1) 3.2s forwards;
}
.rose-growth-stage.growth-active .petal-layer-mid .petal-mid-right {
  animation: petalUnfoldMidRight 1.2s cubic-bezier(0.25, 1, 0.5, 1) 3.3s forwards;
}
.rose-growth-stage.growth-active .petal-layer-mid .petal-mid-bottom {
  animation: petalUnfoldMidBottom 1.2s cubic-bezier(0.25, 1, 0.5, 1) 3.4s forwards;
}

@keyframes petalUnfoldMidLeft {
  0% { opacity: 0; transform: scale(0.3) rotate(-15deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes petalUnfoldMidRight {
  0% { opacity: 0; transform: scale(0.3) rotate(15deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes petalUnfoldMidBottom {
  0% { opacity: 0; transform: scale(0.3); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

.petal-layer-front .bloom-petal {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 140px 132px;
}
.rose-growth-stage.growth-active .petal-layer-front .petal-front-left {
  animation: petalUnfoldFront 1.0s ease-out 3.5s forwards;
}
.rose-growth-stage.growth-active .petal-layer-front .petal-front-right {
  animation: petalUnfoldFront 1.0s ease-out 3.6s forwards;
}
@keyframes petalUnfoldFront {
  0% { opacity: 0; transform: scale(0.4); }
  70% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* 5. قلب الوردة اللولبي */
.petal-layer-core {
  animation: coreBloomPulse 3.5s infinite alternate ease-in-out;
}
@keyframes coreBloomPulse {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.04); }
}

/* 6. التاج الذهبي الذي يتوج الوردة بعد اكتمال نموها */
.growth-crown-group {
  opacity: 0;
  transform: translateY(-35px) scale(0.5);
}
.rose-growth-stage.growth-active .growth-crown-group {
  animation: crownDescend 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 4.2s forwards, crownFloatRegal 2.5s infinite alternate ease-in-out 5.4s;
}
@keyframes crownDescend {
  0% { opacity: 0; transform: translateY(-35px) scale(0.5); }
  70% { opacity: 1; transform: translateY(3px) scale(1.15); }
  100% { opacity: 1; transform: translateY(0px) scale(1); }
}
@keyframes crownFloatRegal {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(2deg); }
}

/* 7. بريق النجوم والشرارات */
.growth-sparkle {
  opacity: 0;
  transform: scale(0);
}
.rose-growth-stage.growth-active .sp-1 { animation: popSparkle 1.8s infinite ease-in-out 3.8s; }
.rose-growth-stage.growth-active .sp-2 { animation: popSparkle 2.0s infinite ease-in-out 4.1s; }
.rose-growth-stage.growth-active .sp-3 { animation: popSparkle 1.9s infinite ease-in-out 4.3s; }
.rose-growth-stage.growth-active .sp-4 { animation: popSparkle 2.2s infinite ease-in-out 4.5s; }
.rose-growth-stage.growth-active .sp-5 { animation: popSparkle 1.7s infinite ease-in-out 4.7s; }

@keyframes popSparkle {
  0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
  100% { opacity: 0; transform: scale(0.6) rotate(90deg); }
}

/* تنفس لطيف للوردة الحمراء المكتملة */
.rose-growth-stage.growth-active #growingRoseSvg {
  animation: roseGentleSway 4s ease-in-out 4.6s infinite alternate;
  transform-origin: 140px 285px;
}
@keyframes roseGentleSway {
  0% { transform: rotate(-1.5deg); }
  100% { transform: rotate(1.5deg); }
}


/* Hide all XP and Gamified Points Bars/Badges */
.mc-xp-bar,
.mc-level-badge,
.xp-badge,
.points-badge,
.game-xp,
.xp-val {
  display: none !important;
}
