/* ============================================
   JENNY FIGMENT — Kids Zone
   Sticker Book aesthetic
   Fonts: Boogaloo (display) + Nunito (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Boogaloo&family=Nunito:wght@400;600;700;800&display=swap');

/* ── Root overrides for Kids Zone pages ──────── */
.kids-zone-page {
  --font-kids-display: 'Boogaloo', cursive;
  --font-kids: 'Nunito', sans-serif;
  --font-heading: 'Boogaloo', cursive;
  --text-base: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  /* Sticker book design tokens */
  --ink: #1a1a1a;
  --sticker-shadow-sm: 4px 4px 0 #1a1a1a;
  --sticker-shadow-md: 7px 7px 0 #1a1a1a;
  --dot-grid: radial-gradient(circle, rgba(43, 22, 27, 0.11) 1.5px, transparent 1.5px);
}

/* ── Hide site footer in Kids Zone ──────────── */
.kids-zone-page .site-footer {
  display: none;
}

/* ── Page background: cream dot-grid paper ───── */
.kids-zone-page,
.kids-zone-page body {
  background-color: #fdf8f3;
  background-image: var(--dot-grid);
  background-size: 28px 28px;
}

/* ── Kids Zone nav: solid ink black ─────────── */
.kids-zone-page .site-nav {
  background-color: var(--ink);
  border-bottom: 3px solid var(--ink);
}

/* 3-column grid: logo | links | toggle */
.kids-zone-page .site-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--site-nav-h);
}

.kids-zone-page .site-nav__logo {
  justify-self: start;
  gap: 0;
  flex-direction: column;
  align-items: flex-start;
}

/* Logo wordmark */
.kids-zone-page .site-nav__logo-text {
  font-family: var(--font-kids-display);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: white;
  letter-spacing: 0.03em;
  display: block;
}

/* "Kids Zone" label beneath the wordmark */
.kids-zone-page .site-nav__logo::after {
  content: '✦ Kids Zone';
  font-family: var(--font-kids);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
  display: block;
  margin-top: 1px;
  line-height: 1;
}

.kids-zone-page .site-nav__inner > nav {
  justify-self: center;
  align-self: center;
  display: flex;
  align-items: center;
}

/* ── Desktop nav links: sticker pill badges ── */
.kids-zone-page .site-nav__links {
  gap: var(--space-3);
}

/* Top spacing for hub + activity nav pills (applies to single- or multi-link rows) */
@media (min-width: 64em) {
  .kids-zone-page .site-nav__links {
    margin-top: var(--space-2);
  }
}

.kids-zone-page .site-nav__links a {
  font-family: var(--font-kids-display);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  letter-spacing: 0.03em;
  color: var(--ink);
  background: white;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 0.4em var(--space-5);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  display: block;
  transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s;
}

.kids-zone-page .site-nav__links a:hover,
.kids-zone-page .site-nav__links a[aria-current="page"] {
  background: white;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 3px 6px 0 var(--ink);
}

.kids-zone-page .site-nav__links a[aria-current="page"]::before {
  content: '← ';
}

/* ── Hamburger: sticker button ───────────────── */
.kids-zone-page .site-nav__right {
  justify-self: end;
}

.kids-zone-page .nav-toggle {
  background: white;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s;
}

body.kids-zone-page .nav-toggle:hover,
html.kids-zone-page .nav-toggle:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 3px 5px 0 var(--ink);
}

.kids-zone-page .nav-toggle span {
  background-color: var(--ink);
}

/* ── Mobile drawer: ink black + pill links ─── */
.kids-zone-page .nav-drawer {
  background-color: var(--ink);
  border-top: none;
}

.kids-zone-page .nav-drawer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  margin: 0;
}

.kids-zone-page .nav-drawer__links li {
  border-bottom: none;
  width: 100%;
  max-width: 280px;
}

.kids-zone-page .nav-drawer__links a {
  font-family: var(--font-kids-display);
  font-size: var(--text-xl);
  letter-spacing: 0.04em;
  color: var(--ink);
  background: white;
  border: 2.5px solid white;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.3);
  text-align: center;
  display: block;
  text-decoration: none;
  transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s;
}

.kids-zone-page .nav-drawer__links a:hover {
  color: var(--ink);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 4px 7px 0 rgba(255, 255, 255, 0.3);
}

/* ── Hero ──────────────────────────────────── */
.kz-hero {
  background: var(--pink-hot);
  min-height: 60svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: var(--space-16);
  border-bottom: 4px solid var(--ink);
}

