/* ====================================================================
   REHOBOT KIDS & TEENS  —  a standalone, drop-in section.
   Scoped under .kids so it will not collide with the main GSKI styles.
   To integrate: lift the <section class="kids">, this <style>, and the
   bottom <script> into index.html (place after the Hope & Truth section).
   ==================================================================== */

.kids-preview-body { margin: 0; -webkit-font-smoothing: antialiased; background-color: #8FCFFF; }

/* ===================== TOKENS (scoped) ===================== */
.kids {
  --k-sky:    #4DA6FF;
  --k-sky-d:  #2E83E0;
  --k-coral:  #FF7A6B;
  --k-sun:    #FFC43D;
  --k-mint:   #43C9A0;
  --k-grape:  #9B7BFF;
  --k-pink:   #FF95C8;

  --k-grass:   #93DD79;
  --k-grass-d: #7BCF61;
  --k-grass-l: #B4E89B;
  --k-stem:    #61B94C;

  --k-ink:     #2A2E4A;
  --k-ink-rgb: 42, 46, 74;
  --k-ink-2:   #5B6079;
  --k-cream:  #FFF7E9;
  --k-paper:  #FFFFFF;

  --k-r-lg: 36px;
  --k-r-md: 24px;
  --k-r-sm: 16px;

  --k-shadow: 0 18px 0 -8px rgba(var(--k-ink-rgb), .10), 0 22px 40px -22px rgba(var(--k-ink-rgb), .45);
  --k-shadow-sm: 0 10px 24px -14px rgba(var(--k-ink-rgb), .5);

  --k-pad: clamp(20px, 5vw, 80px);
  --k-ease: cubic-bezier(.34,1.56,.64,1);

  position: relative;
  isolation: isolate;
  overflow: clip;
  /* SKY at the top, fading down to a warm horizon */
  background: linear-gradient(to bottom,
    #8FCFFF 0%, #A9DBFF 9%, #CDEBFF 19%, #ECF6FF 30%, var(--k-cream) 44%, var(--k-cream) 100%);
  color: var(--k-ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  padding: clamp(75px, 8vw, 120px) var(--k-pad) clamp(200px, 24vw, 320px);
}
.kids *, .kids *::before, .kids *::after { box-sizing: border-box; }
.kids img { display: block; max-width: 100%; }
.kids a { color: inherit; text-decoration: none; }

.kids__inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 3; }

/* ===================== GROUND SCENE (grass + flowers) ===================== */
.kids__ground {
  position: absolute; left: 0; right: 0; bottom: -4px; z-index: 1; pointer-events: none;
  height: clamp(170px, 20vw, 260px);
}
.kids__ground .hill,
.kids__ground .band,
.kids__ground .ktuft,
.kids__ground .kflower {
  opacity: 0;
  transform: translateY(120px);
  transition: transform 1.1s var(--k-ease), opacity 1.1s ease;
  transition-delay: calc(var(--i, 1) * 0.045s);
}
.kids__ground.in .hill,
.kids__ground.in .band,
.kids__ground.in .ktuft,
.kids__ground.in .kflower {
  opacity: 1;
  transform: translateY(0);
}
.kids__ground .kflower {
  transform: translateY(120px) scale(var(--flower-scale, 1));
}
.kids__ground.in .kflower {
  transform: translateY(0) scale(var(--flower-scale, 1));
  animation: kGrassSway 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 1) * 0.045s + 1.1s + var(--ad, 0s));
}
.kids__ground.in .ktuft {
  animation: kGrassSway 4s ease-in-out infinite;
  animation-delay: calc(var(--i, 1) * 0.045s + 1.1s);
}
.kids__ground .band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
  background: var(--k-grass);
}
.kids__ground .band::before { /* cute rounded grass humps along the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 15px;
  background: radial-gradient(circle at 14px 15px, var(--k-grass) 14px, transparent 14.5px);
  background-size: 28px 15px; background-repeat: repeat-x;
}
.kids__ground .hill {
  position: absolute; bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.kids__ground .hill--1 { left: -4%;  width: 46%; height: 76%;  background: var(--k-grass-l); }
.kids__ground .hill--2 { right: -6%; width: 52%; height: 92%;  background: var(--k-grass-l); opacity: .82; }
.kids__ground .hill--3 { left: 30%;  width: 44%; height: 62%;  background: var(--k-grass-l); opacity: .55; }

/* cute 5-petal flowers */
.kflower { position: absolute; bottom: 4%; transform-origin: bottom center;
  display: flex; flex-direction: column-reverse; align-items: center; }
.kflower .stem { width: 4px; height: clamp(22px,3.4vw,40px); background: var(--k-stem);
  border-radius: 4px; position: relative; }
.kflower .stem::before { content: ""; position: absolute; left: 3px; top: 34%;
  width: 12px; height: 7px; background: var(--k-stem); border-radius: 0 80% 0 80%; transform: rotate(-18deg); }
.kflower .bloom { width: 11px; height: 11px; border-radius: 50%; background: #FFE7A8;
  margin-bottom: -3px; position: relative; z-index: 2; }
.kflower .bloom::before { content: ""; position: absolute; left: 50%; top: 50%;
  width: 12.5px; height: 12.5px; border-radius: 50%; background: var(--c, var(--k-coral));
  transform: translate(-50%,-50%); z-index: -1;
  box-shadow:
    0 -12px 0 var(--c, var(--k-coral)),
    11.4px -3.7px 0 var(--c, var(--k-coral)),
    7px 9.7px 0 var(--c, var(--k-coral)),
    -7px 9.7px 0 var(--c, var(--k-coral)),
    -11.4px -3.7px 0 var(--c, var(--k-coral)); }

/* little grass tufts */
.ktuft, .ktuft::before, .ktuft::after { position: absolute; bottom: 0; width: 7px; height: 22px;
  background: var(--k-stem); border-radius: 50% 50% 0 0 / 80% 80% 0 0; transform-origin: bottom center; }
.ktuft { opacity: .92; }
.ktuft::before { content: ""; left: -6px; height: 16px; transform: rotate(-26deg); }
.ktuft::after  { content: ""; left: 6px;  height: 18px; transform: rotate(26deg); }

/* ===================== SKY DECORATIONS ===================== */
.kids__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.kids__night-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, #0A0D1A 0%, #11152B 15%, #1D2447 32%, #2F396E 52%, var(--k-cream) 75%, var(--k-cream) 100%);
  opacity: 1;
  transition: opacity 1.8s ease-in-out;
}
.kids.is-day .kids__night-overlay { opacity: 0; }

.kc-cloud { position: absolute; background: #fff; border-radius: 100px;
  box-shadow: 0 10px 30px -16px rgba(var(--k-ink-rgb), .35); opacity: 0; width: 120px; height: 38px;
  transform: translateY(-40px) scale(0.5); transition: transform 2s var(--k-ease) 0.8s, opacity 2s ease 0.8s; }
.kc-cloud::before, .kc-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.kc-cloud::before { width: 56px; height: 56px; top: -26px; left: 18px; }
.kc-cloud::after  { width: 40px; height: 40px; top: -16px; left: 60px; }
.kids.is-day .kc-cloud { opacity: .95; }
.kc-cloud--1 { top: 4%;  left: 7%; }
.kids.is-day .kc-cloud--1 { transform: scale(1.15) translateY(0); animation: kFloatX 14s ease-in-out infinite; animation-delay: 2.8s; }
.kc-cloud--2 { top: 9%;  right: 9%; }
.kids.is-day .kc-cloud--2 { transform: scale(.85) translateY(0);  animation: kFloatX 18s ease-in-out infinite reverse; animation-delay: 2.8s; }
.kc-cloud--3 { top: 18%; left: 26%; }
.kids.is-day .kc-cloud--3 { transform: scale(.6) translateY(0); opacity: .85; animation: kFloatX 22s ease-in-out infinite; animation-delay: 2.8s; }
.kc-cloud--4 { top: 22%; right: 28%; }
.kids.is-day .kc-cloud--4 { transform: scale(.7) translateY(0); opacity: .8; animation: kFloatX 17s ease-in-out infinite reverse; animation-delay: 2.8s; }

.kc-sun {
  position: absolute; top: 5%; right: 13%; width: 84px; height: 84px; border-radius: 50%;
  opacity: 0; transform: translateY(120px) scale(0.4);
  transition: transform 1.4s var(--k-ease), opacity 1s ease;
}
.kc-sun::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.55) 0%, transparent 36%),
    radial-gradient(circle at 38% 32%, #FFEFA8 0%, #FFD23D 60%, #FFB733 100%);
  box-shadow:
    0 0 0 9px rgba(255,196,61,.16),
    0 0 46px 10px rgba(255,196,61,.34),
    inset -5px -6px 12px rgba(214,108,0,.18),
    inset 5px 6px 12px rgba(255,255,255,.45);
  animation: kSpin 50s linear infinite, kBob 5s ease-in-out infinite;
  animation-delay: 3s, 3s;
}
.kids.is-day .kc-sun {
  opacity: 1; transform: translateY(0) scale(1);
  transition: transform 1.4s var(--k-ease) 1.1s, opacity 1s ease 1.1s;
}

.kc-moon {
  position: absolute; top: 6%; right: 14%; width: 70px; height: 70px; border-radius: 50%;
  transform-origin: center center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity .8s ease;
  opacity: 0;
  transform: scale(0.4) rotate(35deg) translate(40px, -40px);
  z-index: 2;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.kids:not(.is-day) .kc-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg) translate(0, 0);
  transition: transform 1.4s var(--k-ease) 1.1s, opacity 1s ease 1.1s;
}
.kc-moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M 24,45 Q 32,53 40,45' stroke='%232A2E4A' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3Cpath d='M 60,45 Q 68,53 76,45' stroke='%232A2E4A' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3Cpath d='M 44,58 Q 50,65 56,58' stroke='%232A2E4A' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='20' cy='55' r='8' fill='%23FF95C8' opacity='0.5'/%3E%3Ccircle cx='80' cy='55' r='8' fill='%23FF95C8' opacity='0.5'/%3E%3C/svg%3E") no-repeat center/contain,
    radial-gradient(circle at 50% 50%, #FFF8DA 0%, #FFE490 68%, #F4C646 100%);
  filter: drop-shadow(0 0 15px rgba(255,236,163,.75));
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  z-index: 3;
}
.kc-moon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 40%, rgba(150,128,78,.30) 0 8%, transparent 9%),
    radial-gradient(circle at 46% 66%, rgba(150,128,78,.26) 0 6%, transparent 7%),
    radial-gradient(circle at 24% 58%, rgba(150,128,78,.22) 0 5%, transparent 6%),
    radial-gradient(circle at 60% 32%, #FFF8DA 0%, #FFE490 68%, #F4C646 100%);
  -webkit-mask: radial-gradient(circle at 82% 20%, transparent 0 50%, #000 51%);
          mask: radial-gradient(circle at 82% 20%, transparent 0 50%, #000 51%);
  filter: drop-shadow(0 0 13px rgba(255,236,163,.55));
  animation: kMoonBob 6s ease-in-out infinite;
  animation-delay: 3s;
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.kc-moon.is-active-moon::before {
  opacity: 1;
  transform: scale(1.18) rotate(360deg);
}
.kc-moon.is-active-moon::after {
  opacity: 0;
  transform: scale(0.7) rotate(-45deg);
  animation: none !important;
}
@media (hover: hover) {
  .kc-moon:hover::before {
    opacity: 1;
    transform: scale(1.18) rotate(360deg);
  }
  .kc-moon:hover::after {
    opacity: 0;
    transform: scale(0.7) rotate(-45deg);
    animation: none !important;
  }
}

.kc-bird {
  position: absolute; width: 34px; height: 14px;
  opacity: 0; transition: opacity .8s ease;
}
.kc-bird::before, .kc-bird::after {
  content: ""; position: absolute; top: 0; width: 17px; height: 17px;
  border-top: 4px solid rgba(var(--k-ink-rgb), .7);
  border-radius: 50%;
}
.kc-bird::before { left: 0; border-right: 0; transform-origin: right center; }
.kc-bird::after  { right: 0; border-left: 0; transform-origin: left center; }
.kc-bird--1 { top: 17%; transform: scale(1.1); }
.kc-bird--2 { top: 28%; transform: scale(.82); }
.kc-bird--3 { top: 22%; transform: scale(.95); }
.kc-bird--4 { top: 13%; transform: scale(.7); }
.kc-bird--5 { top: 31%; transform: scale(1); }
.kc-bird--6 { top: 24%; transform: scale(.78); }
.kc-bird--7 { top: 19%; transform: scale(.9); }
.kids.is-day .kc-bird { opacity: .9; }
.kids.is-day .kc-bird--1 { animation: kFly1 26s linear infinite 1s; }
.kids.is-day .kc-bird--2 { animation: kFly2 34s linear infinite 5s; }
.kids.is-day .kc-bird--3 { animation: kFly3 30s linear infinite 9s; }
.kids.is-day .kc-bird--4 { animation: kFly2 38s linear infinite 14s; }
.kids.is-day .kc-bird--5 { animation: kFly1 32s linear infinite 18s; }
.kids.is-day .kc-bird--6 { animation: kFly3 28s linear infinite 3s; }
.kids.is-day .kc-bird--7 { animation: kFly2 36s linear infinite 22s; }
.kids.is-day .kc-bird::before { animation: kFlapL .5s ease-in-out infinite; }
.kids.is-day .kc-bird::after  { animation: kFlapR .5s ease-in-out infinite; }

/* dove (day) */
.kc-dove { position: absolute; top: 15%; width: 40px; height: 16px; opacity: 0; transition: opacity .8s ease; }
.kc-dove::before, .kc-dove::after {
  content: ""; position: absolute; top: 0; width: 20px; height: 20px;
  border-top: 5px solid rgba(255,255,255,.95); border-radius: 50%;
  filter: drop-shadow(0 1px 2px rgba(var(--k-ink-rgb), .2));
}
.kc-dove::before { left: 0; border-right: 0; transform-origin: right center; }
.kc-dove::after  { right: 0; border-left: 0; transform-origin: left center; }
.kids.is-day .kc-dove { opacity: .95; animation: kDoveFly 44s linear infinite 4s; }
.kids.is-day .kc-dove::before { animation: kFlapL .7s ease-in-out infinite; }
.kids.is-day .kc-dove::after  { animation: kFlapR .7s ease-in-out infinite; }

/* butterflies (day) */
.kc-fly { position: absolute; width: 16px; height: 13px; opacity: 0; transition: opacity .8s ease; }
.kc-fly::before, .kc-fly::after {
  content: ""; position: absolute; top: 0; width: 8px; height: 13px; border-radius: 50%;
  background: var(--bf); filter: drop-shadow(0 1px 1px rgba(var(--k-ink-rgb), .15));
}
.kc-fly::before { left: 0; transform-origin: right center; }
.kc-fly::after  { right: 0; transform-origin: left center; }
.kc-fly--1 { --bf: var(--k-pink); transform: scale(1); }
.kc-fly--2 { --bf: var(--k-grape); transform: scale(.8); }
.kc-fly--3 { --bf: var(--k-sun); transform: scale(.9); }
.kids.is-day .kc-fly { opacity: .9; }
.kids.is-day .kc-fly--1 { animation: kFlit1 19s ease-in-out infinite; }
.kids.is-day .kc-fly--2 { animation: kFlit2 24s ease-in-out infinite 3s; }
.kids.is-day .kc-fly--3 { animation: kFlit3 22s ease-in-out infinite 7s; }
.kids.is-day .kc-fly::before { animation: kBflapL .35s ease-in-out infinite; }
.kids.is-day .kc-fly::after  { animation: kBflapR .35s ease-in-out infinite; }

/* shooting stars (night) */
.kc-shoot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: #FFF7E9; box-shadow: 0 0 18px 6px rgba(255,247,233,.95); opacity: 0;
}
.kc-shoot::after {
  content: ""; position: absolute; right: 6px; top: 3px; width: 150px; height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,247,233,.95));
  border-radius: 3px;
}
.kc-shoot--1 { top: 11%; left: 34%; }
.kc-shoot--2 { top: 16%; left: 58%; }
.kids:not(.is-day) .kc-shoot--1 { animation: kShoot 7s ease-in infinite 1.5s; }
.kids:not(.is-day) .kc-shoot--2 { animation: kShoot 8s ease-in infinite 4.5s; }

