/* =========================================================
   Kids' Corner – playful layer on top of style.css
   Big touch targets (min 56px), bilingual labels, no reading required.
   ========================================================= */

.kids-page {
  --font-kids: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-head: var(--font-kids);
  --font-body: "Nunito", "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 1px 1px, rgba(241, 90, 41, .10) 1.5px, transparent 0) 0 0 / 26px 26px,
    var(--bg);
}
.kids-page h1, .kids-page h2, .kids-page h3, .kids-page h4 { font-family: var(--font-kids); font-weight: 700; }
.en { display: block; font-size: .55em; color: var(--muted); font-weight: 600; margin-top: .15em; }

/* ---------- Header tools ---------- */
.kids-tools { display: flex; align-items: center; gap: .5rem; }
.star-pill {
  display: inline-flex; align-items: center; gap: .3rem; margin: 0;
  padding: .35rem .8rem; border-radius: 999px; background: #FFF1C2; border: 2px solid #F8D774;
  font: 800 1.05rem var(--font-kids); color: #7A4B00;
}
.star-pill.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.25); } }
.tool-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--line); background: var(--white);
  font-size: 1.2rem; cursor: pointer; display: grid; place-items: center;
}
.tool-btn .off, .tool-btn[aria-pressed="false"] .on { display: none; }
.tool-btn[aria-pressed="false"] .off { display: inline; }
.kids-header .btn-sm { display: none; }
@media (min-width: 640px) { .kids-header .btn-sm { display: inline-flex; } }

/* ---------- Hero ---------- */
.kids-hero { position: relative; overflow: hidden; padding: 2.5rem 0 1.5rem; text-align: center; }
.kids-hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); color: var(--orange-ink); margin-bottom: .5rem; line-height: 1.1; }
.kids-hero h1 span { display: block; font-size: .45em; color: var(--ink); font-weight: 600; }
.kids-hero .lead { margin-inline: auto; }
.parent-note {
  display: inline-block; max-width: 40rem; margin: .5rem auto 0; padding: .7rem 1.1rem;
  background: var(--white); border: 2px dashed #F8C9A8; border-radius: 18px; font-size: .98rem;
}
.float { position: absolute; font-size: clamp(2rem, 5vw, 3.2rem); opacity: .9; animation: floaty 6s ease-in-out infinite; }
.f1 { top: 12%; left: 5%; } .f2 { top: 18%; right: 6%; animation-delay: -2s; }
.f3 { bottom: 8%; left: 10%; animation-delay: -4s; } .f4 { bottom: 14%; right: 12%; animation-delay: -1s; }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(6deg); } }
@media (max-width: 640px) { .f1, .f3, .f4 { display: none; } .f2 { top: 4%; } }
@media (min-width: 960px) { .kids-hero { padding: 4rem 0 2rem; } }

