/* Kid-first surfaces (Big Feelings, Story Maker, Sticker Maker): big pictures, big taps, voice. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn--big { min-height: 60px; padding: 14px 34px; font-size: 1.3rem; }
.kidcard { max-width: 860px; }
.nav-row--center { justify-content: center; }

/* the Sparklin talking */
.talk { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-bottom: 22px; }
.talk__me { width: 120px; height: auto; animation: talk-bob 2.8s ease-in-out infinite; }
.talk__bubble { position: relative; padding: 18px 22px; border-radius: 26px 26px 26px 8px; background: #FFFFFF; border: 3px solid var(--honey); }
.talk__bubble h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); }
.talk__bubble p { margin: 6px 0 0; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; font-weight: 600; }
.talk--big { grid-template-columns: 170px 1fr; }
.talk--big .talk__me { width: 170px; }
.hear { position: absolute; right: -10px; top: -14px; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: var(--star); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--sticker); }
.hear svg { width: 26px; height: 26px; }
@keyframes talk-bob { 50% { transform: translateY(-6px) rotate(-2deg); } }
@media (max-width: 600px) {
  .talk, .talk--big { grid-template-columns: 84px 1fr; gap: 10px; }
  .talk__me, .talk--big .talk__me { width: 84px; }
  .talk__bubble { padding: 14px 16px; }
  .hear { right: -4px; top: -18px; width: 46px; height: 46px; }
}

/* feeling faces */
.kfaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kface { display: grid; justify-items: center; gap: 4px; padding: 12px 8px 14px; border-radius: var(--r-lg); border: 3px solid var(--line); background: #FFFFFF; color: var(--ink); font-family: var(--sc-font-display); font-weight: 600; font-size: 1.12rem; cursor: pointer; transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 120ms; }
.kface img { width: min(120px, 80%); height: auto; }
.kface:active { transform: scale(0.95); }
.kface[aria-checked="true"] { border-color: var(--ink); background: var(--star); box-shadow: var(--sticker); transform: scale(1.04); }
.kgo { position: sticky; bottom: 84px; z-index: 5; display: flex; justify-content: center; margin-top: 18px; }
.kgo .btn { box-shadow: var(--sticker), var(--sc-e3); }
.grownup--note { margin-top: 26px; }
.grownup--note textarea { color: var(--ink); }
.grownup--note small { color: var(--night-ink-muted) !important; }
@media (max-width: 480px) { .kfaces { gap: 8px; } .kface { font-size: 0.95rem; padding: 8px 4px 10px; } }

/* big choice buttons */
.kchoices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kchoice { display: grid; justify-items: center; gap: 6px; padding: 16px 10px; border-radius: var(--r-lg); border: 3px solid var(--ink); background: var(--paper-raised); color: var(--ink); font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); cursor: pointer; box-shadow: var(--sticker); transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.kchoice img { width: min(130px, 70%); height: auto; }
.kchoice--good { background: var(--star); }
.kchoice:active { transform: scale(0.96); }
.kchoices--row { margin-top: 4px; }

/* breathing */
.breathe__title { text-align: center; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
.breathe { position: relative; width: min(320px, 76vw); aspect-ratio: 1; margin: 22px auto 10px; display: grid; place-items: center; }
.breathe__ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--meadow-soft) 0%, #CFE6F5 60%, rgba(207,230,245,0) 72%); transform: scale(0.62); transition: transform 4s ease-in-out; }
.breathe img { position: relative; width: 52%; height: auto; transform: scale(0.9); transition: transform 4s ease-in-out; }
.breathe.is-in .breathe__ring { transform: scale(1); transition-duration: 4s; }
.breathe.is-in img { transform: scale(1.12); transition-duration: 4s; }
.breathe.is-out .breathe__ring { transform: scale(0.62); transition-duration: 5s; }
.breathe.is-out img { transform: scale(0.9); transition-duration: 5s; }
.breathe__cue { text-align: center; margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); min-height: 1.4em; }
.breathe__dots { display: flex; justify-content: center; gap: 10px; margin: 12px 0 0; }
.breathe__dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; }
.breathe__dots i.is-done { background: var(--star); }
@media (prefers-reduced-motion: reduce) { .breathe__ring, .breathe img { transition: none; } .talk__me { animation: none; } }

