@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-forest: #2d4a27;      /* Deep Forest Green */
  --secondary-moss: #556b2f;      /* Olive / Moss Green */
  --soft-sage: #8fbc8f;           /* Sage Green Accent */
  --light-sage: #e8f0e6;          /* Soft Agricultural Background */
  --earth-terracotta: #c86d51;    /* Earthy Terracotta */
  --wheat-gold: #e5a93c;          /* Harvest Gold */
  --soil-brown: #3e2723;          /* Rich Soil Brown */
  --cream-bg: #fcfbfa;            /* Organic Cream Background */
  
  --green-primary: #2f7138;
  --green-dark: #1b4923;
  --green-light: #eaf5e1;
  --accent-orange: #f28b6b;
  --accent-yellow: #ffca55;
  --text-dark: #1d3022;
  --text-muted: #57685a;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  background: var(--cream-bg);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  padding-top: 80px; /* Accounts for fixed navbar height */
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  outline: none;
}

.hidden {
  display: none !important;
}

/* --- NAVBAR STYLES MATCHING foodmodules.html --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(252, 251, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 74, 39, 0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(45, 74, 39, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: url('../assets/home/seeds-of-success-logo.svg') center/cover no-repeat;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.05);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary-forest);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--primary-forest);
  transition: color 0.3s ease;
  position: relative;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--earth-terracotta);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--earth-terracotta);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Sound Tools in Navbar */
.nav-sound-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.tool-btn {
  background: var(--green-light);
  border-radius: 40px;
  padding: 6px 14px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.tool-btn:hover {
  background: #dbeed0;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-forest);
}

/* Full Width Main Layout */
main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Hero Landing Section */
.welcome {
  width: 100%;
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, #fff9e8 0%, #e3f2d8 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4vw 6vw;
  position: relative;
  overflow: hidden;
}

.welcome-copy {
  max-width: 550px;
  z-index: 2;
}

.eyebrow {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--green-primary);
  text-transform: uppercase;
}

.welcome h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.1;
  margin: 16px 0;
  color: var(--green-dark);
  font-weight: 800;
}

.welcome h1 em {
  font-style: normal;
  color: var(--accent-orange);
}

.welcome-copy p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.primary-btn {
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: 24px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 0 #d96e4c;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #d96e4c;
}

.primary-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #d96e4c;
}

.secondary-btn {
  background: var(--green-primary);
  color: #ffffff;
  border-radius: 18px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 0 var(--green-dark);
  transition: transform 0.15s ease;
}

.secondary-btn:hover {
  transform: translateY(-2px);
}