/* ---------- Activity cards ---------- */
.play-section { padding-top: 2rem; }
.group-title { font-size: 1.3rem; margin: 2rem 0 1rem; display: flex; align-items: center; gap: .5rem; }
.activity-grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.activity-card {
  width: 100%; height: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 1rem; align-items: center;
  padding: 1.1rem 1.2rem; border-radius: 24px; border: 3px solid rgba(30, 41, 59, .06);
  font-family: var(--font-body); color: var(--ink);
  box-shadow: 0 6px 0 rgba(30, 41, 59, .08); transition: transform .15s ease, box-shadow .15s ease;
}
.activity-card:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(30, 41, 59, .1); }
.activity-card:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(30, 41, 59, .1); }
.a-emoji {
  grid-row: 1 / span 3; font-size: 2.6rem; width: 72px; height: 72px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .75); border-radius: 20px;
}
.a-ne { font: 800 1.35rem/1.2 var(--font-kids); }
.a-en { font-weight: 800; font-size: .95rem; color: var(--muted); }
.a-desc { font-size: .9rem; color: var(--muted); margin-top: .15rem; }
.a-orange { background: #FFE3D3; } .a-yellow { background: #FFF1C2; } .a-green { background: #DDF3E4; }
.a-blue { background: #DDF0FB; } .a-purple { background: #ECE4FA; } .a-mint { background: #D9F5EE; } .a-pink { background: #FCE4EC; }
.noscript-msg { text-align: center; font-weight: 700; }

/* ---------- Parents' corner ---------- */
.parent-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .parent-grid { grid-template-columns: 1.3fr 1fr; } }
.numbers { list-style: none; display: grid; gap: .5rem; margin-bottom: 1rem; }
.numbers a {
  display: flex; align-items: center; gap: .8rem; padding: .55rem .8rem; border-radius: 14px;
  background: #FDECEA; color: var(--ink); text-decoration: none; font-weight: 700;
}
.numbers a:hover { background: #F9D9D4; color: var(--ink); }
.numbers strong { min-width: 3.2rem; font: 800 1.3rem var(--font-kids); color: #B71C1C; }
.small { font-size: .92rem; color: var(--muted); margin: 0; }
.season-grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-bottom: 2rem; }
.season { background: var(--white); border: 2px solid #F1E7DC; border-radius: 20px; padding: 1.1rem 1.2rem; position: relative; }
.season h4 { font-size: 1.15rem; margin-bottom: .4rem; }
.season h4 small { display: block; font: 700 .8rem var(--font-body); color: var(--muted); }
.season p { margin: 0; font-size: .95rem; }
.season.is-now { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 90, 41, .15); }
.season.is-now::after {
  content: "Now"; position: absolute; top: -.7rem; right: 1rem; padding: .1rem .6rem; border-radius: 999px;
  background: var(--orange-btn); color: #fff; font: 800 .75rem/1.6 var(--font-body);
}
.idea-list { list-style: none; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-bottom: 1rem; }
.idea-list li { display: flex; gap: .6rem; align-items: center; background: var(--tint); padding: .6rem .8rem; border-radius: 14px; font-weight: 700; }
.idea-list span { font-size: 1.4rem; }

/* ---------- Activity player (dialog) ---------- */
body:has(.stage[open]) { overflow: hidden; }
.stage {
  width: 100%; max-width: 920px; height: 100%; max-height: 100%; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: #FFFBF6; color: var(--ink);
  font-family: var(--font-body); overflow: hidden;
}
.stage[open] { display: flex; flex-direction: column; }
.stage::backdrop { background: rgba(30, 41, 59, .55); }
@media (min-width: 760px) {
  .stage { margin: auto; height: min(92vh, 860px); border-radius: 28px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
}
.stage-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1rem .75rem 1.25rem; background: var(--white); border-bottom: 2px solid var(--line);
}
.stage-head h2 { font-size: 1.35rem; margin: 0; line-height: 1.2; }
.stage-close {
  width: 52px; height: 52px; flex: none; border-radius: 16px; border: 2px solid var(--line); background: #fff;
  font-size: 1.4rem; font-weight: 800; cursor: pointer; color: var(--ink);
}
.stage-close:hover { background: var(--tint); }
.stage-body { position: relative; flex: 1; overflow-y: auto; padding: 1.25rem 1rem 2rem; text-align: center; }
@media (min-width: 760px) { .stage-body { padding: 1.5rem 2rem 2rem; } }
.voice-hint { margin: 0; padding: .6rem 1rem; background: #FFF1C2; font-size: .9rem; font-weight: 700; text-align: center; }

/* Shared game pieces */
.q { font: 700 1.5rem/1.25 var(--font-kids); margin-bottom: .75rem; }
.q span { display: block; font-size: .65em; color: var(--muted); font-weight: 600; }
.hint { color: var(--muted); font-size: .92rem; margin: .5rem 0 1rem; }
.feedback { min-height: 3.2em; margin: 1rem auto 0; max-width: 34rem; font: 700 1.15rem/1.4 var(--font-kids); }
.feedback.good { color: var(--green-ink); }
.feedback.bad { color: var(--orange-ink); }
.big-btn {
  min-height: 60px; padding: .7rem 1.5rem; border-radius: 20px; border: 0; cursor: pointer;
  font: 800 1.15rem/1.2 var(--font-kids); color: #fff; background: var(--orange-btn);
  box-shadow: 0 5px 0 #8f2e0b; transition: transform .1s ease, box-shadow .1s ease;
}
.big-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #8f2e0b; }
.big-btn.green { background: var(--green-ink); box-shadow: 0 5px 0 #044d22; }
.big-btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 #e4d7c9; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.25rem; }
.pill-btn {
  min-height: 48px; padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  font: 700 1rem var(--font-kids); background: #fff; color: var(--ink); border: 2px solid var(--line);
}
.pill-btn[aria-selected="true"], .pill-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-btn small { font-size: .8em; opacity: .75; margin-left: .25rem; }
.done-panel { padding: 1rem 0; }
.done-panel .emo { font-size: 4.5rem; line-height: 1; margin-bottom: .5rem; }
.done-panel h3 { font-size: 1.8rem; margin-bottom: .25rem; }
.done-panel p { color: var(--muted); max-width: 32rem; margin-inline: auto; }
.wrong { animation: shake-x .4s ease; opacity: .45; }
@keyframes shake-x { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Celebration burst */
.burst { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.burst span { position: absolute; font-size: 1.8rem; animation: burst 1.1s ease-out forwards; }
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2); opacity: 0; }
}

/* ---------- 1. Letters & numbers ---------- */
.flash { display: grid; grid-template-columns: 56px 1fr 56px; gap: .5rem; align-items: center; max-width: 560px; margin: 0 auto; }
.nav-arrow {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer;
  font-size: 1.3rem; color: var(--ink);
}
.flash-card {
  cursor: pointer; border: 4px solid #fff; border-radius: 32px; padding: 1.25rem .75rem;
  background: linear-gradient(160deg, #FFF1C2, #FFE3D3); box-shadow: 0 8px 0 rgba(30, 41, 59, .08), 0 18px 30px -18px rgba(30, 41, 59, .4);
  display: grid; justify-items: center; gap: .1rem; color: var(--ink); min-height: 300px; align-content: center;
}
.flash-card .letter { font: 800 clamp(4.5rem, 20vw, 7rem)/1 var(--font-kids); color: var(--orange-ink); }
.flash-card .pic { font-size: clamp(3rem, 14vw, 4.5rem); line-height: 1.15; }
.flash-card .pic.many { font-size: clamp(1.6rem, 7vw, 2.2rem); max-width: 16rem; letter-spacing: .1em; }
.flash-card .word { font: 700 clamp(1.6rem, 6vw, 2.2rem)/1.2 var(--font-kids); }
.flash-card .meta { color: var(--muted); font-weight: 700; font-size: .95rem; }
.flash-card.pop { animation: card-pop .3s ease; }
@keyframes card-pop { from { transform: scale(.92); } }
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; max-width: 680px; margin: 1rem auto 0; }
.tile {
  min-width: 48px; height: 48px; padding: 0 .4rem; border-radius: 14px; border: 2px solid var(--line); background: #fff;
  font: 700 1.3rem var(--font-kids); color: var(--ink); cursor: pointer;
}
.tile[aria-current="true"] { background: var(--orange-btn); border-color: var(--orange-btn); color: #fff; }

/* ---------- 2. Count the momos ---------- */
.plate {
  width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 58%, #F3E6D8 59% 64%, #fff 65% 100%);
  border: 4px solid #EADFD3; box-shadow: 0 12px 24px -14px rgba(30, 41, 59, .5);
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: .2rem; padding: 14%;
}
.momo {
  position: relative; width: 56px; height: 56px; border: 0; background: none; cursor: pointer;
  font-size: 2.6rem; line-height: 1; padding: 0; transition: transform .15s ease;
}
.momo:active { transform: scale(.9); }
.momo.counted { transform: scale(.9); filter: saturate(1.3); }
.momo .n {
  position: absolute; top: -4px; right: -4px; min-width: 26px; height: 26px; border-radius: 999px;
  background: var(--green-ink); color: #fff; font: 800 .95rem/26px var(--font-kids); display: none;
}
.momo.counted .n { display: block; }
.choices { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.choice {
  width: 96px; height: 96px; border-radius: 26px; border: 3px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; align-content: center; color: var(--ink); box-shadow: 0 5px 0 #e4d7c9;
}
.choice .dev { font: 800 2.6rem/1 var(--font-kids); }
.choice .arb { font: 700 1rem var(--font-body); color: var(--muted); }
.choice.right { background: #DDF3E4; border-color: var(--green-ink); }

/* ---------- 3. Animal pairs ---------- */
.mem-grid { display: grid; gap: .6rem; max-width: 560px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); }
.mem-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .mem-grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
.mem-card {
  position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer;
  perspective: 800px;
}
.mem-card .inner {
  position: absolute; inset: 0; transition: transform .45s ease; transform-style: preserve-3d;
}
.mem-card.flipped .inner, .mem-card.matched .inner { transform: rotateY(180deg); }
.mem-card .face {
  position: absolute; inset: 0; border-radius: 18px; display: grid; place-items: center; align-content: center;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; border: 3px solid #fff;
  box-shadow: 0 5px 0 rgba(30, 41, 59, .1);
}
.mem-card .back {
  background: repeating-linear-gradient(45deg, #F15A29 0 12px, #F47A52 12px 24px);
  font: 800 2rem var(--font-kids); color: #fff;
}
.mem-card .front { background: #fff; transform: rotateY(180deg); }
.mem-card .front .emo { font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.1; }
.mem-card .front .nm { font: 700 .95rem var(--font-kids); }
.mem-card.matched .front { background: #DDF3E4; border-color: var(--green-ink); }
.moves { color: var(--muted); font-weight: 700; margin: 0 0 .75rem; }

/* ---------- 4. Good habits ---------- */
.progress { font-weight: 800; color: var(--muted); margin-bottom: .5rem; }
.habit-card {
  max-width: 520px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 1.25rem;
  border: 3px solid #F1E7DC; box-shadow: 0 8px 0 rgba(30, 41, 59, .06);
}
.habit-card .scene { font-size: clamp(3.5rem, 16vw, 5rem); line-height: 1.1; margin-bottom: .5rem; }
.habit-card .ne { font: 700 1.45rem/1.3 var(--font-kids); margin: 0; }
.habit-card .en-line { color: var(--muted); font-weight: 700; margin: .2rem 0 0; }
.say-btn {
  margin-top: .6rem; min-height: 44px; padding: .3rem .9rem; border-radius: 999px; border: 2px solid var(--line);
  background: #fff; cursor: pointer; font: 700 .95rem var(--font-body); color: var(--ink);
}
.answer-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 520px; margin: 1rem auto 0; }
.answer {
  min-height: 84px; border-radius: 22px; border: 0; cursor: pointer; color: #fff; padding: .5rem;
  font: 800 1.15rem/1.2 var(--font-kids); display: grid; place-items: center; align-content: center; gap: .1rem;
}
.answer .e { font-size: 1.8rem; }
.answer small { font: 700 .85rem var(--font-body); opacity: .9; }
.answer.yes { background: var(--green-ink); box-shadow: 0 5px 0 #044d22; }
.answer.no { background: #C62828; box-shadow: 0 5px 0 #7f1414; }
.answer:disabled { opacity: .45; cursor: default; }
.why { max-width: 520px; margin: 1rem auto 0; padding: .8rem 1rem; border-radius: 18px; background: var(--tint); font-weight: 700; }

/* ---------- 5. Earthquake drill ---------- */
.room {
  max-width: 420px; margin: 0 auto 1rem; padding: 1rem; border-radius: 26px;
  background: linear-gradient(#FFF7E8 0 70%, #E9D5BD 70%); border: 4px solid #E4CFB5;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; font-size: clamp(2.2rem, 10vw, 3.2rem);
}
.room.shaking { animation: quake .25s linear infinite; }
@keyframes quake {
  0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-5px, 2px) rotate(-1deg); }
  50% { transform: translate(4px, -2px) rotate(1deg); } 75% { transform: translate(-3px, 1px) rotate(0); }
}
.room .wobble { display: inline-block; animation: wobble .5s ease-in-out infinite; }
.room:not(.shaking) .wobble { animation: none; }
@keyframes wobble { 50% { transform: rotate(8deg); } }
.options { display: grid; gap: .75rem; max-width: 520px; margin: 0 auto; }
.option {
  display: flex; align-items: center; gap: 1rem; min-height: 72px; padding: .6rem 1rem; text-align: left;
  border-radius: 20px; border: 3px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
  font: 700 1.1rem/1.25 var(--font-kids); box-shadow: 0 5px 0 #e4d7c9;
}
.option .e { font-size: 2.2rem; }
.option small { display: block; font: 700 .85rem var(--font-body); color: var(--muted); }
.option.right { background: #DDF3E4; border-color: var(--green-ink); }
.step-card { max-width: 480px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 1.5rem 1.25rem; border: 3px solid #ECE4FA; }
.step-card .num { display: inline-block; padding: .1rem .8rem; border-radius: 999px; background: #6A3FB5; color: #fff; font-weight: 800; margin-bottom: .5rem; }
.step-card .e { font-size: clamp(4rem, 18vw, 5.5rem); line-height: 1.1; }
.step-card h3 { font-size: 2rem; margin: .25rem 0; color: #5B34A0; }
.step-card p { margin: 0; font-weight: 700; color: var(--muted); }
.step-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1rem; }
.step-dots span { width: 12px; height: 12px; border-radius: 999px; background: #E2D8F3; }
.step-dots span.on { background: #6A3FB5; width: 28px; }

/* ---------- 6. Sort the rubbish ---------- */
.waste-item {
  width: 180px; height: 180px; margin: 0 auto .5rem; border-radius: 32px; background: #fff;
  border: 3px solid #F1E7DC; display: grid; place-items: center; align-content: center;
  box-shadow: 0 8px 0 rgba(30, 41, 59, .06); transition: transform .45s ease, opacity .45s ease;
}
.waste-item .e { font-size: 4.5rem; line-height: 1.1; }
.waste-item .nm { font: 700 1.05rem/1.2 var(--font-kids); padding: 0 .5rem; }
.waste-item .nm small { display: block; font: 700 .8rem var(--font-body); color: var(--muted); }
.waste-item.to-green { transform: translate(-90px, 170px) scale(.3); opacity: 0; }
.waste-item.to-blue { transform: translate(90px, 170px) scale(.3); opacity: 0; }
.bins { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; max-width: 460px; margin: 1rem auto 0; }
.bin {
  min-height: 150px; border-radius: 22px 22px 30px 30px; border: 0; cursor: pointer; color: #fff; padding: .8rem .5rem;
  display: grid; place-items: center; align-content: center; gap: .15rem; font: 800 1.15rem/1.2 var(--font-kids);
}
.bin .lid { font-size: 2.4rem; }
.bin small { font: 700 .82rem/1.3 var(--font-body); opacity: .95; }
.bin.green { background: var(--green-ink); box-shadow: 0 6px 0 #044d22; }
.bin.blue { background: #1565C0; box-shadow: 0 6px 0 #0b3d78; }
.bin:active { transform: translateY(3px); }
.dots { display: flex; justify-content: center; gap: .35rem; margin-bottom: .9rem; }
.dots span { width: 14px; height: 14px; border-radius: 50%; background: #EADFD3; }
.dots span.done { background: var(--green); }
.dots span.now { background: var(--orange); }

/* ---------- 7. Wash & brush timer ---------- */
.ring-wrap { position: relative; width: min(78vw, 260px); aspect-ratio: 1; margin: 0 auto; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #F1E7DC; stroke-width: 12; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.ring-center .e { font-size: clamp(3.2rem, 15vw, 4.5rem); line-height: 1.1; }
.ring-center .sec { font: 800 1.6rem var(--font-kids); color: var(--muted); }
.step-text { font: 700 1.5rem/1.3 var(--font-kids); margin: .75rem 0 0; min-height: 2.6em; }
.step-text small { display: block; font: 700 .95rem var(--font-body); color: var(--muted); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .float, .room.shaking, .room .wobble { animation: none !important; }
  .mem-card .inner { transition: none; }
}

/* ---------- Small-screen and footer tweaks ---------- */
@media (max-width: 420px) { .pill-btn small { display: none; } .stage-head h2 { font-size: 1.15rem; } }
.kids-page .site-footer { padding: calc(1.25rem + 12px) 0 1.25rem; }
.kids-page .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* Drawn table icon (earthquake drill) */
.table-ico svg, .under svg { display: inline-block; width: 1em; height: .78em; vertical-align: middle; }
.under { position: relative; display: inline-block; }
.under .kid { position: absolute; left: 50%; bottom: .02em; transform: translateX(-50%); font-size: .42em; line-height: 1; }

/* Hand-drawn Kathmandu pictures in the letter cards */
.flash-card .pic .pic-svg { display: inline-block; width: 1.45em; height: 1.45em; margin: -.12em 0; vertical-align: middle; }

/* =========================================================
   Letter & number games (kids-letters.js)
   ========================================================= */
.greeting { font: 800 1.4rem var(--font-kids); color: var(--green-ink); margin: 0 0 .25rem; }

/* Letter of the day */
.today-slot:empty { display: none; }
.today-card {
  width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin-bottom: 1rem;
  border-radius: 24px; border: 3px dashed #F8C9A8; background: #fff; cursor: pointer; text-align: left; color: var(--ink);
  font-family: var(--font-body); box-shadow: 0 6px 0 rgba(30, 41, 59, .06);
}
.today-card:hover { border-color: var(--orange); }
.today-pic { flex: none; width: 84px; height: 84px; display: grid; place-items: center; font-size: 3rem; background: #FFF1C2; border-radius: 22px; }
.today-pic .pic-svg { width: 1.2em; height: 1.2em; }
.today-text small { display: block; font-weight: 800; font-size: .78rem; letter-spacing: .05em; color: var(--orange-ink); text-transform: uppercase; }
.today-text strong { display: block; font: 800 1.6rem/1.2 var(--font-kids); }
.today-text .ch { display: block; font-weight: 700; color: var(--ink); }
.today-text .ch span { display: block; font-weight: 600; font-size: .9rem; color: var(--muted); }
.today-go { margin-left: auto; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-btn); color: #fff; font-size: 1.1rem; }

@media (max-width: 480px) { .today-go { display: none; } .today-pic { width: 68px; height: 68px; font-size: 2.4rem; } .today-card { padding: .9rem; gap: .8rem; } }

/* Letter cards: tools, today badge, living pictures */
.flash-card { position: relative; overflow: hidden; }
.flash-card .pic, .name-card .pic, .quiz-pic .pic { display: inline-block; }
.today-badge { position: absolute; top: .6rem; left: .6rem; padding: .15rem .6rem; border-radius: 999px; background: #fff; color: var(--orange-ink); font: 800 .78rem var(--font-kids); }
.learn-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: .25rem 0 .75rem; }
.tool-chip {
  min-height: 48px; padding: .45rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  font: 700 1rem var(--font-kids); color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 #e4d7c9;
}
.tool-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool-chip:disabled { opacity: .5; }
.mic-panel { max-width: 460px; margin: 0 auto 1rem; padding: .8rem 1rem; border-radius: 18px; background: #FFF6EC; border: 2px solid #F8D9C2; font: 700 1.1rem var(--font-kids); }
.mic-panel span { color: var(--muted); font-weight: 600; }
.mic-panel .btn-row { margin-top: .6rem; }
.mic-panel .count { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #C62828; color: #fff; margin-left: .4rem; }
.rec-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #E53935; margin-right: .3rem; vertical-align: middle; animation: rec 1s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .3; transform: scale(.8); } }

.fx-hop { animation: fx-hop .8s ease; }
@keyframes fx-hop { 25% { transform: translateY(-30px); } 50% { transform: translateY(0); } 70% { transform: translateY(-14px); } }
.fx-swing { transform-origin: 50% 0; animation: fx-swing 1.1s ease; }
@keyframes fx-swing { 20% { transform: rotate(18deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
.fx-fly { animation: fx-fly 1.3s ease-in-out; }
@keyframes fx-fly { 30% { transform: translate(60px, -70px) rotate(15deg); } 60% { transform: translate(-50px, -40px) rotate(-10deg); } }
.fx-beat { animation: fx-beat .7s ease; }
@keyframes fx-beat { 15%, 45%, 75% { transform: scale(1.2); } 30%, 60%, 90% { transform: scale(.94); } }
.fx-roll { animation: fx-roll 1.4s ease-in-out; }
@keyframes fx-roll { 40% { transform: translateX(80px); } 80% { transform: translateX(-24px); } }
.fx-spin { animation: fx-spin .9s ease; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
.fx-wiggle { animation: fx-wiggle .7s ease; }
@keyframes fx-wiggle { 20%, 60% { transform: rotate(-12deg); } 40%, 80% { transform: rotate(12deg); } }
.fx-grow { animation: fx-grow .8s ease; }
@keyframes fx-grow { 40% { transform: scale(1.35); } 70% { transform: scale(.95); } }
.fx-bounce { animation: fx-bounce .7s ease; }
@keyframes fx-bounce { 30% { transform: translateY(-22px); } 55% { transform: translateY(0) scaleY(.9); } 75% { transform: translateY(-6px); } }
.fx-wave { transform-origin: 0 100%; animation: fx-wave 1s ease; }
@keyframes fx-wave { 25%, 75% { transform: skewY(-7deg); } 50% { transform: skewY(6deg); } }
.puff { position: absolute; top: 42%; font-size: 1.6rem; pointer-events: none; opacity: 0; animation: puff 1.3s ease-out forwards; }
@keyframes puff { 20% { opacity: 1; } to { transform: translate(var(--dx), -110px) scale(1.2); opacity: 0; } }
.pic .m { display: inline-block; transition: transform .2s ease, filter .2s ease; }
.pic .m.lit { transform: scale(1.3); filter: drop-shadow(0 0 6px #FDD835); }

/* Sticker toast */
.toast {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 6; white-space: nowrap;
  padding: .6rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; font: 700 1rem var(--font-kids);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); animation: toast-in .3s ease; transition: opacity .4s ease;
}
.toast.out { opacity: 0; }
.toast-pic { display: inline-block; vertical-align: middle; font-size: 1.4rem; }
.toast-pic .pic-svg, .toast-pic svg { width: 1.3em; height: 1.3em; vertical-align: middle; }
@keyframes toast-in { from { transform: translate(-50%, 20px); opacity: 0; } }

/* कुन हो? quiz */
.quiz-pic {
  display: grid; justify-items: center; gap: .2rem; margin: 0 auto 1rem; padding: 1rem 2rem; min-width: 180px;
  border: 3px solid #fff; border-radius: 28px; background: linear-gradient(160deg, #FFF1C2, #FFE3D3); cursor: pointer;
  box-shadow: 0 8px 0 rgba(30, 41, 59, .08); color: var(--ink);
}
.quiz-pic .pic { font-size: clamp(4rem, 20vw, 5.5rem); line-height: 1.1; }
.quiz-pic .pic.many { font-size: 1.7rem; max-width: 15rem; letter-spacing: .1em; }
.quiz-pic .pic-svg { width: 1.3em; height: 1.3em; }
.quiz-word { font: 700 1.4rem var(--font-kids); }
.quiz-pic .hear { font-size: 1rem; opacity: .7; }
.quiz-letter {
  display: block; margin: 0 auto .75rem; padding: .2rem 1.6rem; border: 0; border-radius: 28px; cursor: pointer;
  background: linear-gradient(160deg, #FFF1C2, #FFE3D3); font: 800 clamp(4.5rem, 22vw, 6.5rem)/1.15 var(--font-kids); color: var(--orange-ink);
  box-shadow: 0 8px 0 rgba(30, 41, 59, .08);
}
.letter-choice .dev { font-size: 2.6rem; line-height: 1.1; }
.pic-choice { width: 108px; height: 108px; }
.pic-choice .pic { font-size: 3rem; line-height: 1.1; }
.pic-choice .pic-svg { width: 1.2em; height: 1.2em; }
.pic-choice.many .pic { font-size: .95rem; line-height: 1.15; padding: .2rem; }

/* Sticker album */
.album-total { font: 800 1.4rem var(--font-kids); margin-bottom: .4rem; }
.album-total span { font-size: .7em; color: var(--muted); }
.album-bar { max-width: 420px; height: 12px; margin: 0 auto .4rem; border-radius: 999px; background: #EADFD3; overflow: hidden; }
.album-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--sun)); }
.album-done { font-weight: 800; color: var(--green-ink); }
.album-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); max-width: 640px; margin: 0 auto; }
.sticker {
  aspect-ratio: 1; border-radius: 18px; border: 2px dashed #E4D7C9; background: #FBF6EF; cursor: pointer;
  display: grid; place-items: center; align-content: center; gap: .1rem; color: var(--muted); padding: .2rem;
}
.sticker .q { font: 800 1.6rem var(--font-kids); opacity: .45; }
.sticker .lt { font: 700 .95rem var(--font-kids); }
.sticker.got { border: 3px solid #fff; background: linear-gradient(160deg, #FFF1C2, #FFE3D3); color: var(--ink); box-shadow: 0 4px 0 rgba(30, 41, 59, .08); }
.sticker .pic { font-size: 2rem; line-height: 1.1; }
.sticker .pic-svg { width: 1.2em; height: 1.2em; }
.num-sticker { font: 800 2rem var(--font-kids); color: var(--orange-ink); }
.sticker.jiggle { animation: fx-wiggle .6s ease; }

/* Finger tracing */
.trace-q { margin-bottom: .6rem; }
.trace-q span { display: block; font-size: .6em; color: var(--muted); font-weight: 600; }
.trace-wrap {
  position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; overflow: hidden;
  background: #fff; border-radius: 28px; border: 3px solid #F1E7DC; box-shadow: 0 8px 0 rgba(30, 41, 59, .06);
}
.trace-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace-ink { touch-action: none; cursor: crosshair; }
.trace-top { pointer-events: none; }
.meter { max-width: 340px; height: 12px; margin: .75rem auto 0; border-radius: 999px; background: #EADFD3; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--sun)); transition: width .3s ease; }
.trace-btns { align-items: center; }
.feedback .tool-chip { margin-left: .4rem; }
.feedback span { color: var(--muted); font-weight: 600; font-size: .85em; }
.feedback .fb-topi .pic-svg { width: 1.8em; height: 1.8em; vertical-align: middle; }

/* Stroke order: mode switch, pulsing start dot, line chips (१ २ ३ … डिको) */
.trace-modes { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 .7rem; }
.trace-modes[hidden] { display: none; }
.trace-modes .tool-chip { min-height: 42px; padding: .3rem .95rem; font-size: .95rem; }
.stroke-dot {
  position: absolute; z-index: 2; width: 11%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  display: grid; place-items: center; border-radius: 50%; background: #0BA14B; border: 3px solid #fff; color: #fff;
  font: 800 clamp(.95rem, 4.6vw, 1.3rem)/1 var(--font-kids); box-shadow: 0 0 0 0 rgba(11, 161, 75, .55);
  animation: dot-pulse 1.4s ease-out infinite;
}
.stroke-dot[hidden] { display: none; }
.stroke-dot.nudge { animation: dot-nudge .55s ease, dot-pulse 1.4s ease-out .55s infinite; }
@keyframes dot-pulse { 70%, 100% { box-shadow: 0 0 0 16px rgba(11, 161, 75, 0); } }
@keyframes dot-nudge {
  25% { transform: translate(-50%, -50%) scale(1.4); } 45% { transform: translate(-62%, -50%) scale(1.25); }
  65% { transform: translate(-38%, -50%) scale(1.25); } 85% { transform: translate(-50%, -50%) scale(1.1); }
}
.stroke-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin: .75rem auto 0; padding: 0; list-style: none; }
.stroke-steps[hidden] { display: none; }
.ss { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 800 1.05rem/1 var(--font-kids); color: var(--muted); }
.ss b { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px dashed #D9C7B5; background: #fff; }
.ss.now b { border: 3px solid #0BA14B; color: #0BA14B; box-shadow: 0 0 0 4px rgba(11, 161, 75, .16); }
.ss.done b { border: 2px solid rgba(30, 41, 59, .15); background: var(--c, #0BA14B); color: var(--t, #fff); }
.ss i { font-style: normal; font-size: .72rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .stroke-dot, .stroke-dot.nudge { animation: none; } }

/* Balloon pop */
.target-bar { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: .75rem; }
.target {
  display: inline-flex; align-items: center; gap: .6rem; padding: .3rem 1rem .3rem .8rem; border-radius: 22px;
  border: 3px solid var(--orange); background: #fff; cursor: pointer; color: var(--ink);
}
.t-label { font: 800 .95rem/1.1 var(--font-kids); text-align: left; }
.t-label small { font-size: .8em; color: var(--muted); }
.t-letter { font: 800 2.6rem/1.1 var(--font-kids); color: var(--orange-ink); min-width: 2.5rem; }
.b-score { font: 800 1.2rem var(--font-kids); }
.sky {
  position: relative; height: min(56vh, 400px); max-width: 640px; margin: 0 auto; overflow: hidden; border-radius: 26px;
  background: linear-gradient(#BDE5F8 0%, #E7F6FD 60%, #FFF6E5 100%); border: 3px solid #fff; box-shadow: 0 8px 0 rgba(30, 41, 59, .06);
}
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none; }
.skyline svg { width: 100%; height: 100%; display: block; }
.balloon {
  position: absolute; bottom: -110px; width: 72px; height: 86px; padding: 0; border: 0; cursor: pointer;
  border-radius: 50% 50% 46% 46%; color: #fff; font: 800 2rem/86px var(--font-kids); text-shadow: 0 2px 2px rgba(0, 0, 0, .25);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .6), transparent 32%), var(--c, #F15A29);
  animation: rise 7s linear forwards, sway 2s ease-in-out infinite alternate;
  transition: transform .25s ease, opacity .25s ease, filter .3s ease;
}
.balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 34px; background: rgba(30, 41, 59, .35); }
.balloon::before {
  content: ""; position: absolute; left: calc(50% - 6px); top: calc(100% - 4px);
  border: 6px solid transparent; border-bottom-color: var(--c, #F15A29); transform: rotate(180deg);
}
@keyframes rise { to { translate: 0 calc(-1 * var(--rise, 520px)); } }
@keyframes sway { from { rotate: -6deg; } to { rotate: 6deg; } }
.balloon.popped { transform: scale(1.6); opacity: 0; }
.balloon.nope { filter: grayscale(1); opacity: .55; }

/* बाह्रखरी */
.cons-strip {
  position: relative; display: flex; gap: .35rem; overflow-x: auto; max-width: 680px; margin: 0 auto;
  padding: .25rem .25rem .6rem; scrollbar-width: thin;
}
.cons-strip .tile { flex: none; }
.bk-head { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: .5rem 0 .75rem; }
.bk-title { font: 800 1.7rem var(--font-kids); min-width: 8rem; }
.bk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 460px; margin: 0 auto; }
.bk-cell {
  aspect-ratio: 1; border-radius: 20px; border: 3px solid #F1E7DC; background: #fff; cursor: pointer; color: var(--ink);
  display: grid; place-items: center; align-content: center; box-shadow: 0 4px 0 #e9dccd; transition: transform .15s ease, background-color .15s ease;
}
.bk-cell .syl { font: 800 clamp(1.8rem, 8vw, 2.6rem)/1.1 var(--font-kids); }
.bk-cell .mt { font: 700 .95rem var(--font-kids); color: var(--muted); }
.bk-cell.lit { background: #FFF1C2; border-color: #F8D774; transform: scale(1.06); }
.bk-cell.right { background: #DDF3E4; border-color: var(--green-ink); }
.bk-cell.nope-cell { animation: shake-x .4s ease; }

/* My name */
.name-form label { display: block; font: 800 1.35rem var(--font-kids); }
.name-form label span { display: block; font: 700 .9rem var(--font-body); color: var(--muted); }
.name-row { display: flex; gap: .5rem; max-width: 460px; margin: .6rem auto; }
.name-row input {
  flex: 1; min-width: 0; min-height: 60px; padding: .4rem 1rem; border-radius: 18px; border: 3px solid var(--line);
  font: 700 1.4rem var(--font-kids); text-align: center; color: var(--ink); background: #fff;
}
.name-row input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 90, 41, .18); }
.name-big { font: 800 clamp(2.4rem, 10vw, 3.6rem)/1.2 var(--font-kids); color: var(--orange-ink); margin: 1rem 0 .5rem; }
.name-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.name-card {
  position: relative; overflow: hidden; width: 112px; padding: .6rem .4rem; border-radius: 22px; border: 3px solid #fff; cursor: pointer;
  display: grid; justify-items: center; gap: .1rem; color: var(--ink);
  background: linear-gradient(160deg, #FFF1C2, #FFE3D3); box-shadow: 0 5px 0 rgba(30, 41, 59, .08);
}
.name-card .nl { font: 800 2.3rem/1.1 var(--font-kids); color: var(--orange-ink); }
.name-card .pic { font-size: 2.4rem; line-height: 1.15; }
.name-card .pic-svg { width: 1.2em; height: 1.2em; }
.name-card .nw { font: 700 .85rem var(--font-kids); }
.name-card.plain { background: #fff; cursor: default; }
.name-gap { width: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  .fx-hop, .fx-swing, .fx-fly, .fx-beat, .fx-roll, .fx-spin, .fx-wiggle, .fx-grow, .fx-bounce, .fx-wave, .rec-dot { animation: none !important; }
  /* The game needs balloons to move: keep a slow rise, drop the sway */
  .sky .balloon { animation-name: rise !important; animation-duration: 9s !important; animation-iteration-count: 1 !important; }
}

/* =========================================================
   Festivals & culture (kids-festivals.js, kids-festival-games.js)
   ========================================================= */
.next-fest { border-color: #F8C9A8; background: linear-gradient(120deg, #fff 55%, var(--fc, #FFF1C2)); }
.en-inline { font-size: .6em; color: var(--muted); font-weight: 700; }
.today-text .ch b { color: var(--orange-ink); }

/* Calendar wheel */
.wheel-row { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.wheel-wrap { position: relative; width: min(100%, 320px); flex: none; }
.wheel { display: block; width: 100%; height: auto; }
.wheel-rot { transform-box: view-box; transform-origin: 50% 50%; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.wedge { stroke: #fff; stroke-width: 2; cursor: pointer; transition: filter .2s ease; }
.wedge.on { stroke: var(--orange); stroke-width: 4; filter: brightness(1.04) drop-shadow(0 0 4px rgba(241, 90, 41, .5)); }
.wlabel { pointer-events: none; }
.wm { font: 700 15px "Baloo 2", sans-serif; fill: var(--ink); }
.wi { font-size: 17px; }
.wheel-pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); color: var(--orange); font-size: 1.4rem; z-index: 1; }
.wheel-center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; pointer-events: none; }
.wc-ne { font: 800 1.15rem/1.1 var(--font-kids); color: var(--orange-ink); }
.wc-en { font: 700 .75rem var(--font-body); color: var(--muted); }
@media (max-width: 420px) { .wheel-row .nav-arrow { width: 44px; height: 44px; } }

.fest-list, .upcoming { display: grid; gap: .6rem; max-width: 560px; margin: 1rem auto; }
.fest-item {
  position: relative; display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; text-align: left; cursor: pointer;
  border-radius: 20px; border: 3px solid #fff; background: var(--fc, #FFF1C2); color: var(--ink); box-shadow: 0 5px 0 rgba(30, 41, 59, .08);
}
.fi-pic { flex: none; width: 60px; height: 60px; display: grid; place-items: center; font-size: 2.2rem; background: rgba(255, 255, 255, .8); border-radius: 16px; }
.fi-pic .pic-svg { width: 1.2em; height: 1.2em; }
.fi-text { display: grid; gap: .05rem; }
.fi-text strong { font: 800 1.2rem/1.2 var(--font-kids); }
.fi-en { font-weight: 700; font-size: .9rem; color: var(--muted); }
.fi-date { font-size: .85rem; color: var(--ink); }
.fi-date b { color: var(--orange-ink); }
.past { color: var(--muted); }
.fi-got { position: absolute; top: .4rem; right: .6rem; font-size: 1.1rem; }
.upcoming-btn { display: block; margin: 0 auto; }

/* Picture-books */
.book-top { text-align: left; margin-bottom: .6rem; }
.book {
  max-width: 560px; margin: 0 auto; padding: 1.2rem 1.2rem 1.4rem; border-radius: 30px; border: 4px solid #fff;
  background: linear-gradient(160deg, #fff 0%, var(--fc, #FFF1C2) 100%); box-shadow: 0 8px 0 rgba(30, 41, 59, .08);
}
.book-title { font: 800 1.6rem/1.2 var(--font-kids); margin-bottom: .2rem; }
.book-title small { font-size: .55em; color: var(--muted); }
.book-title .pic-svg { width: 1.2em; height: 1.2em; vertical-align: middle; }
.book-who { font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }
.book-who b { color: var(--orange-ink); }
.book-who .note { color: var(--green-ink); font-weight: 700; }
.book-pic { font-size: clamp(4rem, 18vw, 5.5rem); line-height: 1.15; margin: .3rem 0 .5rem; }
.book-pic .pic-svg { width: 1.4em; height: 1.4em; }
.book-ne { font: 700 1.45rem/1.35 var(--font-kids); margin: 0 0 .35rem; }
.book-en { color: var(--muted); font-weight: 700; margin: 0; }
.book-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0 .5rem; }
.book-nav .nav-arrow:disabled { opacity: .35; }
.book-nav .step-dots { margin: 0; }
.book-end { text-align: center; }
.book-end p { font: 800 1.3rem var(--font-kids); margin: .5rem 0 0; }

/* Food match */
.match-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 520px; margin: 0 auto; }
.match-col { display: grid; gap: .6rem; }
.match-card {
  display: grid; justify-items: center; gap: .05rem; padding: .6rem .4rem; border-radius: 20px; border: 3px solid var(--line);
  background: #fff; cursor: pointer; color: var(--ink); box-shadow: 0 4px 0 #e4d7c9;
}
.match-card.fest { background: var(--fc, #FFF1C2); border-color: #fff; }
.match-card .pic { font-size: 2.4rem; line-height: 1.1; }
.match-card .pic-svg { width: 1.2em; height: 1.2em; }
.match-card strong { font: 800 1.05rem/1.2 var(--font-kids); }
.match-card small { font-weight: 700; font-size: .78rem; color: var(--muted); }
.match-card.picked { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 90, 41, .25); }
.match-card.matched { border-color: var(--green-ink); background: #DDF3E4; opacity: .85; }
.match-card.nope { animation: shake-x .4s ease; }

/* Greetings wall */
.greet-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 680px; margin: 0 auto; }
.greet {
  display: grid; justify-items: center; gap: .1rem; padding: .8rem .5rem; border-radius: 22px; border: 3px solid #fff; cursor: pointer;
  background: var(--fc, #FFF1C2); color: var(--ink); box-shadow: 0 5px 0 rgba(30, 41, 59, .08);
}
.g-kid { font-size: 2.6rem; line-height: 1.1; }
.g-bubble { position: relative; padding: .3rem .8rem; border-radius: 16px; background: #fff; font: 800 1.25rem/1.25 var(--font-kids); }
.g-roman { font-weight: 800; font-size: .85rem; color: var(--orange-ink); }
.g-who { font-size: .8rem; font-weight: 700; color: var(--muted); }
.greet.jiggle { animation: fx-bounce .6s ease; }

/* Akshararambha slate */
.slate-intro { display: flex; align-items: center; gap: .8rem; max-width: 460px; margin: 0 auto 1rem; padding: .7rem 1rem; border-radius: 18px; background: #FFF9C4; text-align: left; }
.slate-intro > span { font-size: 2rem; }
.slate-intro p { margin: 0; }
.slate-intro p span { display: block; font-size: .88rem; color: var(--muted); }
.trace-wrap.slate { background: #2F3E36; border: 10px solid #A1734C; box-shadow: inset 0 0 30px rgba(0, 0, 0, .35), 0 8px 0 rgba(30, 41, 59, .08); }

/* Card maker */
.occ-row { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem .2rem .6rem; scrollbar-width: thin; }
.occ { flex: none; min-height: 44px; padding: .35rem .8rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; font: 700 .9rem var(--font-kids); color: var(--ink); }
.occ span { margin-right: .3rem; }
.occ[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-wrap { max-width: 330px; margin: .4rem auto; }
.card-canvas { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 12px 30px -14px rgba(30, 41, 59, .5); cursor: copy; }
.st { width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-size: 1.4rem; cursor: pointer; }
.st[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241, 90, 41, .25); }
.sticker-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; max-width: 520px; margin: .4rem auto; }
.card-fields { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; max-width: 460px; margin: .6rem auto 0; text-align: left; }
.card-fields label { font: 800 1rem var(--font-kids); }
.card-fields label span { font: 700 .8rem var(--font-body); color: var(--muted); margin-left: .25rem; }
.card-fields select, .card-fields input { display: block; width: 100%; min-height: 48px; margin-top: .2rem; padding: .3rem .7rem; border-radius: 14px; border: 2px solid var(--line); font: 700 1.05rem var(--font-kids); background: #fff; color: var(--ink); }

/* Swatches (rangoli, holi) */
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--sw); cursor: pointer; box-shadow: 0 0 0 2px var(--line); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--ink); }

/* Tihar */
.tihar-wrap { max-width: 520px; margin: 0 auto; }
.tihar-scene { display: block; width: 100%; height: auto; border-radius: 22px; }
.t-sky { transition: fill 1.2s ease; }
.t-stars { opacity: 0; transition: opacity 1.2s ease; }
.night .t-sky { fill: #1A1F4E; }
.night .t-stars { opacity: 1; }
.spot { cursor: pointer; }
.spot .hs { fill: rgba(255, 255, 255, .35); stroke: #fff; stroke-width: 2; stroke-dasharray: 4 3; animation: hs-pulse 1.4s ease-in-out infinite; }
.spot .deco { opacity: 0; transition: opacity .3s ease; }
.spot.done .deco { opacity: 1; }
.spot.done .hs { display: none; }
.glow { opacity: 0; transition: opacity 1s ease; }
.night .glow { opacity: 1; }
@keyframes hs-pulse { 50% { opacity: .45; } }

/* Rangoli */
.rangoli-wrap { max-width: 360px; margin: 0 auto; }
.rangoli { display: block; width: 100%; height: auto; border-radius: 26px; touch-action: none; cursor: crosshair; box-shadow: 0 10px 26px -14px rgba(30, 41, 59, .6); }

/* Dashain */
.kite-sky {
  position: relative; height: min(52vh, 380px); max-width: 640px; margin: 0 auto; overflow: hidden; border-radius: 26px;
  background: linear-gradient(#90CAF9, #E3F2FD 75%); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer;
}
.kite { position: absolute; left: 0; top: 0; width: 60px; will-change: transform; pointer-events: none; }
.kite svg { width: 60px; height: 90px; }
.kite-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.kid-ground { position: absolute; left: 14px; bottom: 10px; font-size: 2.4rem; z-index: 1; }
.kite-field { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: #81C784; }
.k-star { position: absolute; left: 0; top: 0; font-size: 1.7rem; pointer-events: none; }
.ping { display: block; width: min(100%, 300px); margin: 0 auto; }
.tika-wrap { max-width: 260px; margin: 0 auto; }
.tika-face { display: block; width: 100%; }

/* Holi */
.holi { display: block; width: min(100%, 260px); margin: 0 auto; cursor: pointer; touch-action: manipulation; }

/* Buddha Jayanti lamps */
.lamps-scene { display: block; width: 100%; max-width: 520px; margin: 0 auto; border-radius: 22px; }
.l-sky { transition: fill 1.5s ease; }
.lamps-scene.all .l-sky { fill: #303F9F; }
.lamp { cursor: pointer; }
.lamp .flame, .lamp .lglow { opacity: 0; transition: opacity .4s ease; }
.lamp.on .flame, .lamp.on .lglow { opacity: 1; }
.lamp:focus-visible { outline: none; }
.lamp:focus-visible path { stroke: #fff; stroke-width: 2; }

/* Yomari */
.yomari-stage { display: grid; place-items: center; min-height: 220px; margin: .5rem 0; }
.y-pic svg { width: min(70vw, 240px); height: auto; }
.y-pic .pic-svg { width: min(60vw, 200px); height: auto; }
.y-pic .steam { opacity: 0; }
.y-pic.steaming .steam { opacity: 1; animation: steam 1s ease-in-out infinite; }
@keyframes steam { 50% { transform: translateY(-6px); opacity: .5; } }

/* Jatras */
.street {
  position: relative; height: 180px; max-width: 640px; margin: 0 auto; overflow: hidden; border-radius: 22px;
  background: linear-gradient(#FFE0B2 0 62%, #A1887F 62% 66%, #8D6E63 66%);
}
.crowd { position: absolute; top: 16px; left: 0; right: 0; font-size: 1.8rem; letter-spacing: .2rem; white-space: nowrap; opacity: .9; }
.rath { position: absolute; bottom: 6px; left: calc(var(--p, 0) * 0.72%); width: 110px; transition: left .25s ease; }
.rath .pic-svg { width: 110px; height: 110px; }
.finish { position: absolute; right: 8px; bottom: 40px; font-size: 2rem; }
.lakhe-stage { display: grid; place-items: center; margin: .5rem 0; }
.lakhe { width: min(70vw, 230px); height: auto; }
.track { position: relative; max-width: 640px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #66BB6A; }
.lane { position: relative; height: 66px; border-bottom: 2px dashed rgba(255, 255, 255, .6); }
.horse {
  position: absolute; top: 8px; left: calc(var(--p, 0) * 0.84%); font-size: 2.6rem; line-height: 1; transform: scaleX(-1);
  transition: left .2s linear; filter: drop-shadow(0 4px 0 var(--hc));
}
.tape { position: absolute; top: 0; bottom: 0; right: 6%; width: 6px; background: repeating-linear-gradient(#fff 0 10px, #E53935 10px 20px); }

/* Asar 15 */
.paddy {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; max-width: 420px; margin: 0 auto; padding: .6rem;
  border-radius: 22px; background: #8D6E63; overflow: hidden;
}
.plot { aspect-ratio: 1; border: 0; border-radius: 14px; cursor: pointer; font-size: 1.9rem; background: radial-gradient(circle at 30% 30%, #A1887F, #6D4C41); }
.plot.on { background: radial-gradient(circle at 30% 30%, #8D6E63, #5D4037); }
.rain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background-image: linear-gradient(transparent 0 70%, rgba(187, 222, 251, .9) 70% 100%); background-size: 3px 22px;
}
.paddy.raining .rain { opacity: 1; animation: rain .5s linear infinite; }
@keyframes rain { to { background-position: 0 22px; } }

/* Dress-up */
.dress-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.doll-wrap { width: min(54vw, 210px); }
.doll { display: block; width: 100%; height: auto; }
.twirl { animation: twirl .6s ease; }
@keyframes twirl { 50% { transform: scaleX(-1); } }
.dress-info { max-width: 260px; text-align: left; }
.skin-row { display: flex; gap: .4rem; }
.skin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; background: var(--sw); cursor: pointer; box-shadow: 0 0 0 2px var(--line); }
.skin[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--ink); }
.outfit-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-width: 640px; margin: 1rem auto 0; }
.outfit {
  min-height: 60px; padding: .4rem .6rem; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer;
  font: 700 .98rem/1.2 var(--font-kids); color: var(--ink);
}
.outfit small { display: block; font: 700 .75rem var(--font-body); color: var(--muted); }
.outfit[aria-pressed="true"] { border-color: var(--orange); background: #FFF3E0; }

/* Instruments */
.baja-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 680px; margin: 0 auto; }
.baja { display: grid; justify-items: center; gap: .1rem; padding: .7rem .5rem; border-radius: 22px; border: 3px solid #fff; background: var(--fc, #FFF8E1); box-shadow: 0 5px 0 rgba(30, 41, 59, .08); }
.b-pic { font-size: 2.2rem; line-height: 1.2; }
.b-pic svg { width: 80px; height: 60px; }
.baja strong { font: 800 1.15rem var(--font-kids); }
.baja small { font-weight: 700; color: var(--muted); font-size: .8rem; }
.b-pads { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin-top: .3rem; }
.b-pad { min-width: 44px; min-height: 44px; padding: 0 .5rem; border-radius: 14px; border: 0; cursor: pointer; background: var(--orange-btn); color: #fff; font: 800 1rem var(--font-kids); box-shadow: 0 4px 0 #8f2e0b; }
.b-pad:active { transform: translateY(2px); box-shadow: 0 2px 0 #8f2e0b; }

@media (prefers-reduced-motion: reduce) {
  .wheel-rot, .rath, .horse { transition: none !important; }
  .spot .hs, .twirl, .y-pic.steaming .steam, .paddy.raining .rain { animation: none !important; }
}

/* Small fixes: wheel arrows on phones, disabled big buttons */
.big-btn:disabled { opacity: .45; cursor: default; transform: none; }
@media (max-width: 480px) {
  .wheel-row { position: relative; }
  .wheel-row .nav-arrow { position: absolute; bottom: 0; z-index: 2; background: #fff; }
  .wheel-row .nav-arrow[data-turn="-1"] { left: 0; }
  .wheel-row .nav-arrow[data-turn="1"] { right: 0; }
}

/* =========================================================
   For grown-ups panel (kids-grownups.js) and Karya credit
   ========================================================= */
.stage-head h2 { flex: 1; }
.grownup-btn {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .3rem .8rem; flex: none;
  border-radius: 999px; border: 2px solid var(--line); background: #FFF8E1; color: var(--ink); cursor: pointer;
  font: 800 .9rem var(--font-kids);
}
.grownup-btn:hover { border-color: var(--orange); }
@media (max-width: 420px) { .grownup-btn .gb-text { display: none; } .grownup-btn { width: 48px; justify-content: center; padding: 0; } }
.gu-layer { position: absolute; inset: 0; z-index: 8; display: flex; align-items: flex-end; justify-content: center; padding: .8rem; background: rgba(30, 41, 59, .5); }
.gu-layer[hidden] { display: none; }
@media (min-width: 760px) { .gu-layer { align-items: center; } }
.gu-card {
  position: relative; width: 100%; max-width: 480px; max-height: 92%; overflow-y: auto; padding: 1.2rem 1.2rem 1rem;
  border-radius: 24px; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); text-align: left; animation: gu-up .25s ease;
}
@keyframes gu-up { from { transform: translateY(30px); } }
.gu-x { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; color: var(--ink); }
.gu-kicker { margin: 0 3rem .3rem 0; font: 800 .8rem var(--font-body); color: var(--orange-ink); text-transform: uppercase; letter-spacing: .04em; }
.gu-card h3 { font: 800 1.3rem/1.25 var(--font-kids); margin: 0 0 .5rem; }
.gu-card h3 span { display: block; font: 700 .9rem var(--font-body); color: var(--muted); }
.gu-gate { text-align: center; }
.gu-gate .gu-kicker { margin: 0 3rem .3rem; }
.gu-sum { font: 800 2.2rem var(--font-kids); margin: .3rem 0 .6rem; }
.gu-sum small { display: block; font: 700 .9rem var(--font-body); color: var(--muted); }
.gu-opts { display: flex; justify-content: center; gap: .6rem; }
.gu-opt { width: 76px; height: 64px; border-radius: 18px; border: 3px solid var(--line); background: #fff; cursor: pointer; font: 800 1.5rem var(--font-kids); color: var(--ink); box-shadow: 0 4px 0 #e4d7c9; }
.gu-tip { background: #E8F5E9; border-radius: 16px; padding: .7rem .9rem; margin: 0 0 .9rem; line-height: 1.5; }
.gu-tip strong { font-family: var(--font-kids); }
.gu-karya { border-top: 2px dashed var(--line); padding-top: .8rem; }
.gu-made { margin: 0 0 .3rem; font-size: .95rem; }
.gu-line { margin: 0 0 .6rem; font-weight: 700; color: var(--ink); }
.gu-ask { margin: 0 0 .4rem; font: 800 .9rem var(--font-body); color: var(--muted); }
.gu-paths { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.gu-wa {
  display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 56px; padding: .4rem .6rem; border-radius: 16px;
  color: #fff; text-decoration: none; font: 800 .95rem/1.2 var(--font-kids); text-align: center;
}
.gu-wa.school { background: var(--orange-btn); box-shadow: 0 4px 0 #8f2e0b; }
.gu-wa.business { background: #128C4A; box-shadow: 0 4px 0 #0b5c30; }
.gu-wa:hover { color: #fff; filter: brightness(1.05); }
.gu-small { margin: .7rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 380px) { .gu-paths { grid-template-columns: 1fr; } }

.karya-card { margin-top: 1.5rem; }
.karya-card h3 .en { font-size: .65em; }
.karya-cols { display: grid; gap: 1rem; margin: .8rem 0; }
@media (min-width: 720px) { .karya-cols { grid-template-columns: 1fr 1fr; } }
.karya-cols h4 { font-size: 1.1rem; margin-bottom: .3rem; }
.karya-cols ul { margin: 0 0 .7rem 1.1rem; padding: 0; }
.karya-cols li { margin-bottom: .2rem; }
.karya-wa { background: #128C4A; color: #fff; }
.karya-wa:hover { color: #fff; background: #0E7A40; }

/* Parents' corner: printable letter sheets */
.sheets-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.sheets-text { flex: 1 1 22rem; }
.sheets-text p { margin: .3rem 0 0; }
.gu-print { margin: .2rem 0 .9rem; }
.gu-print a { font-weight: 700; }