.kids.is-day .kc-bird, .kids.is-day .kc-dove, .kids.is-day .kc-fly { animation-fill-mode: both; }

.kc-balloon { position: absolute; width: 46px; height: 58px; border-radius: 50% 50% 48% 48%;
  filter: drop-shadow(0 8px 12px rgba(var(--k-ink-rgb), .18)); transform-origin: 50% 130%;
  opacity: 0; transform: translateY(80px) scale(0.5);
  transition: transform 2.2s var(--k-ease) 1.2s, opacity 2.2s ease 1.2s; }
.kc-balloon::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 1.5px; height: 24px;
  background: rgba(var(--k-ink-rgb), .28); transform: translateX(-50%); }
.kc-balloon::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 7px;
  background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.kids.is-day .kc-balloon { opacity: 1; }
.kc-balloon--1 { top: 20%; right: 5%; background: var(--k-coral); }
.kids.is-day .kc-balloon--1 { transform: scale(1) translateY(0); animation: kFloatBalloon 5s ease-in-out infinite; animation-delay: 3.4s; }
.kc-balloon--2 { top: 30%; left: 4%; background: var(--k-grape); width: 38px; height: 48px; }
.kids.is-day .kc-balloon--2 { transform: scale(0.8) translateY(0); animation: kFloatBalloon 6.4s ease-in-out infinite .5s; animation-delay: 3.4s; }
.kc-balloon--3 { top: 38%; left: 6%; background: var(--k-mint); width: 34px; height: 42px; }
.kids.is-day .kc-balloon--3 { transform: scale(0.7) translateY(0); animation: kFloatBalloon 5.6s ease-in-out infinite .9s; animation-delay: 3.4s; }

.kc-star { position: absolute; width: 26px; height: 26px;
  clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  animation: kTwinkle 3.4s ease-in-out infinite;
  background: #FFECA3 !important;
  transition: background 1.8s ease; }
.kc-star--1 { top: 27%; left: 14%; }
.kids.is-day .kc-star--1 { background: var(--k-coral) !important; }
.kc-star--2 { top: 30%; left: 5%; width: 18px; height: 18px; animation-delay: .8s; }
.kids.is-day .kc-star--2 { background: var(--k-grape) !important; }
.kc-star--3 { top: 34%; right: 18%; width: 20px; height: 20px; animation-delay: 1.5s; }
.kids.is-day .kc-star--3 { background: var(--k-sky) !important; }
.kc-star--4 { top: 8%;  left: 74%; width: 16px; height: 16px; animation-delay: 2.1s; }
.kids.is-day .kc-star--4 { background: var(--k-mint) !important; }
.kc-star--5 { top: 40%; left: 8%;  width: 15px; height: 15px; animation-delay: 1.1s; }
.kids.is-day .kc-star--5 { background: var(--k-pink) !important; }
.kc-star--6 { top: 12%; left: 22%; width: 17px; height: 17px; animation-delay: .5s; }
.kids.is-day .kc-star--6 { background: var(--k-coral) !important; }
.kc-star--7 { top: 18%; right: 8%; width: 22px; height: 22px; animation-delay: 1.2s; }
.kids.is-day .kc-star--7 { background: var(--k-sun) !important; }
.kc-star--8 { top: 24%; left: 32%; width: 14px; height: 14px; animation-delay: 1.7s; }
.kids.is-day .kc-star--8 { background: var(--k-pink) !important; }
.kc-star--9 { top: 26%; right: 29%; width: 20px; height: 20px; animation-delay: 2.3s; }
.kids.is-day .kc-star--9 { background: var(--k-grape) !important; }
.kc-star--10 { top: 8%; left: 12%; width: 15px; height: 15px; animation-delay: .9s; }
.kids.is-day .kc-star--10 { background: var(--k-sky) !important; }

.kc-star--11 { top: 15%; left: 4%; width: 15px; height: 15px; animation-delay: .3s; }
.kids.is-day .kc-star--11 { background: var(--k-sun) !important; }
.kc-star--12 { top: 21%; left: 18%; width: 19px; height: 19px; animation-delay: 1.1s; }
.kids.is-day .kc-star--12 { background: var(--k-sky) !important; }
.kc-star--13 { top: 36%; left: 11%; width: 14px; height: 14px; animation-delay: 2.5s; }
.kids.is-day .kc-star--13 { background: var(--k-pink) !important; }
.kc-star--14 { top: 45%; left: 4%; width: 18px; height: 18px; animation-delay: .7s; }
.kids.is-day .kc-star--14 { background: var(--k-mint) !important; }
.kc-star--15 { top: 12%; right: 15%; width: 17px; height: 17px; animation-delay: .6s; }
.kids.is-day .kc-star--15 { background: var(--k-coral) !important; }
.kc-star--16 { top: 22%; right: 5%; width: 15px; height: 15px; animation-delay: 1.9s; }
.kids.is-day .kc-star--16 { background: var(--k-sun) !important; }
.kc-star--17 { top: 29%; right: 22%; width: 18px; height: 18px; animation-delay: 1.4s; }
.kids.is-day .kc-star--17 { background: var(--k-grape) !important; }
.kc-star--18 { top: 42%; right: 12%; width: 16px; height: 16px; animation-delay: 2.8s; }
.kids.is-day .kc-star--18 { background: var(--k-pink) !important; }

/* confetti scattered through the mid section */
.kc-dot, .kc-ring, .kc-sq, .kc-tri {
  position: absolute; color: var(--k-coral);
  animation: kDrift 7s ease-in-out infinite;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.kids.is-day .kc-dot,
.kids.is-day .kc-ring,
.kids.is-day .kc-sq,
.kids.is-day .kc-tri {
  opacity: 1;
}
.kc-dot  { width: 14px; height: 14px; border-radius: 50%; background: currentColor; }
.kc-ring { width: 20px; height: 20px; border-radius: 50%; border: 4px solid currentColor; }
.kc-sq   { width: 14px; height: 14px; border-radius: 4px; background: currentColor; }
.kc-tri  { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent;
           border-bottom: 17px solid currentColor; }

@keyframes kFloatX { 0%,100% { transform: translateX(0) } 50% { transform: translateX(44px) } }
@keyframes kBob    { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-20px) } }
@keyframes kMoonBob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-3deg); } }
@keyframes kFlapL { 0%,100% { transform: rotate(10deg); } 50% { transform: rotate(-20deg); } }
@keyframes kFlapR { 0%,100% { transform: rotate(-10deg); } 50% { transform: rotate(20deg); } }
@keyframes kFly1 { from { left: -8%; top: 19%; } to { left: 112%; top: 13%; } }
@keyframes kFly2 { from { left: -8%; top: 27%; } to { left: 112%; top: 22%; } }
@keyframes kFly3 { from { left: 112%; top: 23%; } to { left: -8%; top: 17%; } }
@keyframes kDoveFly { from { left: -10%; top: 15%; } 50% { top: 9%; } to { left: 115%; top: 16%; } }
@keyframes kBflapL { 0%,100% { transform: rotateY(0); } 50% { transform: rotateY(78deg); } }
@keyframes kBflapR { 0%,100% { transform: rotateY(0); } 50% { transform: rotateY(-78deg); } }
@keyframes kFlit1 { 0%,100% { left: 12%; top: 52%; } 25% { left: 19%; top: 44%; } 50% { left: 15%; top: 58%; } 75% { left: 22%; top: 49%; } }
@keyframes kFlit2 { 0%,100% { left: 78%; top: 56%; } 25% { left: 70%; top: 47%; } 50% { left: 82%; top: 60%; } 75% { left: 74%; top: 50%; } }
@keyframes kFlit3 { 0%,100% { left: 46%; top: 60%; } 25% { left: 54%; top: 50%; } 50% { left: 48%; top: 64%; } 75% { left: 40%; top: 53%; } }
@keyframes kShoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(29deg); }
  4% { opacity: 1; }
  16% { opacity: 1; }
  22% { opacity: 0; transform: translate(200px, 110px) rotate(29deg); }
  100% { opacity: 0; transform: translate(200px, 110px) rotate(29deg); }
}
@keyframes kShootMobile {
  0% { opacity: 0; transform: translate(0, 0) rotate(29deg); }
  4% { opacity: 1; }
  25% { opacity: 1; }
  35% { opacity: 0; transform: translate(320px, 176px) rotate(29deg); }
  100% { opacity: 0; transform: translate(320px, 176px) rotate(29deg); }
}
@keyframes kFly1Mobile { from { left: -12%; top: 130px; } to { left: 112%; top: 80px; } }
@keyframes kFly2Mobile { from { left: -12%; top: 1000px; } to { left: 112%; top: 1450px; } }
@keyframes kFly3Mobile { from { left: 112%; top: 2200px; } to { left: -12%; top: 2800px; } }
@keyframes kFly4Mobile { from { left: -12%; top: 550px; } to { left: 112%; top: 950px; } }
@keyframes kFly5Mobile { from { left: -12%; top: 1500px; } to { left: 112%; top: 2000px; } }
@keyframes kFly6Mobile { from { left: 112%; top: 2850px; } to { left: -12%; top: 3450px; } }
@keyframes kFly7Mobile { from { left: -12%; top: 3400px; } to { left: 112%; top: 4600px; } }
@keyframes kDoveFlyMobile { from { left: -15%; top: 4800px; } 50% { top: 5600px; } to { left: 115%; top: 6600px; } }
@keyframes kFlit1Mobile { 0%,100% { left: 8%; top: 340px; } 25% { left: 18%; top: 310px; } 50% { left: 12%; top: 360px; } 75% { left: 20%; top: 325px; } }
@keyframes kFlit2Mobile { 0%,100% { left: 78%; top: 3480px; } 25% { left: 70%; top: 3450px; } 50% { left: 82%; top: 3510px; } 75% { left: 74%; top: 3465px; } }
@keyframes kFlit3Mobile { 0%,100% { left: 44%; top: 5100px; } 25% { left: 54%; top: 5070px; } 50% { left: 48%; top: 5130px; } 75% { left: 40%; top: 5085px; } }
@keyframes kFloatBalloon { 0%,100% { transform: translateY(0) rotate(-5deg) } 50% { transform: translateY(-26px) rotate(5deg) } }
@keyframes kSpin   { to { rotate: 360deg } }
@keyframes kTwinkle{ 0%,100% { transform: scale(1) rotate(0); opacity: .9 } 50% { transform: scale(1.4) rotate(20deg); opacity: 1 } }
@keyframes kSway   { 0%,100% { transform: rotate(-1.5deg) scale(var(--flower-scale, 1)) } 50% { transform: rotate(1.5deg) scale(var(--flower-scale, 1)) } }
@keyframes kGrassSway { 0%,100% { transform: rotate(-5deg) scale(var(--flower-scale, 1)) } 50% { transform: rotate(5deg) scale(var(--flower-scale, 1)) } }
@keyframes kTapeSwipe {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes kWiggle { 0%,100% { transform: rotate(-9deg) } 50% { transform: rotate(9deg) } }
@keyframes kFloatWave { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
@keyframes kDrift  { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-22px) rotate(60deg) } }
@keyframes kPulse  { 0%,100% { transform: scale(1) } 50% { transform: scale(1.18) } }
@keyframes kPlayingPulse {
  0%, 100% { transform: translateY(-8px) scale(1); box-shadow: 0 0 0 3.5px var(--accent), 0 20px 40px -15px var(--accent); }
  50% { transform: translateY(-11px) scale(1.025); box-shadow: 0 0 0 4.5px var(--accent), 0 28px 48px -12px var(--accent); }
}
@keyframes kJump {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px) rotate(6deg); }
}
@keyframes kRainbowText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes kPatternSlide {
  to { background-position: 18px 18px; }
}