.reset-btn {
  background: #f0e6d6;
  color: #634b22;
  border-radius: 18px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.reset-btn:hover {
  background: #e4d5be;
}

.tiny-note {
  margin-top: 20px;
  color: #798c77;
  font-weight: 600;
  font-size: 0.9rem;
}

.welcome-art {
  position: relative;
  width: 48%;
  height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.welcome-farmer {
  max-height: 100%;
  max-width: 60%;
  object-fit: contain;
  z-index: 2;
}

.welcome-pig {
  position: absolute;
  left: 5%;
  bottom: 0;
  width: 28%;
  object-fit: contain;
  z-index: 3;
}

.welcome-chicken {
  position: absolute;
  right: 5%;
  bottom: 2%;
  width: 25%;
  object-fit: contain;
  z-index: 3;
}

/* Full Width Game Experience */
.game-shell {
  width: 100%;
  min-height: calc(100vh - 80px);
  background: #ffffff;
  padding: 0 0 60px 0;
}

.farm-banner {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
}

.farm-banner > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-label {
  position: absolute;
  left: 4vw;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 14px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.banner-label b {
  font-size: 1.2rem;
  color: var(--green-dark);
  display: block;
}

.banner-label small {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.banner-farmer {
  position: absolute;
  right: 6vw;
  bottom: -20px;
  height: 110%;
  object-fit: contain;
}

/* Navigation & Header inside Game */
.journey-head {
  padding: 32px 6vw 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.journey-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--green-dark);
  margin: 4px 0 0;
}

.star-score {
  background: var(--accent-yellow);
  border-radius: 20px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(255, 202, 85, 0.4);
}

.star-score span {
  font-size: 1.4rem;
}

.star-score b {
  font-size: 1.3rem;
  color: var(--green-dark);
}

.star-score small {
  font-size: 0.8rem;
  font-weight: 700;
  color: #7a5c13;
  text-transform: uppercase;
}

/* Clean Step Navigation Tabs */
.mission-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 0 6vw;
  margin-bottom: 32px;
}

.mission-tab {
  background: var(--green-light);
  border-radius: 20px;
  padding: 14px 6px;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.mission-tab .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--green-primary);
}

.mission-tab.active {
  background: var(--green-primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(47, 113, 56, 0.25);
}

.mission-tab.active .step-num {
  background: var(--accent-yellow);
  color: var(--green-dark);
}

.mission-tab.done {
  background: #fdf3d8;
  color: #8a6818;
}

.mission-tab.done .step-num {
  background: var(--accent-yellow);
  color: #8a6818;
}

/* Activity Cards */
.mission-card {
  width: 88vw;
  max-width: 1200px;
  margin: 0 auto 32px;
  background: var(--card-bg);
  border: 2px solid #f0eae0;
  border-radius: 32px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.mission-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 28px;
}

.step-pill {
  display: inline-block;
  border-radius: 30px;
  padding: 8px 18px;
  background: var(--green-light);
  color: var(--green-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.mission-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--green-dark);
  margin: 12px 0 8px;
}

.mission-intro p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Activity Grid Layouts */
.activity-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.activity-visual {
  min-height: 280px;
  background: var(--green-light);
  border-radius: 24px;
  display: grid;
  place-items: center;
  padding: 24px;
}

.seed-picture {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.activity-question {
  text-align: center;
}

.speech-bubble {
  background: #fdf3d8;
  border-radius: 24px;
  padding: 16px 24px;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 24px;
  color: #705313;
  box-shadow: 0 4px 12px rgba(253, 243, 216, 0.6);
}

.number-options {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.number-options button {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 6px 0 #b9d8aa;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.number-options button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #b9d8aa;
}

.number-options button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #b9d8aa;
}

.feedback {
  min-height: 36px;
  color: var(--green-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 18px;
  text-align: center;
}

.fact-strip {
  background: var(--green-light);
  border-radius: 16px;
  padding: 16px 24px;
  margin-top: 24px;
  color: var(--green-dark);
  font-size: 0.95rem;
  line-height: 1.4;
}

.next-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px auto 0;
  background: var(--green-primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 0 var(--green-dark);
  transition: transform 0.15s ease;
}

.next-btn:hover {
  transform: translateY(-2px);
}

.next-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--green-dark);
}

/* Worm Scene & Choice Grid */
.worm-scene {
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  background: #dff0d0;
  position: relative;
}

.soil-sky {
  height: 90px;
  text-align: center;
  padding: 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-dark);
}

.soil-layer {
  position: absolute;
  top: 90px;
  bottom: 0;
  width: 100%;
  background: #875334;
  display: grid;
  place-items: center;
  border-top: 10px solid #75b347;
}

.soil-layer img {
  width: 180px;
  height: 140px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.soil-label {
  position: absolute;
  bottom: 12px;
  right: 18px;
  color: #f7dfbd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.choice-grid button {
  background: #ffffff;
  border: 3px solid #eef4e8;
  border-radius: 20px;
  padding: 16px 8px;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.choice-grid button img {
  height: 90px;
  max-width: 100%;
  object-fit: contain;
}

.choice-grid button:hover {
  transform: translateY(-3px);
  border-color: var(--green-light);
}

.choice-grid button.correct {
  border-color: #79b45c;
  background: #e5f5d9;
}

/* Plant Growth Activity */
.growth-activity {
  text-align: center;
  background: linear-gradient(135deg, #f7fcf5 0%, #eef6eb 100%);
  border: 2px solid #d4e8cb;
  border-radius: 28px;
  padding: 24px;
}

.growth-hint {
  background: #ffffff;
  display: inline-block;
  border: 2px solid #d4e8cb;
  border-radius: 24px;
  padding: 10px 24px;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(47, 113, 56, 0.06);
}

.growth-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.growth-options button {
  background: #ffffff;
  border: 3px solid #d8e8d0;
  border-radius: 22px;
  padding: 14px 10px;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(47, 113, 56, 0.05);
  transition: all 0.2s ease;
}

.card-img-wrap {
  width: 100%;
  height: 90px;
  background: #f5faeef0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.growth-options button img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.growth-options button:hover {
  transform: translateY(-3px);
  border-color: var(--green-primary);
  box-shadow: 0 8px 20px rgba(47, 113, 56, 0.12);
}

.growth-options button.selected {
  border-color: var(--green-primary);
  background: var(--green-light);
  box-shadow: 0 4px 12px rgba(47, 113, 56, 0.2);
}

.growth-progress {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.growth-progress span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2ebd8;
  color: #72826a;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
}

.growth-progress span.filled {
  background: var(--green-primary);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(47, 113, 56, 0.3);
}

/* Farm Math Section */
.animal-math {
  text-align: center;
  background: linear-gradient(135deg, #f7fcf5 0%, #eef6eb 100%);
  border: 2px solid #d4e8cb;
  border-radius: 28px;
  padding: 28px;
}

.animal-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.animal-card {
  width: 140px;
  height: 130px;
  background: #ffffff;
  border: 3px solid #d8e8d0;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(47, 113, 56, 0.06);
  transition: transform 0.2s ease;
}

.animal-card:hover {
  transform: translateY(-3px) scale(1.03);
}

.animal-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* MISSION 5: SOIL HORIZONS IMAGE-BASED DRAG & DROP GAME */
.soil-game-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  margin-top: 20px;
  align-items: start;
}

.soil-reference {
  background: #f7f5ee;
  border-radius: 24px;
  padding: 20px;
  border: 2px dashed #d5ccb6;
  text-align: center;
}

.soil-reference h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.image-wrapper {
  width: 100%;
  max-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.drop-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.slot {
  background: #f5f2eb;
  border: 2px dashed #b8ab93;
  border-radius: 16px;
  padding: 10px 16px;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.slot.drag-over {
  background: #e1f0d7;
  border-color: var(--green-primary);
}

.slot-num {
  font-weight: 800;
  font-size: 0.8rem;
  color: #7a6344;
  white-space: nowrap;
  text-transform: uppercase;
  width: 110px;
}

.slot-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.layer-pool-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.draggable-layers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  min-height: 140px;
  background: var(--green-light);
  padding: 16px;
  border-radius: 20px;
}

.drag-item {
  background: #ffffff;
  border: 2px solid #829f79;
  border-radius: 16px;
  padding: 10px;
  cursor: grab;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.drag-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  background: #fafdf8;
}

.drag-item:active {
  cursor: grabbing;
}

.drag-item.selected-tap {
  border-color: var(--earth-terracotta);
  background: #fcf1ed;
}

.layer-img-wrap {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #f4f8f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.layer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drag-item b {
  font-size: 0.85rem;
  color: var(--soil-brown);
  line-height: 1.2;
}

.soil-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
}

/* MISSION 6: QUIZ STYLES */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-question-box {
  background: #f7fcf5;
  border: 2px solid #d4e8cb;
  border-radius: 22px;
  padding: 24px;
}

.quiz-question-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-top: 0;
  margin-bottom: 16px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.quiz-options button {
  background: #ffffff;
  border: 2px solid #cce0c2;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  text-align: left;
  transition: all 0.15s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.quiz-options button:hover {
  background: var(--green-light);
  border-color: var(--green-primary);
  transform: translateY(-2px);
}

.quiz-options button.correct {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.quiz-options button.incorrect {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.quiz-hint {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 14px;
  margin-bottom: 0;
  min-height: 24px;
}

/* Archive Box inside Celebration */
.archive-box {
  background: #ffffff;
  border: 3px dashed var(--secondary-moss);
  border-radius: 24px;
  padding: 24px;
  max-width: 500px;
  margin: 20px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.archive-box h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  margin-top: 0;
}

.archive-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Celebration Overlay */
.celebration {
  text-align: center;
  padding: 60px 20px;
  background: #fdf3d8;
  border-radius: 32px;
  width: 88vw;
  max-width: 1000px;
  margin: 0 auto;
}

.celebration h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--green-dark);
}

.celebration p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.big-stars {
  font-size: 2.5rem;
  margin: 20px;
}

/* --- FOOTER STYLES WITH REDUCED PADDING --- */
.footer-section {
  padding: 24px 20px 20px;
  text-align: center;
  background-color: var(--cream-bg);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(45, 74, 39, 0.1);
  padding-top: 14px;
  font-weight: 500;
  color: #667062;
  font-size: 0.88rem;
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--cream-bg);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: none;
    border-bottom: 2px solid var(--secondary-moss);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-sound-tools {
    margin-left: 0;
    margin-top: 8px;
  }

  .welcome {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  .welcome-copy {
    max-width: 100%;
  }
  .welcome-art {
    width: 100%;
    height: 360px;
    margin-top: 20px;
  }
  .activity-panel {
    grid-template-columns: 1fr;
  }
  .mission-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .growth-options {
    grid-template-columns: repeat(2, 1fr);
  }
  .soil-game-container {
    grid-template-columns: 1fr;
  }
  .draggable-layers {
    grid-template-columns: 1fr;
  }
  .animal-row {
    flex-direction: column;
    gap: 12px;
  }
  .animal-card {
    width: 100%;
    max-width: 180px;
    height: 110px;
  }
}