/* ==========================================================================
   JAWWAD PLAY — DESIGN SYSTEM & MAIN STYLESHEET
   Play • Learn • Discover (For Ages 2–6)
   Strict Responsive + Content Patch
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES / DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Atmospheric Colors */
  --sky-bg: #eaf5ff;
  --sky-bg-gradient: linear-gradient(180deg, #dcf0ff 0%, #f0f7ff 60%, #fff9f0 100%);
  --cloud-white: #ffffff;
  --creamy-white: #fdfbf7;
  --navy-dark: #162544;
  --navy-text: #20345e;
  --navy-muted: #5e718d;

  /* Playful World Accents */
  --play-coral: #ff6b57;
  --play-orange: #ff9138;
  --play-yellow: #ffc93c;
  --learn-blue: #3b82f6;
  --learn-cyan: #06b6d4;
  --create-purple: #8b5cf6;
  --create-pink: #ec4899;
  --stories-teal: #14b8a6;
  --stories-indigo: #4338ca;
  --discover-green: #10b981;
  --discover-lime: #84cc16;

  /* Gradients */
  --grad-play: linear-gradient(135deg, #ff7a63 0%, #ffad42 100%);
  --grad-learn: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --grad-create: linear-gradient(135deg, #9061f9 0%, #f17eb8 100%);
  --grad-stories: linear-gradient(135deg, #0d9488 0%, #4338ca 100%);
  --grad-sun: linear-gradient(135deg, #ffd043 0%, #ff8a3d 100%);
  --grad-mint: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --grad-candy: linear-gradient(135deg, #ff4f81 0%, #ff9559 100%);

  /* UI Tokens */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(22, 37, 68, 0.06);
  --shadow-md: 0 10px 25px rgba(22, 37, 68, 0.09);
  --shadow-lg: 0 20px 40px rgba(22, 37, 68, 0.12);
  --shadow-float: 0 15px 35px rgba(255, 107, 87, 0.25);
  --shadow-glow-yellow: 0 0 30px rgba(255, 201, 60, 0.4);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.35);

  /* Fonts */
  --font-display: 'Fredoka', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --container-max: 1100px;
  --container-pad: 20px;
  --nav-height: 72px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--sky-bg);
  color: var(--navy-text);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--sky-bg-gradient);
  background-attachment: fixed;
  color: var(--navy-text);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus styles for keyboard accessibility */
:focus-visible {
  outline: 3px solid var(--play-coral);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & TAG HELPERS
   -------------------------------------------------------------------------- */
.font-display {
  font-family: var(--font-display);
}

h1, h2, h3, h4, .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.18;
}

.text-gradient-play {
  background: var(--grad-play);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-learn {
  background: var(--grad-learn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-create {
  background: var(--grad-create);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 107, 87, 0.25);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--play-coral);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}

/* Jawwad Circular Section Icons */
.section-char-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
}

.section-char-icon-wrapper.left-aligned-icon {
  justify-content: flex-start;
}

.section-char-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 18px rgba(22, 37, 68, 0.12), 0 0 0 2px rgba(255, 107, 87, 0.25);
  background: #ffffff;
  animation: floatMedium 4s ease-in-out infinite;
  display: block;
}

/* --------------------------------------------------------------------------
   4. FLOATING PILL NAVIGATION
   -------------------------------------------------------------------------- */
.nav-pill-container {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  padding: 8px 14px 8px 18px;
  box-shadow: 0 12px 35px rgba(22, 37, 68, 0.12), 0 2px 8px rgba(255, 255, 255, 0.8) inset;
  max-width: 540px;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.nav-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(22, 37, 68, 0.16);
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--grad-play);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(255, 107, 87, 0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.btn-nav-download:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(255, 107, 87, 0.45);
}

/* --------------------------------------------------------------------------
   5. PLAYFUL BUTTONS (MAGIC BUTTONS)
   -------------------------------------------------------------------------- */
.btn-magic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-magic-primary {
  background: var(--grad-play);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 107, 87, 0.4), 0 3px 0 #d9432f;
}

.btn-magic-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(255, 107, 87, 0.48), 0 4px 0 #d9432f;
}

.btn-magic-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 4px 10px rgba(255, 107, 87, 0.3), 0 1px 0 #d9432f;
}

