:root {
  --purple: #7b3fc4;
  --purple-dark: #3d1a6e;
  --pink: #ff6fb5;
  --yellow: #ffc21f;
  --blue: #3f8ef0;
  --cream: #fff8ec;
  --lilac: #f3eaff;
  --text: #3d2a5c;
  --radius: 28px;
  color-scheme: only light; /* keep browser "force dark" modes from greying out the bright palette */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: 'Fredoka', 'Comic Sans MS', system-ui, sans-serif; color: var(--text); background: var(--cream); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--purple); }

/* bubble headings, styled like the channel logo */
.bubble { font-weight: 700; line-height: 1.05; color: #fff; -webkit-text-stroke: 2px var(--purple-dark);
  paint-order: stroke fill; text-shadow: 0 5px 0 var(--purple-dark), 0 8px 16px rgba(61,26,110,.25); }
.c1 { color: #c9a0ff; } .c2 { color: #ffd84a; } .c3 { color: #ff9fd2; }

/* buttons */
.btn { display: inline-block; background: linear-gradient(180deg, #9b5cf0, #6a2fc0); color: #fff; text-decoration: none;
  font-weight: 700; padding: .7em 1.3em; border-radius: 999px; border: 3px solid #fff;
  box-shadow: 0 5px 0 var(--purple-dark), 0 8px 18px rgba(0,0,0,.18); transition: transform .15s; }
.btn:hover { transform: translateY(-3px); }
.btn.alt { background: linear-gradient(180deg, #ffd84a, #ff9f1c); color: var(--purple-dark); }
.btn.small { padding: .4em 1em; font-size: .9em; box-shadow: 0 3px 0 var(--purple-dark); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1rem; background: rgba(255,248,236,.94); backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(61,26,110,.08); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; font-size: 1.15rem; color: var(--purple); }
.brand img { border-radius: 50%; }
.links { display: flex; align-items: center; gap: 1.2rem; }
.links a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--text); }
.links a:not(.btn):hover { color: var(--purple); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.8rem; color: var(--purple); cursor: pointer; }

/* hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,248,236,.85) 0%, rgba(255,248,236,.55) 35%, rgba(255,248,236,0) 60%); }
.hero-text { position: relative; z-index: 1; text-align: center; max-width: 820px; padding: 2.5rem 1rem 0; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); display: flex; flex-direction: column; gap: .15em; }
.hero p { font-size: 1.2rem; font-weight: 500; margin: 1rem auto 1.4rem; max-width: 640px; background: rgba(255,255,255,.75); border-radius: 18px; padding: .6rem 1rem; }
.cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* sections */
.section { padding: 4.5rem 1rem; max-width: 1180px; margin: 0 auto; }
.section.tint { max-width: none; background: var(--lilac); }
.section.tint > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section h2 { text-align: center; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.6rem; }
.lead { text-align: center; max-width: 640px; margin: -0.6rem auto 2rem; font-size: 1.15rem; }

/* friends */
.friends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.friend { background: #fff; border-radius: var(--radius); padding: 1rem 1rem 1.4rem; text-align: center;
  box-shadow: 0 10px 26px rgba(61,26,110,.1); border-top: 10px solid var(--c); transition: transform .2s; }
.friend:hover { transform: translateY(-6px) rotate(-1deg); }
.friend img { width: 100%; aspect-ratio: 3/4; object-fit: contain; object-position: center bottom; border-radius: 20px; background: rgb(214,199,192); }
.friend h3 { font-size: 1.6rem; color: var(--c); margin: .7rem 0 .3rem; }
.pink { --c: var(--pink); } .blue { --c: var(--blue); } .yellow { --c: #f2a900; } .purple { --c: var(--purple); }

/* watch */
.watch { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 6px solid #fff; box-shadow: 0 12px 30px rgba(61,26,110,.2); }
.video { display: block; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video:hover img { transform: scale(1.04); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255, 0, 0, .9); color: #fff; font-size: 2.6rem; display: flex; align-items: center; justify-content: center;
  padding-left: 8px; border: 5px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.watch-text h3 { font-size: 1.7rem; color: var(--purple); margin-bottom: .5rem; }
.ticks { list-style: none; margin: 1rem 0 1.4rem; }
.ticks li { padding-left: 1.8em; position: relative; margin: .35rem 0; font-weight: 500; }
.ticks li::before { content: "\2605"; position: absolute; left: 0; color: var(--yellow); font-size: 1.2em; line-height: 1.2; }

/* books */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.book { background: #fff; border-radius: var(--radius); padding: 1rem 1rem 1.4rem; text-align: center; box-shadow: 0 10px 26px rgba(61,26,110,.1); }
.book img { border-radius: 14px; margin-bottom: .8rem; box-shadow: 0 6px 16px rgba(0,0,0,.18); aspect-ratio: 1; object-fit: cover; width: 100%; }
.book h3 { color: var(--purple); font-size: 1.35rem; }
.tag { display: inline-block; margin-top: .7rem; background: var(--yellow); color: var(--purple-dark); font-weight: 700; padding: .25em .9em; border-radius: 999px; font-size: .9rem; }

/* coloring */
.colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.colors a { background: #fff; border-radius: 20px; padding: .6rem; text-decoration: none; text-align: center; box-shadow: 0 8px 20px rgba(61,26,110,.1); transition: transform .2s; }
.colors a:hover { transform: translateY(-5px) rotate(1deg); }
.colors img { border-radius: 12px; border: 2px solid #eee; }
.colors span { display: block; font-weight: 600; font-size: .95rem; margin-top: .4rem; color: var(--text); }

/* dance */
.dance { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.dance img { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(61,26,110,.2); }
.dance h2 { text-align: left; }
.steps { font-size: 1.35rem; font-weight: 600; padding-left: 1.4em; }
.steps li { margin: .35rem 0; }
.steps li::marker { color: var(--pink); font-weight: 700; }

/* play */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.game-card { background: #fff; border-radius: var(--radius); padding: 1rem 1rem 1.4rem; text-align: center; text-decoration: none; color: var(--text);
  box-shadow: 0 10px 26px rgba(61,26,110,.1); border-top: 10px solid var(--c); transition: transform .2s; display: flex; flex-direction: column; align-items: center; }
.game-card:hover { transform: translateY(-6px) rotate(1deg); }
.game-card h3 { font-size: 1.4rem; color: var(--c); margin: .8rem 0 .2rem; line-height: 1.2; }
.game-card p { flex: 1; margin-bottom: .9rem; }
.thumb { width: 100%; aspect-ratio: 16/10; border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: .5rem; overflow: hidden; padding: .8rem; }
.thumb.memo { background: var(--lilac); display: grid; grid-template-columns: repeat(4, 1fr); }
.thumb.memo img, .thumb.memo i { aspect-ratio: 1; width: 100%; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 4px 0 rgba(61,26,110,.2); }
.thumb.memo img { object-fit: cover; background: rgb(214,199,192); }
.thumb.memo i { background: linear-gradient(160deg, #9b5cf0, #6a2fc0); }
.thumb.count { background: #fff3c4; }
.thumb.count img { height: 100%; width: auto; aspect-ratio: 1; object-fit: cover; object-position: center 20%; border-radius: 50%; border: 4px solid #fff; }
.thumb.count b { font-size: 2.4rem; color: var(--purple-dark); }
.thumb.shapes { background: #ffe3f1; }
.thumb.shapes svg { width: 100%; height: 100%; }
.thumb.abc { background: #ffe3f1; gap: .3rem; }
.thumb.abc b { font-size: clamp(3rem, 6vw, 4.2rem); }
.thumb.pattern { background: #e3f0ff; }
.thumb.pattern svg { width: 100%; height: 100%; }
.thumb.feel { background: var(--lilac); }
.thumb.feel svg { height: 100%; width: auto; }
.thumb.feel b { font-size: 2rem; }

/* parents */
.parents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { background: #fff; border-radius: 22px; padding: 1.3rem; box-shadow: 0 8px 20px rgba(61,26,110,.08); }
.card h3 { color: var(--purple); margin-bottom: .4rem; font-size: 1.2rem; }

/* footer */
.footer { background: var(--purple-dark); color: #fff; text-align: center; padding: 3rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.footer img { border-radius: 50%; }
.footer a { color: #ffd84a; font-weight: 600; }
.slogan { font-size: 1.5rem; -webkit-text-stroke: 0; text-shadow: none; }
.fine { font-size: .85rem; opacity: .75; max-width: 600px; }

/* responsive */
@media (max-width: 960px) {
  .friends, .parents { grid-template-columns: repeat(2, 1fr); }
  .colors { grid-template-columns: repeat(3, 1fr); }
  .watch, .dance { grid-template-columns: 1fr; }
  .dance h2 { text-align: center; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); box-shadow: 0 10px 20px rgba(0,0,0,.1); padding: .5rem 0 1rem; }
  .links.open { display: flex; }
  .links a:not(.btn) { padding: .7rem; width: 100%; text-align: center; }
  .books, .games { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .colors { grid-template-columns: repeat(2, 1fr); }
  .brand span { font-size: 1rem; }
  body { font-size: 17px; }
}
@media (max-width: 460px) {
  .friends, .parents { grid-template-columns: 1fr; }
  .friend img { aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* friend greetings */
.hi { font: inherit; font-weight: 700; font-size: .95rem; color: #fff; background: var(--c); border: 3px solid #fff; border-radius: 999px;
  padding: .3em 1em; margin-bottom: .5rem; cursor: pointer; box-shadow: 0 4px 0 rgba(61,26,110,.3); transition: transform .15s; }
.hi:hover { transform: translateY(-2px); }
.hi.talking { animation: wiggle .5s ease-in-out infinite; }
@keyframes wiggle { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* learn teaser */
.learn-teaser .card { text-align: center; padding: 2.2rem 1.5rem; background: linear-gradient(160deg, #fff6d9, #f3eaff); }
.learn-teaser h2 { margin-bottom: .8rem; }
.learn-teaser p { max-width: 620px; margin: 0 auto 1.3rem; font-size: 1.15rem; }
@media (prefers-reduced-motion: reduce) { .hi.talking { animation: none; } }
