/* Kids Zone: a different, playful look */
body.kids {
  --ink: #2b2250;
  --ink-2: #4a3f7a;
  --accent: #ff4f8b;
  --accent-d: #e03273;
  --radius: 26px;
  --line: #ffd9a8;
  --kfont: "Baloo 2", "Chalkboard SE", "Comic Sans MS", "Comic Neue", "Trebuchet MS", system-ui, sans-serif;
  font-family: var(--kfont);
  font-size: 1.1rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, #ffe9b3 0 90px, transparent 91px),
    radial-gradient(circle at 88% 10%, #c9f1ff 0 70px, transparent 71px),
    radial-gradient(circle at 92% 70%, #ffd0e4 0 110px, transparent 111px),
    #fffaf0;
  background-attachment: fixed;
}
body.kids h1, body.kids h2, body.kids h3, body.kids .brand { font-family: var(--kfont); font-weight: 800; }
body.kids a { color: var(--accent-d); }

.kids-header { background: linear-gradient(90deg, #ff8a3d, #ffc233, #7bd95b, #34c3ff, #a77bff); color: #2b2250; position: static; border-bottom: 5px solid #fff; }
.kids-header .brand { color: #2b2250; font-size: 1.4rem; }
.kids-header .brand-mark { background: #fff; font-size: 1.4rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; }
.kids-header .nav a { color: #2b2250; }

body.kids .btn { border-radius: 999px; font-weight: 800; border-width: 3px; }
.btn-kid { background: #ffe14d; color: #2b2250; border-color: #2b2250; box-shadow: 0 4px 0 #2b2250; }
.btn-kid:hover { background: #ffd51f; }
body.kids .btn-ghost { background: #fff; border-color: #2b2250; color: #2b2250; box-shadow: 0 3px 0 #2b2250; }
body.kids .btn-accent { background: #ff4f8b; border-color: #2b2250; box-shadow: 0 4px 0 #2b2250; color: #fff; }

/* hero */
.kids-hero { position: relative; overflow: hidden; text-align: center; padding: 3.2rem 0 4rem; background: linear-gradient(180deg, #fff3c4, #ffe1ef); border-bottom-left-radius: 50% 28px; border-bottom-right-radius: 50% 28px; }
.kids-hero.small { padding: 2rem 0 3rem; }
.kids-hero h1 { font-size: clamp(2.6rem, 9vw, 5rem); margin: 0; color: #2b2250; text-shadow: 3px 3px 0 #fff; }
.kids-hero h1 span { color: #ff4f8b; }
.kids-lead { font-size: 1.25rem; max-width: 34rem; margin: .6rem auto 0; color: #4a3f7a; font-weight: 600; }
.kid-emoji { font-size: 2.6rem; line-height: 1; margin: 0; display: block; }
.kid-emoji.big { font-size: 4.2rem; }
.float { position: absolute; font-size: 2.4rem; animation: floaty 5s ease-in-out infinite; user-select: none; }
.f1 { left: 8%; top: 18%; } .f2 { left: 20%; bottom: 14%; animation-delay: .8s; font-size: 3rem; }
.f3 { right: 10%; top: 16%; animation-delay: 1.6s; font-size: 3rem; } .f4 { right: 22%; bottom: 12%; animation-delay: .4s; }
.f5 { left: 46%; top: 6%; animation-delay: 2s; font-size: 1.8rem; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@media (max-width: 600px) { .float { font-size: 1.6rem !important; } .f2, .f4 { display: none; } }

.kids-section { padding: 2rem 0 1rem; }
.kids-h2 { text-align: center; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.kids-note { text-align: center; font-weight: 700; }

/* cards */
.kid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.3rem; }
.kid-card { position: relative; display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: #2b2250 !important; border: 4px solid #2b2250; border-radius: 28px; padding: 1.4rem; box-shadow: 0 7px 0 #2b2250; transition: transform .15s, box-shadow .15s; background: #fff; }
.kid-card:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 12px 0 #2b2250; }
.kid-card:active { transform: translateY(4px); box-shadow: 0 2px 0 #2b2250; }
.kid-card .kid-emoji { font-size: 3.4rem; }
.kid-title { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.kid-desc { font-weight: 600; opacity: .85; flex: 1; }
.kid-go { align-self: flex-start; background: #2b2250; color: #fff; border-radius: 999px; padding: .25rem .9rem; font-weight: 800; margin-top: .4rem; }
.kid-num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; border: 4px solid #2b2250; font-size: 1.5rem; font-weight: 800; }
.c0 { background: #ffd54d; } .c1 { background: #8fe3a0; } .c2 { background: #8bd8ff; }
.c3 { background: #ffb0cf; } .c4 { background: #c9b2ff; } .c5 { background: #ffb88a; }

/* lesson page */
.kids-lesson { width: min(860px, 100% - 2rem); padding: 1.5rem 0 3rem; }
.kids-lesson-head { text-align: center; margin: .5rem 0 1rem; }
.kids-lesson-head h1 { font-size: clamp(2rem, 7vw, 3.2rem); margin: .2rem 0; }
body.kids .video { border: 5px solid #2b2250; border-radius: 28px; box-shadow: 0 8px 0 #2b2250; }
.kids-prose { background: #fff; border: 4px solid #2b2250; border-radius: 28px; padding: 1.2rem 1.5rem; box-shadow: 0 6px 0 #2b2250; font-size: 1.15rem; font-weight: 600; }
.kids-prose h2, .kids-prose h3 { color: #ff4f8b; }
body.kids .card-block { border: 4px solid #2b2250; border-radius: 28px; box-shadow: 0 6px 0 #2b2250; }
body.kids .audio-box { border: 4px solid #2b2250; border-radius: 22px; }
body.kids .vocab th { color: #4a3f7a; }
body.kids .opt { border: 3px solid #2b2250; border-radius: 16px; font-weight: 800; font-size: 1.05rem; box-shadow: 0 3px 0 #2b2250; background: #fff; }
body.kids .opt:hover:not(:disabled) { background: #fff3c4; }
body.kids .opt.right { background: #8fe3a0; border-color: #1b6b32; color: #12441f; }
body.kids .opt.wrong { background: #ffc5bd; border-color: #a3281a; }
body.kids .q-num { background: #ff4f8b; }
body.kids .explain { background: #e6f8ff; }
body.kids .score { text-align: center; font-size: 1.6rem; }
body.kids .pn { border: 4px solid #2b2250; border-radius: 22px; background: #fff; box-shadow: 0 4px 0 #2b2250; }
body.kids .count { background: #ff4f8b; }
body.kids .avatar { background: #8bd8ff; color: #2b2250; border: 3px solid #2b2250; }
body.kids input[type=text], body.kids textarea { border: 3px solid #2b2250; border-radius: 16px; font-family: var(--kfont); font-weight: 600; }
body.kids .flash.ok { background: #d7f7d1; }
.kids-foot { text-align: center; font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0; }
body.kids .site-footer { background: linear-gradient(90deg, #ff8a3d, #ff4f8b, #a77bff); color: #fff; margin-top: 2rem; }
body.kids .site-footer .copy { opacity: .95; }

@media (prefers-reduced-motion: reduce) { .float { animation: none !important; } }
