/* ActuallySpeak Kids — speaking-skill reps (js/kids-skills.js): the six rep
   formats, the map/home "I can…" chips with their bronze/silver/gold meter,
   the quick-practice sheet and the how-to clips. Theme tokens with fallbacks;
   A2 ("My Jungle World") variants at the bottom.                           */

:root {
  --sk-bronze: #C9824A; --sk-bronze-soft: #FBE7D6;
  --sk-silver: #8C9AB3; --sk-silver-soft: #ECF0F7;
  --sk-gold: #F2A900;   --sk-gold-soft: #FFF3C4;
  --sk-acc: var(--s-words, #FF9214); --sk-acc-d: var(--s-words-d, #D56500); --sk-acc-soft: var(--s-words-soft, #FFF1DE);
}

/* ------------------------------ shared bits ------------------------------ */
.sk-root { display: flex; flex-direction: column; gap: 10px; }
.sk-coach { margin: 0 0 2px; align-items: center; }
.sk-coach .ask-coachrow__say { flex: 1; min-width: 0; }
.sk-hear {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; cursor: pointer; font-size: 20px;
  background: linear-gradient(180deg, #4FC3F7, var(--j-blue, #2BA6CF)); box-shadow: 0 4px 0 var(--j-blue-d, #12688C);
}
.sk-card { text-align: center; padding: 12px; }
.sk-dots { margin: 0; }

/* pictures: one big card, or a small group (2–3 minis, or "three cows") */
.sk-pics { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 auto; }
.sk-pic { display: block; border-radius: 16px; overflow: hidden; flex: 0 1 auto; }
.sk-pic .ask-wordart { border-radius: 16px; }
.sk-pics.is-1 .sk-pic { width: 100%; max-width: 280px; }
.sk-pics.is-2 .sk-pic { width: 46%; max-width: 160px; }
.sk-pics.is-3 .sk-pic { width: 31%; max-width: 116px; }
.sk-pics.is-count .sk-pic { width: 31%; max-width: 104px; }
.sk-pics.is-count .sk-pic:nth-child(2) { transform: translateY(-6px) rotate(2deg); }
.sk-pics.is-count .sk-pic:nth-child(3) { transform: rotate(-2deg); }
.sk-vs { font-weight: 900; font-size: 1.05em; color: var(--j-ink-2, #4A5182); flex: 0 0 auto; }
.sk-pics.is-mini { gap: 4px; }
.sk-pics.is-mini .sk-pic { width: 64px; max-width: 64px; border-radius: 12px; }
.sk-pics.is-mini.is-2 .sk-pic, .sk-pics.is-mini.is-3 .sk-pic, .sk-pics.is-mini.is-count .sk-pic { width: 42px; max-width: 42px; border-radius: 10px; }
.sk-pics.is-mini .sk-vs { font-size: .7em; }
.sk-pics.is-opt { width: 100%; gap: 3px; }
.sk-pics.is-opt .sk-pic { width: 100%; max-width: none; border-radius: 12px; }
.sk-pics.is-opt.is-2 .sk-pic, .sk-pics.is-opt.is-3 .sk-pic, .sk-pics.is-opt.is-count .sk-pic { width: 33%; border-radius: 8px; }
.sk-pics.is-opt .ask-wordart { border-radius: 12px; }

/* the sentence with its gap */
.sk-frame {
  font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.42em; line-height: 1.55; color: var(--j-ink, #1F2547);
  margin: 10px 0 2px; overflow-wrap: anywhere;
}
.sk-frame--full { font-size: 1.3em; }
.sk-gapslot { min-width: 70px; min-height: 46px; font-size: .92em; font-weight: 900; }
.sk-q { font-weight: 900; font-size: 1.06em; color: var(--j-ink-2, #4A5182); margin: 8px 0 2px; }

/* little explorers: picture options under the frame */
.sk-bpics .ask-opt { padding: 6px; }
.sk-bpics.is-done { display: none; }

/* the "Now say it!" box */
.sk-saybox {
  background: #fff; border-radius: 22px; padding: 12px 12px 6px; text-align: center;
  box-shadow: 0 6px 0 rgba(76,29,149,.22), 0 12px 24px rgba(31,37,71,.14); animation: asksDrop .3s ease-out;
}
.sk-saybox__t { font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.2em; color: var(--sk-acc-d); }
.sk-line {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 8px 0 2px; padding: 10px 14px;
  min-height: 54px; border-radius: 18px; cursor: pointer; font: inherit; font-weight: 900; font-size: 1.12em; line-height: 1.3; text-align: left;
  color: var(--j-ink, #1F2547); background: var(--sk-acc-soft); border: 3px solid color-mix(in srgb, var(--sk-acc) 55%, #fff);
}
.sk-line i { font-style: normal; flex: 0 0 auto; }
.sk-line--me { background: #E8F6FF; border-color: #9ED8F7; }

/* answer: hint + sentence buttons */
.sk-hint { margin-top: 10px; font-weight: 800; color: var(--j-ink-2, #4A5182); font-size: .95em; }
.sk-hint__f { display: block; margin-top: 2px; font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.3em; color: var(--j-ink, #1F2547); }
.sk-hint__f i { font-style: normal; color: var(--sk-acc-d); letter-spacing: 1px; }
.sk-choices { display: flex; flex-direction: column; gap: 8px; }
.sk-choices[hidden] { display: none; }
.sk-choice {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 14px; border-radius: 18px; cursor: pointer; text-align: left;
  font: inherit; font-weight: 900; font-size: 1.08em; line-height: 1.25; color: var(--j-ink, #1F2547);
  background: #fff; border: 3px solid var(--t-line, #E3DAFF); box-shadow: 0 4px 0 var(--t-line-d, #C6B6FA);
}
.sk-choice > i { font-style: normal; flex: 0 0 auto; font-size: .9em; }
.sk-choice.is-reading { border-color: var(--t-pick, #A030E8); box-shadow: 0 4px 0 var(--t-pick-edge, #5B1A9E), var(--t-pick-glow, 0 0 0 4px rgba(236,72,153,.25)); }
.sk-choice.is-right { border-color: var(--t-success-solid, #22C55E); background: var(--t-success-soft, #E6FFE0); box-shadow: 0 4px 0 var(--t-success-edge, #0E8F43); }
.sk-choice.is-wrong { animation: asksShake .4s; border-color: var(--t-wrong, #FF4D6D); }
.sk-choice.is-dim { opacity: .4; }
.sk-choice__pic { flex: 0 0 auto; }
.sk-help {
  align-self: center; min-height: 48px; padding: 6px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 900;
  color: #7A4B00; background: #FFF3C4; border: 2.5px solid #F7C948; box-shadow: 0 3px 0 #E0A800;
}
.sk-help[hidden] { display: none; }

/* ask: the crew character + their answer */
.sk-talk__row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.sk-talk__who { display: flex; flex-direction: column; align-items: center; gap: 3px; font-weight: 900; color: var(--j-ink, #1F2547); }
.sk-talk__who .ask-buddy { width: 66px; height: 66px; font-size: 36px; transition: transform .2s; }
.sk-talk__who .ask-buddy.is-talk { animation: skBob .5s ease-in-out 4 alternate; }
.sk-bub {
  position: relative; margin: 12px 4px 2px; padding: 10px 14px; border-radius: 18px; text-align: left;
  font-weight: 900; font-size: 1.08em; line-height: 1.3; color: var(--j-ink, #1F2547); background: #F4ECFF; border: 2.5px solid #D9C8FF;
}
.sk-bub::before { content: ""; position: absolute; left: 30px; top: -11px; border: 9px solid transparent; border-bottom-color: #D9C8FF; border-top: 0; }
.sk-bub.is-in { animation: asksDrop .3s ease-out; }
.sk-bub[hidden] { display: none; }

/* fix */
.sk-wrong {
  margin: 10px 0 4px; font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.3em; line-height: 1.35;
  color: #B4233F; text-decoration: wavy underline rgba(255,77,109,.6); text-underline-offset: 5px;
}
.sk-wrong.is-fixed { color: var(--t-success-edge, #0E8F43); text-decoration: none; animation: asksDrop .3s ease-out; display: inline-block; }
.sk-fix__q { font-weight: 900; color: var(--j-ink-2, #4A5182); }
.sk-fixopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-fixopt {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 18px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 1.1em; color: var(--j-ink, #1F2547); background: #fff; border: 3px solid var(--t-line, #E3DAFF); box-shadow: 0 4px 0 var(--t-line-d, #C6B6FA);
}
.sk-fixopt.is-right { border-color: var(--t-success-solid, #22C55E); background: var(--t-success-soft, #E6FFE0); }
.sk-fixopt.is-wrong { animation: asksShake .4s; }
.sk-fixopt.is-dim { opacity: .4; }
.sk-chips2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.sk-wchip {
  min-height: 48px; padding: 4px 13px; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 900; font-size: 1.12em;
  color: var(--j-ink, #1F2547); background: #fff; border: 3px solid var(--t-line, #E3DAFF); box-shadow: 0 3px 0 var(--t-line-d, #C6B6FA);
}
.sk-wchip.is-bad { color: #fff; background: var(--t-wrong, #FF4D6D); border-color: #fff; box-shadow: 0 3px 0 #B4233F; }
.sk-wchip.is-hint { box-shadow: 0 0 0 4px var(--t-sun, #FFC800); animation: asksBreath 1s ease-in-out infinite; }
.sk-fixpick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 8px; border-radius: 16px; background: #F4ECFF; border: 2px dashed var(--t-pick, #A030E8); }
.sk-fixpick[hidden] { display: none; }
.sk-fixpick > span { width: 100%; font-weight: 900; color: var(--j-ink-2, #4A5182); }
.sk-no { animation: asksShake .4s; }

/* quick-fire */
.sk-quick { position: relative; }
.sk-quick__n { margin-top: 6px; font-weight: 800; color: var(--j-ink-2, #4A5182); }
.sk-quick.is-run .sk-pics.is-1 .sk-pic { max-width: 240px; }
.sk-quick.is-hit { animation: skHit .45s ease; box-shadow: 0 0 0 5px var(--t-success-solid, #22C55E), 0 6px 0 rgba(76,29,149,.22); }
.sk-quick.is-miss { opacity: .85; }
.sk-quick__mic { margin-top: 8px; font-weight: 900; color: var(--j-ink-2, #4A5182); }
.sk-quick__mic.is-on { color: var(--t-cta-solid, #FF5A4E); animation: skBlink 1.2s ease-in-out infinite; }
.sk-quick__score { align-self: center; font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.3em; color: #fff; text-shadow: var(--t-on-bg-shadow, 0 2px 0 rgba(76,29,149,.55)); }
.sk-ring { position: absolute; right: 10px; top: 10px; width: 46px; height: 46px; z-index: 3; display: grid; place-items: center; }
.sk-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.sk-ring circle { fill: #fff; stroke: var(--t-sun, #FFC800); stroke-width: 5; stroke-dasharray: 120; stroke-dashoffset: 0; }
.sk-ring.is-go circle { animation: skRing var(--sk-win, 3500ms) linear forwards; }
.sk-ring b { position: relative; font-family: 'Fredoka', var(--font); font-weight: 700; color: var(--j-ink, #1F2547); }
.sk-said { background: linear-gradient(180deg, #8CFF5A, #22C55E); box-shadow: 0 6px 0 var(--t-success-edge, #0E8F43); }
.sk-qend { padding: 18px 12px; }
.sk-qend__big { font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 3em; line-height: 1; color: var(--t-sun-d, #E08A00); }
.sk-qend__t { font-weight: 900; font-size: 1.25em; margin: 6px 0 10px; }

/* role-play */
.sk-rp__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.sk-rp__who .ask-buddy { width: 58px; height: 58px; font-size: 32px; }
.sk-rp__t { flex: 1; min-width: 0; text-align: left; }
.sk-rp__t b { display: block; font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.2em; }
.sk-rp__t small { font-weight: 800; color: var(--j-ink-2, #4A5182); }
.sk-rp__dots { display: flex; gap: 4px; }
.sk-rp__dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--t-line, #E3DAFF); }
.sk-rp__dots i.on { background: var(--t-success-solid, #22C55E); }
.sk-rp__dots i.is-now { background: var(--t-sun, #FFC800); box-shadow: 0 0 0 3px rgba(255,200,0,.35); }
.sk-chat { display: flex; flex-direction: column; gap: 8px; }
.sk-msg { display: flex; align-items: flex-end; gap: 6px; animation: asksDrop .3s ease-out; }
.sk-msg.is-me { justify-content: flex-end; }
.sk-msg__av .ask-buddy { width: 34px; height: 34px; font-size: 18px; border-width: 2px; }
.sk-msg__b {
  max-width: 82%; padding: 9px 13px; border-radius: 18px; font-weight: 900; font-size: 1.04em; line-height: 1.3; color: var(--j-ink, #1F2547);
  background: #fff; box-shadow: 0 3px 0 rgba(76,29,149,.18);
}
.sk-msg.is-them .sk-msg__b { border-bottom-left-radius: 6px; }
.sk-msg.is-me .sk-msg__b { background: #FFF1DE; border: 2px solid #FFC98A; border-bottom-right-radius: 6px; }
.sk-turn { display: flex; flex-direction: column; gap: 8px; }
.sk-turn:empty { display: none; }
.sk-turn__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.15em; color: #fff; text-shadow: var(--t-on-bg-shadow, 0 2px 0 rgba(76,29,149,.55)); }
.sk-turn__pic--big { align-self: center; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 3px 0 rgba(76,29,149,.18); }
.sk-rp__end { text-align: center; background: #fff; border-radius: 18px; padding: 12px; font-weight: 800; box-shadow: 0 4px 0 rgba(76,29,149,.2); }
.sk-rp__end b { display: block; font-size: 1.15em; margin-top: 2px; }

/* intro + model */
.sk-intro { text-align: center; padding: 14px 12px 12px; }
.sk-intro__k {
  display: inline-block; padding: 4px 14px; border-radius: 999px; font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.05em; color: #fff;
  background: var(--t-cta, linear-gradient(180deg,#FF9A1A,#FF3D7F)); box-shadow: 0 3px 0 var(--t-cta-edge, #C21E5C);
}
.sk-intro__can { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 8px; font-size: 1.2em; line-height: 1.2; }
.sk-intro__can b { font-family: 'Fredoka', var(--font); font-weight: 700; }
.sk-intro__ic { font-size: 1.5em; }
.sk-intro__medal { font-size: 1.4em; }
.sk-intro__who { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 1.1em; margin: 4px 0 8px; }
.sk-intro__who .ask-buddy { width: 54px; height: 54px; font-size: 30px; }
.sk-model {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 18px; cursor: pointer; text-align: left;
  font: inherit; color: var(--j-ink, #1F2547); background: var(--sk-acc-soft); border: 3px solid color-mix(in srgb, var(--sk-acc) 50%, #fff);
}
.sk-model__t { flex: 1; min-width: 0; font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.22em; line-height: 1.25; }
.sk-model i { font-style: normal; }
.sk-go { margin-top: 2px; }
.sk-story { padding: 10px; }
.sk-story__pic { border-radius: 16px; overflow: hidden; max-height: 180px; }
.sk-story__pic img, .sk-story__pic .askrd-pic, .sk-story__pic > * { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.sk-story__l { display: block; width: 100%; margin-top: 8px; padding: 6px 8px; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.08em; font-style: italic; color: var(--j-ink, #1F2547); }
.sk-story__l i { font-style: normal; }

/* the meter */
.sk-meter { display: flex; align-items: center; gap: 8px; margin-top: 10px; text-align: left; }
.sk-meter__bar { position: relative; flex: 0 0 78px; height: 10px; border-radius: 999px; background: #EEE8FB; overflow: hidden; }
.sk-meter__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #FFC800, #FF9214); }
.sk-meter.is-bronze .sk-meter__bar i { background: linear-gradient(90deg, #E2A06B, var(--sk-bronze)); }
.sk-meter.is-silver .sk-meter__bar i { background: linear-gradient(90deg, #C6D0E0, var(--sk-silver)); }
.sk-meter.is-gold .sk-meter__bar i { background: linear-gradient(90deg, #FFE14D, var(--sk-gold)); }
.sk-meter__t { font-weight: 800; font-size: .86em; color: var(--j-ink-2, #4A5182); }
.sk-meter__t small { font-weight: 800; opacity: .8; white-space: nowrap; }
.sk-meter.is-compact { margin-top: 3px; gap: 6px; }
.sk-meter.is-compact .sk-meter__bar { flex-basis: 52px; height: 7px; }
.sk-meter.is-compact .sk-meter__t { font-size: .74em; }

/* ------------------------------ the chips ------------------------------ */
.sk-chips { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.sk-chips__k { font-weight: 900; font-size: .72em; color: var(--j-ink-2, #4A5182); text-transform: uppercase; letter-spacing: .03em; }
.sk-chip {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 64px; padding: 7px 10px; border-radius: 18px; cursor: pointer; text-align: left;
  font: inherit; color: var(--j-ink, #1F2547); background: var(--sk-acc-soft); border: 2.5px solid color-mix(in srgb, var(--sk-acc) 45%, #fff);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--sk-acc) 40%, #fff);
}
.sk-chip:active { transform: translateY(2px); box-shadow: none; }
.sk-chip.is-bronze { background: var(--sk-bronze-soft); border-color: #EBC3A0; box-shadow: 0 3px 0 #E0B088; }
.sk-chip.is-silver { background: var(--sk-silver-soft); border-color: #CBD3E1; box-shadow: 0 3px 0 #B9C3D6; }
.sk-chip.is-gold { background: var(--sk-gold-soft); border-color: #F7D35A; box-shadow: 0 3px 0 #E8B500; }
.sk-chip__ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: #fff; box-shadow: 0 2px 0 rgba(76,29,149,.14); }
.sk-chip__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sk-chip__t b { font-weight: 900; font-size: .92em; line-height: 1.15; }
.sk-chip__t small { font-weight: 800; font-size: .84em; color: var(--sk-acc-d); line-height: 1.25; margin-top: 1px; }
.sk-chip .sk-meter { margin-top: 4px; }
.sk-chip__medal { flex: 0 0 auto; font-size: 24px; line-height: 1; }
.sk-chip__medal i { font-style: normal; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; color: #fff; background: var(--sk-acc); box-shadow: 0 2px 0 var(--sk-acc-d); }
.sk-chip.is-compact { min-height: 54px; padding: 6px 9px; }
.sk-chip.is-compact .sk-chip__ic { width: 34px; height: 34px; font-size: 20px; }
.sk-chip.is-compact .sk-chip__t small { font-size: .8em; }
.asks-goals .sk-chips { margin-top: 8px; }

/* home card */
.sk-home { padding: 10px 12px 12px; margin-top: 12px; }
.sk-home__h { display: flex; align-items: center; gap: 8px; font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.1em; }
.sk-home__h small { margin-left: auto; font-family: var(--font); font-weight: 800; font-size: .74em; color: var(--j-ink-2, #4A5182); }

/* -------------------------- the practice sheet -------------------------- */
.sk-ov { position: fixed; inset: 0; z-index: 8500; display: flex; align-items: flex-end; justify-content: center; background: rgba(43,26,94,.5); opacity: 0; transition: opacity .2s; }
.sk-ov.is-in { opacity: 1; }
.sk-ov.is-out { opacity: 0; }
.sk-sheet {
  position: relative; width: min(480px, 100%); max-height: 92vh; overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #F4F9FF, #E6F7FF); box-shadow: 0 -10px 30px rgba(0,0,0,.25);
  transform: translateY(30px); transition: transform .25s cubic-bezier(.2,1.2,.4,1);
}
.sk-ov.is-in .sk-sheet { transform: none; }
.sk-sheet__x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 18px; font-weight: 900; color: var(--j-ink, #1F2547); background: #fff; box-shadow: 0 3px 0 rgba(76,29,149,.18); z-index: 2; }
.sk-sheet__body { display: flex; flex-direction: column; gap: 10px; }
.sk-sheet__h { display: flex; align-items: center; gap: 10px; padding-right: 48px; }
.sk-sheet__h small { display: block; font-weight: 900; font-size: .78em; color: var(--j-ink-2, #4A5182); text-transform: uppercase; }
.sk-sheet__h b { display: block; font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.3em; line-height: 1.15; }
.sk-sheet__ic { font-size: 36px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: 0 3px 0 rgba(76,29,149,.16); flex: 0 0 auto; }
.sk-sheet__medal { font-size: 32px; margin-left: auto; }
.sk-sheet__frame { font-weight: 900; font-size: 1.05em; color: var(--sk-acc-d); }
.sk-sheet__got { align-self: center; padding: 4px 14px; border-radius: 999px; font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.3em; color: #fff; background: var(--t-success, #22C55E); box-shadow: 0 3px 0 var(--t-success-edge, #0E8F43); animation: asksDrop .3s ease-out; }
.sk-ladder { display: flex; justify-content: center; gap: 8px; }
.sk-ladder span { padding: 4px 12px; border-radius: 999px; font-weight: 900; background: #fff; color: var(--j-ink-2, #4A5182); opacity: .55; box-shadow: 0 2px 0 rgba(76,29,149,.14); }
.sk-ladder span.on { opacity: 1; color: var(--j-ink, #1F2547); }
.sk-sheet .sk-root { gap: 8px; }
.sk-sheet .sk-pics.is-1 .sk-pic { max-width: 200px; }

/* -------------------------------- motion -------------------------------- */
@keyframes skRing { to { stroke-dashoffset: 120; } }
@keyframes skHit { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes skBlink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes skBob { from { transform: translateY(0) rotate(0); } to { transform: translateY(-4px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) {
  .sk-quick.is-hit, .sk-msg, .sk-saybox, .sk-bub.is-in, .sk-talk__who .ask-buddy.is-talk, .sk-quick__mic.is-on { animation: none !important; }
}
.ask-reduced .sk-quick.is-hit, .ask-reduced .sk-msg, .ask-reduced .sk-saybox { animation: none !important; }

/* ---------------------- little explorers: bigger targets ---------------------- */
.sk-root.is-little .sk-choice { min-height: 64px; font-size: 1.12em; }
.sk-root.is-little .sk-frame { font-size: 1.5em; }

/* ------------------------- A2 "My Jungle World" ------------------------- */
.askm.is-a2 .sk-chip, .askh.is-a2 .sk-chip { --sk-acc: #2F8B3B; --sk-acc-d: #1E6B2A; --sk-acc-soft: #EAF7E6; }
.askm.is-a2 .sk-chip__ic, .askh.is-a2 .sk-chip__ic { background: #FFF9EC; }
.askh.is-a2 .sk-home { background: rgba(255,249,236,.96); }
.askh.is-a2 .sk-home__h { color: #1E4D2B; }

/* ---------------------------- how-to clips ---------------------------- */
.ht-skgap { display: inline-block; min-width: 44px; border-radius: 10px; border: 3px dashed #A030E8; padding: 0 6px; color: transparent; }
.ht-skb.is-play .ht-skgap { animation: htSkGap 5s ease infinite; }
@keyframes htSkGap { 0%, 38% { color: transparent; background: #fff; } 42%, 96% { color: #2B1A5E; background: #DCFCE7; border-style: solid; border-color: #16A34A; } 100% { color: transparent; } }
.ht-skb.is-play .ht-ok { animation: htGood 5s ease infinite; }
.ht-skb.is-play .ht-hand { animation: htSkbHand 5s ease-in-out infinite; }
@keyframes htSkbHand { 0% { left: 80%; top: 110%; } 20% { left: 48%; top: 50%; } 26% { left: 48%; top: 47%; transform: scale(.85); } 32% { left: 48%; top: 50%; transform: none; } 60% { left: 52%; top: 78%; } 64% { left: 52%; top: 75%; transform: scale(.85); } 68%, 100% { left: 52%; top: 78%; transform: none; } }
.ht-skb.is-play .ht-mic__btn, .ht-ska.is-play .ht-mic__btn, .ht-skk.is-play .ht-mic__btn { animation: htRec 5s ease infinite; }
.ht-skb.is-play .ht-star { left: 50%; top: 18%; animation: htStar2 5s ease infinite; }
.ht-skq { opacity: 1 !important; }
.ht-ska__me { opacity: 0; }
.ht-ska.is-play .ht-ska__me { animation: htShow2 5s ease infinite; }
.ht-ska.is-play .ht-hand { animation: htSkaHand 5s ease-in-out infinite; }
@keyframes htSkaHand { 0% { left: 80%; top: 110%; } 20% { left: 52%; top: 84%; } 24% { left: 52%; top: 81%; transform: scale(.85); } 28%, 100% { left: 52%; top: 84%; transform: none; } }
.ht-ska.is-play .ht-star { left: 72%; top: 30%; animation: htStar2 5s ease infinite; }
.ht-skk__q { opacity: 1; }
.ht-skk__a { opacity: 0; }
.ht-skk.is-play .ht-skk__a { animation: htShow2 5s ease infinite; animation-delay: .8s; }
.ht-skk.is-play .ht-hand { animation: htSkaHand 5s ease-in-out infinite; }
.ht-skbad { border-radius: 8px; padding: 0 4px; }
.ht-skf.is-play .ht-skbad { animation: htSkBad 5s ease infinite; }
@keyframes htSkBad { 0%, 22% { background: transparent; color: #2B1A5E; } 26%, 56% { background: #FF4D6D; color: #fff; } 60%, 100% { background: #DCFCE7; color: #0E8F43; } }
.ht-skf.is-play .ht-ok { animation: htGood 5s ease infinite; }
.ht-skf.is-play .ht-hand { animation: htSkfHand 5s ease-in-out infinite; }
@keyframes htSkfHand { 0% { left: 80%; top: 110%; } 18% { left: 62%; top: 52%; } 22% { left: 62%; top: 49%; transform: scale(.85); } 26% { left: 62%; top: 52%; transform: none; } 48% { left: 42%; top: 80%; } 52% { left: 42%; top: 77%; transform: scale(.85); } 56%, 100% { left: 42%; top: 80%; transform: none; } }
.ht-skq2__p { position: relative; }
.ht-skq2__p i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; opacity: 0; }
.ht-skq2.is-play .ht-skq2__p i { animation: htSkPic 4.5s steps(1) infinite; }
.ht-skq2.is-play .ht-skq2__p i:nth-child(2) { animation-delay: 1.5s; }
.ht-skq2.is-play .ht-skq2__p i:nth-child(3) { animation-delay: 3s; }
@keyframes htSkPic { 0% { opacity: 1; } 33.3%, 100% { opacity: 0; } }
.ht-skq2 .ht-bubble { opacity: 1; }
.ht-skr .ht-bubble { opacity: 0; font-size: 15px; }
.ht-skr__b { background: #FFF1DE !important; align-self: flex-end; margin-right: 14px; }
.ht-skr__a, .ht-skr__c { align-self: flex-start; margin-left: 14px; }
.ht-skr.is-play .ht-skr__a { animation: htSkMsg 6s ease infinite; }
.ht-skr.is-play .ht-skr__b { animation: htSkMsg 6s ease infinite; animation-delay: .9s; }
.ht-skr.is-play .ht-skr__c { animation: htSkMsg 6s ease infinite; animation-delay: 1.8s; }
@keyframes htSkMsg { 0% { opacity: 0; transform: translateY(8px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ht-skr.is-play .ht-hand { animation: htSkaHand 6s ease-in-out infinite; }

/* ---------------------- grown-ups: speaking skills ---------------------- */
.sk-par__p { margin: 0 0 8px; font-weight: 700; font-size: .88em; color: var(--j-ink-2, #4A5182); }
.sk-par__land { margin: 10px 0 4px; font-weight: 900; }
.sk-par__land small { font-weight: 800; color: var(--j-ink-2, #4A5182); }
.sk-par__row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--t-line, #E3DAFF); }
.sk-par__ic { font-size: 20px; flex: 0 0 auto; }
.sk-par__t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .9em; }
.sk-par__t small { font-weight: 700; color: var(--sk-acc-d); }
.sk-par__n { flex: 0 0 auto; text-align: right; font-size: .82em; font-weight: 800; display: flex; flex-direction: column; }
.sk-par__n small { font-weight: 700; color: var(--j-ink-2, #4A5182); }
.sk-par__m { flex: 0 0 26px; text-align: center; font-size: 18px; }

/* Free Talk: the land's skill line is the first suggestion */
.asktalk-chip.is-skill { border-color: var(--sk-gold, #F2A900) !important; background: var(--sk-gold-soft, #FFF3C4) !important; }
.asktalk-chip.is-skill::before { content: "⭐ "; }

/* a whole question in Kiki's bubble: big, calm, no candy pill */
.sk-cq { font-family: 'Fredoka', var(--font); font-weight: 700; font-size: 1.16em; line-height: 1.25; color: #2B1A5E; }
/* emoji icons always in colour */
.sk-intro__ic, .sk-chip__ic, .sk-sheet__ic, .sk-par__ic, .sk-chip__medal, .sk-intro__medal, .sk-sheet__medal { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-weight: 400; }
.sk-line[hidden], .sk-talk__pic[hidden] { display: none; }
.sk-talk .ask-buddy b, .sk-msg__av .ask-buddy b, .sk-rp__who .ask-buddy b, .sk-intro__who .ask-buddy b { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.sk-chip .sk-meter { flex-wrap: nowrap; }
.sk-chip .sk-meter__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-par__n { white-space: nowrap; }
/* lesson win page: the skill this lesson fed */
.sk-winchip { width: 100%; max-width: 420px; margin: 8px auto 0; }
.sk-winchip .sk-chip { background: rgba(255,255,255,.94); }
/* the practice sheet: room for its ✕ above the quick-fire card */
.sk-sheet .sk-root { margin-top: 44px; }
.sk-sheet .sk-quick__score { color: var(--j-ink, #1F2547); text-shadow: none; }

/* ---------------- subtitles never cover a skill screen's buttons ----------------
   Every line Kiki or a crew friend says on a skill screen is already on the
   screen (the coach bubble, the question, the sentence, the chat), so the
   floating caption is not needed there and would sit on the Hear/Skip row.
   While a How-to clip is open over a skill screen, its caption moves to the
   top edge, over the dimmed bar, where there is nothing to tap.
   (Everywhere else the same rule is applied by kids-core.js: no subtitle when
   its words are on screen, else a free spot, else none — .is-off.) */
body:has(.sk-root) #ask-caption,
body:has(.sk-ov) #ask-caption { display: none !important; }
body:has(.ht-ov) #ask-caption:not([hidden]):not(.is-off),
body:has(.sk-root):has(.ht-ov) #ask-caption:not([hidden]):not(.is-off) {
  display: block !important; top: calc(10px + env(safe-area-inset-top)); bottom: auto; z-index: 9001;
}
.sk-home__h { flex-wrap: wrap; row-gap: 0; }
.sk-home__h small { white-space: nowrap; }

/* a model line with two or three pictures: pictures on their own row */
.sk-model { flex-wrap: wrap; }
.sk-model__t { flex: 1 1 150px; }
.sk-model:has(.sk-pics.is-2) .sk-pics, .sk-model:has(.sk-pics.is-3) .sk-pics { flex: 1 0 100%; justify-content: flex-start; }
