/* =========================================================
   WONDERLAND TODDLER GAMES - Minimalist Pastel Design System
   ========================================================= */

:root {
  /* Pastel Minimalist Color Palette */
  --bg-creamy: #FAF7F2;
  --bg-card: #FFFFFF;
  --pastel-mint: #CBE8DB;
  --pastel-mint-dark: #A3D4C0;
  --pastel-peach: #FFD8BE;
  --pastel-peach-dark: #F7BA94;
  --pastel-blush: #F8C3CD;
  --pastel-blush-dark: #F29CAD;
  --pastel-lavender: #E0DAFC;
  --pastel-lavender-dark: #BEB2F5;
  --pastel-yellow: #FFF1A8;
  --pastel-yellow-dark: #FDE266;
  --pastel-sky: #CDE4FE;
  --pastel-sky-dark: #9CC7FC;
  --pastel-sage: #D2E7C6;

  /* Typography & Neutrals */
  --text-dark: #3A3845;
  --text-medium: #6D6875;
  --text-light: #9B97A6;
  --border-soft: rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 6px 20px rgba(58, 56, 69, 0.05);
  --shadow-float: 0 12px 28px rgba(58, 56, 69, 0.09);

  /* Radii */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-creamy);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Quicksand', 'Nunito', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.4;
  touch-action: manipulation;
  overflow-x: hidden;
}

/* Vector Iconography */
.w-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.15em;
  flex-shrink: 0;
  pointer-events: none;
}

.btn-icon .w-icon,
.icon-btn .w-icon {
  font-size: 1.25rem;
}

/* App Container */
#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 12px 16px env(safe-area-inset-bottom, 12px) 16px;
}

/* Header & Top Bar */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  font-size: 2rem;
  animation: gentle-wobble 3s infinite ease-in-out;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-medium);
  font-weight: 500;
}

/* Top Utility Controls */
.top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-btn {
  background: var(--bg-creamy);
  border: 1px solid var(--border-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--pastel-peach);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.96);
}

.lang-picker-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.lang-picker-icon {
  position: absolute;
  left: 10px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  z-index: 2;
}

.select-lang-picker {
  appearance: none;
  -webkit-appearance: none;
  background: var(--pastel-mint);
  border: 1.5px solid var(--pastel-mint-dark);
  font-weight: 800;
  padding: 8px 14px 8px 32px;
  cursor: pointer;
  outline: none;
}

.select-lang-picker:hover {
  background: var(--pastel-yellow);
  border-color: var(--pastel-yellow-dark);
}

.btn-home-pill {
  background: var(--pastel-yellow);
  border-color: var(--pastel-yellow-dark);
  font-weight: 700;
}

/* Navigation Bar */
.mode-navigation-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -12px 12px -12px;
  padding: 8px 14px 14px 14px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mode-navigation-bar::-webkit-scrollbar {
  display: none;
}

.nav-mode-btn {
  background: var(--bg-card);
  border: 2px solid transparent;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(58, 56, 69, 0.06);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

.nav-mode-btn .btn-icon {
  font-size: 1.15rem;
}

.nav-mode-btn:hover {
  background: var(--pastel-yellow);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.nav-mode-btn.active {
  background: var(--pastel-lavender);
  color: var(--text-dark);
  border-color: var(--pastel-lavender-dark);
  box-shadow: 0 8px 20px rgba(190, 178, 245, 0.45);
  transform: translateY(-2px);
  z-index: 2;
}

/* Speech Narration Bubble */
.speech-bubble-wrapper {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.speech-bubble {
  background: #FFFFFF;
  color: var(--text-dark);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--pastel-peach);
  text-align: center;
  max-width: 680px;
  transition: all 0.25s ease;
  cursor: pointer;
  animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.speech-bubble.hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
}

.speech-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Main Viewport Stage */
#game-viewport {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 520px;
}

/* =========================================================
   MAIN MENU HUB
   ========================================================= */

.main-menu-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-hero-header {
  text-align: center;
}

.hero-sparkles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.menu-hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
}

.menu-hero-subtitle {
  font-size: 1rem;
  color: var(--text-medium);
  margin-top: 4px;
}

/* Category Filter Bar (Section 7) */
.categories-filter-section {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 8px 0 16px 0;
}

.categories-scroll-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px;
  max-width: 100%;
  scrollbar-width: none;
}

.categories-scroll-row::-webkit-scrollbar {
  display: none;
}

.category-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.category-pill-btn:hover {
  transform: translateY(-2px);
  border-color: var(--pastel-lavender-dark);
}

.category-pill-btn.active {
  background: #2B2A33;
  border-color: #2B2A33;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(43, 42, 51, 0.2);
}

.category-pill-btn.active .cat-pill-label {
  color: #FFFFFF;
}

.cat-pill-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.menu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.game-hub-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  border: 2.5px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.game-hub-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-float);
}

.card-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-soft);
}

.card-icon-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0;
  line-height: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-medium);
  flex: 1;
  line-height: 1.45;
}

.btn-play-card {
  margin-top: 6px;
  background: #FFFFFF;
  border: 2px solid var(--border-soft);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.game-hub-card:hover .btn-play-card {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: #FFFFFF;
}

/* Subgame launcher buttons inside 5 categories cards */
.category-subgames-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-subgame-launch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--border-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}

.btn-subgame-launch:hover {
  transform: translateY(-2px);
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: #FFFFFF;
}