/* ===================== HEADER ===================== */
.kids__head { text-align: center; margin: 0 auto; max-width: 800px; }
.kids__badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border: 2.5px solid var(--k-ink);
  border-radius: 100px; padding: 9px 20px 9px 14px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 15px;
  box-shadow: 5px 5px 0 var(--k-sky); transform: rotate(-2deg);
  animation: kSway 6s ease-in-out infinite;
}
.kids__badge-float {
  display: inline-block;
  animation: kHeaderElementFloat 3.5s ease-in-out infinite 0.3s;
}
.kids__badge .dot { width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(var(--k-coral), var(--k-sun), var(--k-mint), var(--k-sky), var(--k-grape), var(--k-coral));
  animation: kSpin 8s linear infinite; }
.kids__script { display: block; font-family: "Caveat", cursive; color: var(--k-sky-d);
  font-size: clamp(28px, 5vw, 42px); font-weight: 700; line-height: 1.3; margin: 26px auto 4px; text-align: center; transform: rotate(-2deg); padding: 0 0.15em; overflow: visible; }
.kids__title { font-family: "Fredoka", sans-serif; font-weight: 700;
  font-size: clamp(40px, 8vw, 82px); line-height: .98; letter-spacing: -.01em; margin: 6px 0 0; text-wrap: balance; }
.kids__title .pop, .kids__title .pop--b {
  background: linear-gradient(to right, var(--k-coral), var(--k-sun), var(--k-mint), var(--k-sky), var(--k-grape));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: kRainbowText 4s linear infinite, kSway 5s ease-in-out infinite;
  display: inline-block;
}
.kids__title .pop--b {
  animation-delay: 0s, 0.6s;
}
.kids__lede { margin: 26px auto 0; max-width: 620px; color: var(--k-ink-2);
  font-size: clamp(18px, 2.5vw, 21px); font-weight: 600; }

/* ===================== POLAROID PHOTOS (shared) ===================== */
.kphoto {
  position: relative;
  margin: 0;
  perspective: 1000px;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: transform .4s var(--k-ease);
}
.kphoto:hover {
  z-index: 50;
}
.kphoto__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--k-ease);
}
.kphoto.is-flipped .kphoto__inner {
  transform: rotateY(180deg);
}

.kphoto__front, .kphoto__back {
  background: var(--k-paper);
  border: 3px solid var(--k-ink);
  border-radius: 18px;
  padding: 12px 12px 0;
  box-shadow: var(--k-shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
  transition: box-shadow .4s var(--k-ease);
}
.kphoto__front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
}
.kphoto__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: rotateY(180deg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kphoto__back-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.kphoto__back-tape {
  font-size: 26px;
  margin-bottom: 8px;
}
.kphoto__back-text {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(21px, 2.5vw, 26px);
  color: var(--k-ink);
  line-height: 1.25;
  margin: 0;
  word-wrap: break-word;
}
.kphoto__back-stamp {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: rgba(var(--k-ink-rgb), 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 14px;
}

.kphoto:hover .kphoto__front,
.kphoto:hover .kphoto__back {
  box-shadow: 3px 3px 0 var(--k-coral), 6px 6px 0 var(--k-sun), 9px 9px 0 var(--k-mint), 12px 12px 0 var(--k-sky), 15px 15px 0 var(--k-grape), 18px 18px 0 var(--k-ink);
}

.kphoto__img {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  aspect-ratio: 4 / 3;
}
.kphoto__img.img-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, #ede8df 0%, #f7f3ee 50%, #ede8df 100%);
  background-size: 200% 100%;
  animation: kImgShimmer 1.4s ease-in-out infinite;
  transition: opacity 0.35s ease;
}
.kphoto__img.img-skeleton.img--loaded::after {
  opacity: 0;
}
@keyframes kImgShimmer {
  0%   { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}
.kphoto__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--k-ease);
}
.kphoto figcaption, .kphoto__front figcaption {
  font-family: "Caveat", cursive;
  font-weight: 700;
  text-align: center;
  color: var(--k-ink);
  padding: 9px 12px 13px;
  line-height: 1.35;
  font-size: clamp(18px, 2.1vw, 23px);
  overflow: visible;
}
.kphoto:hover .kphoto__img img { transform: scale(1.07); }
.kphoto__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 4;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 122, 107, 0.95);
  padding: 6px 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 2px dashed rgba(255, 255, 255, 0.45);
  border-right: 2px dashed rgba(255, 255, 255, 0.45);
  transform-origin: center center;
  opacity: 0;
}
.kphoto__tag--teens {
  background: rgba(155, 123, 255, 0.95);
  transform: translateX(-50%) rotate(1.5deg);
}
.kphoto__tag--kids {
  background: rgba(67, 201, 160, 0.95);
  transform: translateX(-50%) rotate(2deg);
}
.in .kphoto__tag {
  animation: kTapeSwipe 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--d, 0s) + 0.35s);
}

/* tilts */
.rot-l  { transform: rotate(-3deg); }
.rot-l2 { transform: rotate(-5.5deg); }
.rot-r  { transform: rotate(3deg); }
.rot-r2 { transform: rotate(5.5deg); }

/* ----- peek buddies that pop out on hover ----- */
.kbuddy-slot { position: absolute; z-index: 6; pointer-events: none; opacity: 0;
  transition: transform .5s var(--k-ease), opacity .3s; }
.kbuddy-slot--t { top: 0;   left: 26px;  transform: translateY(55%)  scale(.2); }
.kbuddy-slot--b { bottom: 30px; right: 24px; transform: translateY(-55%) scale(.2); }
.kbuddy-slot--l { left: 0;  top: 38px;   transform: translateX(55%)  scale(.2); }
.kbuddy-slot--r { right: 0; top: 36px;   transform: translateX(-55%) scale(.2); }
.kphoto:hover .kbuddy-slot { opacity: 1; }
.kphoto:hover .kbuddy-slot--t { transform: translateY(-78%) scale(1); }
.kphoto:hover .kbuddy-slot--b { transform: translateY(78%)  scale(1); }
.kphoto:hover .kbuddy-slot--l { transform: translateX(-72%) scale(1); }
.kphoto:hover .kbuddy-slot--r { transform: translateX(72%)  scale(1); }
.kphoto:hover .kbuddy { animation: kWiggle 1s ease-in-out infinite; }

.kbuddy { position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--c, var(--k-sun));
  border: 3px solid var(--k-ink); box-shadow: 4px 4px 0 rgba(var(--k-ink-rgb), .28); transform-origin: 50% 80%; }
.kbuddy::before, .kbuddy::after { content: ""; position: absolute; top: 36%;
  width: 8px; height: 8px; border-radius: 50%; background: var(--k-ink); }
.kbuddy::before { left: 31%; } .kbuddy::after { right: 31%; }
.kbuddy .smile { position: absolute; bottom: 26%; width: 16px; height: 8px;
  border: 3px solid var(--k-ink); border-top: 0; border-radius: 0 0 16px 16px; }
/* speech-bubble variant */
.kbuddy--say { width: auto; height: auto; border-radius: 14px; padding: 5px 13px;
  font-family: "Caveat", cursive; font-weight: 700; font-size: 23px; color: var(--k-ink);
  background: #fff; white-space: nowrap; }
.kbuddy--say::before, .kbuddy--say::after { display: none; }

/* ===================== HEADER FILMSTRIP ===================== */
.kids__strip { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start;
  gap: clamp(16px, 2.6vw, 40px); margin: clamp(34px, 5vw, 60px) auto 0; max-width: 1080px; }
.kids__strip .kphoto-pop-wrap { position: relative; }
.kids__strip .kphoto-pop-wrap:hover { z-index: 50; }
.kids__strip .kphoto-pop-wrap:nth-child(2) { margin-top: clamp(10px,3.5vw,40px); }
.kids__strip .kphoto-hang { position: relative; transform-origin: top center; animation: kSway 5s ease-in-out infinite; }
.kids__strip .kphoto-pop-wrap:nth-child(2) .kphoto-hang { animation-duration: 6s; animation-delay: .3s; }
.kids__strip .kphoto-pop-wrap:nth-child(3) .kphoto-hang { animation-duration: 5.6s; animation-delay: .6s; }
.kids__strip .kphoto { width: 100%; }

/* ===================== "WHAT WE DO" CARDS (one row) ===================== */
.kids__sub { font-family: "Fredoka", sans-serif; font-weight: 600;
  font-size: clamp(22px, 3.4vw, 32px); text-align: center; margin: 0 0 8px; }
.kids__sub-note { text-align: center; color: var(--k-ink-2); font-weight: 600; margin: 0 0 clamp(26px,3.5vw,42px); }
.kids__section-head { margin: clamp(56px,7vw,96px) 0 0; }

.kids__cards { display: grid; gap: clamp(12px, 1.4vw, 20px); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kc-card {
  position: relative;
  perspective: 1000px;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: transform .35s var(--k-ease);
}
.kc-card:hover { transform: translateY(-8px) rotate(-1deg); }

.kc-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--k-ease);
}
.kc-card.is-flipped .kc-card__inner {
  transform: rotateY(180deg);
}

.kc-card__front, .kc-card__back {
  background: var(--k-paper);
  border: 2.5px solid var(--k-ink);
  border-radius: var(--k-r-md);
  padding: 22px 18px 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  transition: box-shadow .35s var(--k-ease);
  box-shadow: var(--k-shadow-sm);
}
.kc-card__front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
}
.kc-card__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: rotateY(180deg);
  padding: 0 !important;
  overflow: hidden;
}
.kc-card__back-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.kc-card__back-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--k-r-md);
}
.kreativitas-gallery img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.kreativitas-gallery img.is-active {
  opacity: 1;
  z-index: 2;
}
.kc-card__back-img img[src*="kreativitas-3.webp"],
.kc-card__back-img img[src*="kreativitas-6.webp"],
.kc-card__back-img img[src*="anak-sekolah-minggu-games-keseruan.webp"] {
  object-position: 50% 15%;
}

.kc-card:nth-child(1):hover .kc-card__front,
.kc-card:nth-child(1):hover .kc-card__back { box-shadow: 8px 8px 0 var(--k-coral); }
.kc-card:nth-child(2):hover .kc-card__front,
.kc-card:nth-child(2):hover .kc-card__back { box-shadow: 8px 8px 0 var(--k-sky); }
.kc-card:nth-child(3):hover .kc-card__front,
.kc-card:nth-child(3):hover .kc-card__back { box-shadow: 8px 8px 0 var(--k-mint); }
.kc-card:nth-child(4):hover .kc-card__front,
.kc-card:nth-child(4):hover .kc-card__back { box-shadow: 8px 8px 0 var(--k-sun); }
.kc-card:nth-child(5):hover .kc-card__front,
.kc-card:nth-child(5):hover .kc-card__back { box-shadow: 8px 8px 0 var(--k-grape); }
.kc-card__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font-size: 27px; color: #fff; margin-bottom: 16px; border: 2.5px solid var(--k-ink);
  box-shadow: 4px 4px 0 var(--k-ink); transform-origin: 50% 80%; animation: kWiggle 2.6s ease-in-out infinite;
  transition: border-radius .35s var(--k-ease), transform .35s var(--k-ease); }
.kc-card:hover .kc-card__icon { border-radius: 50%; transform: scale(1.15) rotate(15deg); }
.kc-card:nth-child(1) .kc-card__icon { background: var(--k-coral); animation-delay: 0s; }
.kc-card:nth-child(2) .kc-card__icon { background: var(--k-sky);   animation-delay: .2s; }
.kc-card:nth-child(3) .kc-card__icon { background: var(--k-mint);  animation-delay: .4s; }
.kc-card:nth-child(4) .kc-card__icon { background: var(--k-sun); color: var(--k-ink); animation-delay: .6s; }
.kc-card:nth-child(5) .kc-card__icon { background: var(--k-grape); animation-delay: .8s; }
.kc-card h3 { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 20px; margin: 0 0 7px; }
.kc-card p { margin: 0; color: var(--k-ink-2); font-size: 16px; font-weight: 600; line-height: 1.5; }