.kz-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Stars as 5-pointed clip-path shapes */
.kz-star {
  position: absolute;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: kz-spin var(--dur, 8s) linear var(--del, 0s) infinite;
  opacity: 0.9;
}

@keyframes kz-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.kz-hero__content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
}

/* "Welcome to" — sticker badge pill */
.kz-hero__label {
  display: inline-block;
  font-family: var(--font-kids-display);
  font-size: var(--text-base);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: white;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-6);
  box-shadow: var(--sticker-shadow-sm);
  margin-bottom: var(--space-5);
}

/* Big outlined title */
.kz-hero__title {
  font-family: var(--font-kids-display);
  font-size: clamp(2.5rem, 3rem + 3vw, 5.5rem);
  color: white;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  letter-spacing: 0.01em;
}

.kz-hero__subtitle {
  font-family: var(--font-kids);
  font-size: var(--text-lg);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

/* Sticker-style "Let's Go!" button */
.kz-hero .btn--primary {
  background: white;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius-full);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-kids-display);
  font-size: var(--text-xl);
  letter-spacing: 0.03em;
  transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s;
}

.kz-hero .btn--primary:hover {
  background: white;
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 5px 9px 0 var(--ink);
}

.kz-hero .btn--primary:active {
  transform: translateY(2px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* Back to main site link */
.kz-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-family: var(--font-kids);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: var(--space-6);
  transition: color var(--duration-fast);
}

.kz-back-link:hover {
  color: white;
}

/* ── Character select cards ──────────────────── */
.kz-characters {
  background: transparent;
  padding-block: var(--space-section);
  border-top: none;
}

/* Section heading: Boogaloo + wavy underline */
#chars-kz-heading {
  font-family: var(--font-kids-display) !important;
  display: inline-block;
  padding-bottom: var(--space-2);
  border-bottom: 3px wavy var(--jenny-purple);
}

.kz-char-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 48em) {
  .kz-char-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 64em) {
  .kz-char-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Sticker card base */
.kz-char-card {
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
  background: white;
  border: 3.5px solid var(--ink);
  position: relative;
  overflow: hidden;
}

/* Holographic shine sweep on hover */
.kz-char-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.72) 50%,
    transparent 62%
  );
  background-size: 260% 100%;
  background-position: 260% 0;
  transition: background-position 0.55s ease;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
}

.kz-char-card:hover::before {
  background-position: -60% 0;
}

/* Per-character colored shadow + slight default rotation */
.kz-char-card--jenny {
  box-shadow: 7px 7px 0 var(--jenny-purple);
  transform: rotate(-1.5deg);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.kz-char-card--tony {
  box-shadow: 7px 7px 0 var(--tony-amber);
  transform: rotate(1deg);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.kz-char-card--flora {
  box-shadow: 7px 7px 0 var(--flora-green);
  transform: rotate(-0.8deg);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.kz-char-card--arachna {
  box-shadow: 7px 7px 0 var(--arachna-teal);
  transform: rotate(1.5deg);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}

/* Hover: straighten, lift, bigger shadow */
.kz-char-card--jenny:hover   { transform: rotate(0deg) translateY(-8px); box-shadow: 9px 14px 0 var(--jenny-purple); }
.kz-char-card--tony:hover    { transform: rotate(0deg) translateY(-8px); box-shadow: 9px 14px 0 var(--tony-amber); }
.kz-char-card--flora:hover   { transform: rotate(0deg) translateY(-8px); box-shadow: 9px 14px 0 var(--flora-green); }
.kz-char-card--arachna:hover { transform: rotate(0deg) translateY(-8px); box-shadow: 9px 14px 0 var(--arachna-teal); }

/* Character portraits */
.kz-char-card__portrait-wrap {
  width: 9rem;
  height: 11rem;
  border-radius: var(--radius-lg);
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  position: relative;
  z-index: 1;
  transition: transform var(--duration-normal) var(--ease-bounce);
}

.kz-char-card__portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(43, 22, 27, 0.14));
}

.kz-char-card:hover .kz-char-card__portrait-wrap {
  transform: translateY(-4px) scale(1.03);
}

.kz-char-card__portrait-wrap--book .kz-char-card__portrait {
  border-radius: var(--radius-sm);
}

.kz-char-card__name {
  font-family: var(--font-kids-display);
  font-size: var(--text-xl);
  color: var(--ink);
  line-height: 1.2;
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

.kz-char-card__activity {
  font-family: var(--font-kids);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--burgundy-light);
  line-height: 1.5;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  z-index: 1;
}

/* CTA: sticker pill button */
.kz-char-card__cta {
  flex-shrink: 0;
  font-family: var(--font-kids-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  display: inline-block;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.15s, transform 0.15s;
}

.kz-char-card:hover .kz-char-card__cta {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translateY(1px);
}

.kz-char-card--jenny   .kz-char-card__cta { background: var(--jenny-purple); color: white; }
.kz-char-card--tony    .kz-char-card__cta { background: var(--tony-amber);   color: white; }
.kz-char-card--flora   .kz-char-card__cta { background: var(--flora-green);  color: white; }
.kz-char-card--arachna .kz-char-card__cta { background: var(--arachna-teal); color: white; }

/* ── Hub: imagination spark ──────────────────── */
.kz-spark {
  background: transparent;
  padding-block: var(--space-12);
  border-top: 4px solid var(--ink);
}

.kz-spark__card {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  background: #fff9ec;
  border: 3.5px solid var(--ink);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  box-shadow: 8px 8px 0 var(--ink);
}

.kz-spark__label {
  font-family: var(--font-kids);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-hot);
  display: block;
  margin-bottom: var(--space-4);
}

.kz-spark__prompt {
  font-family: var(--font-kids);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1.6;
  margin: 0 0 var(--space-6);
  min-height: 4.5em;
}

.kz-spark__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Sticker-style spark button — same pink family as .kz-hero */
.kz-spark .btn--primary {
  background: var(--pink-hot);
  color: white;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-kids-display);
  font-size: var(--text-lg);
  letter-spacing: 0.03em;
  transition: transform 0.15s var(--ease-bounce), box-shadow 0.15s;
}

