@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&family=Fredoka:wght@500;600;700&display=swap');

:root {
  /* Cute Cat Kawaii Color Palette */
  --cat-pink-primary: #ff6584;
  --cat-pink-deep: #ff4d6d;
  --cat-pink-light: #ffccd5;
  --cat-pink-soft: #fff0f3;
  --cat-peach: #ffb4a2;
  --cat-yellow: #ffd166;
  --cat-mint: #10b981;
  --cat-mint-light: #d1fae5;
  --cat-purple: #c084fc;
  --cat-purple-light: #f3e8ff;
  --cat-sky: #38bdf8;
  --cat-sky-light: #e0f2fe;
  --cat-dark: #33202a;
  --cat-text: #4a3340;
  --cat-muted: #8d7082;
  
  /* App Theme Tokens */
  --primary: #ff6584;
  --primary-light: #ffccd5;
  --primary-dark: #d63384;
  --secondary: #ffd166;
  --secondary-dark: #f59e0b;
  --accent: #c084fc;
  --success: #10b981;
  --error: #f43f5e;
  --warning: #ffd166;
  --background: #fff5f7;
  --text-dark: #33202a;
  --text-light: #ffffff;
  --text-muted: #8d7082;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 182, 193, 0.6);
  --glass-shadow: 0 18px 45px rgba(255, 117, 143, 0.16);

  /* Backward Compatibility Mappings */
  --mc-grass: #ff758f;
  --mc-grass-dark: #e64980;
  --mc-grass-light: #ffa8ba;
  --mc-dirt: #ffd166;
  --mc-dirt-dark: #f59e0b;
  --mc-stone: #fce7f3;
  --mc-stone-dark: #f472b6;
  --mc-stone-light: #fff0f3;
  --mc-bedrock: #fff5f7;
  --mc-diamond: #38bdf8;
  --mc-diamond-dark: #0284c7;
  --mc-gold: #ffd166;
  --mc-gold-dark: #f59e0b;
  --mc-emerald: #10b981;
  --mc-emerald-dark: #059669;
  --mc-redstone: #f43f5e;
  --mc-wood: #ffb4a2;
  --mc-wood-dark: #e76f51;
  --mc-gui-bg: #fff0f3;
  --mc-gui-dark: #8d7082;
  --mc-gui-light: #ffffff;
  --mc-gui-shadow: rgba(255, 182, 193, 0.4);
  --mc-obsidian: #4a2840;

  --border-radius-lg: 24px;
  --border-radius-md: 18px;
  --border-radius-sm: 12px;
  --transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Custom Cute Pastel Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: #fff0f3;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff758f 0%, #ff4d6d 100%);
  border-radius: 10px;
  border: 2px solid #fff0f3;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff4d6d;
}

body {
  direction: rtl;
  text-align: right;
  background-color: #fff5f7;
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(255, 182, 193, 0.4) 0%, transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(255, 209, 220, 0.45) 0%, transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(243, 232, 255, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #fff0f3 0%, #fdf2f8 50%, #f5f3ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-dark);
  overflow-x: hidden;
  position: relative;
}

/* Background Cute Floating Elements (Paw prints, blossoms, sparkles) */
.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.55;
  animation: floatPaw 22s infinite ease-in-out alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  filter: drop-shadow(0 8px 16px rgba(255, 117, 143, 0.25));
  user-select: none;
}

.shape-1 { 
  top: 50px; 
  left: 50px; 
  animation-duration: 24s;
  transform: rotate(15deg);
}
.shape-1::before {
  content: '🐾';
  font-size: 4rem;
}

.shape-2 { 
  bottom: 80px; 
  right: 60px; 
  animation-duration: 28s; 
  transform: rotate(-20deg);
}
.shape-2::before {
  content: '🌸';
  font-size: 3.8rem;
}

.shape-3 { 
  top: 45%; 
  left: 88%; 
  animation-duration: 20s; 
  transform: rotate(25deg);
}
.shape-3::before {
  content: '🎀';
  font-size: 3.4rem;
}

@keyframes floatPaw {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-45px) rotate(15deg) scale(1.08); }
  100% { transform: translateY(-15px) rotate(-15deg) scale(0.95); }
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 70px;
}

/* ========================================================
   CUTE CAT HERO HEADER (Rimas Alaa Edition)
   ======================================================== */