.subgame-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Card Themes */
.theme-coral { border-color: #FFCAD4; background: linear-gradient(180deg, #FFF0F3 0%, var(--bg-card) 100%); }
.theme-green { border-color: #BBF7D0; background: linear-gradient(180deg, #F0FDF4 0%, var(--bg-card) 100%); }
.theme-sky { border-color: #BAE6FD; background: linear-gradient(180deg, #F0F9FF 0%, var(--bg-card) 100%); }
.theme-yellow { border-color: #FEF08A; background: linear-gradient(180deg, #FEFCE8 0%, var(--bg-card) 100%); }
.theme-lavender { border-color: #E9D5FF; background: linear-gradient(180deg, #FAF5FF 0%, var(--bg-card) 100%); }
.theme-orange { border-color: #FED7AA; background: linear-gradient(180deg, #FFF7ED 0%, var(--bg-card) 100%); }

.card-eating { border-color: var(--pastel-blush); background: linear-gradient(180deg, #FFF5F7 0%, var(--bg-creamy) 100%); }
.card-drums { border-color: var(--pastel-yellow); background: linear-gradient(180deg, #FFFDEB 0%, var(--bg-creamy) 100%); }
.card-shapes { border-color: var(--pastel-mint); background: linear-gradient(180deg, #F0FAF5 0%, var(--bg-creamy) 100%); }
.card-counting { border-color: var(--pastel-sky); background: linear-gradient(180deg, #F2F8FF 0%, var(--bg-creamy) 100%); }
.card-bedtime { border-color: var(--pastel-lavender); background: linear-gradient(180deg, #F7F5FF 0%, var(--bg-creamy) 100%); }

/* =========================================================
   MODE 1: FEED MY FRIEND
   ========================================================= */

.feed-mode-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 16px;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.character-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.char-tab-btn {
  background: var(--bg-creamy);
  border: 2px solid transparent;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.char-tab-btn.active {
  background: var(--pastel-peach);
  border-color: var(--pastel-peach-dark);
  transform: scale(1.04);
}

.tummy-meter-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-creamy);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.tummy-icon {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-medium);
}

.tummy-stars {
  display: flex;
  gap: 4px;
}

.tummy-star {
  font-size: 1.2rem;
  filter: grayscale(1) opacity(0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tummy-star.filled {
  filter: grayscale(0) opacity(1);
  transform: scale(1.2);
}

.stage-area {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 240px;
}

.character-stage-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pastel-mint) 0%, rgba(203, 232, 219, 0.25) 70%, transparent 100%);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.character-stage-wrap.zone-hover {
  transform: scale(1.08);
  background: radial-gradient(circle, var(--pastel-yellow) 0%, rgba(255, 241, 168, 0.4) 70%, transparent 100%);
}

.character-svg-container {
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

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

.btn-napkin {
  background: var(--pastel-yellow);
  border: 2px solid var(--pastel-yellow-dark);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  animation: pulse-gentle 1.5s infinite ease-in-out;
}

.food-tray-section {
  background: var(--bg-creamy);
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tray-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.tray-title-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-medium);
}

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chip {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: var(--pastel-peach);
  border-color: var(--pastel-peach-dark);
}

.food-tray-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px 10px 4px;
  justify-content: flex-start;
  scrollbar-width: none;
}

.food-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 8px 6px;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: grab;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  touch-action: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.food-card:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--pastel-peach);
  box-shadow: var(--shadow-float);
}

.food-card:active {
  cursor: grabbing;
}

.food-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.food-svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.food-icon-wrap img,
.food-svg img,
.crunch-food-svg img,
.sort-food-svg img,
.icon-well img,
.btn-icon img,
.tip-icon img,
.subgame-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.food-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.food-card-badge {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--pastel-mint);
  color: var(--text-dark);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

/* =========================================================
   DRUM & MUSIC PLAYGROUND
   ========================================================= */

.drum-mode-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.drum-header { text-align: center; }

.drum-companion-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-tempo-toggle {
  background: var(--pastel-yellow);
  border: 2px solid var(--pastel-yellow-dark);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-tempo-toggle.active {
  background: var(--pastel-peach);
}

.tempo-speeds-chips {
  display: flex;
  gap: 6px;
}

.tempo-speed-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.tempo-speed-btn.active {
  background: var(--pastel-mint);
  border-color: var(--pastel-mint-dark);
}

.drum-kit-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.drum-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.drum-pad {
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 5px solid #FFFFFF;
  box-shadow: var(--shadow-float);
  transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.drum-pad:active, .drum-pad.hit-anim {
  transform: scale(0.92);
}

/* 5 Drum Kit Pieces (Pencil Node ET6sA) */
.pad-cymbal { width: 105px; height: 105px; background: #FFF9DB; border-color: #FFE066; color: #B28900; }
.pad-bongo-hi { width: 110px; height: 110px; background: #FFF0F3; border-color: #FFCCD5; color: #C2185B; }
.pad-bongo-lo { width: 120px; height: 120px; background: #E8F8EA; border-color: #B7E4C7; color: #2E7D32; }
.pad-snare { width: 125px; height: 125px; background: #FFF3E0; border-color: #FFCC80; color: #E65100; }
.pad-bass { width: 150px; height: 150px; background: #EFF7FF; border-color: #CDE4FE; color: #1565C0; }

.pad-icon { display: flex; align-items: center; justify-content: center; }
.pad-name { font-size: 0.8rem; font-weight: 800; color: var(--text-dark); margin-top: 2px; }

.xylophone-section {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--bg-creamy);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-top: 6px;
  max-width: 100%;
  overflow-x: auto;
}

.xylo-bar {
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.1s ease;
  padding: 6px 12px;
  min-width: 58px;
  touch-action: manipulation;
  gap: 4px;
}

.xylo-bar:active, .xylo-bar.hit-anim {
  transform: scale(0.94) translateY(4px);
}

/* 6 Pentatonic Xylophone Chimes (Pencil Node ET6sA) */
.xylo-c { height: 100px; background: #FFF0F3; border: 2px solid #FFCCD5; color: #C2185B; }
.xylo-d { height: 92px; background: #FFF3E0; border: 2px solid #FFCC80; color: #E65100; }
.xylo-e { height: 84px; background: #FFF9DB; border: 2px solid #FFE066; color: #B28900; }
.xylo-g { height: 76px; background: #E8F8EA; border: 2px solid #B7E4C7; color: #2E7D32; }
.xylo-a { height: 68px; background: #EFF7FF; border: 2px solid #CDE4FE; color: #1565C0; }
.xylo-c2 { height: 60px; background: #F3E5F5; border: 2px solid #CE93D8; color: #6A1B9A; }

.xylo-chime-icon { display: flex; align-items: center; justify-content: center; }

.animal-pads-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.animal-pad-btn {
  background: #FFFFFF;
  border: 2px solid var(--border-soft);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.animal-pad-btn:active, .animal-pad-btn.hit-anim {
  transform: scale(0.92);
  background: var(--pastel-yellow);
  border-color: var(--pastel-yellow-dark);
}

/* =========================================================
   RAINBOW PLATE
   ========================================================= */

.rainbow-plate-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.rainbow-powers-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.power-badge {
  background: var(--bg-creamy);
  border: 1px solid var(--border-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.45;
  transition: all 0.3s ease;
}

.power-badge.active {
  opacity: 1;
  background: var(--pastel-mint);
  border-color: var(--pastel-mint-dark);
}

.plate-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

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

.plate-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.plate-dish {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 10px solid var(--pastel-sky);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
}

.plate-dish.plate-celebration {
  animation: plate-celebrate 1.5s infinite ease-in-out;
  border-color: var(--pastel-yellow);
}

.plate-rim {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.plate-section {
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.plate-section.empty {
  border: 2px dashed rgba(58, 56, 69, 0.2);
}

.plate-section.has-food {
  border: 2px solid transparent;
  background: #FFFFFF;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.04);
}

.plate-veggie.empty { background: rgba(203, 232, 219, 0.4); }
.plate-fruit.empty { background: rgba(248, 195, 205, 0.4); }
.plate-grain.empty { background: rgba(255, 241, 168, 0.4); }
.plate-drink.empty { background: rgba(205, 228, 254, 0.4); }

.slot-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.slot-content {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-placeholder {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
}

.btn-eat-rainbow {
  background: var(--pastel-mint);
  border: 2px solid var(--pastel-mint-dark);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.btn-plate-reset {
  background: var(--bg-creamy);
  border: 1px solid var(--border-soft);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
}

.plate-food-picker {
  background: var(--bg-creamy);
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.picker-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-medium);
}

.picker-food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
  gap: 8px;
}

.picker-food-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.picker-food-btn:hover {
  transform: translateY(-2px);
  background: var(--pastel-yellow);
}

.picker-food-icon { width: 34px; height: 34px; }
.picker-food-name { font-size: 0.68rem; font-weight: 700; color: var(--text-dark); text-align: center; }

/* =========================================================
   WASH HANDS
   ========================================================= */

.wash-hands-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 100%;
}

.wash-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  width: 100%;
  flex-wrap: wrap;
}

.soap-bottle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.soap-bottle-wrap:hover { transform: scale(1.06); }
.soap-bottle-wrap.pumping { transform: scale(0.92) translateY(6px); }
.soap-dispenser-svg { width: 85px; height: 110px; }
.soap-tap-hint {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--pastel-mint);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-dark);
}

.hands-basin {
  position: relative;
  width: 270px;
  height: 210px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 6px solid var(--pastel-sky);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.faucet-assembly {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faucet-spout-svg {
  width: 60px;
  height: 45px;
}

.faucet-handle {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.water-stream-anim.running {
  width: 14px;
  height: 90px;
  background: linear-gradient(180deg, rgba(144, 224, 239, 0.8) 0%, rgba(72, 202, 228, 0.4) 100%);
  border-radius: var(--radius-pill);
  animation: water-fall 0.4s infinite linear;
}

@keyframes water-fall {
  0% { transform: scaleY(0.9); opacity: 0.7; }
  50% { transform: scaleY(1.1); opacity: 1; }
  100% { transform: scaleY(0.9); opacity: 0.7; }
}

.hands-pair {
  display: flex;
  gap: 14px;
  transition: transform 0.3s ease;
  margin-top: 24px;
}

.hand { width: 75px; height: 95px; }
.sparkling-hands { animation: sparkle-dance 1.2s infinite ease-in-out; }

.bubbles-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.soap-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  animation: bubble-float 3s infinite ease-in-out alternate;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.soap-bubble.popped {
  transform: scale(1.6);
  opacity: 0;
}

.btn-tap-water {
  background: #FFFFFF;
  border: 2px solid var(--pastel-sky-dark);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-tap-water.active {
  background: var(--pastel-sky);
}

.wash-status-bar {
  background: var(--bg-creamy);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* =========================================================
   CHEW & SIP
   ========================================================= */

.crunch-mode-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.texture-badge-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.texture-pill {
  background: var(--pastel-peach);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-dark);
}

.nibble-stage-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 220px;
}

.nibble-dish {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 12px solid var(--pastel-yellow);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 0;
  flex-shrink: 0;
}

.nibble-dish:hover { transform: scale(1.05); }

.nibble-food-wrapper {
  width: 140px;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: auto;
}

.nibble-food-wrapper img {
  width: 100% !important;
  height: 100% !important;
  max-width: 140px !important;
  max-height: 140px !important;
  object-fit: contain;
  margin: auto;
  display: block;
}

.nibble-food-wrapper.step-1 { clip-path: polygon(0 0, 80% 0, 70% 35%, 85% 45%, 75% 100%, 0 100%); }
.nibble-food-wrapper.step-2 { clip-path: polygon(0 0, 50% 0, 45% 40%, 55% 55%, 45% 100%, 0 100%); }
.nibble-food-wrapper.step-3 { opacity: 0.2; transform: scale(0.6); }

.bite-cut.bite-all {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  background: var(--pastel-mint);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.side-water-cup {
  background: var(--pastel-sky);
  border: 2px solid var(--pastel-sky-dark);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}

.side-water-cup:hover { transform: translateY(-2px) scale(1.04); }
.side-water-cup.sipped { background: var(--pastel-mint); }
.cup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}
.cup-icon .food-svg,
.cup-icon img,
.cup-icon svg {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
}
.cup-label { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }

.nibble-status-box {
  background: var(--bg-creamy);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.chew-steps-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.step-dot {
  background: #FFFFFF;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  border: 1px solid var(--border-soft);
}

.step-dot.active {
  background: var(--pastel-mint);
  color: var(--text-dark);
  border-color: var(--pastel-mint-dark);
}

.chew-prompt-text { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); }

.crunch-food-picker { display: flex; flex-direction: column; gap: 6px; }
.crunch-food-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.crunch-food-btn {
  background: var(--bg-card);
  border: 2px solid transparent;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.crunch-food-btn.active { background: var(--pastel-peach); border-color: var(--pastel-peach-dark); }
.crunch-food-svg { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }

/* =========================================================
   GARDEN BASKET SORTING
   ========================================================= */

.sort-mode-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.baskets-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}

.basket-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  border: 3px solid transparent;
  transition: all 0.25s ease;
}

.basket-fruit .basket-card { border-color: var(--pastel-blush); background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F7 100%); }
.basket-veggie .basket-card { border-color: var(--pastel-mint); background: linear-gradient(180deg, #FFFFFF 0%, #F2FAF6 100%); }
.basket-badge { font-size: 1rem; font-weight: 800; color: var(--text-dark); }
.basket-items-grid { display: flex; flex-wrap: wrap; gap: 6px; min-height: 42px; align-items: center; justify-content: center; }
.basket-item-mini { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.basket-base-svg { width: 85px; height: 40px; }

.food-to-sort-area {
  background: var(--bg-creamy);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}

.sort-prompt-banner {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
}

.current-sort-food-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 2px solid var(--pastel-peach);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
}

.sort-food-svg {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sort-food-info {
  text-align: left;
}

.sort-food-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

.sort-food-info span {
  font-size: 0.82rem;
  color: var(--text-medium);
  font-weight: 600;
}

.quick-sort-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.btn-sort-choice {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display, 'Quicksand', sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-fruit-choice {
  background: var(--pastel-blush);
  border-color: var(--pastel-blush-dark);
  color: #C53030;
}

.btn-veggie-choice {
  background: var(--pastel-mint);
  border-color: var(--pastel-mint-dark);
  color: #276749;
}

.btn-sort-choice:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-float);
}

.sort-celebration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  width: 100%;
}

.sort-celebration-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.sort-celebration-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin: 0;
}

.btn-sort-play-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  background: var(--pastel-yellow);
  border: 2px solid #FFE066;
  color: #B28900;
  font-family: var(--font-display, 'Quicksand', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 6px;
}

.btn-sort-play-again:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-float);
  background: #FFF3C4;
}

.btn-sort-play-again:active {
  transform: translateY(0) scale(0.98);
}

/* =========================================================
   SHAPE & COLOR GARDEN (Pure Geometric Shape Matching)
   ========================================================= */

.shapes-mode-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.shapes-header {
  text-align: center;
}

/* Garden Canvas Stage with Nature Backdrop */
.garden-canvas-stage {
  position: relative;
  width: 100%;
  min-height: 270px;
  border-radius: var(--radius-lg);
  border: 4px solid #FFFFFF;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03), var(--shadow-soft);
  background: linear-gradient(180deg, #F0FAF5 0%, #E8F5E9 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
}

.garden-backdrop-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.garden-hill-bg {
  position: absolute;
  bottom: -45px;
  left: -20px;
  width: 120%;
  height: 120px;
  background: radial-gradient(ellipse at 50% 0%, rgba(203, 232, 219, 0.7) 0%, rgba(216, 243, 220, 0.3) 100%);
  border-radius: 50%;
}

.garden-grass-tufts {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  letter-spacing: 14px;
  opacity: 0.6;
}

/* Shape Puzzle Grid */
.shape-puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 520px;
  width: 100%;
  z-index: 2;
}

.shape-slot-card {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-md);
  border: 3px dashed rgba(58, 56, 69, 0.2);
  min-height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 8px;
}

.shape-slot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 56, 69, 0.4);
}

.shape-slot-card.slot-hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--pastel-peach-dark);
}

.shape-slot-card.highlight-target {
  border-color: var(--pastel-yellow-dark);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(253, 226, 102, 0.6), var(--shadow-float);
  animation: pulse-gentle 1.4s infinite ease-in-out;
}

.slot-silhouette {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.85;
  pointer-events: none;
}

.slot-silhouette-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shape-svg, .slot-silhouette-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.slot-shape-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dark);
}

.matched-shape-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  border: 3px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: var(--shadow-float);
  animation: pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.matched-shape-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matched-shape-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dark);
}

.matched-star-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 1rem;
  animation: gentle-wobble 2s infinite ease;
}

/* Shapes Palette Section */
.shapes-palette-section {
  background: var(--bg-creamy);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
}

.palette-instruction-bar {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.shapes-cards-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 14px 8px 14px 8px;
  scrollbar-width: none;
  justify-content: center;
}

.shape-drag-card {
  position: relative;
  background: #FFFFFF;
  border: 2px solid;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  min-width: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: grab;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: none;
  flex-shrink: 0;
}

.shape-drag-card:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-float);
}

.shape-drag-card:active {
  cursor: grabbing;
}

.shape-drag-card.selected-card {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 0 3.5px var(--pastel-yellow-dark), var(--shadow-float);
  z-index: 5;
}

.selection-glow-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: var(--radius-md);
  border: 3px solid var(--pastel-yellow-dark);
  pointer-events: none;
}

.shape-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.shape-card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.shape-card-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dark);
}

.shape-card-color {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-medium);
}

.dragging-shape-ghost {
  position: fixed !important;
  z-index: 99999 !important;
  pointer-events: none !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18) !important;
  background: #FFFFFF !important;
  border: 3px solid !important;
  border-radius: var(--radius-md) !important;
  opacity: 0.95;
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flying-shape {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
}

.garden-celebration-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 8px;
}

.garden-cheer-icon {
  font-size: 2rem;
}

.btn-garden-next {
  background: var(--pastel-yellow);
  border: 2px solid var(--pastel-yellow-dark);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.btn-garden-next:hover {
  transform: scale(1.05);
}

/* =========================================================
   1-2-3 COUNTING (Centered Picnic Stage Design)
   ========================================================= */

.counting-mode-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.counting-header {
  text-align: center;
}

.counting-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
}

.counting-picnic-card {
  background: var(--bg-card);
  border: 4px solid var(--pastel-sky);
  box-shadow: var(--shadow-float);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
}

.counting-goal-card {
  background: var(--bg-creamy);
  border: 1px solid var(--border-soft);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.count-counter-badge {
  background: var(--pastel-mint);
  border: 1px solid var(--pastel-mint-dark);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  color: var(--text-dark);
}

.counting-animal-center-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.counting-animal-avatar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pastel-yellow) 0%, rgba(255, 241, 168, 0.25) 70%, transparent 100%);
  margin: 0 auto;
}

.animal-glow-halo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  pointer-events: none;
}

.animal-avatar-wrap {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gentle-wobble 3s infinite ease-in-out;
}

.counting-animal-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.animal-celebrating .animal-avatar-wrap {
  animation: sparkle-dance 0.8s infinite ease-in-out;
}

.animal-emoji-big {
  font-size: 4.2rem;
  line-height: 1;
  animation: gentle-wobble 3s infinite ease-in-out;
  text-align: center;
}

.animal-celebrating .animal-emoji-big {
  animation: sparkle-dance 0.8s infinite ease-in-out;
}

.animal-name-tag {
  background: var(--pastel-peach);
  border: 1.5px solid var(--pastel-peach-dark);
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-dark);
  margin-top: 4px;
}

.fed-bowl-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.bowl-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-medium);
}