/* ===================== SCHEDULE ===================== */
.kids__when-wrap { position: relative; max-width: 980px; margin: clamp(56px,7vw,96px) auto 0; }
.kids__when { position: relative; background: var(--k-sky); border: 3px solid var(--k-ink);
  border-radius: var(--k-r-lg); box-shadow: var(--k-shadow);
  display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; color: #fff; }
.kids__when::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.4) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.kw-left { position: relative; padding: clamp(30px,4vw,48px); }
.kw-kicker { font-family: "Caveat", cursive; font-weight: 700; font-size: 30px; line-height: 1.35;
  color: #FFE6A6; margin-bottom: 8px; display: inline-block; padding: 0 0.1em; overflow: visible; }
.kw-time { font-family: "Fredoka", sans-serif; font-weight: 700; line-height: .9;
  font-size: clamp(56px, 11vw, 104px); letter-spacing: -.02em; text-shadow: 4px 5px 0 rgba(var(--k-ink-rgb), .25);
  display: block; width: fit-content; animation: kFloatWave 3.5s ease-in-out infinite; }
.kw-time small { font-size: .32em; font-weight: 600; letter-spacing: .04em; vertical-align: super; }
.kw-day { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: clamp(22px,3vw,30px); margin-top: 2px;
  display: block; width: fit-content; animation: kFloatWave 3.5s ease-in-out infinite; animation-delay: 0.4s; }
.kw-note { margin: 16px 0 0; font-weight: 600; max-width: 30ch; color: rgba(255,255,255,.92); }
.kw-right { position: relative; padding: clamp(26px,3.5vw,40px); background: var(--k-paper); color: var(--k-ink);
  display: flex; flex-direction: column; gap: 14px; justify-content: center; border-left: 3px solid var(--k-ink); }
.kw-room { display: flex; align-items: center; gap: 16px; background: var(--k-cream);
  border: 2.5px solid var(--k-ink); border-radius: var(--k-r-sm); padding: 16px 18px;
  transition: transform .3s var(--k-ease), box-shadow .3s var(--k-ease), background .3s var(--k-ease); }
.kw-room--kids:hover {
  background: #FFF0D0;
  box-shadow: 6px 6px 0 var(--k-sun);
  transform: translate(-3px, -3px) scale(1.01);
}
.kw-room--teens:hover {
  background: #FFEBF5;
  box-shadow: 6px 6px 0 var(--k-pink);
  transform: translate(-3px, -3px) scale(1.01);
}
.kw-room__chip { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; border: 2.5px solid var(--k-ink); box-shadow: 3px 3px 0 var(--k-ink);
  transform-origin: 50% 80%; animation: kWiggle 2.8s ease-in-out infinite;
  transition: transform .3s var(--k-ease), box-shadow .3s var(--k-ease); }
.kw-room:hover .kw-room__chip { transform: scale(1.12) rotate(-8deg); box-shadow: 4px 4px 0 var(--k-ink); }
.kw-room--kids  .kw-room__chip { background: var(--k-sun); }
.kw-room--teens .kw-room__chip { background: var(--k-pink); animation-delay: .4s; }
.kw-room__txt b { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 18px; display: block; }
.kw-room__txt span { font-size: 14px; font-weight: 600; color: var(--k-ink-2); }
.kw-place { font-weight: 700; font-size: 14px; color: var(--k-ink-2); display: flex; align-items: center; gap: 8px; }
.kw-place .pin { color: var(--k-coral); font-size: 18px; }
/* peeking schedule polaroid */
.kids__when-peek { position: absolute; top: -54px; left: -30px; width: clamp(150px, 17vw, 188px); z-index: 5; }

/* ===================== GALLERY ===================== */
.kids__gal-head { text-align: center; margin: clamp(56px,7vw,96px) 0 clamp(28px,4vw,44px); }
.kids__gal { display: grid; gap: clamp(20px, 2.8vw, 36px); grid-template-columns: repeat(2, 1fr);
  max-width: 1020px; margin: 0 auto; }
.kids__gal .kphoto:nth-child(4n+1) { transform: rotate(-2.5deg); }
.kids__gal .kphoto:nth-child(4n+2) { transform: rotate(2deg); }
.kids__gal .kphoto:nth-child(4n+3) { transform: rotate(1.5deg); }
.kids__gal .kphoto:nth-child(4n)   { transform: rotate(-2deg); }
.kids__gal .kphoto:hover { transform: rotate(0deg) translateY(-10px) scale(1.03); }

/* ===================== PARENT CTA ===================== */
.kids__cta { position: relative; z-index: 3; margin: clamp(56px,7vw,96px) auto 0; max-width: 900px; text-align: center;
  background: var(--k-paper); border: 3px solid var(--k-ink); border-radius: var(--k-r-lg);
  padding: clamp(36px,5vw,60px) clamp(24px,4vw,56px);
  box-shadow: 4px 4px 0 var(--k-coral), 8px 8px 0 var(--k-sun), 12px 12px 0 var(--k-mint), 16px 16px 0 var(--k-sky), 20px 20px 0 var(--k-grape), 24px 24px 0 var(--k-ink); }
.kids__cta::before, .kids__cta::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%;
  animation: kPulse 3s ease-in-out infinite; }
.kids__cta::before { background: var(--k-sun);  top: -13px; left: 40px; border: 3px solid var(--k-ink); }
.kids__cta::after  { background: var(--k-mint); bottom: -13px; right: 50px; border: 3px solid var(--k-ink); animation-delay: .8s; }
.kids__cta-logo { height: clamp(44px, 5.5vw, 52px); width: auto; margin: 0 auto 18px; display: block; }
.kids__cta h2 { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(28px, 5vw, 46px);
  line-height: 1.02; margin: 0 0 12px; text-wrap: balance; }
.kids__cta p { margin: 0 auto 26px; max-width: 48ch; color: var(--k-ink-2); font-weight: 600; }
.kids__cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.kc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; font-family: "Fredoka", sans-serif;
  font-weight: 600; font-size: 17px; border: 3px solid var(--k-ink); border-radius: 100px; padding: 15px 26px;
  box-shadow: 5px 5px 0 var(--k-ink); transition: transform .25s var(--k-ease), box-shadow .25s var(--k-ease);
  width: 100%; max-width: 290px; }
.kc-btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--k-ink); }
.kc-btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--k-ink); }
.kc-btn--wa { background: var(--k-mint); color: #fff; }
.kc-btn--wa svg { width: 22px; height: 22px; }
.kc-btn--ghost { background: var(--k-sun); color: var(--k-ink); }
.kids__cta-tiny { margin-top: 18px; font-family: "Caveat", cursive; font-size: 24px; font-weight: 700; color: var(--k-sky-d); }

/* ===================== KELAS (age groups) ===================== */
.kids__kelas { display: grid; gap: clamp(14px,1.8vw,22px); grid-template-columns: repeat(4, 1fr);
  max-width: 1080px; margin: clamp(28px,4vw,44px) auto 0; }
.kkelas { position: relative; border: 3px solid var(--k-ink); border-radius: var(--k-r-md);
  padding: 22px 22px 26px; color: #fff; box-shadow: var(--k-shadow-sm); overflow: hidden;
  transition: transform .35s var(--k-ease), box-shadow .35s var(--k-ease);
  display: flex; flex-direction: column; flex-grow: 1; }
.kkelas:hover { transform: translateY(-10px) rotate(-1.5deg); }
.kkelas:hover .kkelas__letter { animation: kJump 0.45s ease-in-out infinite alternate; }
.kkelas:hover::after { animation: kPatternSlide 4s linear infinite; }
.kkelas:hover .kkelas__age { transform: rotate(-5deg) scale(1.05); }
.kkelas:hover .kkelas__verse { transform: scale(1.08) rotate(2deg); }
.kkelas--1:hover { box-shadow: 0 24px 40px -18px rgba(255,122,107,.75), 0 12px 24px -10px rgba(255,122,107,.45); }
.kkelas--2:hover { box-shadow: 0 24px 40px -18px rgba(77,166,255,.75), 0 12px 24px -10px rgba(77,166,255,.45); }
.kkelas--3:hover { box-shadow: 0 24px 40px -18px rgba(155,123,255,.75), 0 12px 24px -10px rgba(155,123,255,.45); }
.kkelas--4:hover { box-shadow: 0 24px 40px -18px rgba(67,201,160,.75), 0 12px 24px -10px rgba(67,201,160,.45); }
.kkelas::after { content: ""; position: absolute; inset: 0; opacity: .3; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.6) 1.5px, transparent 1.6px); background-size: 18px 18px; }
.kkelas--1 { background: var(--k-coral); }
.kkelas--2 { background: var(--k-sky); }
.kkelas--3 { background: var(--k-grape); }
.kkelas--4 { background: var(--k-mint); }

/* --- KKELAS FLIP SUPPORT --- */
.kkelas.has-flip {
  perspective: 1000px;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}
.kkelas.has-flip::after {
  display: none !important;
}
.kkelas.has-flip:hover {
  transform: translateY(-10px) rotate(-1.5deg);
}
.kkelas__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--k-ease);
}
.kkelas.is-flipped .kkelas__inner {
  transform: rotateY(180deg);
}
.kkelas__front, .kkelas__back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: var(--k-r-md);
  border: 3px solid var(--k-ink);
  transition: box-shadow .35s var(--k-ease);
}
.kkelas__front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
  padding: 22px 22px 26px;
}
.kkelas--1 .kkelas__front { background: var(--k-coral); }
.kkelas--2 .kkelas__front { background: var(--k-sky); }
.kkelas--3 .kkelas__front { background: var(--k-grape); }
.kkelas--4 .kkelas__front { background: var(--k-mint); }
.kkelas__front::after {
  content: ""; position: absolute; inset: 0; opacity: .3; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.6) 1.5px, transparent 1.6px); background-size: 18px 18px;
  border-radius: calc(var(--k-r-md) - 3px);
}
.kkelas__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: rotateY(180deg);
  overflow: hidden;
  padding: 0 !important;
}
.kkelas__back-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: calc(var(--k-r-md) - 3px);
}
.kkelas__back-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(255,255,255,.38) 0%, transparent 52%),
    radial-gradient(ellipse at 85% 85%, rgba(0,0,0,.13) 0%, transparent 48%);
}
.kkelas__back-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--k-r-md) - 3px);
}
.kkelas--1 .kkelas__back-img img {
  object-position: 50% 20%;
}
.kkelas--4 .kkelas__back-img img {
  object-position: 50% 55%;
}
.kkelas--1.has-flip:hover .kkelas__front,
.kkelas--1.has-flip:hover .kkelas__back { box-shadow: 0 24px 40px -18px rgba(255,122,107,.75), 0 12px 24px -10px rgba(255,122,107,.45); }
.kkelas--2.has-flip:hover .kkelas__front,
.kkelas--2.has-flip:hover .kkelas__back { box-shadow: 0 24px 40px -18px rgba(77,166,255,.75), 0 12px 24px -10px rgba(77,166,255,.45); }
.kkelas--3.has-flip:hover .kkelas__front,
.kkelas--3.has-flip:hover .kkelas__back { box-shadow: 0 24px 40px -18px rgba(155,123,255,.75), 0 12px 24px -10px rgba(155,123,255,.45); }
.kkelas--4.has-flip:hover .kkelas__front,
.kkelas--4.has-flip:hover .kkelas__back { box-shadow: 0 24px 40px -18px rgba(67,201,160,.75), 0 12px 24px -10px rgba(67,201,160,.45); }
.kkelas__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 16px; }
.kkelas__letter { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 36px; line-height: 1;
  width: 58px; height: 58px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.22);
  border: 2.5px solid #fff; border-radius: 16px; transform-origin: 50% 80%; animation: kWiggle 3s ease-in-out infinite; }
.kkelas--2 .kkelas__letter { animation-delay: .2s; }
.kkelas--3 .kkelas__letter { animation-delay: .4s; }
.kkelas--4 .kkelas__letter { animation-delay: .6s; }
.kkelas__age { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 12.5px; text-align: center;
  background: rgba(var(--k-ink-rgb), .22); border: 2px solid rgba(255,255,255,.5); border-radius: 100px; padding: 6px 13px; white-space: nowrap;
  display: inline-block; transition: transform .35s var(--k-ease); }
.kkelas h3 { position: relative; z-index: 1; font-family: "Fredoka", sans-serif; font-weight: 700;
  font-size: 26px; margin: 0 0 4px; padding-right: clamp(40px, 5vw, 60px); }
.kkelas__verse { position: relative; z-index: 1; font-family: "Caveat", cursive; font-weight: 700;
  font-size: 22px; margin: 0; display: inline-block; transition: transform .35s var(--k-ease);
  margin-top: auto; padding-right: clamp(65px, 8vw, 85px); }

/* ===================== SONG PLAYER ===================== */
.kids__songs { display: grid; gap: clamp(14px,1.8vw,20px); grid-template-columns: repeat(3, 1fr);
  max-width: 1020px; margin: clamp(28px,4vw,44px) auto 0; }
