/* Wonder Garden and Adventure Islands belong to the child home only. */
.child-wonder-home { font-family: ui-rounded, system-ui, sans-serif; }
.child-wonder-home :is(a, button):focus-visible { outline: 4px solid #176974; outline-offset: 5px; }
.child-wonder-home :is(button, a) { -webkit-tap-highlight-color: transparent; }
.child-wonder-home button:enabled { cursor: pointer; }
.child-wonder-home [hidden] { display: none !important; }
.child-wonder-home .child-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.75rem 2rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #fdfcf4;
  border-radius: 2rem;
}
.child-home-hero-toolbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.child-home-eyebrow { font-size: .75rem; font-weight: 900; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: #176974; }
.child-home-hero-tools { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.child-home-motion { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; max-width: 12rem; text-align: start; font-size: .75rem; font-weight: 800; line-height: 1.4; color: #376166; }
.child-home-motion > :first-child { font-size: 1.4rem; }
.child-home-motion:disabled { cursor: default; }
.child-home-progress { display: flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .5rem .85rem; background: white; border: 1px solid #dae6d7; border-radius: 1rem; }
.child-home-progress > :first-child { font-size: 1.4rem; }
.child-home-progress strong { display: block; font-size: .95rem; line-height: 1.4; }
.child-home-progress strong + span { display: block; color: #52686c; font-size: .7rem; font-weight: 700; }
.child-home-welcome { min-width: 0; padding-block: .25rem .75rem; }
.child-home-welcome h1 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 900; line-height: 1.17; letter-spacing: -.04em; overflow-wrap: anywhere; }
.child-home-headline { margin-top: .5rem; color: #176b66; font-size: clamp(1.4rem, 2.7vw, 2rem); font-weight: 900; line-height: 1.25; letter-spacing: -.025em; }
.child-home-intro { margin-top: 1rem; max-width: 24rem; font-size: 1rem; font-weight: 600; line-height: 1.7; color: #52686c; }
.child-home-next-stop { margin-top: 1.5rem; }
.child-home-next-stop > p:first-child { font-size: .7rem; letter-spacing: .1em; }
.child-home-next-stop > h2 { margin-top: .5rem; font-size: 1.125rem; line-height: 1.5; }
.child-home-play { display: inline-flex; align-items: center; justify-content: center; margin-top: 1.2rem; min-height: 3.75rem; min-width: 13rem; max-width: 100%; padding: .9rem 1.6rem; border: 0; border-bottom: 5px solid #113e38; border-radius: 1.1rem; background: #185a51; color: white; font-weight: 900; font-size: 1.15rem; line-height: 1.45; text-align: center; box-shadow: 0 7px 18px rgb(23 63 69 / 12%); transition: transform 160ms ease, background-color 160ms ease; }
.child-home-play:hover { transform: translateY(-2px); background: #226c60; }
.child-home-play:active { transform: translateY(2px); }
.child-home-level { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .45rem; font-size: .8rem; font-weight: 800; color: #52686c; text-decoration: underline; text-underline-offset: .25rem; }
.child-home-garden { position: relative; min-width: 0; height: 23rem; isolation: isolate; background: #dcf3ec; border-radius: 43% 42% 27% 29% / 25% 30% 23% 23%; }
.child-home-garden-land { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: -1; }
.child-home-garden-land > span { position: absolute; bottom: -2rem; left: -10%; width: 125%; height: 9rem; border-radius: 50% 60% 0 0; background: #cfe6a8; transform: rotate(-9deg); }
.child-home-garden-land > span + span { bottom: -4rem; left: -15%; height: 10rem; background: #b3d88c; transform: rotate(9deg); }
.child-home-garden-sun { position: absolute; top: 1.8rem; right: 1.8rem; width: 3rem; height: 3rem; border-radius: 50%; background: #ffd376; box-shadow: 0 0 0 .6rem rgb(255 218 143 / 24%); }
.child-home-garden-sun span { position: absolute; top: .9rem; left: 1.05rem; width: .9rem; height: .6rem; border-bottom: 2px solid #946236; border-radius: 50%; }
.child-home-rain-cloud { position: absolute; top: 2.1rem; left: .75rem; width: 6rem; height: 5rem; text-align: center; border-radius: 1rem; }
.child-home-cloud-shape { position: absolute; top: .85rem; left: .4rem; width: 5rem; height: 1.8rem; border-radius: 2rem; background: white; filter: drop-shadow(0 4px 2px rgb(50 100 90 / 9%)); animation: garden-cloud-drift 7s ease-in-out infinite alternate; }
.child-home-cloud-shape::before, .child-home-cloud-shape::after { content: ""; position: absolute; left: .8rem; top: -.9rem; width: 2.3rem; height: 2.2rem; border-radius: 50%; background: inherit; }
.child-home-cloud-shape::after { left: 2.6rem; top: -.5rem; width: 1.7rem; height: 1.7rem; }
.child-home-cloud-label { position: absolute; top: 3.2rem; left: -.25rem; width: 6.5rem; font-size: .7rem; font-weight: 900; line-height: 1.5; color: #176b66; }
.child-home-sprout-message { position: absolute; top: 5.8rem; left: 24%; right: 6%; z-index: 2; padding: .8rem 1rem; border-radius: 1.1rem 1.1rem 1.1rem .2rem; background: white; box-shadow: 0 5px 14px rgb(23 63 69 / 7%); font-size: .85rem; font-weight: 800; line-height: 1.5; text-align: center; color: #173f45; }
.child-home-sprout { position: absolute; bottom: 1rem; left: calc(50% - 6.5rem); width: 13rem; height: 10.5rem; border-radius: 2rem; }
.child-home-sprout-body { position: absolute; inset: 0 2.05rem 2.6rem; border-radius: 49% 49% 43% 43%; background: linear-gradient(140deg, #79c7a8, #46a086); box-shadow: inset -8px -8px 0 rgb(35 119 94 / 12%), 0 10px 0 rgb(36 94 64 / 8%); animation: garden-sprout-breathe 6s ease-in-out infinite; }
.child-home-sprout-leaf { position: absolute; top: -1.5rem; left: 4rem; width: 2.2rem; height: 1.9rem; border-radius: 90% 0 80% 5%; background: #a4cc57; transform: rotate(-18deg); box-shadow: inset 0 -5px 0 rgb(76 139 73 / 20%); }
.child-home-sprout-leaf::after { content: ""; position: absolute; top: .85rem; left: -1.1rem; width: 1.9rem; height: 1.45rem; border-radius: 0 85% 0 85%; background: #c6e787; transform: rotate(10deg); }
.child-home-sprout-belly { position: absolute; width: 5.7rem; height: 4.3rem; bottom: .55rem; left: 1.6rem; border-radius: 48% 48% 43% 43%; background: rgb(169 220 188 / 60%); }
.child-home-sprout-eyes { position: absolute; top: 2.8rem; left: 2.1rem; width: .85rem; height: 1.15rem; border-radius: 50%; background: #17473b; box-shadow: 3.8rem 0 0 #17473b; }
.child-home-sprout-eyes::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: .25rem; height: .3rem; border-radius: 50%; background: white; box-shadow: 3.8rem 0 0 white; }
.child-home-sprout-cheeks { position: absolute; top: 4.25rem; left: 1.3rem; width: 1.2rem; height: .6rem; border-radius: 50%; background: #e6b8a1; box-shadow: 5rem 0 0 #e6b8a1; }
.child-home-sprout-smile { position: absolute; top: 3.9rem; left: 3.75rem; width: 1.4rem; height: .85rem; border-bottom: 3px solid #17473b; border-radius: 50%; }
.child-home-sprout-arm { position: absolute; left: -.9rem; top: 4.4rem; width: 1.95rem; height: 1.25rem; border-radius: 50%; background: #64b597; transform: rotate(33deg); }
.child-home-sprout-arm-right { left: auto; right: -.9rem; transform: rotate(-33deg); transform-origin: 0 50%; }
.child-home-sprout-feet::before, .child-home-sprout-feet::after { content: ""; position: absolute; bottom: -.5rem; left: 1.4rem; width: 1.9rem; height: 1.5rem; border-radius: 50%; background: #56aa8d; z-index: -1; }
.child-home-sprout-feet::after { left: auto; right: 1.4rem; }
.child-home-sprout-name { position: absolute; left: 0; bottom: 0; width: 13rem; color: #244d3c; font-size: .7rem; font-weight: 900; line-height: 1.6; }
.child-home-sprout-name > span { display: block; font-weight: 700; }
.child-home-garden-mushroom { position: absolute; bottom: 3.1rem; left: 1.5rem; width: 2rem; height: 2.2rem; pointer-events: none; }
.child-home-garden-mushroom::before { content: ""; position: absolute; left: .65rem; bottom: 0; width: .7rem; height: 1.4rem; border-radius: .2rem; background: #ffedcc; }
.child-home-garden-mushroom::after { content: "• •"; position: absolute; top: 0; left: -.2rem; width: 2.35rem; height: 1.45rem; border-radius: 70% 70% 20% 20%; background: #df9675; color: #fff1da; font-size: 1.1rem; font-weight: 900; line-height: .9rem; text-align: center; }
.child-home-garden-plant { position: absolute; bottom: 3.4rem; right: 1.8rem; width: 3.4rem; height: 4.4rem; transform-origin: 50% 100%; }
.child-home-garden-plant::before { content: ""; position: absolute; width: .3rem; height: 2.8rem; bottom: 0; left: 1.55rem; border-radius: .3rem; background: #528448; }
.child-home-garden-plant::after { content: ""; position: absolute; left: .3rem; bottom: 1.1rem; width: 1.5rem; height: .95rem; border-radius: 0 90% 0 90%; background: #699f4f; transform: rotate(10deg); box-shadow: 1.4rem -.5rem 0 -2px #88b75b; }
.child-home-garden-flower { position: absolute; top: 0; left: .55rem; width: 2.35rem; height: 2.35rem; border: .55rem dotted #eea771; border-radius: 50%; background: #ffd181; }
.child-home-garden[data-stage="0"] .child-home-garden-plant { transform: scale(.3); }
.child-home-garden[data-stage="1"] .child-home-garden-plant { transform: scale(.7); }
.child-home-garden:is([data-stage="0"], [data-stage="1"]) .child-home-garden-flower { visibility: hidden; }
.child-home-garden-butterfly { position: absolute; top: 10rem; right: 1rem; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.9rem; }
.child-home-garden-visitor { position: absolute; bottom: 6.5rem; right: 4rem; font-size: 1.3rem; transform: rotate(-20deg); }
.child-home-raindrops { position: absolute; top: 5.5rem; left: 1rem; width: 4.8rem; height: 7rem; opacity: 0; pointer-events: none; background: repeating-linear-gradient(112deg, transparent 0 15px, #75b9c8 16px 18px, transparent 19px 28px); mask-image: linear-gradient(to bottom, black, transparent); }
.child-home-garden[data-reaction="rain"] .child-home-raindrops { animation: garden-rain 2s ease-out; }
.child-home-garden[data-reaction="wave"] .child-home-sprout-arm-right { animation: garden-wave 300ms ease-in-out 4 alternate; }
.child-home-garden[data-reaction="flutter"] .child-home-garden-butterfly { animation: garden-flutter 1.6s ease-in-out; }
.child-home-adventure-progress { display: flex; gap: .4rem; margin-top: 1rem; max-width: 15rem; }
.child-home-adventure-progress > span { flex: 1; height: .5rem; border-radius: .5rem; background: #d8e4d0; }
.child-home-adventure-progress > .is-explored { background: #176b66; }
.child-home-world-stage { margin-top: .8rem; color: #42636b; font-size: .9rem; font-weight: 700; line-height: 1.6; }
.child-home-islands { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.3rem; padding: 1.3rem; border-radius: 2rem; background: #e0f3ed; isolation: isolate; }
.child-home-islands::before { content: ""; position: absolute; top: 5rem; left: 5%; width: 90%; height: 10rem; border: 3px dashed #a0ccbc; border-radius: 50%; z-index: -1; transform: rotate(-5deg); }
.child-home-island { min-width: 0; }
.child-home-island-link { display: flex; flex-direction: column; height: 100%; padding: .7rem; border: 2px solid transparent; border-radius: 1.5rem; transition: transform 180ms ease, background-color 180ms ease; }
.child-home-island-link:hover { background: rgb(255 255 255 / 50%); transform: translateY(-4px); }
.child-home-island[data-current="true"] .child-home-island-link { border-color: #8fbaaa; background: rgb(255 255 255 / 65%); }
.child-home-island-status { align-self: center; padding: .35rem .65rem; background: white; border-radius: .6rem; font-size: .7rem; font-weight: 900; line-height: 1.6; text-align: center; color: #42636b; }
.child-home-island[data-state="completed"] .child-home-island-status { background: #d6f3a9; color: #244d3c; }
.child-home-island-scene { position: relative; display: block; width: 100%; height: 10rem; margin-block: .5rem 1rem; }
.child-home-island-ground { position: absolute; bottom: 1rem; left: 8%; width: 84%; height: 4rem; border-radius: 50%; background: #b3d98b; box-shadow: 0 .8rem 0 #c29564, 0 1.45rem 0 -.35rem #c29564, 0 1.8rem .6rem -.35rem rgb(74 112 87 / 15%); }
.child-home-island[data-subject="reading"] .child-home-island-ground { background: #d2bdea; }
.child-home-island[data-subject="thinking"] .child-home-island-ground { background: #b7db9c; }
.child-home-island-art { position: absolute; left: 12%; bottom: 3rem; font-size: 4rem; line-height: 1; filter: drop-shadow(0 5px 0 rgb(43 78 48 / 8%)); }
.child-home-island-symbol { position: absolute; right: 13%; bottom: 3.3rem; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 3px solid white; border-radius: 1rem; background: #fcfaef; font-size: 1.8rem; box-shadow: 0 5px 0 rgb(43 78 48 / 10%); transform: rotate(8deg); }
.child-home-island-bloom { position: absolute; bottom: 1.5rem; left: 45%; font-size: 1.6rem; }
.child-home-island-copy { display: flex; flex: 1; flex-direction: column; padding: 1rem; border-radius: 1.25rem; background: #fffef8; box-shadow: 0 4px 0 rgb(96 160 102 / 12%); }
.child-home-island-copy h3 { font-size: 1.2rem; font-weight: 900; line-height: 1.4; }
.child-home-island-subject { margin-top: .2rem; color: #176b66; font-size: .75rem; font-weight: 900; line-height: 1.5; }
.child-home-island-skill { display: block; margin-top: .45rem; color: #52686c; font-size: .85rem; font-weight: 600; line-height: 1.5; }
.child-home-island-grown { margin-top: .7rem; color: #176b66; font-size: .75rem; font-weight: 800; }
.child-home-island-action { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: 1.1rem; color: #176b66; font-size: .85rem; font-weight: 900; line-height: 1.6; }
.child-home-island-action > span { font-size: 1.3rem; }
.child-home-trainer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  min-height: 15rem;
  padding: clamp(.875rem, 2vw, 1.4rem);
  border: 2px solid #e9bc6e;
  border-bottom: 5px solid #d49b49;
  border-radius: 1.5rem;
  background: #fff3d7;
  color: #173f45;
  box-shadow: 0 9px 18px rgb(113 74 37 / 9%);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.child-home-trainer:hover { border-color: #b98543; background: #ffedc6; }
.child-home-trainer-tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: #ffdf9e;
  color: #754522;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1.5;
  text-transform: uppercase;
}
.child-home-trainer h3 { margin-top: .65rem; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.2; }
.child-home-trainer-copy { margin-top: .5rem; color: #42636b; font-size: .875rem; font-weight: 650; line-height: 1.55; }
.child-home-trainer-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  min-height: 2.75rem;
  margin-top: .85rem;
  padding: .5rem .75rem;
  border-radius: .85rem;
  background: #185a51;
  color: white;
  font-size: .875rem;
  font-weight: 900;
  line-height: 1.4;
}
.child-home-trainer-action > span { font-size: 1rem; }
.child-home-trainer-art { display: block; width: 100%; max-width: 14rem; justify-self: center; }
@media (max-width: 360px) {
  .child-home-trainer { grid-template-columns: minmax(0, 1fr); }
  .child-home-trainer-art { grid-row: 1; max-width: 8rem; }
}
@keyframes garden-cloud-drift { to { transform: translate(.5rem, -.15rem); } }
@keyframes garden-sprout-breathe { 50% { transform: translateY(-.25rem) rotate(1deg); } }
@keyframes garden-wave { to { transform: rotate(-105deg); } }
@keyframes garden-rain { 0% { opacity: 0; transform: translateY(-.5rem); } 25%, 70% { opacity: .8; } 100% { opacity: 0; transform: translateY(3rem); } }
@keyframes garden-flutter { 25% { transform: translate(-2rem, -1.4rem) rotate(-20deg); } 60% { transform: translate(.5rem, -3rem) rotate(25deg); } }
/* A home-page pause also pauses the scenery outside the controller element. */
[data-child-world-motion="paused"] :is(.child-world-sun, .child-world-cloud, .child-confetti, .child-result-spark) { animation: none; }
.child-wonder-home[data-motion="paused"] *, .child-wonder-home[data-motion="paused"] *::before, .child-wonder-home[data-motion="paused"] *::after { animation: none !important; transition: none !important; }
.child-wonder-home[data-motion="paused"] :is(a, button):is(:hover, :active) { transform: none !important; }
@media (max-width: 900px) {
  .child-wonder-home .child-home-hero { gap: 1.5rem; padding: 1.5rem; }
  .child-home-hero-toolbar { align-items: flex-start; }
  .child-home-garden { height: 23rem; }
  .child-home-sprout-message { top: 1.1rem; left: 10%; right: 10%; }
  .child-home-rain-cloud { top: 6rem; left: .2rem; }
  .child-home-garden-sun { top: 6.8rem; right: 1rem; width: 2.5rem; height: 2.5rem; }
  .child-home-garden-sun span { left: .8rem; top: .65rem; }
  .child-home-sprout { bottom: 1.4rem; }
  .child-home-garden-butterfly { top: 11rem; right: .35rem; }
  .child-home-cloud-label { left: -.2rem; width: 6rem; }
  .child-home-raindrops { top: 9.5rem; left: .5rem; }
  .child-home-garden-plant { right: .6rem; bottom: 2.8rem; }
  .child-home-garden-mushroom { left: .6rem; bottom: 2.8rem; }
  .child-home-islands { gap: .5rem; padding: .7rem; }
  .child-home-island-link { padding: .3rem; }
  .child-home-island-copy { padding: .85rem; }
  .child-home-island-art { left: 8%; font-size: 3.5rem; }
  .child-home-island-symbol { right: 4%; width: 3rem; height: 3rem; font-size: 1.5rem; }
}
@media (max-width: 640px) {
  .child-wonder-home .child-home-hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; border-radius: 1.6rem; }
  .child-home-hero-toolbar { grid-column: 1; gap: .65rem; }
  .child-home-hero-toolbar > p { width: 100%; font-size: .7rem; }
  .child-home-hero-tools { width: 100%; justify-content: space-between; gap: .6rem; }
  .child-home-motion { max-width: 8.5rem; font-size: .7rem; }
  .child-home-progress { padding: .4rem .65rem; }
  .child-home-progress strong { font-size: .8rem; }
  .child-home-welcome h1 { font-size: clamp(1.7rem, 7vw, 2.25rem); }
  .child-home-headline { font-size: 1.5rem; }
  .child-home-intro { font-size: .95rem; }
  .child-home-play { width: 100%; min-width: 0; }
  .child-home-next-stop .button_to { width: 100%; }
  .child-home-next-stop > h2 { font-size: 1rem; }
  .child-home-level { font-size: .75rem; }
  .child-home-garden { width: 100%; max-width: 28rem; margin-inline: auto; height: 23rem; }
  .child-home-sprout-message { padding: .75rem; font-size: .8rem; }
  .child-home-sprout { bottom: 1.1rem; }
  .child-home-islands { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 1rem .65rem; }
  .child-home-islands::before { left: 18%; top: 4%; width: 65%; height: 90%; transform: rotate(3deg); }
  .child-home-island-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .5rem; align-items: center; padding: .4rem; }
  .child-home-island-status { grid-column: 1 / -1; justify-self: start; margin-left: .35rem; }
  .child-home-island-scene { height: 9rem; margin: 0 0 .5rem; }
  .child-home-island-ground { left: 2%; width: 96%; }
  .child-home-island-art { left: 3%; bottom: 3.3rem; font-size: 3.2rem; }
  .child-home-island-symbol { right: 1%; bottom: 3.2rem; width: 2.4rem; height: 2.4rem; border-width: 2px; border-radius: .65rem; font-size: 1.2rem; }
  .child-home-island-copy { height: 100%; min-width: 0; padding: .75rem; }
  .child-home-island-copy h3 { font-size: 1rem; }
  .child-home-island-skill { font-size: .75rem; }
  .child-home-island-action { font-size: .75rem; padding-top: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .child-wonder-home *, .child-wonder-home *::before, .child-wonder-home *::after { animation: none !important; transition: none !important; }
  .child-wonder-home :is(a, button):is(:hover, :active) { transform: none !important; }
}