.fed-items-tray {
  display: flex;
  gap: 10px;
  background: var(--bg-creamy);
  border: 2px solid var(--pastel-mint);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  justify-content: center;
  align-items: center;
  min-width: 180px;
}

.bowl-snack-slot {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bowl-snack-slot.filled {
  transform: scale(1.25);
  animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.count-action-area {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-count-snack {
  background: var(--pastel-yellow);
  border: 3px solid var(--pastel-yellow-dark);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-float);
  transition: transform 0.2s ease;
}

.btn-count-snack:hover {
  transform: scale(1.05);
}

.count-win-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-creamy);
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.count-win-stars {
  font-size: 1.4rem;
}

.count-win-card h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 800;
}

.count-win-card p {
  font-size: 0.88rem;
  color: var(--text-medium);
}

.btn-count-next {
  background: var(--pastel-yellow);
  border: 2px solid var(--pastel-yellow-dark);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
  margin-top: 4px;
}

.btn-count-next:hover {
  transform: scale(1.05);
}

/* =========================================================
   STARRY BEDTIME & DREAM TIME (Prettified Bedroom Canvas)
   ========================================================= */

.bedtime-mode-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  position: relative;
  transition: background-color 0.8s ease;
}

.bedtime-header {
  text-align: center;
}

/* Main Bedroom & Night Sky Stage */
.bedroom-stage-canvas {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  border: 4px solid #FFFFFF;
  background: linear-gradient(180deg, #F6F4FD 0%, #EDE8F8 50%, #E5DFFA 100%);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.04), var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  transition: background 1s ease;
}

.bedtime-mode-layout.night-mode .bedroom-stage-canvas {
  background: linear-gradient(180deg, #EAE5F7 0%, #DFD7F2 50%, #D5CAED 100%);
}

/* Sky & Moon Backdrop */
.bedroom-sky-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.cozy-moon-wrap {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 68px;
  height: 68px;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float-moon 4s infinite ease-in-out;
}

.cozy-moon-wrap:hover {
  transform: scale(1.12) rotate(-5deg);
}

.cozy-moon-wrap.moon-night-glow .moon-halo {
  animation: pulse-gentle 2.5s infinite ease-in-out;
  fill: #FFF5A5;
  opacity: 0.6;
}

.moon-svg {
  width: 100%;
  height: 100%;
}

.sky-stars-cluster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bed-star {
  position: absolute;
  font-size: 1.15rem;
  transition: all 0.5s ease;
  animation: star-twinkle 2.5s infinite ease-in-out;
}

.bs1 { top: 16%; left: 8%; animation-delay: 0.1s; }
.bs2 { top: 30%; left: 18%; animation-delay: 0.6s; }
.bs3 { top: 10%; left: 42%; animation-delay: 1.2s; }
.bs4 { top: 24%; right: 28%; animation-delay: 0.4s; }
.bs5 { top: 44%; right: 10%; animation-delay: 0.9s; }
.bs6 { top: 58%; left: 6%; animation-delay: 1.5s; }
.bs7 { top: 68%; right: 16%; animation-delay: 0.7s; }

/* Wiggle and Shine Stars when Asleep */
.shining-asleep-stars .bed-star,
.bedtime-mode-layout.night-mode .bed-star {
  animation: star-asleep-wiggle-shine 2.2s infinite ease-in-out !important;
}

.shining-asleep-stars .bs1 { animation-delay: 0.1s !important; }
.shining-asleep-stars .bs2 { animation-delay: 0.4s !important; }
.shining-asleep-stars .bs3 { animation-delay: 0.7s !important; }
.shining-asleep-stars .bs4 { animation-delay: 1.0s !important; }
.shining-asleep-stars .bs5 { animation-delay: 1.3s !important; }
.shining-asleep-stars .bs6 { animation-delay: 1.6s !important; }
.shining-asleep-stars .bs7 { animation-delay: 1.9s !important; }

@keyframes star-asleep-wiggle-shine {
  0% {
    transform: scale(0.95) rotate(0deg);
    filter: drop-shadow(0 0 4px rgba(255, 225, 105, 0.6)) brightness(1.1);
    opacity: 0.7;
  }
  25% {
    transform: scale(1.35) rotate(-16deg);
    filter: drop-shadow(0 0 16px rgba(255, 225, 105, 1)) drop-shadow(0 0 24px rgba(255, 241, 168, 0.8)) brightness(1.5);
    opacity: 1;
  }
  50% {
    transform: scale(1.05) rotate(0deg);
    filter: drop-shadow(0 0 6px rgba(255, 225, 105, 0.7)) brightness(1.2);
    opacity: 0.85;
  }
  75% {
    transform: scale(1.4) rotate(16deg);
    filter: drop-shadow(0 0 18px rgba(255, 225, 105, 1)) drop-shadow(0 0 26px rgba(255, 241, 168, 0.9)) brightness(1.6);
    opacity: 1;
  }
  100% {
    transform: scale(0.95) rotate(0deg);
    filter: drop-shadow(0 0 4px rgba(255, 225, 105, 0.6)) brightness(1.1);
    opacity: 0.7;
  }
}

/* Hanging Lanterns Bar */
.lanterns-hanging-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  z-index: 5;
  flex-wrap: wrap;
}

.lantern-pendant {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lantern-pendant:hover {
  transform: translateY(2px) scale(1.06);
}

.lantern-string {
  width: 2px;
  height: 14px;
  background: rgba(109, 104, 117, 0.35);
}

.lantern-shade {
  position: relative;
  width: 48px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.lantern-on .lantern-shade {
  animation: pulse-gentle 3s infinite ease-in-out;
}

.lantern-glow-halo {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
}

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

.lantern-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-medium);
  margin-top: 3px;
}

/* Center Bed & Mobile Stage */
.bed-and-mobile-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 4;
  margin: 10px 0;
}