.ksong { position: relative; background: var(--k-paper); border: 3px solid var(--k-ink); border-radius: var(--k-r-md);
  padding: 20px 20px 18px 26px; box-shadow: var(--k-shadow-sm); overflow: hidden;
  transition: transform .35s var(--k-ease), box-shadow .35s var(--k-ease);
  display: flex; flex-direction: column; gap: 14px; }
.ksong::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: var(--accent); }
.ksong--1 { --accent: var(--k-coral); }
.ksong--2 { --accent: var(--k-sky); }
.ksong--3 { --accent: var(--k-grape); }
.ksong:hover { transform: translateY(-8px); box-shadow: 0 22px 38px -20px rgba(var(--k-ink-rgb), .5); }
.ksong.is-playing { box-shadow: 0 0 0 3.5px var(--accent), 0 20px 40px -15px var(--accent); animation: kPlayingPulse 2.4s infinite ease-in-out; }
.ksong__row { display: flex; align-items: center; gap: 14px; }
.ksong__play { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--k-ink);
  background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 3px 3px 0 var(--k-ink); transition: transform .2s var(--k-ease); }
.ksong__play:hover { transform: scale(1.08); }
.ksong__play:active { transform: scale(.93); }
.ic-play { width: 0; height: 0; border-left: 16px solid #fff; border-top: 10px solid transparent;
  border-bottom: 10px solid transparent; margin-left: 4px; }
.ic-pause { display: none; gap: 5px; }
.ic-pause::before, .ic-pause::after { content: ""; display: block; width: 5px; height: 18px; background: #fff; border-radius: 2px; }
.ksong.is-playing .ic-play { display: none; }
.ksong.is-playing .ic-pause { display: flex; }
.ksong__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ksong__meta b { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 17.5px; display: block; line-height: 1.12; margin-bottom: 2px; }
.ksong__meta span { font-size: 13px; font-weight: 700; color: var(--k-ink-2); }
.ksong__meta .ksong__desc { display: block; }
.ksong__meta .ksong__credits {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 4px 10px;
  background: var(--k-cream);
  border: 1.5px solid var(--k-ink);
  border-radius: 8px;
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  color: var(--k-ink);
  box-shadow: 1.5px 1.5px 0 var(--k-ink);
  line-height: 1;
}
.ksong__eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex: none; }
.ksong__eq i { width: 5px; height: 6px; background: var(--accent); border-radius: 3px; transition: height 0.08s ease; }
.ksong__eq i:nth-child(1) { background: var(--k-coral) !important; }
.ksong__eq i:nth-child(2) { background: var(--k-sun) !important; }
.ksong__eq i:nth-child(3) { background: var(--k-mint) !important; }
.ksong__eq i:nth-child(4) { background: var(--k-sky) !important; }
.ksong.is-mock-playing .ksong__eq i { animation: kEq .85s ease-in-out infinite; transition: none; }
.ksong.is-mock-playing .ksong__eq i:nth-child(2) { animation-delay: .18s; }
.ksong.is-mock-playing .ksong__eq i:nth-child(3) { animation-delay: .36s; }
.ksong.is-mock-playing .ksong__eq i:nth-child(4) { animation-delay: .12s; }
@keyframes kEq { 0%,100% { height: 6px; } 50% { height: 24px; } }
.ksong__bar {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 7px;
  background: linear-gradient(to right, var(--accent) 0%, rgba(var(--k-ink-rgb), .1) 0%);
  border-radius: 100px;
  margin: 0;
  margin-top: auto;
  outline: none;
  border: 1.5px solid rgba(var(--k-ink-rgb), 0.2);
  box-shadow: none;
  pointer-events: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.ksong.is-playing .ksong__bar {
  pointer-events: auto;
  cursor: pointer;
  border: 2.5px solid var(--k-ink);
  box-shadow: 2px 2px 0 var(--k-ink);
}
.ksong__bar::-webkit-slider-runnable-track {
  box-sizing: border-box;
  height: 7px;
  background: transparent;
  border-radius: 100px;
}
.ksong__bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--k-ink);
  margin-top: -3.5px;
  box-shadow: 1px 1px 0 var(--k-ink);
  opacity: 0;
  transition: transform .15s var(--k-ease), opacity .15s var(--k-ease), background-color .15s ease;
}
.ksong.is-playing .ksong__bar::-webkit-slider-thumb {
  opacity: 1;
}
.ksong.is-playing .ksong__bar:hover::-webkit-slider-thumb {
  transform: scale(1.25);
  background: var(--accent);
}
.ksong__bar::-moz-range-track {
  box-sizing: border-box;
  height: 7px;
  background: transparent;
  border-radius: 100px;
}
.ksong__bar::-moz-range-thumb {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--k-ink);
  box-shadow: 1px 1px 0 var(--k-ink);
  opacity: 0;
  transition: transform .15s var(--k-ease), opacity .15s var(--k-ease), background-color .15s ease;
}
.ksong.is-playing .ksong__bar::-moz-range-thumb {
  opacity: 1;
}
.ksong.is-playing .ksong__bar:hover::-moz-range-thumb {
  transform: scale(1.25);
  background: var(--accent);
}
.ksong__lyric { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-family: "Fredoka", sans-serif;
  font-weight: 600; font-size: 14px; cursor: pointer; background: var(--k-cream); color: var(--k-ink);
  border: 2.5px solid var(--k-ink); border-radius: 100px; padding: 9px 18px; box-shadow: 3px 3px 0 var(--k-ink);
  transition: transform .2s var(--k-ease), box-shadow .2s var(--k-ease); align-self: flex-start; }
.ksong__lyric:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--k-ink); }
.ksong__lyric:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--k-ink); }


/* ===================== LYRICS / KARAOKE MODAL ===================== */
.klyric-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: calc(20px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px)); }
.klyric-modal[hidden] { display: none; }
.klyric-modal__backdrop { position: absolute; inset: 0; background: rgba(var(--k-ink-rgb), .55); animation: kFade .25s ease; }
.klyric-modal__card { --accent: var(--k-sky); position: relative; z-index: 1; width: min(560px, 100%);
  max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--k-paper); border: 3px solid var(--k-ink); border-radius: var(--k-r-lg);
  box-shadow: var(--k-shadow); animation: kPopIn .35s var(--k-ease); }
.klyric-modal__x { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 2.5px solid var(--k-ink); background: var(--k-coral); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 3px 3px 0 var(--k-ink); transition: transform .2s var(--k-ease); }
.klyric-modal__x:hover { transform: rotate(90deg) scale(1.05); }
.klyric-modal__head { flex: none; padding: clamp(26px,4vw,38px) clamp(26px,4vw,40px) 14px; text-align: left; }
.klyric-modal__kicker { font-family: "Caveat", cursive; font-weight: 700; font-size: 26px; color: var(--accent); }
.klyric-modal__title { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(26px,4vw,34px);
  margin: 2px 0 0; line-height: 1.05; padding-right: 48px; }
.klyric-modal__author {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.klyric-modal__author:empty {
  display: none;
}
.klyric-modal__author-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--k-cream);
  border: 2px solid var(--k-ink);
  border-radius: 12px;
  font-family: "Fredoka", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--k-ink);
  box-shadow: 2.5px 2.5px 0 var(--k-ink);
  transform: rotate(-1.5deg);
  width: fit-content;
  line-height: 1;
}
.klyric-modal__author-tag:nth-child(even) {
  transform: rotate(1deg);
}
.klyric-modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scroll-behavior: smooth;
  padding: 20px clamp(26px,4vw,40px) 14px; font-weight: 600; color: var(--k-ink); line-height: 1.5;
  scrollbar-width: thin; scrollbar-color: var(--accent) var(--k-cream);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  text-align: left; }
.klyric-modal__body::-webkit-scrollbar { width: 12px; }
.klyric-modal__body::-webkit-scrollbar-track { background: var(--k-cream); border-radius: 100px; margin: 8px 0; }
.klyric-modal__body::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 100px;
  border: 3px solid var(--k-cream); }
.klyric-modal__body::-webkit-scrollbar-thumb:hover { filter: brightness(.92); }
.klrc-lg { display: block; width: fit-content; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent);
  border: 2px solid var(--k-ink); border-radius: 100px; padding: 3px 12px; margin: 16px 0 8px;
  box-shadow: 2px 2px 0 var(--k-ink); white-space: nowrap; }
.klrc-lg:first-child { margin-top: 2px; }
.klyric-modal__body.is-live .klrc-lg {
  background: #BCC0D0;
  color: var(--k-ink-2);
  opacity: 0.6;
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease, transform 0.3s var(--k-ease);
}
.klyric-modal__body.is-live .klrc-lg--timed {
  cursor: pointer;
}
.klyric-modal__body.is-live .klrc-lg--timed:hover {
  opacity: 0.85;
}
.klyric-modal__body.is-live .klrc-lg.is-active {
  background: var(--accent) !important;
  color: #fff !important;
  opacity: 1 !important;
  transform: scale(1.06);
  transform-origin: left center;
}
.klrc-line { font-size: 18px; font-weight: 700; padding: 5px 2px; border-radius: 8px;
  transition: color .3s ease, opacity .3s ease, transform .3s var(--k-ease), background .3s ease; }
.klyric-modal__body.is-live .klrc-line { opacity: .4; cursor: pointer; }
.klyric-modal__body.is-live .klrc-line:hover { opacity: .7; }
.klyric-modal__body .klrc-line.is-active {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.045);
  transform-origin: left center;
}
.klyric-modal__body.is-live .klrc-line.is-active.k-anim-wiggle {
  animation: kLyricWiggle 0.6s ease-in-out infinite alternate;
}
.klyric-modal__body.is-live .klrc-line.is-active.k-anim-float {
  animation: kLyricFloat 1.2s ease-in-out infinite alternate;
}
.klyric-modal__body.is-live .klrc-line.is-active.k-anim-pulse {
  animation: kLyricPulse 0.8s ease-in-out infinite alternate;
}
.klyric-modal__body.is-live .klrc-line.is-active.k-anim-jump {
  animation: kLyricJump 0.5s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}
.klyric-modal__body.is-live .klrc-line.is-active.k-anim-hinge {
  animation: kLyricHinge 1.2s ease-in-out infinite alternate;
}
.klyric-modal__body.is-live .klrc-lg--timed.is-active.k-anim-wiggle {
  animation: kLyricWiggle 0.6s ease-in-out infinite alternate;
}
.klyric-modal__body.is-live .klrc-lg--timed.is-active.k-anim-float {
  animation: kLyricFloat 1.2s ease-in-out infinite alternate;
}
.klyric-modal__body.is-live .klrc-lg--timed.is-active.k-anim-pulse {
  animation: kLyricPulse 0.8s ease-in-out infinite alternate;
}
.klyric-modal__body.is-live .klrc-lg--timed.is-active.k-anim-jump {
  animation: kLyricJump 0.5s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}
.klyric-modal__body.is-live .klrc-lg--timed.is-active.k-anim-hinge {
  animation: kLyricHinge 1.2s ease-in-out infinite alternate;
}
@keyframes kLyricWiggle {
  0% { transform: scale(1.045) translateY(0) rotate(-2deg); }
  100% { transform: scale(1.045) translateY(-6px) rotate(2deg); }
}
@keyframes kLyricFloat {
  0% { transform: scale(1.045) translateX(-4px) rotate(-0.8deg); }
  100% { transform: scale(1.045) translateX(4px) rotate(0.8deg); }
}
@keyframes kLyricPulse {
  0% { transform: scale(1.02) translateY(-2px); }
  100% { transform: scale(1.07) translateY(-2px); }
}
@keyframes kLyricJump {
  0% { transform: scale(1.045) translateY(0); }
  100% { transform: scale(1.045) translateY(-8px); }
}
@keyframes kLyricHinge {
  0% { transform: scale(1.045) rotate(-1.5deg); }
  100% { transform: scale(1.045) rotate(1.5deg); }
}
.klyric-modal__body:not(.is-live) .klrc-line { cursor: pointer; }
.klyric-modal__body:not(.is-live) .klrc-line:hover { background: var(--k-cream); }
.klyric-modal__foot { flex: none; display: flex; flex-direction: column; gap: 16px;
  padding: 18px clamp(26px,4vw,40px) clamp(22px,3vw,28px); border-top: 3px solid var(--k-ink); background: var(--k-cream); }
.klm-progress-row { width: 100%; display: flex; align-items: center; gap: 12px; }
.klm-time { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 13.5px; color: var(--k-ink-2); min-width: 38px; }
.klm-time--current { text-align: left; }
.klm-time--duration { text-align: right; }
.klm-progress-bar { -webkit-appearance: none; appearance: none; box-sizing: border-box; flex: 1; height: 8px;
  background: linear-gradient(to right, var(--accent) 0%, rgba(var(--k-ink-rgb), .1) 0%); border-radius: 100px; outline: none;
  border: 2px solid var(--k-ink); box-shadow: 2px 2px 0 var(--k-ink); cursor: pointer; }
.klm-progress-bar::-webkit-slider-runnable-track { box-sizing: border-box; height: 8px; background: transparent; }
.klm-progress-bar::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; box-sizing: border-box;
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2.5px solid var(--k-ink); margin-top: -3px;
  box-shadow: 1px 1px 0 var(--k-ink); transition: transform .15s var(--k-ease), background-color .15s ease; }