.hero-header.mc-hero-header,
.stark-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.92) 100%);
  border: 2px solid rgba(255, 175, 190, 0.65);
  box-shadow: 0 16px 40px rgba(255, 117, 143, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 20px 32px;
  color: var(--cat-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: visible;
  margin-bottom: 2.2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-header.mc-hero-header::after {
  content: '🐾';
  position: absolute;
  left: 20px;
  bottom: -20px;
  font-size: 110px;
  opacity: 0.08;
  transform: rotate(-15deg);
  pointer-events: none;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Cute Cat Avatar with Cat Ears for Rimas Alaa */
.minecraft-avatar-wrap,
.stark-logo-container {
  position: relative;
  width: 92px;
  height: 92px;
  background: #fff0f3;
  border: 4px solid #ff758f;
  box-shadow: 0 10px 28px rgba(255, 101, 132, 0.4), inset 0 0 12px rgba(255, 182, 193, 0.5);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  cursor: pointer;
}

/* 3D Cute Cat Ears on Avatar */
.minecraft-avatar-wrap::before,
.minecraft-avatar-wrap::after {
  content: '';
  position: absolute;
  top: -14px;
  width: 26px;
  height: 30px;
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  border-radius: 50% 50% 0 0;
  z-index: 2;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(255, 101, 132, 0.35);
  transition: transform 0.25s ease;
}

.minecraft-avatar-wrap::before {
  left: 3px;
  transform: rotate(-28deg);
}

.minecraft-avatar-wrap::after {
  right: 3px;
  transform: rotate(28deg);
}

.minecraft-avatar-wrap:hover::before {
  transform: rotate(-35deg) scale(1.1);
}

.minecraft-avatar-wrap:hover::after {
  transform: rotate(35deg) scale(1.1);
}

.minecraft-avatar-wrap:hover,
.stark-logo-container:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 16px 36px rgba(255, 101, 132, 0.55);
}

.minecraft-avatar-img,
.stark-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  z-index: 1;
}

/* Cute Ribbon / Crown on Avatar */
.mc-avatar-crown {
  position: absolute;
  bottom: -6px;
  right: -8px;
  font-size: 28px;
  filter: drop-shadow(0 3px 6px rgba(255, 77, 109, 0.4));
  animation: ribbonWiggle 2.5s infinite ease-in-out alternate;
  z-index: 3;
}

@keyframes ribbonWiggle {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(8deg); }
  100% { transform: translateY(0) rotate(-6deg); }
}

.mc-edition-tag {
  font-family: 'Fredoka', 'Changa', sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(255, 101, 132, 0.3);
}

.hero-title h1,
.stark-title {
  font-family: 'Changa', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #33202a;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.hero-title p,
.stark-subtitle {
  font-size: 15px;
  color: #7c6875;
  text-shadow: none;
  margin-top: 4px;
  font-weight: 600;
}

/* Cute Strawberry Candy XP Bar */
.mc-xp-container {
  margin-top: 10px;
  max-width: 480px;
}

.mc-xp-bar {
  background: #ffe3e8;
  border: 2px solid #ffb4a2;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(255, 101, 132, 0.15);
}

.mc-xp-bar-fill {
  background: linear-gradient(90deg, #ff758f 0%, #ffb4a2 100%);
  box-shadow: 0 0 12px rgba(255, 117, 143, 0.6);
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.4s ease;
  animation: xpPulse 2s infinite alternate;
}

@keyframes xpPulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.15); }
}

.mc-xp-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.student-tag.mc-level-tag {
  background: #fff0f3;
  border: 1.5px solid #ffccd5;
  color: #d63384;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(255, 101, 132, 0.1);
}

.mc-level-badge {
  font-family: 'Fredoka', 'Changa', monospace;
  font-size: 14px;
  font-weight: 800;
  color: #ff4d6d;
  background: #fff0f3;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid #ffccd5;
}

/* Cute Hotbar Badges & Stats */
.stats-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.stat-item.mc-stat-item {
  background: #ffffff;
  border: 2px solid #ffccd5;
  box-shadow: 0 6px 16px rgba(255, 101, 132, 0.12);
  border-radius: 18px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #33202a;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item.mc-stat-item:hover {
  transform: translateY(-3px);
  border-color: #ff758f;
  box-shadow: 0 10px 22px rgba(255, 101, 132, 0.22);
}

.stat-icon {
  font-size: 1.4rem;
}

.stat-val {
  font-family: 'Fredoka', 'Changa', monospace;
  font-size: 16px;
  font-weight: 800;
  color: #ff4d6d;
}