.lullaby-mobile-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.lullaby-mobile-wrap.spinning {
  animation: mobile-spin 2s ease-in-out;
}

.mobile-hanger {
  width: 2px;
  height: 10px;
  background: #B08968;
}

.mobile-stars-bar {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--pastel-peach-dark);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.mobile-charm {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.mobile-hint-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-medium);
  background: #FFFFFF;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  margin-top: 2px;
}

@keyframes mobile-spin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(8deg) scale(1.05); }
  75% { transform: rotate(-8deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Cozy Wooden Bed */
.cozy-bed-assembly {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
}

.bed-headboard {
  position: relative;
  width: 200px;
  height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.bed-post {
  width: 14px;
  height: 38px;
  background: #DDB892;
  border: 2px solid #B08968;
  border-radius: var(--radius-pill);
}

.headboard-panel {
  flex: 1;
  height: 24px;
  background: #EDE0D4;
  border-top: 2px solid #B08968;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: 0 4px;
}

.bed-mattress {
  position: relative;
  width: 210px;
  min-height: 130px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 3px solid #E6CCB2;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  overflow: hidden;
}

.plush-pillow {
  position: absolute;
  top: 8px;
  width: 160px;
  height: 36px;
  background: #FFFFFF;
  border: 2px solid var(--pastel-sky-dark);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sleeping-teddy-wrap {
  position: relative;
  z-index: 2;
  margin-top: 2px;
}

.teddy-avatar-svg {
  width: 100px;
  height: 100px;
}

.teddy-svg {
  width: 100%;
  height: 100%;
}

.teddy-dreaming-zzz {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.teddy-dreaming-zzz.show-zzz {
  opacity: 1;
  animation: bubble-float 2.2s infinite ease-in-out;
}

/* Patchwork Quilt Blanket */
.quilt-blanket-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px;
  background: #FFFFFF;
  border-top: 3px solid var(--pastel-lavender-dark);
  padding: 4px 6px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

.quilt-blanket-cover.tucked {
  height: 46%;
  max-height: 52px;
  background: var(--pastel-lavender);
  box-shadow: 0 -4px 12px rgba(190, 178, 245, 0.3);
}

.quilt-paws-row {
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 0 35px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.quilt-paws-row.visible-paws {
  opacity: 1;
}

.teddy-paw-peeking {
  font-size: 0.9rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.quilt-patches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.quilt-patch {
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.q-mint { background: var(--pastel-mint); }
.q-blush { background: var(--pastel-blush); }
.q-yellow { background: var(--pastel-yellow); }
.q-sky { background: var(--pastel-sky); }

/* Standalone Blanket Action Button */
.bed-action-btn-wrap {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.btn-tuck-blanket {
  background: var(--pastel-sky);
  border: 2px solid var(--pastel-sky-dark);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.btn-tuck-blanket:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-float);
}

.btn-tuck-blanket.tucked {
  background: var(--pastel-lavender);
  border-color: var(--pastel-lavender-dark);
}

/* Soothing Breathing Pearl */
.calm-breathing-pearl-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
  margin-top: 6px;
}

.breathing-pearl-circle {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, var(--pastel-lavender) 85%);
  border: 4px solid var(--pastel-lavender-dark);
  box-shadow: 0 6px 18px rgba(190, 178, 245, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  animation: breathing-loop 6s infinite ease-in-out;
}

.pearl-subtext {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-medium);
  text-align: center;
}

/* =========================================================
   PARENT GUIDE MODAL
   ========================================================= */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(58, 56, 69, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  transition: opacity 0.25s ease;
}

.modal-backdrop.hidden { opacity: 0; pointer-events: none; }
.modal-sheet {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}
.modal-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--pastel-yellow);
  border: 1.5px solid var(--pastel-yellow-dark);
  border-radius: var(--radius-sm);
  color: #DD6B20;
}
.modal-close-btn {
  background: var(--pastel-peach);
  border: 1.5px solid var(--pastel-peach-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.modal-close-btn:hover {
  background: #FFCCD5;
  transform: scale(1.08);
}
.modal-close-btn:active {
  transform: scale(0.92);
}
.tips-list { display: flex; flex-direction: column; gap: 10px; }
.tip-card { background: var(--bg-creamy); border-radius: var(--radius-sm); padding: 12px 14px; border-left: 4px solid var(--pastel-mint-dark); }
.tip-card.tip-1 { border-left-color: var(--pastel-mint-dark); }
.tip-card.tip-2 { border-left-color: var(--pastel-peach-dark); }
.tip-card.tip-3 { border-left-color: var(--pastel-yellow-dark); }
.tip-card.tip-4 { border-left-color: var(--pastel-lavender-dark); }
.tip-card.tip-5 { border-left-color: var(--pastel-sky-dark); }
.tip-card h4 { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; margin-bottom: 4px; color: var(--text-dark); }
.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.tip-card p { font-size: 0.82rem; color: var(--text-medium); }

.ui-icon, .w-icon { display: inline-block; vertical-align: middle; }
.icon-btn .btn-icon { display: inline-flex; align-items: center; justify-content: center; }
.nav-mode-btn .btn-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }

/* =========================================================
   ANIMATIONS & DRAG GHOST
   ========================================================= */

@keyframes gentle-wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@keyframes pulse-gentle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes bubble-float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(8deg); }
}

@keyframes sparkle-dance {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.04); }
}

@keyframes plate-celebrate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04) rotate(1deg); }
}