.btn-magic-secondary {
  background: #ffffff;
  color: var(--navy-dark);
  border: 2px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(22, 37, 68, 0.08), 0 3px 0 #cbd5e1;
}

.btn-magic-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px) scale(1.02);
}

.btn-magic-secondary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 2px 6px rgba(22, 37, 68, 0.08);
}

/* --------------------------------------------------------------------------
   6. CONTINUOUS JOURNEY / WORLD SCENERY & CONTAINER SYSTEM
   -------------------------------------------------------------------------- */
.play-world-journey {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.world-zone {
  position: relative;
  padding: 70px var(--container-pad) 60px;
  width: 100%;
}

.zone-container {
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 10;
  padding-inline: 16px;
}

/* Floating Decorative Elements */
.floating-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.float-anim-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.float-anim-medium {
  animation: floatMedium 4.5s ease-in-out infinite;
}

.float-anim-fast {
  animation: floatFast 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   7. SCENE 1 — OPENING PLAY WORLD (HERO)
   -------------------------------------------------------------------------- */
.scene-opening {
  min-height: 85vh;
  padding-top: calc(var(--nav-height) + 20px);
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--play-coral);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero-microcopy {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--navy-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-jawwad-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 20px;
}

.hero-jawwad-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 201, 60, 0.35) 0%, rgba(255, 107, 87, 0.15) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
  animation: pulseHalo 4s ease-in-out infinite;
}

.hero-jawwad-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(22, 37, 68, 0.15));
  animation: jawwadWaveEntrance 4s ease-in-out infinite;
  transform-origin: bottom center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   8. PLAY PATH DIVIDERS (WINDING CLOUDS & CURVES)
   -------------------------------------------------------------------------- */