.klm-progress-bar:hover::-webkit-slider-thumb { transform: scale(1.25); background: var(--accent); }
.klm-progress-bar::-moz-range-track { box-sizing: border-box; height: 8px; background: transparent; }
.klm-progress-bar::-moz-range-thumb { box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--k-ink); box-shadow: 1px 1px 0 var(--k-ink); transition: transform .15s var(--k-ease), background-color .15s ease; }
.klm-progress-bar:hover::-moz-range-thumb { transform: scale(1.25); background: var(--accent); }
.klm-buttons-row { width: 100%; display: flex; align-items: center; gap: 12px; }
.klm-btn--play { display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 16px; color: #fff;
  background: var(--accent); border: 3px solid var(--k-ink); border-radius: 100px; padding: 12px 22px;
  box-shadow: 4px 4px 0 var(--k-ink); transition: transform .2s var(--k-ease), box-shadow .2s var(--k-ease); margin-right: auto; }
.klm-btn--play:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--k-ink); }
.klm-btn--play:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--k-ink); }
.klm-btn--play .ic-play { border-left-color: #fff; }
.klm-btn--play .ic-pause { display: none; }
.klm-btn--play.is-playing .ic-play { display: none; }
.klm-btn--play.is-playing .ic-pause { display: flex; }
.klyric-modal__tools { display: flex; gap: 10px; }
.klm-tool { display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 14px; color: var(--k-ink);
  background: #fff; border: 2.5px solid var(--k-ink); border-radius: 100px; padding: 9px 15px;
  box-shadow: 3px 3px 0 var(--k-ink); transition: transform .2s var(--k-ease), box-shadow .2s var(--k-ease); }
.klm-tool svg { width: 16px; height: 16px; }
.klm-tool:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--k-ink); }
.klm-tool:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--k-ink); }
.klm-tool--wa { background: var(--k-mint); color: #fff; }
.klm-tool__label-container { display: inline-flex; align-items: center; }
.klm-tool__label { display: inline-block; white-space: nowrap; overflow: hidden;
  transition: max-width 0.3s var(--k-ease), opacity 0.2s ease; }
.klm-tool__label--copy { max-width: 42px; opacity: 1; }
.klm-tool__label--copied { max-width: 0; opacity: 0; }
.klm-tool.is-copied .klm-tool__label--copy { max-width: 0; opacity: 0; }
.klm-tool.is-copied .klm-tool__label--copied { max-width: 62px; opacity: 1; }
@keyframes kFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kPopIn { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes kFadeOut { to { opacity: 0; } }
@keyframes kPopOut { to { opacity: 0; transform: translateY(18px) scale(.95); } }
.klyric-modal.is-closing .klyric-modal__backdrop { animation: kFadeOut .26s ease forwards; }
.klyric-modal.is-closing .klyric-modal__card { animation: kPopOut .26s var(--k-ease) forwards; }

/* ===================== SCROLL REVEAL ===================== */
.kids.is-ready [data-pop]:not(.in) { opacity: 0; }
.kids [data-pop].in { animation: kPop .7s var(--k-ease) var(--d, 0s) both; }
@keyframes kPop { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }

/* Typewriter animation for section titles */
.k-char {
  display: inline-block;
  opacity: 0;
  transform: scale(0.92);
  transition: none;
}
/* Prevent iOS Safari from clipping slanted/cursive script characters */
.kids__script span,
.kw-kicker span,
.kphoto figcaption span,
.kphoto__front figcaption span {
  overflow: visible !important;
}
.kids__script .k-char,
.kw-kicker .k-char,
.kphoto figcaption .k-char,
.kphoto__front figcaption .k-char {
  padding: 0.1em 0.18em 0.1em 0.08em;
  margin: -0.1em -0.18em -0.1em -0.08em;
  overflow: visible !important;
}
.kids__title.in .k-char,
.kids__sub.in .k-char,
.kids__cta.in h2 .k-char {
  animation: kTypewriterChar 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.06s);
}
.kphoto-pop-wrap.in figcaption .k-char,
.kphoto.in figcaption .k-char {
  animation: kTypewriterChar 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.05s + 0.35s);
}
.kids__when.in .kw-time .k-char,
.kids__when.in .kw-day .k-char {
  animation: kTypewriterChar 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.06s + 0.3s);
}
.kids__script.in .k-char,
.kids__when.in .kw-kicker .k-char {
  animation: kTypewriterChar 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.06s);
}
.kkelas-cell.in h3 .k-char,
.kc-card.in h3 .k-char {
  animation: kTypewriterChar 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.05s + 0.1s);
}
.kids__title.in .pop.k-char {
  animation: kTypewriterChar 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, kRainbowText 4s linear infinite, kSway 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.06s), 0s, 0s;
}
.kids__title.in .pop--b.k-char {
  animation: kTypewriterChar 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, kRainbowText 4s linear infinite, kSway 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.06s), 0s, 0.6s;
}
@keyframes kTypewriterChar {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) { .kids__cards { grid-template-columns: repeat(3, 1fr); } .kids__kelas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  {
  .kids__gal { grid-template-columns: repeat(2, 1fr); }
  .kids__when { grid-template-columns: 1fr; }
  .kw-right { border-left: 0; border-top: 3px solid var(--k-ink); }
  .kids__songs { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 720px) {
  .kids__cards { grid-template-columns: repeat(2, 1fr); }
  .kids__cards .kc-card:nth-child(5) { grid-column: span 2; }
  .kids__strip, .kids__gal {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 26px;
    justify-items: center;
  }
  .kids__strip {
    margin: 36px auto 0;
    gap: 40px;
  }
  .kids__gal {
    margin: 0 auto;
    gap: 42px;
  }
  .kids__strip .kphoto-pop-wrap, .kids__gal .kphoto {
    width: 92%;
    max-width: 360px;
    margin: 0 auto;
  }
  .kids__strip .kphoto-pop-wrap:nth-child(2) { margin-top: 0; }
  .kids__strip .kphoto-hang { width: 100%; }
  
  /* Mobile class cards image crop overrides */
  .kkelas--2 .kkelas__back-img img {
    object-position: 50% 25%;
  }
  .kkelas--3 .kkelas__back-img img {
    object-position: 50% 35%;
  }
  .kkelas--4 .kkelas__back-img img {
    object-position: 50% 35%;
  }
  
  /* Background decor handling for mobile framing */
  .kc-cloud, .kc-balloon, .kc-star, .kc-dot, .kc-ring, .kc-sq, .kc-tri {
    display: none !important;
  }
  .kc-cloud--1, .kc-cloud--2,
  .kc-balloon--1, .kc-balloon--2,
  .kc-star--1, .kc-star--2, .kc-star--3, .kc-star--4 {
    display: block !important;
  }
  .kc-cloud--1 { top: 60px !important; left: -45px !important; transform: scale(0.5) !important; opacity: 0.8 !important; pointer-events: none !important; cursor: default !important; }
  .kc-cloud--2 { top: 110px !important; right: -35px !important; transform: scale(0.55) !important; opacity: 0.85 !important; pointer-events: none !important; cursor: default !important; }
  .kc-balloon--1 { top: 220px !important; right: 8px !important; transform: scale(0.6) !important; }
  .kc-balloon--2 { top: 380px !important; left: 8px !important; transform: scale(0.55) !important; }
  .kc-star--1 { top: 90px !important; left: 16px !important; transform: scale(0.6) !important; }
  .kc-star--2 { top: 310px !important; left: 12px !important; transform: scale(0.5) !important; }
  .kc-star--3 { top: 170px !important; right: 20px !important; transform: scale(0.55) !important; }
  .kc-star--4 { top: 350px !important; right: 15px !important; transform: scale(0.5) !important; }
  .kids:not(.is-day) .kc-shoot--1 { display: block !important; top: 150px !important; left: 10% !important; animation: kShootMobile 8s ease-in infinite 1s !important; }
  .kids:not(.is-day) .kc-shoot--2 { display: block !important; top: 280px !important; left: 5% !important; animation: kShootMobile 9.5s ease-in infinite 4s !important; }

  /* Day mode flying elements mobile overrides */
  .kids.is-day .kc-bird--1 { animation: kFly1Mobile 12s linear infinite 0s both !important; transform: scale(0.7) !important; }
  .kids.is-day .kc-bird--2 { animation: kFly2Mobile 15s linear infinite 2s both !important; transform: scale(0.55) !important; }
  .kids.is-day .kc-bird--3 { animation: kFly3Mobile 14s linear infinite 3s both !important; transform: scale(0.6) !important; }
  .kids.is-day .kc-bird--4 { animation: kFly4Mobile 16s linear infinite 1s both !important; transform: scale(0.45) !important; }
  .kids.is-day .kc-bird--5 { animation: kFly5Mobile 15s linear infinite 0.5s both !important; transform: scale(0.65) !important; }
  .kids.is-day .kc-bird--6 { animation: kFly6Mobile 13s linear infinite 2.5s both !important; transform: scale(0.5) !important; }
  .kids.is-day .kc-bird--7 { animation: kFly7Mobile 15s linear infinite 1.5s both !important; transform: scale(0.58) !important; }
  .kids.is-day .kc-dove { animation: kDoveFlyMobile 18s linear infinite 1s both !important; transform: scale(0.7) !important; }
  .kids.is-day .kc-fly--1 { animation: kFlit1Mobile 19s ease-in-out infinite both !important; transform: scale(0.7) !important; }
  .kids.is-day .kc-fly--2 { animation: kFlit2Mobile 24s ease-in-out infinite 3s both !important; transform: scale(0.55) !important; }
  .kids.is-day .kc-fly--3 { animation: kFlit3Mobile 22s ease-in-out infinite 7s both !important; transform: scale(0.6) !important; }
  .kc-sun {
    top: 16px !important;
    right: 16px !important;
    width: 60px !important;
    height: 60px !important;
  }
  .kc-sun::after {
    box-shadow:
      0 0 0 7px rgba(255,196,61,.16),
      0 0 32px 7px rgba(255,196,61,.34),
      inset -4px -5px 10px rgba(214,108,0,.18),
      inset 4px 5px 10px rgba(255,255,255,.45) !important;
  }
  .kc-moon {
    top: 20px !important;
    right: 24px !important;
    width: 52px !important;
    height: 52px !important;
  }
  .kc-cloud, .kc-balloon, .kc-shoot {
    pointer-events: none !important;
    cursor: default !important;
  }

  .kids__cta-logo {
    height: 32px !important;
  }

  .kphoto__tag {
    font-size: 11px !important;
    padding: 5px 16px !important;
    top: -10px !important;
  }
  .kphoto figcaption {
    font-size: 24px !important;
    padding: 10px 8px 14px !important;
  }
}
@media (max-width: 520px) {
  .kids__cards { grid-template-columns: 1fr 1fr; }
  .kids__kelas { grid-template-columns: 1fr; }
  .kc-balloon, .kc-cloud--3, .kc-cloud--4 { display: none; }
  
  /* flowers at the bottom scaled down */
  .kflower { --flower-scale: 0.62; }

  /* parent registration cta thin layered shadow */
  .kids__cta {
    box-shadow:
      2px 2px 0 var(--k-coral),
      4px 4px 0 var(--k-sun),
      6px 6px 0 var(--k-mint),
      8px 8px 0 var(--k-sky),
      10px 10px 0 var(--k-grape),
      12px 12px 0 var(--k-ink);
  }

  /* lyric modal thin margin layout */
  .klyric-modal {
    padding: calc(8px + env(safe-area-inset-top, 0px)) calc(8px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(8px + env(safe-area-inset-left, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .klyric-modal__card {
    max-height: 100%;
    width: 100%;
    border-radius: var(--k-r-md);
  }
  .klyric-modal__head {
    padding: 20px 16px 10px;
  }
  .klyric-modal__body {
    padding: 20px 16px 10px;
  }
  .klyric-modal__foot {
    padding: 14px 16px 16px;
  }
  .klyric-modal__x {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .klyric-modal__title {
    padding-right: 36px;
  }

  /* lyric modal play button compact layout & centering */
  .klm-buttons-row {
    justify-content: center;
  }
  .klm-btn--play .klm-btn__label {
    display: none;
  }
  .klm-btn--play {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0;
    flex: none;
  }
  .klm-btn--play .ic-play {
    margin-left: 5px;
  }
  .klm-btn--play .ic-pause {
    justify-content: center;
    align-items: center;
  }
}

/* ===================== PARTY CONFETTI ===================== */
.k-party-confetti {
  position: absolute;
  pointer-events: none;
  z-index: 100000;
  width: 8px;
  height: 8px;
  background: var(--color, var(--k-coral));
  border-radius: var(--br, 2px);
  border: 1px solid var(--k-ink);
  will-change: transform, opacity;
  animation: kPartyConfettiFall var(--duration, 3.5s) ease-out forwards;
}
.k-party-confetti.is-fixed {
  position: fixed;
}
@keyframes kPartyConfettiFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  35% {
    transform: translate3d(var(--tx1), var(--ty1), 0) rotate(var(--rot1)) scale(1);
  }
  70% {
    transform: translate3d(var(--tx2), var(--ty2), 0) rotate(var(--rot2)) scale(0.95);
  }
  100% {
    transform: translate3d(var(--tx3), var(--ty3), 0) rotate(var(--rot3)) scale(0.9);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kids *, .kids *::before, .kids *::after { animation: none !important; }
  .kids [data-pop] { opacity: 1 !important; transform: none !important; }
  .kids .kphoto__tag { opacity: 1 !important; clip-path: none !important; }
  .k-party-confetti { display: none !important; }
}

/* ===================== FLOATING MINI PLAYER ===================== */
.kmini-player {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: 9999;
  background: var(--k-paper);
  border: 3px solid var(--k-ink);
  border-radius: 20px;
  padding: 14px 18px 10px 18px;
  box-shadow: 6px 6px 0 var(--k-ink);
  transform: translateY(120%) scale(0.9);
  opacity: 0;
  transition: transform 0.45s var(--k-ease), opacity 0.45s ease, box-shadow 0.2s ease;
  pointer-events: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kmini-player.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.kmini-player.is-active:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 var(--k-ink);
}
.kmini-player.is-active:active {
  transform: translateY(1px);
  box-shadow: 4px 4px 0 var(--k-ink);
}
.kmini-player__body {
  display: flex;
  align-items: center;
  gap: 16px;
}
.kmini-player__eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  width: 21px;
  flex-shrink: 0;
}
.kmini-player__eq span {
  display: block;
  width: 3px;
  height: 4px;
  background: var(--k-coral);
  border-radius: 100px;
  transition: height 0.08s ease;
}
.kmini-player.is-mock-playing .kmini-player__eq span {
  animation: kEqMini 0.85s ease-in-out infinite;
  transition: none;
}
.kmini-player__eq span:nth-child(1) { background: var(--k-coral) !important; }
.kmini-player__eq span:nth-child(2) { background: var(--k-sun) !important; }
.kmini-player__eq span:nth-child(3) { background: var(--k-mint) !important; }
.kmini-player__eq span:nth-child(4) { background: var(--k-sky) !important; }

.kmini-player.is-mock-playing .kmini-player__eq span:nth-child(2) { animation-delay: 0.18s; }
.kmini-player.is-mock-playing .kmini-player__eq span:nth-child(3) { animation-delay: 0.36s; }
.kmini-player.is-mock-playing .kmini-player__eq span:nth-child(4) { animation-delay: 0.12s; }
@keyframes kEqMini {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}
.kmini-player__info {
  flex-grow: 1;
  min-width: 140px;
  max-width: 220px;
}
.kmini-player__title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--k-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.kmini-player__subtitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--k-ink-2);
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kmini-player__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.kmini-player__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--k-ink);
  cursor: pointer;
  background: var(--k-paper);
  color: var(--k-ink);
  transition: transform 0.2s var(--k-ease), box-shadow 0.2s var(--k-ease), background-color 0.2s ease;
}
.kmini-player__btn--play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--k-coral);
  color: #fff;
  box-shadow: 2px 2px 0 var(--k-ink);
}
.kmini-player__btn--play:hover {
  transform: scale(1.08);
}
.kmini-player__btn--play:active {
  transform: scale(0.92);
}
.kmini-player__btn--lyric {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 13px;
  border-radius: 100px;
  padding: 6px 14px;
  background: var(--k-cream);
  box-shadow: 2.5px 2.5px 0 var(--k-ink);
}
.kmini-player__btn--lyric:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 4px 4px 0 var(--k-ink);
}
.kmini-player__btn--lyric:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--k-ink);
}
.kmini-player__slider {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 8px;
  background-image: linear-gradient(to right, var(--k-coral), var(--k-sun), var(--k-mint), var(--k-sky), var(--k-grape));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-color: rgba(var(--k-ink-rgb), 0.1);
  border-radius: 100px;
  margin: 4px 0 0 0;
  outline: none;
  border: 2.5px solid var(--k-ink);
  box-shadow: 2px 2px 0 var(--k-ink);
  cursor: pointer;
}
.kmini-player__slider::-webkit-slider-runnable-track {
  box-sizing: border-box;
  height: 8px;
  background: transparent;
  border-radius: 100px;
}
.kmini-player__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--k-ink);
  margin-top: -3.5px;
  box-shadow: 1px 1px 0 var(--k-ink);
  transition: transform .15s var(--k-ease), background-color .15s ease;
}
.kmini-player__slider:hover::-webkit-slider-thumb {
  transform: scale(1.25);
  background: var(--k-coral);
}
.kmini-player__slider::-moz-range-track {
  box-sizing: border-box;
  height: 8px;
  background: transparent;
  border-radius: 100px;
}
.kmini-player__slider::-moz-range-thumb {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--k-ink);
  box-shadow: 1px 1px 0 var(--k-ink);
  transition: transform .15s var(--k-ease), background-color .15s ease;
}
.kmini-player__slider:hover::-moz-range-thumb {
  transform: scale(1.25);
  background: var(--k-coral);
}

