/* Calyndra Kids — preschool energy (original IP; inspired by educational toddler shows) */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

body.mode-toddler,
body.mode-child {
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --bg: linear-gradient(165deg, #7ec8ff 0%, #b8e8ff 35%, #fff8e7 100%);
  --panel: #ffffff;
  --text: #2d3436;
  --muted: #636e72;
  --accent: #ff6b6b;
  --accent-2: #ffd93d;
  --accent-3: #6bcb77;
  --tile-shadow: 0 8px 0 #e0a800, 0 12px 24px rgba(0,0,0,.12);
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
}

body.mode-toddler header,
body.mode-child header {
  background: linear-gradient(90deg, #ff9a56, #ffcd56);
  border-bottom: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.25);
}

body.mode-toddler header h1,
body.mode-child header h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.75rem;
  color: #fff;
  text-shadow: 2px 2px 0 #e17055;
}

body.mode-toddler header p,
body.mode-child header p {
  color: #fff8e7;
  font-weight: 600;
}

body.mode-toddler .mascot-wrap,
body.mode-child .mascot-wrap {
  width: 72px;
  height: 72px;
  border: 4px solid #fff;
  box-shadow: 0 6px 0 #e17055;
  border-radius: 12px; animation: none;
}

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

body.mode-toddler .tab,
body.mode-child .tab {
  font-family: 'Fredoka', sans-serif;
  border-radius: 999px;
  border: 3px solid #ffeaa7;
  background: #fff;
  color: #e17055;
  font-size: 1rem;
  padding: 0.55rem 1.1rem;
}

body.mode-toddler .tab.active,
body.mode-child .tab.active {
  background: #ff6b6b;
  color: #fff;
  border-color: #fff;
  transform: scale(1.05);
}

body.mode-toddler .symbol-tile,
body.mode-child .symbol-tile {
  background: #fff;
  border: 4px solid #ffeaa7;
  border-radius: 24px;
  box-shadow: var(--tile-shadow);
  min-height: 140px;
  transition: transform 0.15s ease;
}

body.mode-toddler .symbol-tile:active,
body.mode-child .symbol-tile:active {
  transform: scale(0.95) translateY(4px);
  box-shadow: 0 4px 0 #e0a800;
}

body.mode-toddler .symbol-tile img.sym-pic,
body.mode-child .symbol-tile img.sym-pic {
  width: 88px;
  height: 88px;
  border-radius: 16px;
}

body.mode-toddler .symbol-tile strong,
body.mode-child .symbol-tile strong {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.35rem;
  color: #2d3436;
  text-transform: capitalize;
}

body.mode-toddler button.primary,
body.mode-child button.primary {
  background: linear-gradient(180deg, #6bcb77, #4caf50);
  color: #fff;
  border-radius: 999px;
  border: 4px solid #fff;
  box-shadow: 0 6px 0 #2e7d32;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  padding: 0.75rem 1.5rem;
}

body.mode-toddler .bubble.caly,
body.mode-child .bubble.caly {
  background: #fff;
  border: 4px solid #74b9ff;
  border-radius: 24px 24px 24px 8px;
  color: #2d3436;
  font-size: 1.15rem;
  line-height: 1.55;
  box-shadow: 0 6px 16px rgba(116, 185, 255, 0.3);
}

body.mode-toddler .bubble.user,
body.mode-child .bubble.user {
  background: #ffeaa7;
  border-radius: 24px 24px 8px 24px;
  color: #2d3436;
}

body.mode-toddler .value-section,
body.mode-child .value-section {
  background: rgba(255,255,255,0.92);
  border: 4px solid #ffeaa7;
  border-radius: 24px;
}

body.mode-toddler .value-section h2,
body.mode-child .value-section h2 {
  font-family: 'Fredoka', sans-serif;
  color: #ff6b6b;
}

body.mode-toddler .sing-along-bar,
body.mode-child .sing-along-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, #a29bfe, #74b9ff);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

body.mode-toddler .caly-loading,
body.mode-child .caly-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem;
  background: #fff;
  border-radius: 20px;
  border: 3px dashed #74b9ff;
  font-family: 'Fredoka', sans-serif;
  color: #0984e3;
}

body.mode-toddler .caly-loading img,
body.mode-child .caly-loading img {
  width: 48px;
  height: 48px;
  animation: mascot-bounce 0.8s ease-in-out infinite;
}

/* Child mode - bright storybook warmth */
body.mode-child {
  --bg: linear-gradient(165deg, #dfe6ff 0%, #f8e8ff 40%, #fff9f0 100%);
}

body.mode-child header {
  background: linear-gradient(90deg, #a29bfe, #fd79a8);
}

body.mode-child header h1 {
  text-shadow: 2px 2px 0 #6c5ce7;
}

body.mode-child .tab.active {
  background: #a29bfe;
}

/* Play area */
body.mode-toddler #play-area,
body.mode-child #play-area {
  background: rgba(255,255,255,0.85);
  border: 4px solid #ffeaa7;
  border-radius: 28px;
  padding: 1.25rem;
  text-align: center;
}

body.mode-toddler .play-grid .symbol-tile img.sym-pic,
body.mode-child .play-grid .symbol-tile img.sym-pic {
  width: 110px;
  height: 110px;
}

body.mode-toddler .play-prompt,
body.mode-child .play-prompt {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  color: #e17055;
}

body.mode-toddler .video-panel video,
body.mode-child .video-panel video {
  border: 4px solid #ffeaa7;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  margin-bottom: 1rem;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall 1.2s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(120px) rotate(720deg); opacity: 0; }
}

body.mode-toddler .bubble .sym-img,
body.mode-child .bubble .sym-img {
  width: 96px;
  height: 96px;
}