.world-divider {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.world-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* --------------------------------------------------------------------------
   9. SCENE 2 — PLAY ZONE (BALLOON POP MINI-GAME)
   -------------------------------------------------------------------------- */
.zone-play {
  background: linear-gradient(180deg, #fff5ed 0%, #ffedd9 100%);
  border-radius: var(--radius-xl);
  margin: 20px auto;
  width: calc(100% - 24px);
  max-width: var(--container-max);
  box-shadow: 0 15px 40px rgba(255, 145, 56, 0.08);
}

.zone-header {
  text-align: center;
  max-width: 650px;
  width: 100%;
  margin: 0 auto 30px;
}

.zone-tag {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.zone-tag-play {
  background: rgba(255, 107, 87, 0.15);
  color: var(--play-coral);
}

.zone-tag-learn {
  background: rgba(59, 130, 246, 0.15);
  color: var(--learn-blue);
}

.zone-tag-create {
  background: rgba(139, 92, 246, 0.15);
  color: var(--create-purple);
}

.zone-tag-stories {
  background: rgba(20, 184, 166, 0.15);
  color: var(--stories-teal);
}

.zone-title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  margin-bottom: 8px;
}

.zone-subtitle {
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  color: var(--navy-muted);
}

/* Mini Game 1: Balloon Pop Stage */
.mini-game-card {
  background: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.game-instruction-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.game-instruction-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-score-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--play-yellow);
  color: var(--navy-dark);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(255, 201, 60, 0.4);
}

.balloon-play-stage {
  min-height: 220px;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.balloon-item {
  width: 64px;
  height: 80px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  box-shadow: inset -6px -6px 12px rgba(0, 0, 0, 0.15), 0 8px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease;
  user-select: none;
}

.balloon-item::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 8px;
  background: inherit;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.balloon-item:hover {
  transform: scale(1.08);
}

.balloon-item:active {
  transform: scale(0.92);
}

.balloon-red { background: linear-gradient(135deg, #ff4f81, #e11d48); }
.balloon-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.balloon-yellow { background: linear-gradient(135deg, #fde047, #ca8a04); }
.balloon-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.balloon-purple { background: linear-gradient(135deg, #c084fc, #9333ea); }

.balloon-pop-anim {
  animation: popEffect 0.3s forwards ease-out;
}

/* --------------------------------------------------------------------------
   10. SCENE 3 — LEARN ZONE (SOUND DETECTIVE MINI-GAME & AUDIO UX)
   -------------------------------------------------------------------------- */
.zone-learn {
  background: linear-gradient(180deg, #edf7ff 0%, #e0f2fe 100%);
  border-radius: var(--radius-xl);
  margin: 20px auto;
  width: calc(100% - 24px);
  max-width: var(--container-max);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.08);
}

.sound-game-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.sound-audio-trigger-wrapper {
  text-align: center;
  margin: 12px 0 22px;
}

.btn-play-sound-giant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--grad-learn);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  min-width: 200px;
  user-select: none;
}

.btn-play-sound-giant:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.45);
}

/* Active Orange Pause State */
.btn-play-sound-giant.is-playing-pause {
  background: var(--grad-play);
  box-shadow: 0 10px 25px rgba(255, 107, 87, 0.45);
  animation: pulseSoundOrange 1.2s infinite alternate ease-in-out;
}

@keyframes pulseSoundOrange {
  0% { transform: scale(1); box-shadow: 0 8px 20px rgba(255, 107, 87, 0.35); }
  100% { transform: scale(1.04); box-shadow: 0 12px 30px rgba(255, 107, 87, 0.6); }
}

.sound-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .sound-choices-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sound-choice-btn {
  background: #f8fafc;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sound-choice-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  transform: translateY(-2px);
}

.sound-choice-btn.correct {
  border-color: #10b981;
  background: #d1fae5;
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.sound-choice-btn.wrong {
  border-color: #ef4444;
  background: #fee2e2;
  animation: gentleShake 0.4s ease;
}

.sound-choice-icon {
  font-size: 2rem;
}

.sound-choice-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-dark);
}

.sound-feedback-message {
  min-height: 38px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   11. SCENE 4 — CREATE ZONE (STICKER CREATOR PLAYGROUND)
   -------------------------------------------------------------------------- */
.zone-create {
  background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
  border-radius: var(--radius-xl);
  margin: 20px auto;
  width: calc(100% - 24px);
  max-width: var(--container-max);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.08);
}

.sticker-playground-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.sticker-palette-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  background: #fdf4ff;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.sticker-select-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 2px solid #e9d5ff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sticker-select-btn:hover {
  transform: scale(1.1);
  border-color: #c084fc;
}

.sticker-select-btn.active {
  border-color: var(--create-purple);
  background: #f3e8ff;
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.sticker-canvas-area {
  min-height: 220px;
  background: linear-gradient(180deg, #dbeafe 0%, #bbf7d0 100%);
  border: 3px dashed #c084fc;
  border-radius: var(--radius-md);
  position: relative;
  cursor: crosshair;
  overflow: hidden;
}

.canvas-hint-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(32, 52, 94, 0.55);
  pointer-events: none;
  text-align: center;
  padding: 0 16px;
  width: 100%;
}

.placed-sticker {
  position: absolute;
  font-size: 2rem;
  transform: translate(-50%, -50%);
  animation: popEffect 0.25s ease-out;
  user-select: none;
  pointer-events: none;
}

.sticker-actions-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  gap: 8px;
  text-align: center;
}

.btn-clear-canvas {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  transition: all 0.2s ease;
  margin: 0 auto;
}

.btn-clear-canvas:hover {
  background: #e2e8f0;
  color: var(--navy-dark);
}

/* Stories & Values Title Break */
.stories-title-break {
  display: none;
}

/* --------------------------------------------------------------------------
   12. SCENE 5 — STORIES & VALUES
   -------------------------------------------------------------------------- */
.zone-stories {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  margin: 20px auto;
  width: calc(100% - 24px);
  max-width: var(--container-max);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.zone-stories .zone-title {
  color: #ffffff;
}

.zone-stories .zone-subtitle {
  color: #94a3b8;
}

.stories-stars-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0)),
                    radial-gradient(1.5px 1.5px at 230px 60px, #ffffff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 250px 250px;
  opacity: 0.4;
  pointer-events: none;
}

.stories-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stories-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.stories-jawwad-holder {
  display: flex;
  justify-content: center;
  position: relative;
}

.stories-reading-img {
  max-width: 300px;
  width: 85%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.stories-values-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (min-width: 768px) {
  .stories-values-cloud {
    justify-content: flex-start;
  }
}

.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.value-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   13. SCENE 6 — KNOW EXPRESSIONS (INTERACTIVE CHARACTER MOMENT)
   -------------------------------------------------------------------------- */
.zone-meet-jawwad {
  padding: 60px var(--container-pad) 50px;
  text-align: center;
}

.meet-jawwad-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 38px 24px 36px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.meet-display-area {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.meet-jawwad-char-img {
  max-height: 350px;
  width: auto;
  max-width: 95%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(22, 37, 68, 0.16));
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.meet-tabs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 580px;
  margin: 0 auto;
}

.meet-tab-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--navy-text);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.meet-tab-btn:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.meet-tab-btn.active {
  background: var(--play-coral);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 107, 87, 0.35);
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   14. SCENE 7 — MOBILE APP SHOWCASE (REAL APP SCREENSHOTS)
   -------------------------------------------------------------------------- */
.zone-app-showcase {
  padding: 70px var(--container-pad) 50px;
  text-align: center;
  position: relative;
}

.showcase-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    text-align: left;
  }
}