@keyframes breathing-loop {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.dragging-food-ghost {
  position: fixed !important;
  z-index: 99999 !important;
  pointer-events: none !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18) !important;
  background: #FFFFFF !important;
  border: 3px solid var(--pastel-peach-dark) !important;
  border-radius: var(--radius-md) !important;
  opacity: 0.95;
  width: 85px;
  height: 85px;
}

.flying-food {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

.confetti-particle {
  position: fixed;
  pointer-events: none;
  z-index: 10001;
  transition: transform 1.1s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 1.1s ease;
}

.food-sparkle-item {
  position: fixed;
  pointer-events: none;
  font-size: 1.5rem;
  z-index: 10001;
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.4, 1), opacity 0.9s ease;
}

.hidden { display: none !important; }

/* =========================================================
   COMPREHENSIVE RESPONSIVE & MOBILE-FRIENDLY SPECIFICATIONS
   ========================================================= */

/* Tablet & Intermediate Screens (<= 900px) */
@media (max-width: 900px) {
  .menu-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
  }
  .category-hub-card {
    padding: 16px;
  }
  .five-categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Mobile Devices & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  .game-header {
    padding: 10px 14px;
    gap: 10px;
  }
  .brand-logo svg {
    width: 28px;
    height: 28px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-tagline {
    font-size: 0.75rem;
  }
  .top-controls {
    gap: 6px;
  }
  .icon-btn {
    padding: 7px 11px;
    font-size: 0.82rem;
    min-height: 40px;
  }
  .select-lang-picker {
    padding: 7px 12px 7px 28px;
    font-size: 0.82rem;
    min-height: 40px;
  }
  .mode-navigation-bar {
    margin: 0 -8px 10px -8px;
    padding: 6px 10px 12px 10px;
    gap: 8px;
  }
  .nav-mode-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    min-height: 42px;
  }
  #game-viewport {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    min-height: 480px;
  }
  .speech-bubble {
    font-size: 0.95rem;
    padding: 8px 18px;
    max-width: 95%;
  }
  .plate-content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plate-dish {
    width: 250px;
    height: 250px;
    border-width: 8px;
  }
  .baskets-stage {
    gap: 12px;
  }
  .shape-puzzle-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .counting-picnic-card {
    padding: 16px;
  }
  .drum-kit-stage {
    gap: 12px;
  }
  .xylophone-section {
    gap: 6px;
    padding: 10px 6px;
  }
  .animal-pads-row {
    gap: 6px;
  }
  .animal-pad-btn {
    padding: 6px 10px;
    font-size: 0.82rem;
    min-height: 44px;
  }
}