.kz-spark .btn--primary:hover {
  background: var(--pink-hot);
  transform: translateY(-3px);
  box-shadow: 5px 8px 0 var(--ink);
}

.kz-spark .btn--primary:active {
  transform: translateY(2px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ── Cross-links at bottom of each activity ───── */
.kz-other-chars {
  text-align: center;
  margin-top: var(--space-12);
}

.kz-other-chars__title {
  font-family: var(--font-kids-display);
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-6);
  color: var(--burgundy);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.kz-other-chars__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.kz-other-chars__links .btn {
  font-family: var(--font-kids);
  font-weight: 700;
}

/* ── Activity page shared styles ──────────────── */
.kz-activity-hero {
  padding-block: var(--space-12) var(--space-8);
  text-align: center;
}

.kz-activity-title {
  font-family: var(--font-kids-display);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.kz-activity-subtitle {
  font-family: var(--font-kids);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--burgundy-light);
  max-width: 46ch;
  margin-inline: auto;
}

.kz-activity-hero-link-note {
  font-family: var(--font-kids);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--burgundy-light);
  max-width: 46ch;
  margin-inline: auto;
  margin-top: var(--space-2);
  text-align: center;
}

.kz-activity-section {
  padding-block: var(--space-section);
}

.kz-activity-portrait-wrap {
  width: min(11rem, 42vw);
  max-height: 14rem;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-xl);
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.kz-activity-portrait {
  width: 100%;
  height: auto;
  max-height: 14rem;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(43, 22, 27, 0.16));
}

/* ── Joke generator ──────────────────────────── */
.joke-card {
  background: #FFF8EC;
  border-radius: var(--radius-xl);
  border: 3px solid rgba(212,136,58,0.3);
  box-shadow: 5px 5px 0 rgba(212,136,58,0.2);
  padding: var(--space-10);
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  position: relative;
}

.joke-card__grandpa {
  display: block;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  animation: float 4s ease-in-out infinite;
}

.joke-card__grandpa--art {
  width: 7.5rem;
  height: 9rem;
  object-fit: contain;
  object-position: center bottom;
  border-radius: var(--radius-lg);
  background: transparent;
  filter: drop-shadow(0 6px 14px rgba(43, 22, 27, 0.14));
}

.joke-card__setup {
  font-family: var(--font-kids-display);
  font-size: var(--text-xl);
  color: var(--burgundy);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  min-height: 4rem;
  letter-spacing: 0.02em;
}