/* Mobile Visual Ordering and Balanced Spacing for App Showcase Section */
@media (max-width: 859px) {
  .showcase-info {
    display: contents;
  }

  .showcase-grid .section-char-icon-wrapper {
    order: 1;
    margin: 0 auto 10px;
  }

  /* Generous breathing room between JAWWAD PLAY APP tag and top of Phone Mockup */
  .showcase-grid .badge-tag {
    order: 2;
    margin: 0 auto 58px;
  }

  /* Generous breathing room below the complete Phone Mockup composition */
  .showcase-grid .mockup-wrapper {
    order: 3;
    margin: 0 auto 72px;
    width: 100%;
  }

  .showcase-grid .zone-title {
    order: 4;
    margin: 0 auto 12px;
    max-width: 500px;
  }

  .showcase-grid .zone-subtitle {
    order: 5;
    margin: 0 auto 20px;
    max-width: 500px;
  }

  .showcase-grid .store-badges-row {
    order: 6;
    margin: 0 auto;
    justify-content: center;
  }
}

/* Realistic Smartphone Device Mockup */
.mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.phone-jawwad-mascot {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 120px;
  max-width: 35vw;
  z-index: 20;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  animation: floatSlow 5s ease-in-out infinite;
}

@media (min-width: 600px) {
  .phone-jawwad-mascot {
    right: -30px;
    width: 160px;
  }
}

.phone-mockup {
  position: relative;
  width: 285px;
  height: 575px;
  background: #111827;
  border-radius: 46px;
  box-shadow: 0 25px 60px rgba(22, 37, 68, 0.25), 0 0 0 9px #27272a, 0 0 0 11px #52525b;
  overflow: hidden;
  z-index: 10;
  margin: 0 auto;
}

.phone-camera-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 30;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-screen-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Screenshot Slides inside Phone */
.phone-screen-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.phone-screen-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-screen-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.75);
  padding: 8px 4px;
  z-index: 25;
}

.phone-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  transition: all 0.25s ease;
  cursor: pointer;
}

.phone-tab-dot.active {
  width: 20px;
  border-radius: var(--radius-full);
  background: var(--play-coral);
}

/* Showcase Text & Badges */
@media (max-width: 859px) {
  .showcase-info {
    display: contents;
  }
}

@media (min-width: 860px) {
  .showcase-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

.store-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
}

.store-download-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.store-download-stack--center {
  align-items: center;
}

@media (min-width: 860px) {
  .showcase-info .store-download-stack {
    align-items: flex-start;
  }
}

.btn-apk-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: min(280px, 100%);
  min-height: 48px;
  padding: 12px 24px;
  background: var(--grad-play);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(255, 107, 87, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-apk-download:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(255, 107, 87, 0.42);
}

.btn-apk-download:active {
  transform: scale(0.98);
}

.btn-apk-download:focus-visible {
  outline: 3px solid var(--learn-blue);
  outline-offset: 3px;
}

.apk-download-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--navy-muted);
  line-height: 1.3;
  margin-top: -2px;
}

.apk-download-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(22, 37, 68, 0.94);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 107, 87, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.apk-download-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 860px) {
  .store-badges-row {
    justify-content: flex-start;
  }
}