/* Smartphone Screens (<= 600px) */
@media (max-width: 600px) {
  #app-container {
    padding: 8px 8px env(safe-area-inset-bottom, 8px) 8px;
  }
  .game-header {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
  }
  .brand-area {
    gap: 8px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-tagline {
    display: none;
  }
  .top-controls {
    width: 100%;
    justify-content: space-between;
  }
  .top-controls .icon-btn,
  .top-controls .lang-picker-wrap {
    flex: 1 1 auto;
    justify-content: center;
  }
  .select-lang-picker {
    width: 100%;
    text-overflow: ellipsis;
  }
  .mode-navigation-bar {
    margin: 0 -4px 8px -4px;
    padding: 4px 6px 10px 6px;
    gap: 6px;
  }
  .nav-mode-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
    gap: 5px;
    min-height: 40px;
  }
  #game-viewport {
    padding: 12px 8px;
    min-height: 440px;
  }
  .menu-hero-title {
    font-size: 1.4rem;
  }
  .menu-hero-subtitle {
    font-size: 0.88rem;
  }
  .hero-sparkles {
    gap: 8px;
  }
  .five-categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .category-hub-card {
    padding: 14px 12px;
    gap: 10px;
  }
  .category-subgames-row {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }
  .btn-subgame-launch {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    min-height: 44px;
  }
  .character-stage-wrap {
    width: 200px;
    height: 200px;
  }
  .character-svg-container {
    width: 160px;
    height: 160px;
  }
  .food-tray-section {
    padding: 10px;
  }
  .tray-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .filter-chips {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-chip {
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
    min-height: 38px;
  }
  .food-card {
    width: 76px;
    height: 96px;
    padding: 6px;
  }
  .food-icon-wrap {
    width: 44px;
    height: 44px;
  }
  .food-card-label {
    font-size: 0.72rem;
  }
  .plate-dish {
    width: 220px;
    height: 220px;
    border-width: 6px;
  }
  .slot-label {
    font-size: 0.7rem;
  }
  .slot-content {
    width: 36px;
    height: 36px;
  }
  .picker-food-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .picker-food-btn {
    padding: 6px;
    min-height: 58px;
  }
  .picker-food-name {
    font-size: 0.68rem;
  }
  .nibble-stage-area {
    gap: 16px;
  }
  .nibble-dish {
    width: 120px;
    height: 120px;
  }
  .side-water-cup {
    width: 70px;
    height: 90px;
  }
  .chew-steps-dots {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  .step-dot {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  .baskets-stage {
    flex-direction: row;
    gap: 8px;
  }
  .sort-basket-wrap {
    flex: 1;
    min-width: 0;
  }
  .basket-card {
    padding: 10px 6px;
  }
  .basket-badge {
    font-size: 0.78rem;
    padding: 3px 8px;
  }
  .quick-sort-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .btn-sort-choice {
    width: 100%;
    min-height: 48px;
  }
  .drum-row {
    gap: 8px;
  }
  .drum-pad {
    transform: none;
    min-height: 70px;
    padding: 8px 4px;
  }
  .pad-bass {
    width: 120px;
    height: 120px;
  }
  .pad-snare {
    width: 100px;
    height: 100px;
  }
  .pad-cymbal, .pad-bongo-hi, .pad-bongo-lo {
    width: 80px;
    height: 80px;
  }
  .xylophone-section {
    padding: 6px 4px;
    gap: 3px;
  }
  .xylo-bar {
    min-height: 64px;
    font-size: 0.75rem;
  }
  .animal-pads-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .animal-pad-btn {
    flex: 1 1 28%;
    min-height: 44px;
    font-size: 0.78rem;
  }
  .shape-puzzle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .shape-slot-card {
    min-height: 90px;
    padding: 8px;
  }
  .shapes-cards-scroll {
    gap: 8px;
    padding: 6px 4px;
  }
  .shape-drag-card {
    width: 76px;
    height: 96px;
    padding: 6px;
  }
  .counting-picnic-card {
    padding: 12px 8px;
  }
  .fed-items-tray {
    gap: 6px;
    padding: 6px;
  }
  .bowl-snack-slot {
    width: 36px !important;
    height: 36px !important;
  }
  .btn-count-snack {
    min-height: 52px;
    width: 100%;
    font-size: 1rem;
  }
  .lanterns-hanging-bar {
    gap: 6px;
  }
  .lantern-pendant {
    padding: 4px;
  }
  .lantern-shade {
    width: 44px;
    height: 44px;
  }
  .lantern-tag {
    font-size: 0.65rem;
  }
  .cozy-bed-assembly {
    max-width: 260px;
  }
  .modal-sheet {
    padding: 18px 14px;
    width: 95%;
    max-height: 90vh;
  }
  .tip-card {
    padding: 12px;
  }
  .tip-card h4 {
    font-size: 0.95rem;
  }
  .tip-card p {
    font-size: 0.85rem;
  }
}

/* Compact Mobile Screens (<= 380px) */
@media (max-width: 380px) {
  .brand-title {
    font-size: 0.95rem;
  }
  .icon-btn .btn-text {
    display: none;
  }
  .icon-btn {
    padding: 8px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    justify-content: center;
  }
  .lang-picker-wrap {
    flex: 2 !important;
  }
  .select-lang-picker {
    border-radius: var(--radius-pill);
    padding: 6px 8px 6px 26px;
    font-size: 0.75rem;
  }
  .plate-dish {
    width: 190px;
    height: 190px;
  }
  .picker-food-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pad-bass {
    width: 100px;
    height: 100px;
  }
  .pad-snare {
    width: 85px;
    height: 85px;
  }
  .pad-cymbal, .pad-bongo-hi, .pad-bongo-lo {
    width: 68px;
    height: 68px;
  }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
  .icon-btn:hover,
  .nav-mode-btn:hover,
  .game-hub-card:hover,
  .btn-subgame-launch:hover {
    transform: none;
  }
  .icon-btn:active,
  .nav-mode-btn:active,
  .game-hub-card:active,
  .btn-subgame-launch:active {
    transform: scale(0.96);
  }
}