/* Cute Cat Gaming Button (عالم الألعاب) */
.mc-btn-play-steve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.35);
  border-radius: 999px;
  color: #ffffff;
  padding: 9px 20px;
  font-family: 'Changa', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mc-btn-play-steve:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 26px rgba(255, 77, 109, 0.5);
  background: linear-gradient(135deg, #ff6584 0%, #ff335c 100%);
}

.mc-btn-play-steve:active {
  transform: translateY(1px);
}

/* Cute Sound Button */
.sound-toggle-btn.mc-btn-sound {
  background: #ffffff;
  border: 2px solid #ffccd5;
  box-shadow: 0 4px 12px rgba(255, 101, 132, 0.12);
  border-radius: 50%;
  color: #ff4d6d;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-toggle-btn.mc-btn-sound:hover {
  background: #fff0f3;
  transform: scale(1.1);
  border-color: #ff758f;
}

/* ========================================================
   NAVIGATION TABS (Cute Pill Tabs)
   ======================================================== */
.navigation-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.sub-tabs {
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 182, 193, 0.5);
  box-shadow: 0 6px 16px rgba(255, 117, 143, 0.08);
  color: #4a3340;
  padding: 10px 24px;
  border-radius: 999px;
  font-family: 'Changa', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background: #fff0f3;
  transform: translateY(-3px);
  color: #ff4d6d;
  border-color: #ff758f;
  box-shadow: 0 10px 24px rgba(255, 117, 143, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  border-color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.4);
  color: #ffffff;
  transform: scale(1.04);
}

.sub-tabs .tab-btn {
  background: #fff8fa;
  border-color: #ffccd5;
  color: #634354;
  font-size: 1rem;
  padding: 8px 18px;
  box-shadow: 0 4px 12px rgba(255, 101, 132, 0.06);
}

.sub-tabs .tab-btn:hover {
  border-color: #ff758f;
  color: #ff4d6d;
}

.sub-tabs .tab-btn.active {
  background: linear-gradient(135deg, #ffd166 0%, #ffb4a2 100%);
  color: #4a2800;
  border-color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.45);
  font-weight: 800;
}

/* ========================================================
   MAIN CONTENT CARD (Cute Glass Card)
   ======================================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(255, 182, 193, 0.6);
  box-shadow: 0 20px 50px rgba(255, 117, 143, 0.14);
  border-radius: 28px;
  padding: 2.4rem;
  margin-bottom: 2.2rem;
  color: #33202a;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: fadeIn 0.4s ease-in-out;
}

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

.section-title {
  font-family: 'Changa', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #ff4d6d;
  margin-bottom: 2rem;
  border-bottom: 4px solid #ffccd5;
  padding-bottom: 0.6rem;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '🐾';
  margin-right: 12px;
  font-size: 1.8rem;
}

/* Content blocks */
.block-container {
  margin-bottom: 2.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 2px dashed #fce7f3;
}