.store-badge-link {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.store-badge-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px rgba(22, 37, 68, 0.15);
}

.store-badge-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* Direct Store Badge Micro-interaction & Toast Notification */
.store-direct-badge {
  cursor: pointer;
  user-select: none;
}

.store-direct-badge.pulse-active {
  animation: badgePulse 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.94); box-shadow: 0 0 20px rgba(255, 107, 87, 0.5); }
  100% { transform: scale(1); }
}

.jawwad-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(22, 37, 68, 0.94);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 107, 87, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.jawwad-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   15. SCENE 8 — PARENT TRUST (COMPACT & BEAUTIFUL)
   -------------------------------------------------------------------------- */
.zone-parent-trust {
  padding: 60px var(--container-pad) 50px;
  text-align: center;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 860px;
  width: 100%;
  margin: 28px auto 0;
}

@media (min-width: 768px) {
  .trust-badges-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.trust-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--learn-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.trust-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-dark);
}

.trust-card-desc {
  font-size: 0.82rem;
  color: var(--navy-muted);
}

/* --------------------------------------------------------------------------
   16. SCENE 9 — MORE WORLDS (ZABIRA ECOSYSTEM PORTALS)
   -------------------------------------------------------------------------- */
.zone-more-worlds {
  padding: 60px var(--container-pad) 50px;
  text-align: center;
}

.ecosystem-portals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 960px;
  width: 100%;
  margin: 28px auto 0;
}