/* Desktop Lyrics Overlay above Mini Player */
.kmini-player__lyrics {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: auto;
  cursor: pointer;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  text-align: right;
}
.kmini-lyric-line {
  white-space: nowrap;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), color 0.22s ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.kmini-lyric-line.k-lyric-out {
  opacity: 0 !important;
  transform: translateY(-12px) !important;
}
.kmini-lyric-line.k-lyric-in {
  opacity: 0 !important;
  transform: translateY(12px) !important;
  transition: none !important;
}
.kmini-lyric-line--prev {
  font-size: 16px;
  color: rgba(91, 96, 121, 0.45);
  opacity: 0.7;
  mask-image: linear-gradient(to top, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%);
  transition: opacity 0.2s ease, color 0.2s ease;
}
@media (hover: hover) {
  .kmini-lyric-line--prev:hover {
    opacity: 1;
    color: var(--accent, var(--k-coral));
  }
}
.kmini-lyric-line--active {
  font-size: 22px;
  color: var(--accent, var(--k-coral));
  transform-origin: right center;
  transition: transform 0.3s var(--k-ease), color 0.2s ease;
}
@media (hover: hover) {
  .kmini-lyric-line--active:hover {
    transform: scale(1.04);
  }
}
.kmini-lyric-line--next {
  font-size: 16px;
  color: rgba(91, 96, 121, 0.55);
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  transition: opacity 0.2s ease, color 0.2s ease;
}
@media (hover: hover) {
  .kmini-lyric-line--next:hover {
    opacity: 1;
    color: var(--accent, var(--k-coral));
  }
}

/* Mini Player Lyric Animations */
.kmini-player.is-playing .kmini-lyric-line--active.k-anim-wiggle {
  animation: kLyricWiggle 0.6s ease-in-out infinite alternate;
}
.kmini-player.is-playing .kmini-lyric-line--active.k-anim-float {
  animation: kLyricFloat 1.2s ease-in-out infinite alternate;
}
.kmini-player.is-playing .kmini-lyric-line--active.k-anim-pulse {
  animation: kLyricPulse 0.8s ease-in-out infinite alternate;
}
.kmini-player.is-playing .kmini-lyric-line--active.k-anim-jump {
  animation: kLyricJump 0.5s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}
.kmini-player.is-playing .kmini-lyric-line--active.k-anim-hinge {
  animation: kLyricHinge 1.2s ease-in-out infinite alternate;
}

@media (max-width: 720px) {
  .kmini-player__lyrics {
    display: none !important;
  }
  .kmini-player {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
    padding: 12px 14px 10px;
    box-shadow: 4px 4px 0 var(--k-ink);
    border-radius: 16px;
    gap: 6px;
  }
  .kmini-player.is-active:hover {
    transform: translateY(0);
    box-shadow: 4px 4px 0 var(--k-ink);
  }
  .kmini-player__info {
    min-width: 0;
    max-width: none;
  }
  .kmini-player__btn--lyric {
    padding: 6px 14px;
    font-size: 14px;
  }
  .kmini-player__btn--play {
    width: 36px;
    height: 36px;
  }
}

/* ===================== PLAYGROUND FX (additive) ===================== */

/* night-mode readability: lighten text that sits directly on the section bg */
.kids__title, .kids__lede, .kids__sub, .kids__sub-note, .kids__script { transition: color .8s ease; }
.kids:not(.is-day) .kids__title { color: #FFF7E9; }
.kids:not(.is-day) .kids__lede,
.kids:not(.is-day) .kids__sub,
.kids:not(.is-day) .kids__sub-note { color: #E8ECFF; }
.kids:not(.is-day) .kids__script { color: #FFD84D; }

/* 1. day / night toggle */
.kfx-sky {
  position: fixed; top: 16px; right: 16px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--k-ink, #2A2E4A);
  background: #FFF7E9; box-shadow: 0 6px 16px rgba(var(--k-ink-rgb, 42, 46, 74), 0.15);
  cursor: pointer; display: grid; place-items: center; font-size: 26px; line-height: 1;
  transition: transform .25s var(--k-ease, ease), background .6s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
  animation: kHeaderElementFloat 3.5s ease-in-out infinite 0.6s;
}
@media (hover: hover) {
  .kfx-sky:hover { animation-play-state: paused; transform: translateY(-2px) rotate(-8deg); box-shadow: 0 10px 20px rgba(var(--k-ink-rgb, 42, 46, 74), 0.22); }
  .kfx-sky.is-night:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); }
}
.kfx-sky:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(var(--k-ink-rgb, 42, 46, 74), 0.15); }
.kfx-sky__sun, .kfx-sky__moon { grid-area: 1 / 1; transition: opacity .4s ease, transform .5s var(--k-ease, ease); }
.kfx-sky__moon { opacity: 0; transform: scale(.3) rotate(40deg); }
.kfx-sky.is-night { background: #1D2447; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
.kfx-sky.is-night:active { box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); }
.kfx-sky.is-night .kfx-sky__sun { opacity: 0; transform: scale(.3) rotate(-40deg); }
.kfx-sky.is-night .kfx-sky__moon { opacity: 1; transform: scale(1) rotate(0); }

/* 2. fireflies (night only) + grass dimming so they read */
.kids__ground::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 17, 40, 0) 0%, rgba(13, 17, 40, .5) 55%, rgba(13, 17, 40, .62) 100%);
  opacity: 0; transition: opacity 1.4s ease;
}
.kids:not(.is-day) .kids__ground::after { opacity: 1; }
.kfx-fireflies { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.kids:not(.is-day) .kfx-fireflies { opacity: 1; }
.kfirefly {
  position: absolute; bottom: 4%; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, #FFFBD0 0%, #FFE066 55%, rgba(255, 216, 77, 0) 72%);
  box-shadow: 0 0 10px 3px rgba(255, 230, 130, .9);
  animation: kfxFly var(--dur, 5s) ease-in-out infinite;
}
@keyframes kfxFly {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 1; }
  50%  { transform: translate(14px, calc(var(--rise, 100px) * -1)); opacity: .95; }
  85%  { opacity: 1; }
  100% { transform: translate(-10px, 0); opacity: 0; }
}

/* 2b. meadow bugs (day only) */
.kfx-meadow {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease;
}
.kids.is-day .kfx-meadow {
  opacity: 1;
}
.kmeadow-bug {
  position: absolute; bottom: 8%; font-size: 16px;
  animation: kfxMeadowFly var(--dur, 6s) ease-in-out infinite;
  display: inline-block;
  user-select: none;
}
.kmeadow-bug.kbutterfly {
  width: 14px;
  height: 11px;
}
.kmeadow-bug.kbutterfly::before,
.kmeadow-bug.kbutterfly::after {
  content: ""; position: absolute; top: 0; width: 7px; height: 11px; border-radius: 50%;
  background: var(--bf); filter: drop-shadow(0 1px 1px rgba(var(--k-ink-rgb), .15));
}
.kmeadow-bug.kbutterfly::before { left: 0; transform-origin: right center; animation: kBflapL .35s ease-in-out infinite; }
.kmeadow-bug.kbutterfly::after  { right: 0; transform-origin: left center; animation: kBflapR .35s ease-in-out infinite; }
@keyframes kfxMeadowFly {
  0% { transform: translate(0, 0) scale(0); opacity: 0; }
  10% { transform: translate(0, 0) scale(1); opacity: 0.95; }
  35% { transform: translate(calc(var(--drift) * 0.35), calc(var(--rise) * -0.4)) rotate(-8deg); }
  50% { transform: translate(var(--drift), calc(var(--rise) * -0.75)) rotate(8deg) scale(0.95); opacity: 0.95; }
  75% { transform: translate(calc(var(--drift) * 0.65), calc(var(--rise) * -0.92)) rotate(-6deg); }
  90% { transform: translate(calc(var(--drift) * 0.2), calc(var(--rise) * -0.5)) scale(0.85); opacity: 0.8; }
  100% { transform: translate(0, 0) scale(0); opacity: 0; }
}

