.category-chant-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:7px 10px;border:1px solid #d9e5cd;border-radius:12px;background:#eef4df;color:#708358;font:inherit;font-size:12px;white-space:nowrap;box-shadow:none}
.learn-chant-dialog{box-sizing:border-box;width:min(calc(100vw - 24px),650px);max-height:calc(100dvh - 32px);overflow:hidden;border:1px solid #fffef8;border-radius:28px;padding:0;background:#fffaf0;color:#59724c;box-shadow:0 20px 70px #304f2b36}
.learn-chant-dialog[open]{display:flex;flex-direction:column}
.learn-chant-dialog::backdrop{background:#344f3a55;backdrop-filter:blur(4px)}
.learn-chant-dialog header{display:flex;flex:none;justify-content:flex-end;align-items:center;min-height:54px;padding:5px 9px 0}
.learn-chant-accessible-title{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.learn-chant-close,.learn-chant-play{display:inline-grid;place-items:center;flex:0 0 44px;box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid transparent;border-radius:50%;box-shadow:none;font:inherit;line-height:1;cursor:pointer;touch-action:manipulation}
.learn-chant-close{background:transparent;color:#93a17f;font-size:29px;font-weight:400}
.learn-chant-stage{display:flex;align-items:flex-end;gap:10px;min-height:0;flex:0 1 auto;padding:0 16px 7px 9px}
.learn-chant-twins{display:block;flex:none;align-self:flex-end;width:clamp(64px,18vw,110px);height:auto;object-fit:contain;transform-origin:center bottom;margin-bottom:23px}
.learn-chant-bubble{display:flex;position:relative;flex:1;min-width:0;min-height:0;max-height:calc(100dvh - 170px);border:2px solid #dfe7d4;border-radius:25px;background:#fffef8;box-shadow:0 3px 0 #edf0e4}
.learn-chant-lyrics{box-sizing:border-box;display:grid;flex:1;grid-template-columns:minmax(0,1fr);align-content:start;column-gap:12px;row-gap:4px;min-height:0;max-height:calc(100dvh - 174px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:8px 10px 12px;margin:0;scrollbar-width:thin;scrollbar-color:#dce5cd transparent;text-align:center;font-family:Kaiti SC,STKaiti,"Songti SC",serif;font-size:clamp(34px,9.4vw,46px);font-weight:500;line-height:1.7;letter-spacing:.025em;color:#667d56}
.learn-chant-line{display:block;grid-column:1/-1;min-width:0;padding:14px 0 5px;line-height:1.65;white-space:normal;overflow-wrap:anywhere}
.learn-chant-line:first-child{padding-top:22px}
.chant-lyric-tail{display:inline-block;white-space:nowrap}
.learn-chant-line.is-short{grid-column:auto;font-size:.98em}
.learn-chant-line.is-long{font-size:.94em}
.chant-line-break{display:block;grid-column:1/-1;height:8px;font-size:0;line-height:0;white-space:pre}
.learn-chant-lyrics .chant-lyric-character{position:relative;display:inline-block;vertical-align:middle;white-space:pre;line-height:1.2;margin-inline:.055em;padding:.02em .04em;border:2px solid transparent;border-radius:10px;transform-origin:center;transition:color .1s,background-color .1s,border-color .1s}
.learn-chant-lyrics .chant-lyric-target{font-weight:650;color:#547345}
.learn-chant-lyrics .is-current{z-index:1;color:#4d7738;background:#e8f0d8;border-color:#b8cd9c;box-shadow:0 3px 8px #607b4120;transform:scale(1.04)}
.chant-dinosaur{position:absolute;left:50%;bottom:calc(100% + 3px);display:block;width:1.25em;height:1.1em;margin-left:-.625em;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:clamp(21px,6vw,28px);line-height:1;text-align:center;pointer-events:none;user-select:none;z-index:3}
.chant-dinosaur::before{content:"🦖"}
.chant-dinosaur[hidden]{display:none!important}
.chant-dinosaur.is-hopping{animation:chant-dinosaur-hop .46s ease-in-out infinite}
.learn-chant-controls{display:flex;flex:none;justify-content:center;gap:22px;padding:7px 18px 16px}
.learn-chant-game{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #dbe5ce;border-radius:50%;background:#edf3e0;box-shadow:none}.learn-chant-game img{display:block;width:25px;height:25px;opacity:.65}.learn-chant-game:focus-visible{outline:2px solid #88a16e;outline-offset:3px}
.learn-chant-stage.is-singing .learn-chant-twins{animation:chant-twins-sway .68s ease-in-out infinite}
.learn-chant-play{border-color:#e2e9d6;background:#f0f4e6;color:#7b9465;font-size:18px}
.learn-chant-play[aria-pressed="true"]{background:#e4edda;color:#627f4d}
.learn-chant-play:disabled{background:#f3f2ea;color:#b0b6a2;border-color:#eaece0;cursor:default}
.learn-chant-close:focus-visible,.learn-chant-play:focus-visible{outline:2px solid #88a16e;outline-offset:3px}
.learn-chant-status{flex:none;margin:5px 22px 0;font-size:12px;line-height:1.7;text-align:center;color:#8a7960}
.learn-chant-status[hidden]{display:none}
.learn-sound-toggle{font:inherit;font-size:11px;border:1px solid #e0e7d5;border-radius:12px;background:#f7f9ed;color:#849572;padding:6px 9px;min-height:36px;box-shadow:none}
@keyframes chant-word-hop{0%,100%{transform:scale(1.04)}45%{transform:scale(1.07)}}
@keyframes chant-dinosaur-hop{0%,100%{transform:translateY(0) rotate(-5deg)}45%{transform:translateY(-4px) rotate(5deg)}}
@keyframes chant-twins-sway{0%,100%{transform:rotate(-2deg) translateY(0)}50%{transform:rotate(2deg) translateY(-3px)}}
.learn-chant-lyrics .is-jumping{animation:chant-word-hop .3s ease-out both}
@media(max-width:420px){.learn-chant-line.is-short[data-letter-count="3"]{grid-column:1/-1}}
@media(max-width:600px){.curriculum-heading.has-learning-chant{flex-wrap:wrap}.curriculum-heading.has-learning-chant .category-toggle{flex-basis:100%}.learn-chant-stage{flex-direction:column;align-items:stretch;gap:16px;padding:0 12px 7px}.learn-chant-twins{width:120px;align-self:flex-start;margin:0 0 -1px 10px}.learn-chant-bubble{flex:0 1 auto;align-self:stretch;max-height:calc(100dvh - 280px)}.learn-chant-bubble::before,.learn-chant-bubble::after{content:"";position:absolute;z-index:2;width:0;height:0;pointer-events:none}.learn-chant-bubble::before{left:33px;top:-16px;border-right:17px solid transparent;border-bottom:16px solid #dfe7d4}.learn-chant-bubble::after{left:35px;top:-12px;border-right:13px solid transparent;border-bottom:13px solid #fffef8}.learn-chant-lyrics{max-height:calc(100dvh - 284px)}}
@media(max-width:360px){.learn-chant-lyrics{padding-inline:3px;font-size:34px}.learn-chant-lyrics .chant-lyric-character{margin-inline:.025em;padding-inline:0}.learn-chant-bubble{border-radius:21px}}
@media(prefers-reduced-motion:reduce){.learn-chant-lyrics .is-jumping,.chant-dinosaur.is-hopping,.learn-chant-stage.is-singing .learn-chant-twins{animation:none;transform:none}.learn-chant-lyrics .chant-lyric-character{transition:none}}