@media (min-width: 768px) {
  .ecosystem-portals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portal-card {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

.portal-zabira::before {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.portal-hammad::before {
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
}

.portal-jawwad::before {
  background: linear-gradient(90deg, #ff6b57, #ffad42);
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}

.portal-logo-img {
  height: 56px;
  width: 56px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  display: block;
}

.portal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.portal-tagline {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-muted);
}

.portal-intro {
  font-size: 0.88rem;
  color: var(--navy-muted);
  margin: 2px 0 6px;
  line-height: 1.4;
  max-width: 260px;
}

.btn-portal-explore {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--navy-dark);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.portal-card:hover .btn-portal-explore {
  background: var(--navy-dark);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   17. SCENE 10 — DOWNLOAD FINALE CELEBRATION
   -------------------------------------------------------------------------- */
.zone-download-finale {
  padding: 70px var(--container-pad) 60px;
  text-align: center;
  position: relative;
}

.finale-box {
  background: linear-gradient(135deg, #fff2e8 0%, #fffbf0 60%, #eef8ff 100%);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 44px 20px;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.finale-jawwad-img {
  max-height: 240px;
  width: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 15px 30px rgba(255, 107, 87, 0.25));
  animation: floatMedium 4s ease-in-out infinite;
}

.finale-title {
  font-size: clamp(1.8rem, 5.5vw, 2.6rem);
  margin-bottom: 8px;
}

.finale-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: var(--play-coral);
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #ffffff;
  border-top: 2px solid #e2e8f0;
  padding: 36px var(--container-pad) 28px;
  text-align: center;
  width: 100%;
}

.footer-content {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo-img {
  height: 78px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-muted);
}

.footer-links a:hover {
  color: var(--play-coral);
}

.footer-copyright {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   19. UNIVERSAL MULTI-APP DOWNLOAD MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.92) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--navy-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  transform: scale(1.08);
}

.modal-app-panel {
  display: none;
  width: 100%;
}

.modal-app-panel.is-active {
  display: block;
}

.modal-logo {
  height: 56px;
  width: auto;
  max-width: 140px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.modal-logo--app-icon {
  width: 56px;
  max-width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.btn-modal-website {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: min(280px, calc(100vw - 80px));
  min-height: 48px;
  padding: 12px 24px;
  background: #ffffff;
  color: var(--navy-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 2px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(22, 37, 68, 0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-modal-website:hover {
  transform: scale(1.03);
  border-color: #cbd5e1;
  box-shadow: 0 10px 22px rgba(22, 37, 68, 0.12);
}

.btn-modal-website:focus-visible {
  outline: 3px solid var(--learn-blue);
  outline-offset: 3px;
}

.modal-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--navy-muted);
  margin-bottom: 18px;
  line-height: 1.4;
}

.modal-download-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.modal-badges-divider {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0 6px;
  flex-shrink: 0;
}

.btn-apk-download--modal {
  max-width: min(280px, calc(100vw - 80px));
}

.modal-badges-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.modal-badge-link {
  display: block;
  transition: transform 0.2s ease;
}

.modal-badge-link:hover {
  transform: scale(1.04);
}

.modal-badge-link img {
  height: 48px;
  width: auto;
}

/* --------------------------------------------------------------------------
   20. ANIMATIONS & KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

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

@keyframes pulseHalo {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.85; }
}

@keyframes jawwadWaveEntrance {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg) translateY(-3px); }
  75% { transform: rotate(-2deg) translateY(-2px); }
}

@keyframes popEffect {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* --------------------------------------------------------------------------
   21. UNIVERSAL RESPONSIVE BREAKPOINTS (320px - 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --container-pad: 14px;
    --nav-height: 64px;
  }

  .world-zone {
    padding: 55px var(--container-pad) 45px;
  }

  .scene-opening {
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: 30px;
    min-height: auto;
  }

  /* Hero decoration: shifted slightly upward on mobile for balanced composition */
  .hero-deco-palette {
    bottom: 21% !important;
    right: 6% !important;
  }

  .nav-pill {
    padding: 6px 12px;
  }

  .nav-logo-img {
    height: 32px;
  }

  .btn-nav-download {
    padding: 6px 16px;
    font-size: 0.88rem;
  }

  .btn-magic {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 10px;
  }

  .zone-play,
  .zone-learn,
  .zone-create,
  .zone-stories {
    margin: 16px auto;
    width: calc(100% - 16px);
    padding-left: 14px;
    padding-right: 14px;
  }

  .mini-game-card,
  .sound-game-box,
  .sticker-playground-card,
  .meet-jawwad-card,
  .finale-box {
    padding: 20px 14px;
    border-radius: var(--radius-md);
  }

  .game-instruction-banner {
    justify-content: center;
    text-align: center;
  }

  .game-score-chip {
    margin: 0 auto;
  }

  .balloon-play-stage {
    min-height: 180px;
    padding: 12px;
  }

  .balloon-item {
    width: 52px;
    height: 68px;
    font-size: 0.9rem;
  }

  /* Stories & Values 2-line centered title on mobile */
  .stories-title-break {
    display: inline;
  }

  .stories-title {
    text-align: center;
  }

  /* Restored Large Phone Mockup on Mobile */
  .phone-mockup {
    width: min(285px, 85vw);
    height: 575px;
  }

  .phone-jawwad-mascot {
    width: 120px;
    right: -10px;
    bottom: -8px;
  }

  .meet-jawwad-card {
    padding: 30px 16px 28px;
  }

  .meet-display-area {
    min-height: 310px;
    margin-bottom: 20px;
  }

  .meet-jawwad-char-img {
    max-height: 310px;
  }

  .modal-card {
    padding: 28px 18px;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 480px) {
  .zone-header {
    margin-bottom: 22px;
  }

  .sound-choices-grid {
    gap: 10px;
  }

  .sound-choice-btn {
    padding: 12px 6px;
  }

  .sound-choice-icon {
    font-size: 1.8rem;
  }

  .sound-choice-label {
    font-size: 0.88rem;
  }

  .btn-play-sound-giant {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
  }

  .sticker-palette-bar {
    gap: 6px;
    padding: 8px 4px;
  }

  .sticker-select-btn {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .trust-badges-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .trust-card {
    padding: 14px 8px;
  }

  .meet-tab-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 360px) {
  .nav-pill {
    padding: 5px 10px;
  }

  .nav-logo-img {
    height: 28px;
  }

  .btn-nav-download {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .meet-display-area {
    min-height: 270px;
    margin-bottom: 16px;
  }

  .meet-jawwad-char-img {
    max-height: 270px;
  }

  .phone-mockup {
    width: 260px;
    height: 520px;
  }

  .sound-choice-icon {
    font-size: 1.6rem;
  }

  .sound-choice-label {
    font-size: 0.82rem;
  }
}

/* --------------------------------------------------------------------------
   22. ACCESSIBILITY — PREFERS REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