/* 3. googly eyes (hover devices) */
.kbuddy.has-googly::before, .kbuddy.has-googly::after { display: none; }
.keye { position: absolute; top: 30%; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 1.5px solid var(--k-ink, #2A2E4A); display: grid; place-items: center; z-index: 1; }
.keye--l { left: 22%; }
.keye--r { right: 22%; }
.keye b { width: 6px; height: 6px; border-radius: 50%; background: var(--k-ink, #2A2E4A); transform: translate(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px)); transition: transform .08s linear; }

/* 4. plant-a-flower (clickable grass strip, above content) */
.kfx-plant-zone { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 15vw, 190px); z-index: 5; cursor: pointer; }
.kfx-plant-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; pointer-events: none;
  font-family: "Caveat", cursive; font-weight: 700; font-size: 21px; color: var(--k-ink, #2A2E4A);
  background: rgba(255, 247, 233, .92); border: 2px solid var(--k-ink, #2A2E4A); border-radius: 14px;
  padding: 4px 13px; box-shadow: 3px 3px 0 rgba(var(--k-ink-rgb, 42, 46, 74), .2);
  white-space: nowrap; animation: kfxHintBob 2s ease-in-out infinite; transition: opacity .5s ease;
}
.kfx-plant-hint.is-hidden { opacity: 0; }
.kids:not(.is-day) .kfx-plant-hint { color: #FFF7E9; background: rgba(29, 36, 71, .92); }
@keyframes kfxHintBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
.kids__ground .kflower.kfx-planted,
.kids__ground.in .kflower.kfx-planted {
  position: absolute;
  z-index: 3;
  opacity: 1;
  transform: none;
  transition: none;
  transform-origin: bottom center;
  animation: kGrassSway 4s ease-in-out infinite;
}
@keyframes kfxGrow { 0% { transform: scaleY(0) scaleX(calc(var(--flower-scale, 1) * .5)); } 70% { transform: scale(calc(var(--flower-scale, 1) * 1.12)); } 100% { transform: scale(var(--flower-scale, 1)); } }

/* responsive */
@media (max-width: 720px) {
  .kfx-sky { top: 12px; left: 12px; right: auto; width: 46px; height: 46px; font-size: 22px; }
  .kfx-plant-hint { display: none; }
  body:has(#kLyricModal:not([hidden])) .kfx-sky { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kfirefly { animation: none; opacity: .8; }
  .kids__ground .kflower.kfx-planted,
  .kids__ground.in .kflower.kfx-planted { animation: kfxGrow .3s ease both; }
  .kfx-plant-hint { animation: none; }
  .kids.is-day .kc-bird, .kids.is-day .kc-bird::before, .kids.is-day .kc-bird::after { animation: none; }
  .kc-dove, .kc-dove::before, .kc-dove::after,
  .kc-fly, .kc-fly::before, .kc-fly::after,
  .kc-shoot, .kmeadow-bug, .kmeadow-bug::before, .kmeadow-bug::after { animation: none !important; }
}

.kids .kw-place a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: opacity .2s ease; }
.kids .kw-place a:hover { opacity: .7; }

/* instant load initialization to bypass transitions before load is complete */
.kids.is-init-instant .kc-sun,
.kids.is-init-instant .kc-moon,
.kids.is-init-instant .kc-cloud,
.kids.is-init-instant .kc-balloon,
.kids.is-init-instant .kids__night-overlay {
  transition: none !important;
}

/* ===================== CREATIVE INTERACTION FX (additive) ===================== */

/* 1. Cloud, Star, Sun & Balloon Pop */
.kc-cloud, .kc-star, .kc-sun, .kc-balloon {
  pointer-events: auto !important;
  cursor: pointer !important;
}
.kc-balloon {
  transition: transform 2.2s var(--k-ease) 1.2s, opacity 2.2s ease 1.2s, filter 0.3s ease;
}
@media (hover: hover) {
  .kc-balloon:hover {
    filter: brightness(1.1) drop-shadow(0 10px 16px rgba(var(--k-ink-rgb), 0.25));
    transform: translateY(-5px) scale(1.05) rotate(4deg) !important;
    transition: transform 0.3s var(--k-ease), filter 0.3s ease !important;
  }
}
.kc-sun::before {
  content: "";
  position: absolute;
  inset: 16%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='30' cy='45' r='6' fill='%232A2E4A'/%3E%3Ccircle cx='70' cy='45' r='6' fill='%232A2E4A'/%3E%3Cpath d='M 30,60 Q 50,80 70,60' stroke='%232A2E4A' stroke-width='6' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='20' cy='56' r='8' fill='%23FF95C8' opacity='0.6'/%3E%3Ccircle cx='80' cy='56' r='8' fill='%23FF95C8' opacity='0.6'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  z-index: 3;
}
.kids.is-day .kc-sun.is-active-sun::before {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition-delay: 0.2s;
}
.kids.is-day .kc-sun.is-active-sun::after {
  animation: kSunHoverSpin 0.8s var(--k-ease) forwards !important;
}
@media (hover: hover) {
  .kids.is-day .kc-sun:hover::before {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition-delay: 0.2s;
  }
  .kids.is-day .kc-sun:hover::after {
    animation: kSunHoverSpin 0.8s var(--k-ease) forwards !important;
  }
}
@keyframes kSunHoverSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.15);
  }
  100% {
    transform: rotate(360deg) scale(1.1);
  }
}
.kc-cloud {
  transition: transform 0.3s var(--k-ease), filter 0.3s ease, opacity 2s ease 0.8s;
}
@media (hover: hover) {
  .kc-cloud:hover {
    opacity: 1 !important;
    filter: brightness(1.08) drop-shadow(0 8px 16px rgba(var(--k-ink-rgb), 0.15));
  }
}
.kc-star {
  transition: transform 0.3s var(--k-ease), filter 0.3s ease, background 1.8s ease;
}
.kc-star.is-active-star {
  transform: scale(1.3) !important;
  filter: brightness(1.25) drop-shadow(0 0 8px rgba(255, 235, 163, 0.85));
}
@media (hover: hover) {
  .kc-star:hover {
    transform: scale(1.3) !important;
    filter: brightness(1.25) drop-shadow(0 0 8px rgba(255, 235, 163, 0.85));
  }
}

.kc-cloud.is-popping {
  animation: kCloudPop 0.8s ease !important;
}
@keyframes kCloudPop {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.18) translateY(-6px); }
  60% { transform: scale(0.9) translateY(2px); }
}

.kfx-droplet {
  position: absolute;
  width: 6px;
  height: 12px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  z-index: 50;
  pointer-events: none;
  animation: kDropletFall 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes kDropletFall {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translate(var(--x-drift), var(--fall-dist)) scale(0.3); opacity: 0; }
}

.kc-star.is-popping {
  animation: kStarPop 0.8s ease !important;
}
@keyframes kStarPop {
  0%, 100% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.35) rotate(180deg); }
  60% { transform: scale(0.85) rotate(360deg); }
}

.kfx-sparkle {
  position: absolute;
  font-size: 14px;
  z-index: 50;
  pointer-events: none;
  animation: kSparkleBurst 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes kSparkleBurst {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3) rotate(90deg); opacity: 0; }
}

/* 2. Floating Music Notes */
.kfx-music-note {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: clamp(16px, 3vw, 24px);
  z-index: 99999;
  pointer-events: none;
  font-weight: bold;
  animation: kMusicNoteFloat 1.2s ease-out forwards;
  transform: translate(-50%, -50%);
  text-shadow: 1.5px 1.5px 0 var(--k-paper), -1.5px -1.5px 0 var(--k-paper), 1.5px -1.5px 0 var(--k-paper), -1.5px 1.5px 0 var(--k-paper);
}
@keyframes kMusicNoteFloat {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x-drift)), calc(-50% - var(--float-dist))) scale(1.3) rotate(-15deg); opacity: 0; }
}

/* 3. Day/Night Transitions (Balloons & Birds scatter) */
@keyframes kfxBalloonReleaseAnim {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-130vh) rotate(20deg) scale(0.7);
    opacity: 0;
  }
}
.kc-balloon.kfx-balloon-release {
  animation: kfxBalloonReleaseAnim 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

@keyframes kfxBirdsScatterAnim {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(320px, -240px) scale(0.4);
    opacity: 0;
  }
}
.kc-bird.kfx-birds-scatter, .kc-dove.kfx-birds-scatter {
  animation: kfxBirdsScatterAnim 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* 4. Plant-a-Flower Growing Animation overrides */
.kflower.kfx-planted .stem {
  transform-origin: bottom center;
  animation: kfxGrowStem 0.45s var(--k-ease) both;
}
.kflower.kfx-planted .bloom {
  transform-origin: bottom center;
  animation: kfxGrowBloom 0.45s var(--k-ease) both;
}
@keyframes kfxGrowStem {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}
@keyframes kfxGrowBloom {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* 5. Balloon Pop & Regrow Animations */
.kc-balloon.is-popping {
  animation: kBalloonPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}
@keyframes kBalloonPop {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.2) rotate(-5deg);
    filter: brightness(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
.kc-balloon.is-popped {
  display: none !important;
}
.kc-balloon.is-regrowing {
  animation: kBalloonRegrow 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}
@keyframes kBalloonRegrow {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 6. Goofy Blinking Eyes Animation */
.keye {
  animation: keyeBlink 5s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes keyeBlink {
  0%, 45%, 55%, 95%, 100% { transform: scaleY(1); }
  50%, 97.5% { transform: scaleY(0.1); }
}

/* ===================== PLAYFUL HEADER NAVIGATIONS ===================== */
/* Floating Home Badge (Pill-shaped, aligned with layout padding) */
.kids__back-badge {
  position: fixed;
  top: 28px;
  left: var(--k-pad);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF1DB;
  border: 2.5px solid var(--k-ink);
  border-radius: 100px;
  padding: 8px 18px 8px 10px;
  box-shadow: 3px 3px 0 var(--k-ink);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--k-ink);
  text-decoration: none !important;
  transition: transform 0.2s var(--k-ease), box-shadow 0.2s var(--k-ease), background 0.2s var(--k-ease);
  animation: kHeaderElementFloat 3.5s ease-in-out infinite;
}
.kids__back-badge:hover {
  animation-play-state: paused;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--k-ink);
  background: var(--k-cream);
}
.kbb-logo {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

@keyframes kHeaderElementFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes kHeaderElementFloatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .kids__back-badge {
    top: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 6px 14px 6px 8px;
    font-size: 12px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--k-ink);
    animation: kHeaderElementFloatCenter 3.5s ease-in-out infinite;
  }
  .kids__back-badge:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 2px 2px 0 var(--k-ink);
  }
  .kbb-logo {
    height: 18px;
    width: 18px;
  }
}

/* ====================================================================
   PLAYFUL PAGE TRANSITION: BALLOONS LIFTING BACKDROP
   ==================================================================== */
.ktransition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
}
.ktransition-overlay.is-active {
  visibility: visible;
}

.ktransition-backdrop {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  top: 100%;
  background: linear-gradient(135deg, #050a1b 0%, #0a1128 50%, #151006 100%); /* Matches index.html loader background exactly */
  border-top: 5px solid #ba9a42; /* Gold accent line matching home theme */
  transition: transform 1.3s cubic-bezier(0.76, 0, 0.24, 1);
  transition-delay: 0.4s;
  z-index: 1;
}

.ktransition-balloon {
  position: absolute;
  bottom: -150px;
  width: var(--size, 80px);
  height: calc(var(--size, 80px) * 1.25);
  background: var(--bg);
  border: 2.5px solid #2A2E4A;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; /* Cute balloon tear-drop shape */
  box-shadow: inset -6px -6px 0 rgba(0,0,0,0.1), 3px 3px 0 rgba(0,0,0,0.12);
  z-index: 2;
  transition: transform 2.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Balloon Knot */
.ktransition-balloon::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid #2A2E4A;
}

/* Active State: Balloons rise and backdrop slides up to cover viewport */
.ktransition-overlay.is-active .ktransition-backdrop {
  transform: translateY(-100%);
}

.ktransition-overlay.is-active .ktransition-balloon {
  transform: translateY(-240vh); /* Shoot up rapidly past the top of the viewport */
}

/* ===================== BIBLE CHARACTER MASCOTS ===================== */
.kkelas-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.kkelas-mascot {
  position: absolute; bottom: clamp(-10px, -1vw, 2px); right: clamp(-10px, -0.8vw, 0px);
  width: clamp(82px, 8.5vw, 112px); height: auto; z-index: 5; pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(var(--k-ink-rgb), .28));
  animation: kFloatWave 3s ease-in-out infinite;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .kkelas-cell:hover .kkelas-mascot { animation: kWiggle .5s ease-in-out infinite; }
}
.kkelas-mascot.is-wiggling {
  animation: kWiggle .5s ease-in-out infinite !important;
}

.kids__section-head--song { position: relative; }
.ksong-char {
  position: absolute; right: clamp(0px, 5vw, 70px); bottom: -8px;
  width: clamp(78px, 10vw, 132px); height: auto; z-index: 4; pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(var(--k-ink-rgb), .26));
  animation: kBob 4s ease-in-out infinite;
}

.kids__cta-char {
  position: absolute; left: clamp(-24px, -3vw, 4px); bottom: -4px;
  width: clamp(98px, 13vw, 172px); height: auto; z-index: 4; pointer-events: none;
  filter: drop-shadow(0 12px 14px rgba(var(--k-ink-rgb), .3));
  animation: kBob 4.6s ease-in-out infinite;
}

@media (max-width: 760px) {
  .ksong-char { position: static; display: block; margin: 12px auto 0; width: 112px; }
  .kids__cta-char { position: static; display: block; margin: 0 auto 10px; width: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .kkelas-mascot, .ksong-char, .kids__cta-char { animation: none !important; }
}