/* ---------------------------------------------------- story maker */
.sform { display: grid; gap: 26px; }
.pals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pal { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r-md); border: 3px solid var(--line); background: #FFFFFF; cursor: pointer; font-weight: 800; font-size: 0.82rem; color: var(--ink); transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.pal img { width: 80%; height: 76px; object-fit: contain; }
.pal[aria-pressed="true"] { border-color: var(--ink); background: var(--star); box-shadow: var(--sticker); transform: scale(1.04); }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.place { position: relative; padding: 0; border-radius: var(--r-md); border: 3px solid var(--line); overflow: hidden; background: #FFFFFF; cursor: pointer; color: var(--ink); font-family: var(--sc-font-display); font-weight: 600; font-size: 1.1rem; }
.place img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.place span { display: block; padding: 8px 10px 10px; }
.place[aria-pressed="true"] { border-color: var(--ink); box-shadow: var(--sticker); }
.place[aria-pressed="true"] span { background: var(--star); }
@media (max-width: 640px) { .pals { grid-template-columns: repeat(3, minmax(0, 1fr)); } .places { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .place { font-size: 0.9rem; } }

/* the book */
.bookwrap { max-width: 1100px; margin: 0 auto; }
.bookbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bookbar .pick svg { width: 18px; height: 18px; margin-right: 6px; }
.book .book__art { overflow: hidden; }
.book__art .book__pal { position: absolute; left: 6%; bottom: 5%; width: 26%; height: auto; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(53,42,70,0.25)); animation: talk-bob 3s ease-in-out infinite; }
.book.is-turning .book__art img:first-child, .book.is-turning .book__text { animation: page-in 520ms var(--sc-ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateX(28px); } }
.book__text p.is-reading { background: linear-gradient(transparent 62%, rgba(252,204,48,0.45) 62%); }
.book__tap { position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); border: 2px solid var(--ink); background: var(--star); color: var(--ink); font-weight: 800; cursor: pointer; box-shadow: var(--sticker); }
.book__tap svg { width: 18px; height: 18px; }
.bedtime .book__text { background: #241B33; color: #FFF2DF; }
.bedtime .book__text h2 { color: #FFF2DF; }
.bedtime .book__page { color: #C9BCD4; }
.bedtime .book__art { filter: brightness(0.78) saturate(0.85); }
.bedtime .roundbtn { background: #2B2139; color: #FFF2DF; border-color: #8A78A2; }
.bedtime .roundbtn[aria-pressed="true"] { background: var(--star); color: var(--ink); }
.bedtime-page { background: #1E1729 !important; }
.bedtime-page .tool-head h1, .bedtime-page .tool-head p, .bedtime-page .bookbar, .bedtime-page .book__after { color: #FFF2DF; }
.bedtime-page .hdr { --hdr-bg: var(--night); --hdr-ink: var(--on-plum); }
.bedtime-page .btn--ghost { --t: #FFF2DF; box-shadow: inset 0 0 0 2px #8A78A2; }
.bedtime-page .muted { color: #C9BCD4; }
.bedtime-page .pick { background: #2B2139; color: #FFF2DF; border-color: #8A78A2; }
.bedtime-page .pick[aria-pressed="true"] { background: var(--star); color: var(--ink); border-color: var(--star); }
body.bedtime-page { transition: background-color 400ms var(--sc-ease-out); }
@media (prefers-reduced-motion: reduce) { .book.is-turning .book__art img:first-child, .book.is-turning .book__text, .book__pal { animation: none; } }

/* ---------------------------------------------------- sticker maker */
.mk { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-bottom: 96px; }
.mk__controls { display: grid; gap: 22px; }
.mk__modes { display: flex; flex-wrap: wrap; gap: 8px; }
.mk__picks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.mk__pick { position: relative; padding: 6px; border-radius: var(--r-md); border: 3px solid var(--line); background: #FFFFFF; cursor: pointer; }
.mk__pick img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.mk__pick[aria-pressed="true"] { border-color: var(--ink); background: var(--star); box-shadow: var(--sticker); }
.mk__colours { display: flex; flex-wrap: wrap; gap: 10px; }
.mk__colour { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 0 0 2px var(--line-strong); cursor: pointer; }
.mk__colour[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.mk__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mk__tip { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }
.mk__preview { position: sticky; top: calc(var(--hdr-h) + 16px); }
.sheet { position: relative; width: 100%; aspect-ratio: 210 / 297; background: #FFFFFF; border-radius: 6px; box-shadow: var(--sc-e3), 0 0 0 1px var(--line); padding: 5% 5%; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 3%; overflow: hidden; }
.sheet--colour { display: block; padding: 6%; }
.sheet--labels { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(6, 1fr); gap: 2.4% 3%; }
.lbl { display: grid; grid-template-columns: 30% 1fr; align-items: center; gap: 4%; padding: 3% 7% 3% 4%; border-radius: 999px; background: var(--lbl, #FCCC30); border: 2px dashed rgba(53,42,70,0.35); container-type: inline-size; }
.lbl img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.lbl img { max-height: 100%; }
.lbl span { font-family: var(--sc-font-display); font-weight: 600; color: #352A46; font-size: 12cqw; line-height: 1; overflow-wrap: anywhere; }
.sheet--fun { grid-template-columns: repeat(3, 1fr); }
.fun { display: grid; place-items: center; border: 2px dashed rgba(53,42,70,0.25); border-radius: 50%; }
.fun img { width: 86%; height: auto; }
.colour__name { margin: 0 0 2%; text-align: center; font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(1.3rem, 4vw, 2.6rem); color: #FFFFFF; -webkit-text-stroke: 2px #111; paint-order: stroke fill; letter-spacing: 0.02em; }
.sheet--colour img { width: 100%; height: auto; }
.sheet__brand { position: absolute; right: 4%; bottom: 1.6%; font-size: 0.7rem; color: #8B7E96; font-weight: 700; }
@media (max-width: 860px) { .mk { grid-template-columns: 1fr; } .mk__preview { position: static; } .mk__picks { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 420px) { .mk__picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media print {
  @page { size: A4; margin: 0; }
  .printing-sheet body > *:not(main) { display: none !important; }
  .printing-sheet main > .wrap > *:not(.mk) { display: none !important; }
  .printing-sheet .mk { display: block; margin: 0; }
  .printing-sheet .mk__controls { display: none !important; }
  .printing-sheet .mk__preview { position: static; }
  .printing-sheet X { padding: 0; }
  .printing-sheet .wrap { padding: 0 !important; max-width: none !important; }
  .printing-sheet body { background: #FFFFFF !important; }
  .printing-sheet .sheet { position: fixed; left: 0; top: 0; width: 210mm; height: 297mm; aspect-ratio: auto; box-shadow: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .printing-sheet .mk__preview > :not(.sheet) { display: none !important; }
}

.kids .tool-main { padding-bottom: 72px; }