.block-title {
  font-family: 'Changa', sans-serif;
  font-size: 1.55rem;
  color: #d63384;
  margin-bottom: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.block-title::before {
  content: '🌸';
  font-size: 1.4rem;
}

/* Cute Cat Golden Rule Box */
.rule-box {
  background: #fffbeb;
  border: 2px solid #fde68a;
  border-right: 8px solid #ff758f;
  box-shadow: 0 8px 22px rgba(255, 209, 102, 0.2);
  border-radius: 20px;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  font-weight: 600;
  color: #78350f;
  font-size: 1.2rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

/* Cute Soft Explanation Box */
.explanation-box {
  background: #fdf4f7;
  border: 2px solid #fbcfe8;
  box-shadow: 0 6px 18px rgba(255, 101, 132, 0.08);
  border-radius: 20px;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  font-size: 1.2rem;
  line-height: 1.9;
  color: #33202a;
  white-space: pre-wrap;
}

/* ========================================================
   CUTE STYLED TABLES
   ======================================================== */
.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.8rem 0;
  font-size: 1.15rem;
  background: #ffffff;
  color: #33202a;
  border: 2px solid #ffccd5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(255, 117, 143, 0.12);
}

.styled-table th, .styled-table td {
  padding: 1.1rem;
  text-align: center;
  border-bottom: 1px solid #fce7f3;
  border-right: 1px solid #fce7f3;
}

.styled-table th {
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  border-bottom: 2px solid #ff335c;
  color: #ffffff;
  font-family: 'Changa', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
}

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

.styled-table tr:nth-of-type(even) {
  background-color: #fff8fa;
}

/* Question Rows (Cute Cat Paw Cards) */
.question-row {
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1.3rem;
  background: #ffffff;
  border: 2px solid #ffccd5;
  box-shadow: 0 6px 18px rgba(255, 117, 143, 0.1);
  border-radius: 20px;
  transition: all 0.25s ease;
}

.question-row:hover {
  transform: translateX(-6px);
  border-color: #ff758f;
  box-shadow: 0 10px 26px rgba(255, 117, 143, 0.2);
}

.question-number {
  background: linear-gradient(135deg, #ffd166 0%, #ffb4a2 100%);
  color: #4a2800;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', 'Changa', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.4);
  flex-shrink: 0;
}

.red-digit {
  color: #f43f5e;
  font-weight: 800;
}

/* Cute Tactile Pill Buttons */
.btn {
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.35);
  color: white;
  padding: 0.75rem 1.8rem;
  font-family: 'Changa', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover {
  background: linear-gradient(135deg, #ff6584 0%, #ff335c 100%);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 26px rgba(255, 77, 109, 0.5);
}

.btn:active {
  transform: translateY(1px);
}

/* Reveal Answer Box (Cute Mint Secret Cache) */
.answer {
  color: #064e3b;
  font-weight: bold;
  font-size: 1.2rem;
  display: none;
  margin-right: 1rem;
  padding: 0.9rem 1.6rem;
  background: #d1fae5;
  border: 2px solid #10b981;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
  white-space: pre-wrap;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.pattern-boxes {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.pattern-box {
  background: #fff0f3;
  border: 2px solid #ffccd5;
  box-shadow: 0 4px 10px rgba(255, 101, 132, 0.1);
  border-radius: 16px;
  padding: 0.7rem 1.4rem;
  font-weight: bold;
  font-size: 1.35rem;
  color: #d63384;
}

.options-container {
  display: flex;
  gap: 1.1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.option-btn {
  background: #ffffff;
  border: 2px solid #ffccd5;
  box-shadow: 0 6px 16px rgba(255, 101, 132, 0.1);
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Changa', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #33202a;
  transition: all 0.2s ease;
}

.option-btn:hover {
  background: #fff0f3;
  transform: translateY(-3px);
  border-color: #ff758f;
  color: #ff4d6d;
}

.option-btn.correct {
  background: #10b981 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45) !important;
  transform: scale(1.05);
}

.option-btn.wrong {
  background: #f43f5e !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.45) !important;
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
  40%, 60% { transform: translate3d(5px, 0, 0); }
}

.text-lg {
  font-size: 1.25rem;
  font-weight: bold;
}

.carry-over {
  display: block;
  color: var(--secondary);
  font-size: 0.85em;
  margin-bottom: -5px;
}
.carry-over span {
  display: inline-block;
}

/* ========================================================
   FLOATING WHITEBOARD BUTTON (ستوديو التخطيط الكاواي)
   ======================================================== */
.floating-board-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.45);
  color: white;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: 'Changa', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.25s ease;
  animation: bounce 2.5s infinite;
  display: none;
}

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

.floating-board-btn:hover {
  background: linear-gradient(135deg, #ff6584 0%, #ff335c 100%);
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 16px 36px rgba(255, 77, 109, 0.6);
  animation: none;
}

/* Cute Whiteboard Modal */
.whiteboard-modal {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 52%;
  height: 70%;
  min-width: 320px;
  max-width: calc(100vw - 40px);
  min-height: 340px;
  z-index: 2000;
}

.whiteboard-container {
  background: #ffffff;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 3px solid #ffccd5;
  box-shadow: 0 25px 60px rgba(255, 101, 132, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.3s ease-out;
}

@keyframes modalPopIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.whiteboard-header {
  background: #fff0f3;
  border-bottom: 2px solid #ffccd5;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.whiteboard-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.color-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.color-btn:hover, .color-btn.active {
  transform: scale(1.25);
  border-color: #ff758f;
  box-shadow: 0 0 12px #ff758f;
}

.tool-btn {
  background: #ffffff;
  border: 2px solid #ffccd5;
  box-shadow: 0 4px 10px rgba(255, 101, 132, 0.1);
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 1.15rem;
  color: #33202a;
  cursor: pointer;
  transition: all 0.2s;
}

.tool-btn:hover {
  background: #fff0f3;
  border-color: #ff758f;
  transform: translateY(-2px);
}

.close-board-btn {
  background: #f43f5e;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
  color: white;
  border-radius: 999px;
  padding: 7px 18px;
  font-family: 'Changa', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s;
}

.close-board-btn:hover {
  background: #e11d48;
  transform: scale(1.05);
}

.canvas-wrapper {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: #ffffff;
  cursor: crosshair;
}

#whiteboardCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========================================================
   MASCOT CONTAINER (Cute Cheering Kitten for Rimas)
   ======================================================== */
.mascot-container {
  position: fixed;
  bottom: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1500;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mascot-container.show {
  transform: translateY(0);
}

.mascot-bubble {
  background: #ffffff;
  border: 2px solid #ff758f;
  box-shadow: 0 10px 25px rgba(255, 101, 132, 0.25);
  padding: 12px 20px;
  border-radius: 20px;
  font-family: 'Changa', sans-serif;
  font-weight: 800;
  color: #ff4d6d;
  margin-bottom: 12px;
  position: relative;
  font-size: 1.15rem;
}

.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #ff758f transparent transparent transparent;
  display: block;
  width: 0;
}

.mascot-img {
  width: 96px;
  height: 96px;
  border-radius: 50% !important;
  background: url('../images/ريماس.png') center/cover no-repeat;
  border: 4px solid #ff758f;
  box-shadow: 0 0 25px rgba(255, 101, 132, 0.6), inset 0 0 10px rgba(255, 182, 193, 0.5);
  animation: floatMascot 3s ease-in-out infinite;
}

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

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); color: #ffd166; }
  100% { transform: scale(1); }
}

.star-pop-anim {
  animation: starPop 0.4s ease-out;
}

/* ========================================================
   MODALS (Certificate & Mini-Games)
   ======================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(51, 32, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.25s ease-out;
}

.close-modal-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #f43f5e;
  color: white;
  border: 3px solid #ffffff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-modal-btn:hover { transform: scale(1.15) rotate(90deg); }

/* Cute Royal Kitten Diploma */
.certificate-container {
  position: relative;
  background: #ffffff;
  padding: 26px;
  border: 3px solid #ffccd5;
  box-shadow: 0 25px 60px rgba(255, 101, 132, 0.35);
  border-radius: 30px;
  width: 90%;
  max-width: 820px;
  text-align: center;
}

.certificate-content {
  background: linear-gradient(135deg, #fffafc 0%, #fff0f3 100%);
  padding: 40px;
  border-radius: 22px;
  border: 3px solid #ffd166;
  box-shadow: inset 0 0 30px rgba(255, 209, 102, 0.2), 0 8px 30px rgba(255, 101, 132, 0.15);
  text-align: center;
  color: #33202a;
  position: relative;
}

.cert-header {
  font-family: 'Changa', sans-serif;
  font-size: 2.8rem;
  color: #ff4d6d;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(255, 77, 109, 0.2);
}

.cert-body {
  font-size: 1.45rem;
  color: #4a3340;
  line-height: 2.1;
}

.cert-name {
  font-family: 'Changa', sans-serif;
  font-size: 2.7rem;
  color: #d63384;
  font-weight: 900;
  display: inline-block;
  margin: 10px 0;
  border-bottom: 3px solid #ff758f;
  padding: 0 26px;
}

.cert-chapter {
  color: #ff4d6d;
  font-weight: bold;
}

.cert-footer {
  margin-top: 35px;
  display: flex;
  justify-content: center;
}

.cert-seal {
  background: linear-gradient(135deg, #ffd166 0%, #ffb4a2 100%);
  border: 4px solid #ffffff;
  color: #4a2800;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Changa', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(255, 209, 102, 0.5);
  position: relative;
}

.cert-seal::after {
  content: '🐾';
  position: absolute;
  bottom: -15px;
  font-size: 2rem;
}

/* Print Media Query */
@media print {
  body * {
    visibility: hidden;
  }
  #printableCertificate, #printableCertificate * {
    visibility: visible;
  }
  #printableCertificate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    border: none;
    padding: 0;
  }
}

/* Cute Kitten Memory Mini-Game */
.minigame-container {
  position: relative;
  background: #ffffff;
  border: 3px solid #ffccd5;
  box-shadow: 0 25px 60px rgba(255, 101, 132, 0.3);
  border-radius: 28px;
  padding: 30px;
  width: 95%;
  max-width: 620px;
}

.minigame-header {
  text-align: center;
  margin-bottom: 20px;
  color: #ff4d6d;
  font-family: 'Changa', sans-serif;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.memory-card {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(255, 77, 109, 0.25);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: transparent;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  direction: ltr;
}

.memory-card::after {
  content: '🐾';
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.85);
}

.memory-card.flipped {
  background: #ffffff;
  color: #33202a;
  border-color: #ff758f;
  box-shadow: 0 8px 20px rgba(255, 101, 132, 0.3);
  transform: rotateY(180deg);
}

.memory-card.flipped::after {
  display: none;
}

.memory-card.flipped .content {
  transform: rotateY(180deg);
}

.memory-card.matched {
  background: #10b981;
  color: white;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  animation: pulse 1s;
}

.memory-card.matched::after {
  display: none;
}

.memory-card.matched .content {
  transform: rotateY(180deg);
}

/* ========================================================
   MODERN RICH MEDIA CARDS (Chapters & Lessons)
   ======================================================== */
.treasure-map-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  padding: 24px 10px;
  width: 100%;
}

.map-node,
.map-node-card {
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  border: 2px solid #ffccd5;
  box-shadow: 0 12px 30px rgba(255, 101, 132, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-decoration: none;
}

.map-node:hover,
.map-node-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #ff758f;
  box-shadow: 0 20px 45px rgba(255, 101, 132, 0.28);
}

/* Dedicated Image Window (Clear & Unobscured) */
.map-node-thumb {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
  background: #fff0f3;
}

.map-node-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.map-node:hover .map-node-img,
.map-node-card:hover .map-node-img {
  transform: scale(1.08);
}

/* Subtle soft fade on bottom edge of image only */
.map-node-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
}

/* Frosted Badge over image */
.map-node-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #d63384;
  font-family: 'Fredoka', 'Changa', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  padding: 4px 14px;
  border-radius: 50px;
  border: 1.5px solid #ffccd5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

/* Card Body & Information */
.map-node-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  text-align: center;
  gap: 14px;
  background: #ffffff;
}

.map-node-title {
  font-family: 'Changa', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #33202a;
  line-height: 1.45;
  margin: 0;
  transition: color 0.2s ease;
}

.map-node:hover .map-node-title,
.map-node-card:hover .map-node-title {
  color: #ff4d6d;
}

/* Integrated Button (Action CTA) */
.map-node-btn {
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  color: #ffffff;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: 'Changa', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(255, 77, 109, 0.3);
  transition: all 0.25s ease;
}

.map-node:hover .map-node-btn,
.map-node-card:hover .map-node-btn {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(255, 77, 109, 0.45);
}

/* Special Cards: Game & Certificate */
.map-node-special .map-special-thumb {
  background: linear-gradient(135deg, #fdf2f8, #f5f3ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-node-special .map-cert-thumb {
  background: linear-gradient(135deg, #fffbeb, #fff0f3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.special-icon {
  font-size: 3.8rem;
  filter: drop-shadow(0 6px 12px rgba(255, 101, 132, 0.25));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-node-special:hover .special-icon {
  transform: scale(1.2) rotate(6deg);
}

.special-btn {
  background: linear-gradient(135deg, #ffd166 0%, #ff758f 100%) !important;
  color: #4a2800 !important;
  box-shadow: 0 6px 16px rgba(255, 209, 102, 0.4) !important;
}

.locked-btn {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  border: 1.5px solid #e2e8f0;
}

/* ========================================================
   INTERACTIVE CLASSROOM (Cute Kitty Studio)
   ======================================================== */
.classroom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 92%;
  max-width: 1200px;
  height: 90vh;
  background: linear-gradient(135deg, #fffafc 0%, #fdf2f8 50%, #f5f3ff 100%);
  border: 3px solid #ffccd5;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(255, 101, 132, 0.25);
  position: relative;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.hologram-board {
  width: 100%;
  flex: 1;
  min-height: 250px;
  background: #ffffff;
  border: 3px solid #ffccd5;
  box-shadow: 0 10px 30px rgba(255, 101, 132, 0.12);
  border-radius: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hologram-content {
  z-index: 2;
  text-align: center;
  color: #ff4d6d;
  font-family: 'Changa', sans-serif;
  font-size: 2.3rem;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(255, 77, 109, 0.15);
  transition: all 0.4s ease;
}

.characters-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  height: 150px;
  padding: 0 20px;
  flex-shrink: 0;
}

.character {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.char-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #ffd166;
  box-shadow: 0 8px 24px rgba(255, 209, 102, 0.4);
  object-fit: cover;
  transition: transform 0.3s;
}

.char-img.speaking {
  transform: scale(1.1);
  box-shadow: 0 0 25px #ff758f;
  border-color: #ff758f;
}

.student-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50% !important;
  background: #fff0f3;
  border: 4px solid #ff758f !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #d63384;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(255, 101, 132, 0.4) !important;
  transition: transform 0.3s;
}

.dialogue-bubble {
  display: none !important;
  position: absolute;
  bottom: 120px;
  max-width: 300px;
  background: #ffffff;
  border: 2px solid #ff758f;
  border-radius: 20px;
  padding: 16px;
  color: #33202a;
  font-size: 1.15rem;
  line-height: 1.7;
  box-shadow: 0 10px 25px rgba(255, 101, 132, 0.2);
  transition: opacity 0.3s ease;
  z-index: 10;
}

.teacher-bubble {
  left: 0;
  border-bottom-left-radius: 0;
}

.student-bubble {
  right: 0;
  border-bottom-right-radius: 0;
  border-color: #ffd166;
  box-shadow: 0 8px 20px rgba(255, 209, 102, 0.35);
}

.start-lesson-btn {
  margin-top: 15px;
  padding: 12px 34px;
  font-family: 'Changa', sans-serif;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.35);
  color: white;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.start-lesson-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.5);
}

/* Kinetic Games Section */
.game-container {
  background: #ffffff;
  border: 3px solid #ffccd5;
  border-radius: 28px;
  padding: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 15px 40px rgba(255, 117, 143, 0.12);
}

.game-title {
  color: #ff4d6d;
  font-family: 'Changa', sans-serif;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
  font-weight: 900;
}

.game-question {
  font-size: 1.5rem;
  color: #33202a;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.game-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.game-btn {
  background: #ffffff;
  border: 2px solid #ffccd5;
  box-shadow: 0 6px 16px rgba(255, 101, 132, 0.1);
  color: #33202a;
  padding: 1rem 2.2rem;
  font-family: 'Changa', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.game-btn:hover {
  transform: translateY(-4px);
  border-color: #ff758f;
  background: #fff0f3;
  color: #ff4d6d;
}

.game-btn.correct {
  background: #10b981;
  border-color: #ffffff;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.game-btn.wrong {
  background: #f43f5e;
  border-color: #ffffff;
  color: #ffffff;
  animation: shake 0.5s;
}

.game-feedback {
  font-size: 1.35rem;
  font-weight: bold;
  min-height: 2rem;
  margin-top: 1rem;
}

.game-score {
  font-size: 1.3rem;
  color: #ff4d6d;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* ========================================================
   CUTE CAT CELEBRATION MODAL OVERLAY
   ======================================================== */
.steve-dance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(51, 32, 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.3s ease;
}

.steve-dance-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.steve-dance-box {
  background: #ffffff;
  border: 3px solid #ffccd5;
  box-shadow: 0 25px 60px rgba(255, 101, 132, 0.35);
  border-radius: 30px;
  width: 90%;
  max-width: 480px;
  padding: 28px;
  text-align: center;
  position: relative;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.steve-dance-overlay.active .steve-dance-box {
  transform: scale(1);
}

.steve-dance-close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f43f5e;
  border: 2px solid #ffffff;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.steve-dance-close-btn:hover {
  transform: scale(1.15) rotate(90deg);
}

.steve-dance-header h3 {
  font-family: 'Changa', sans-serif;
  color: #ff4d6d;
  font-size: 1.45rem;
  margin-top: 6px;
  font-weight: 900;
}

.steve-svg-stage {
  margin: 15px auto;
  width: 220px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steve-svg-graphic {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Dancing Animation */
.steve-head {
  animation: steveHeadBob 0.5s infinite ease-in-out alternate;
  transform-origin: 120px 85px;
}
@keyframes steveHeadBob {
  0% { transform: rotate(-8deg) translateY(-2px); }
  100% { transform: rotate(8deg) translateY(2px); }
}

.steve-arm-left {
  animation: steveArmDanceLeft 0.5s infinite ease-in-out alternate;
  transform-origin: 75px 95px;
}
@keyframes steveArmDanceLeft {
  0% { transform: rotate(-55deg); }
  100% { transform: rotate(35deg); }
}

.steve-arm-right {
  animation: steveArmDanceRight 0.5s infinite ease-in-out alternate;
  transform-origin: 165px 95px;
}
@keyframes steveArmDanceRight {
  0% { transform: rotate(35deg); }
  100% { transform: rotate(-55deg); }
}

.steve-leg-left {
  animation: steveLegDanceLeft 0.5s infinite ease-in-out alternate;
  transform-origin: 103px 178px;
}
@keyframes steveLegDanceLeft {
  0% { transform: rotate(-25deg); }
  100% { transform: rotate(25deg); }
}

.steve-leg-right {
  animation: steveLegDanceRight 0.5s infinite ease-in-out alternate;
  transform-origin: 137px 178px;
}
@keyframes steveLegDanceRight {
  0% { transform: rotate(25deg); }
  100% { transform: rotate(-25deg); }
}

.steve-dance-footer p {
  color: #ff4d6d;
  font-family: 'Changa', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}

.steve-timer-bar {
  background: #ffe3e8;
  border: 1px solid #ffccd5;
  height: 10px;
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
}

.steve-timer-fill {
  background: linear-gradient(90deg, #ff758f 0%, #ffd166 100%);
  height: 100%;
  width: 100%;
  border-radius: 999px;
}

/* ========================================================
   RESPONSIVE DESIGN (Tablets & Mobiles)
   ======================================================== */
@media (max-width: 768px) {
  .hero-header.mc-hero-header,
  .stark-header {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px;
    gap: 18px;
  }
  .hero-profile {
    flex-direction: row;
    gap: 16px;
  }
  .hero-title h1, .stark-title {
    font-size: 21px;
  }
  .stats-badges {
    justify-content: center;
  }
  .glass-card {
    padding: 1.8rem 1.2rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .whiteboard-modal {
    width: 94%;
    height: 62%;
    left: 3%;
  }
  .treasure-map-view {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero-profile {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .mc-xp-labels {
    flex-direction: column;
    gap: 6px;
  }
  .navigation-tabs {
    gap: 8px;
  }
  .tab-btn {
    font-size: 0.98rem;
    padding: 8px 14px;
  }
  .question-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .options-container {
    width: 100%;
    justify-content: stretch;
  }
  .option-btn {
    width: 100%;
    text-align: center;
  }
}

/* ========================================================
   CUTE CATS IN-LESSON GAMES STYLING 🐾🌸
   ======================================================== */
.kinetic-games-container {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 24px;
  border: 2px dashed #ffccd5;
  box-shadow: 0 10px 30px rgba(255, 107, 139, 0.08);
  margin-top: 20px;
  position: relative;
  text-align: center;
}

.cat-game-question-banner {
  animation: catPulse 2s infinite ease-in-out;
  margin: 0 auto;
}

@keyframes catPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.cat-game-canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  touch-action: none;
  box-sizing: border-box;
}

.cat-active-game-box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cat-active-game-canvas-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cat-game-header-bar {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cat-game-stage-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .cat-game-canvas {
    border-radius: 14px !important;
  }
  .cat-game-question-banner {
    padding: 8px 12px !important;
    font-size: 0.95rem !important;
    border-radius: 14px !important;
  }
  .cat-game-level-pill {
    font-size: 0.82rem !important;
    padding: 4px 12px !important;
  }
}

.cat-game-level-pill {
  animation: catFloat 3s infinite ease-in-out;
}

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

/* ========================================================
   زر (العبي مع القطط) في الهيدر 🐾🎮
   ======================================================== */
.play-cats-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff758f 0%, #ff4d6d 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-family: 'Changa', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 50px;
  border: 2.5px solid #ffffff;
  box-shadow: 0 8px 25px rgba(255, 77, 109, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
  cursor: pointer;
  animation: playBtnPulse 2.5s infinite ease-in-out;
}

.play-cats-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px rgba(255, 77, 109, 0.65);
  background: linear-gradient(135deg, #ff4d6d 0%, #d63384 100%);
}

.play-cats-icon {
  font-size: 1.35rem;
  transition: transform 0.3s ease;
}

.play-cats-btn:hover .play-cats-icon {
  transform: rotate(-15deg) scale(1.25);
}

@keyframes playBtnPulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 12px 30px rgba(255, 77, 109, 0.7);
    transform: scale(1.03);
  }
}

@media (max-width: 768px) {
  .hero-header.mc-hero-header {
    justify-content: center;
    text-align: center;
  }
  .play-cats-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