.joke-card__punchline-wrapper {
  min-height: 3.5rem;
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.joke-card__punchline {
  font-family: var(--font-kids-display);
  font-size: var(--text-xl);
  color: var(--tony-amber);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s var(--ease-bounce);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.joke-card__punchline.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.joke-card__btn {
  font-family: var(--font-kids-display);
  font-size: var(--text-lg);
  letter-spacing: 0.03em;
  padding: var(--space-4) var(--space-8);
  background: var(--tony-amber);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(180,100,20,0.5);
  transition: transform var(--duration-fast) var(--ease-bounce), box-shadow var(--duration-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.joke-card__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(180,100,20,0.4);
}

.joke-card__btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(180,100,20,0.5);
}

.joke-counter {
  font-family: var(--font-kids);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--burgundy-light);
  margin-top: var(--space-4);
}

.joke-hint kbd {
  font-family: var(--font-kids);
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(43, 22, 27, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

/* ── Q&A (Jenny) ─────────────────────────────── */
.qa-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-8);
  max-width: 40rem;
  margin-inline: auto;
}

.qa-grid {
  display: grid;
  gap: var(--space-5);
  max-width: 40rem;
  margin-inline: auto;
}

.qa-item {
  border-radius: var(--radius-lg);
  border: 2.5px solid rgba(123,75,148,0.2);
  overflow: hidden;
  background: rgba(123,75,148,0.04);
}

.qa-question-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-kids);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.qa-question-btn:hover {
  background: rgba(123,75,148,0.06);
  color: var(--jenny-purple);
}

.qa-question-btn[aria-expanded="true"] {
  background: rgba(123,75,148,0.08);
  color: var(--jenny-purple);
}

.qa-icon {
  font-size: 1.2rem;
  transition: transform var(--duration-normal) var(--ease-bounce);
  flex-shrink: 0;
  color: var(--jenny-purple);
}

.qa-question-btn[aria-expanded="true"] .qa-icon {
  transform: rotate(45deg);
}

.qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}

.qa-answer.is-open {
  max-height: min(80vh, 36rem);
}

.qa-answer__inner {
  padding: var(--space-5) var(--space-6) var(--space-5);
}

/* Jenny speech bubble */
.jenny-bubble {
  background: var(--jenny-purple);
  color: white;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-kids);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.6;
  position: relative;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.jenny-avatar {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Recipe stepper (Flora) ──────────────────── */
.recipe-wrapper {
  max-width: 42rem;
  margin-inline: auto;
}

.recipe-step {
  display: none;
  animation: fade-up 0.4s var(--ease-smooth) both;
}

.recipe-step.is-active {
  display: block;
}

.recipe-step__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.recipe-step__number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--flora-green);
  color: white;
  font-family: var(--font-kids-display);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
}

.recipe-step__title {
  font-family: var(--font-kids-display);
  font-size: var(--text-2xl);
  color: var(--burgundy);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.recipe-step__illustration {
  font-size: 5rem;
  text-align: center;
  margin-bottom: var(--space-6);
  display: block;
  animation: float 4s ease-in-out infinite;
}

.recipe-step__text {
  font-family: var(--font-kids);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--burgundy-warm);
  line-height: 1.8;
  background: rgba(107,175,107,0.08);
  border-left: 4px solid var(--flora-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
}

.recipe-step__ingredients {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-6);
}

.recipe-step__ingredients li {
  font-family: var(--font-kids);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px dashed rgba(107,175,107,0.2);
  margin-bottom: 0;
}

.recipe-step__ingredients li::before {
  content: '🍰';
  font-size: 1rem;
  flex-shrink: 0;
}

.recipe-stepper-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  margin-top: 0;
}

.recipe-stepper-controls #recipe-prev {
  justify-self: start;
}

.recipe-stepper-controls #recipe-next {
  justify-self: end;
}

.recipe-progress {
  justify-self: center;
  display: flex;
  flex: none;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
}

.recipe-progress-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  padding: 0;
  border: 2px solid transparent;
  background: var(--pink-soft);
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast), border-color var(--duration-fast);
}

.recipe-progress-dot:hover,
.recipe-progress-dot:focus-visible {
  border-color: var(--flora-green);
  outline: none;
  transform: scale(1.15);
}

.recipe-progress-dot.is-active {
  background: var(--flora-green);
  transform: scale(1.45);
}

.recipe-progress-text {
  font-family: var(--font-kids);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #3d7a3d;
  max-width: none;
  width: 100%;
  text-align: center;
  margin-inline: auto;
  margin-top: var(--space-6);
  margin-bottom: var(--space-5);
}

/* ── Coloring canvas ──────────────────────────── */
.coloring-canvas-hint {
  font-family: var(--font-kids);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--burgundy-light);
  margin-top: var(--space-2);
  margin-bottom: 0;
  max-width: 600px;
  width: 100%;
  text-align: center;
  margin-inline: auto;
}

.coloring-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 64em) {
  .coloring-layout {
    grid-template-columns: 1fr 240px;
  }
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid var(--arachna-teal);
  box-shadow: 5px 5px 0 rgba(58,173,168,0.2);
  background: white;
  touch-action: none;
}

.coloring-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  cursor: crosshair;
  touch-action: none;
}

.coloring-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

@media (min-width: 64em) {
  .color-palette {
    grid-template-columns: repeat(4, 1fr);
  }
}

.color-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-bounce), border-color var(--duration-fast);
  min-width: 2.5rem;
  min-height: 2.5rem;
}

.color-swatch:hover,
.color-swatch.is-selected {
  transform: scale(1.15);
  border-color: var(--burgundy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brush-size-group {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}

.brush-size-btn {
  border-radius: 50%;
  background: var(--burgundy);
  border: 3px solid transparent;
  cursor: pointer;
  transition: border-color var(--duration-fast), transform var(--duration-fast) var(--ease-bounce);
  flex-shrink: 0;
}

.brush-size-btn:hover:not(.is-selected) {
  border-color: rgba(58, 173, 168, 0.55);
  transform: scale(1.08);
}

.brush-size-btn.is-selected {
  border-color: var(--arachna-teal);
  transform: scale(1.2);
}

.coloring-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.coloring-toolbar-label {
  font-family: var(--font-kids);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--burgundy-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Page load animations (Sticker Book entrance) ── */

/* Hero badge: drops from above and bounces into place */
@keyframes kz-badge-drop {
  0%   { opacity: 0; transform: translateY(-22px) scale(0.75); }
  55%  { opacity: 1; transform: translateY(5px) scale(1.07); }
  75%  { transform: translateY(-2px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero title: stamps down from slightly larger, snaps into place */
@keyframes kz-stamp {
  0%   { opacity: 0; transform: scale(1.3) rotate(-2.5deg); }
  50%  { opacity: 1; transform: scale(0.95) rotate(0.5deg); }
  70%  { transform: scale(1.03) rotate(-0.2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Subtitle / spark card: slides up gently */
@keyframes kz-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Button: pops out of nothing */
@keyframes kz-pop {
  0%   { opacity: 0; transform: scale(0.35); }
  55%  { opacity: 1; transform: scale(1.16); }
  75%  { transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

/*
  Character cards: drop in using the CSS `translate` property
  (separate from `transform`) so the card's rotation and
  hover transitions are completely unaffected.
*/
@keyframes kz-card-drop {
  0%   { opacity: 0; translate: 0 -32px; }
  55%  { opacity: 1; translate: 0 6px; }
  75%  { translate: 0 -2px; }
  100% { opacity: 1; translate: 0 0; }
}

/* ── Apply to hero elements ─────────────────── */
.kz-hero__label {
  animation: kz-badge-drop 0.55s var(--ease-bounce) 0.08s both;
}

.kz-hero__title {
  animation: kz-stamp 0.65s var(--ease-bounce) 0.24s both;
}

.kz-hero__subtitle {
  animation: kz-fade-up 0.5s ease 0.52s both;
}

.kz-hero .btn--primary {
  animation: kz-pop 0.5s var(--ease-bounce) 0.68s both;
}

/* ── Character cards: staggered drop ─────────── */
@supports (translate: 0px) {
  .kz-char-card {
    animation: kz-card-drop 0.55s var(--ease-bounce) var(--card-del, 0.78s) both;
  }

  .kz-char-card--jenny  { --card-del: 0.78s; }
  .kz-char-card--tony   { --card-del: 0.94s; }
  .kz-char-card--flora  { --card-del: 1.10s; }
  .kz-char-card--arachna { --card-del: 1.26s; }
}

/* ── Spark card ──────────────────────────────── */
.kz-spark__card {
  animation: kz-fade-up 0.6s ease 1.05s both;
}

/* ── Activity page entrances ─────────────────── */
.kz-activity-portrait-wrap {
  animation: kz-pop 0.55s var(--ease-bounce) 0.12s both;
}

.kz-activity-title {
  animation: kz-fade-up 0.5s ease 0.28s both;
}

.kz-activity-subtitle {
  animation: kz-fade-up 0.5s ease 0.42s both;
}

/* ── Respect reduced motion preference ──────── */
@media (prefers-reduced-motion: reduce) {
  .kz-hero__label,
  .kz-hero__title,
  .kz-hero__subtitle,
  .kz-hero .btn--primary,
  .kz-spark__card,
  .kz-activity-portrait-wrap,
  .kz-activity-title,
  .kz-activity-subtitle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .kz-char-card {
    animation: none !important;
    opacity: 1 !important;
    translate: none !important;
  }
  .kz-star {
    animation: none !important;
  }
}

/* Print: show all recipe steps */
@media print {
  .recipe-step { display: block !important; page-break-inside: avoid; margin-bottom: 2rem; }
  .recipe-stepper-controls { display: none; }
  .site-nav, .site-footer, .kz-activity-hero .kz-back-link { display: none; }
}
