:root{font-family:"Avenir Next",Avenir,"Nunito",ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203d43;background:#f4f7fa;font-synthesis:none;font-size:16px;--green:#1b5845;--ink:#203d43;--yellow:#ffe184;--border:#dce4e5}
html,body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #245bbb;outline-offset:5px}button:disabled{cursor:default}button[hidden],[hidden]{display:none!important}.app-shell{max-width:1152px;margin:0 auto;padding:30px 36px 20px}.topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.brand{display:flex;align-items:center;gap:12px;color:var(--green);text-decoration:none;font-size:1.85rem;font-weight:800;letter-spacing:-1.2px}.brand-key{display:grid;place-items:center;width:43px;height:45px;border-radius:12px;background:var(--green);box-shadow:0 3px 0 #123d30;color:var(--yellow);font-size:2.05rem;line-height:1;transform:rotate(-7deg);padding-bottom:3px}.brand-dot{color:#df9b33}.toolbar{display:flex;gap:10px}.utility{border:1px solid var(--border);border-radius:13px;background:#fff;display:flex;align-items:center;justify-content:center;gap:8px;min-height:45px;padding:10px 15px;font-size:.875rem;font-weight:650;box-shadow:0 2px 0 #e8edef}.utility:hover{background:#edf4f0;border-color:#a8bcaf}.utility svg,.instruction svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sound-off{display:none}#sound[aria-pressed=false] .sound-off{display:block}#sound[aria-pressed=false] .sound-waves{display:none}.playground{background:white;border:1px solid var(--border);border-radius:27px;padding:18px 18px 0;box-shadow:0 5px 0 #e8edef}.stage-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 4px 14px}.stage-tag{font-size:.75rem;letter-spacing:1.6px;font-weight:800}.stage-note{font-size:.875rem;color:#617278}.stage{position:relative;isolation:isolate;overflow:hidden;border-radius:17px;background:#fff0b9;height:21.875rem;display:grid;place-items:center;text-align:center;--accent:#675119;--soft:#ffe184}/* Each color pairs with contrasting ink for clear letters and numbers. */
.stage[data-color=red]{background:#ffb8b1;--accent:#7e2026;--soft:#f28b82}
.stage[data-color=green]{background:#c8efd8;--accent:#17533e;--soft:#92d7ae}
.stage[data-color=blue]{background:#cce4ff;--accent:#224f85;--soft:#95c5fa}
.stage[data-color=pink]{background:#ffd1e3;--accent:#843056;--soft:#f2a3c2}
.stage[data-color=yellow]{background:#ffe99b;--accent:#675119;--soft:#f8cf61}
.stage[data-color=purple]{background:#dbc4ff;--accent:#56338a;--soft:#b79ae8}
.stage[data-color=orange]{background:#ffd0a0;--accent:#783b15;--soft:#f5aa64}
.stage[data-color=white]{background:#fff;--accent:#20252b;--soft:#e1e6eb;--bubble:#edf1f5}
.stage[data-color=black]{background:#111;--accent:#fff;--soft:#343434;--bubble:#343434}
.idle{position:relative;z-index:1;padding:22px}.sample-keys{display:flex;align-items:center;justify-content:center;gap:13px;margin:0 0 22px}.sample-keys span{width:54px;height:58px;display:grid;place-items:center;border-radius:13px;font-size:2rem;font-weight:750;line-height:1;box-shadow:0 5px 0 #21453620;background:#1b5845;color:#fff;transform:rotate(-10deg)}.sample-keys span:nth-child(2){background:#fff;color:#274c70;transform:translateY(-7px) rotate(5deg)}.sample-keys span:nth-child(3){background:#f4aaca;color:#70294a;transform:rotate(12deg)}h1{font-size:clamp(2.5rem,4.3vw,3.5rem);font-weight:800;letter-spacing:-1.8px;line-height:1.12;margin:0;color:#254638}.idle p{font-size:1rem;color:#526044;margin:16px 0 0}.symbol-display{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;z-index:1;height:100%;width:100%}.big-symbol{font-family:"Arial Rounded MT Bold","Avenir Next",Arial,sans-serif;color:var(--accent);font-size:clamp(10rem,23vw,17rem);font-weight:750;line-height:.95;letter-spacing:-.02em}.symbol-details{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:21px;font-size:1rem;color:var(--accent)}#symbol-detail{font-weight:700}.hold-label{font-size:.875rem;opacity:.9;border-left:1px solid currentColor;padding-left:15px}.confetti{position:absolute;z-index:0;background:var(--soft);pointer-events:none}.confetti-one{width:27px;height:27px;border-radius:50%;top:22%;left:10%}.confetti-two{width:13px;height:49px;border-radius:10px;transform:rotate(36deg);bottom:15%;left:19%}.confetti-three{width:40px;height:40px;border-radius:50%;border:9px solid var(--soft);background:transparent;top:19%;right:14%}.confetti-four{width:33px;height:11px;border-radius:9px;transform:rotate(-28deg);bottom:24%;right:9%}.stage-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 5px}.instruction{display:flex;gap:9px;align-items:center;font-size:.875rem;color:#52666c}.instruction svg{flex-shrink:0}.range-label{font-size:.8125rem;color:#62757c;font-weight:650}.keyboard-section{padding-top:25px}.keyboard-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px;padding:0 3px}.keyboard-heading h2{font-size:1rem;margin:0;font-weight:600}.case-control{display:flex;background:#e6ecee;border-radius:10px;padding:3px;gap:3px}.case-control button{border:0;border-radius:7px;min-width:53px;min-height:33px;padding:4px 10px;font-size:.875rem;font-weight:750;color:#617176}.case-control button[aria-pressed=true]{background:var(--green);color:#fff;box-shadow:0 2px 3px #1b584529}.case-control button[aria-pressed=false]{background:transparent}.keyboard{width:min(100%,792px);margin:auto}.number-keys,.key-row{display:flex;justify-content:center;gap:9px}.number-keys{padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid #dce4e5}.letter-keys{display:grid;gap:9px}.key{display:flex;align-items:center;justify-content:center;width:60px;height:48px;flex-shrink:1;min-width:0;border:1px solid #d1dddc;border-radius:11px;background:#fff;box-shadow:0 4px 0 #dce5e6;font-size:1.25rem;font-weight:700;user-select:none;touch-action:none;-webkit-user-select:none;color:#354d52;transition:background .1s,transform .1s,box-shadow .1s}.number-keys .key{background:#fbe9b5;border-color:#e8d797;box-shadow:0 4px 0 #e8dbb5;color:#695221}.key[data-vowel=true]{background:#dfefe7;border-color:#c6dfd2;box-shadow:0 4px 0 #c8ded3;color:#20543e}.key:hover{border-color:#8ba499;background:#eaf3f0}.key.held,.key:active{transform:translateY(4px);background:var(--green);border-color:var(--green);color:white;box-shadow:0 0 0 #c8ded3}footer{display:flex;align-items:center;gap:7px;margin-top:31px;font-size:.8125rem;color:#60737a}.tiny-key{color:#3d7158;font-size:1.1rem}.footer-tip{margin-left:auto}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.pop{animation:pop .18s ease-out}@keyframes pop{from{transform:scale(.82);opacity:.65}to{transform:scale(1);opacity:1}}:fullscreen{background:#f4f7fa;overflow:auto}:fullscreen .app-shell{max-width:1250px;padding-top:4vh}:fullscreen .stage{height:clamp(350px,43vh,600px)}:fullscreen .big-symbol{font-size:clamp(16rem,30vh,24rem)}
@media(min-width:1500px){.app-shell{padding-top:40px}.stage{height:25rem}.key{height:52px}.keyboard-section{padding-top:29px}}
@media(max-width:680px){.app-shell{padding:20px 17px 20px}.topbar{gap:10px;margin-bottom:22px}.brand{font-size:1.55rem;gap:9px}.brand-key{width:36px;height:39px;font-size:1.8rem}.toolbar{gap:7px}.utility{padding:10px;min-width:43px}.fullscreen span{display:none}.stage-note{display:none}.playground{padding:12px 12px 0;border-radius:22px}.stage-top{padding:3px 4px 13px}.stage{height:20.625rem;border-radius:13px}.idle{padding:18px}h1{font-size:2.65rem}.idle p{max-width:240px;line-height:1.5;margin:15px auto 0}.stage-bottom{padding:15px 2px}.range-label{display:none}.instruction{font-size:.8125rem;gap:7px}.keyboard-heading h2{font-size:.9375rem}.keyboard-section{padding-top:22px}.number-keys{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}.key-row{gap:6px}.key{height:45px;width:100%;font-size:1.125rem;border-radius:8px}.letter-keys{gap:8px}.key-row:nth-child(2){padding:0 16px}.key-row:nth-child(3){padding:0 43px}.footer-tip{display:none}footer{justify-content:center;margin-top:27px}.big-symbol{font-size:min(14rem,55vw)}.symbol-details{gap:10px}.hold-label{padding-left:10px;font-size:.8125rem}.confetti-one{left:7%}.confetti-three{right:7%}}
@media(max-width:420px){.utility span{display:none}.number-keys{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.letter-keys{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.key-row{display:contents}.key-row:nth-child(2),.key-row:nth-child(3){padding:0}.key{height:44px}.symbol-details{flex-direction:column;gap:4px;margin-top:18px}.hold-label{border:0;padding:0}.keyboard-heading{gap:8px}.case-control button{min-width:43px;padding:4px 7px}.stage{height:20rem}.big-symbol{font-size:min(13rem,55vw)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.play-options{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:22px;padding:0 3px}.utility.voice-toggle span{display:inline}.voice-toggle[aria-pressed=false]{background:#e6ecee;color:#52666c;box-shadow:none}.keyboard-section{display:none}
@media(pointer:coarse){.keyboard-section{display:block}}
.symbol-entry{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px 18px;margin:23px 3px 0}.symbol-entry label{font-size:.9375rem;font-weight:650}.symbol-entry input{min-width:0;width:100%;border:1px solid #bccdcc;border-radius:12px;padding:12px 15px;background:#fff;color:var(--ink);font:inherit;font-size:1rem}.symbol-entry input:focus-visible{outline:3px solid #245bbb;outline-offset:3px}.symbol-entry input::placeholder{color:#5d7076;opacity:1}.symbol-entry p{grid-column:2;margin:0;font-size:.8125rem;color:#52666c;line-height:1.5}.big-symbol{font-family:"Arial Rounded MT Bold","Avenir Next",Arial,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;unicode-bidi:isolate;line-height:1.08;letter-spacing:0}.big-symbol[data-kind=emoji]{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:clamp(6rem,20vw,12rem)}
@media(max-width:680px){.symbol-entry{grid-template-columns:minmax(0,1fr);gap:9px}.symbol-entry p{grid-column:1}}
.mode-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.mode-control{display:flex;gap:4px;background:#e3eae9;padding:4px;border-radius:14px}.mode-control button{font:inherit;font-size:1rem;font-weight:700;padding:11px 24px;border:0;border-radius:10px;background:transparent;color:#4f6867;min-height:44px}.mode-control button[aria-pressed=true]{background:var(--green);color:#fff;box-shadow:0 2px 3px #183f3026}.clear-word:disabled{opacity:.5}.word-display{position:relative;z-index:1;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:52px 48px}.word-display > span{font-family:"Arial Rounded MT Bold","Avenir Next",Arial,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:5rem;font-weight:750;line-height:1.12;color:var(--accent);max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext;letter-spacing:0;text-align:center}#idle-title{white-space:pre-line}.word-keys{display:flex;justify-content:center;gap:9px;margin-top:13px}.word-keys .space-key{width:210px;max-width:65%;font-size:1rem}.word-keys .delete-key{width:75px;font-size:1.45rem}.word-keys button:disabled{opacity:.5}.word-keys button:disabled:active{transform:none}
@media(max-width:420px){.mode-control button{padding:10px 17px}.mode-bar .clear-word{padding:10px 12px}}

/* The buttons hold still; only their inner glyphs take part in the bubble motion. */
#word-text{touch-action:none;user-select:none;-webkit-user-select:none}
.word-letter{position:relative;display:inline-block;vertical-align:baseline;font:inherit;line-height:inherit;color:inherit;border:0;padding:0;margin:0;border-radius:.24em;background:transparent;cursor:pointer;touch-action:none;isolation:isolate}
.letter-glyph{position:relative;display:inline-block;pointer-events:none;transform-origin:50% 62%;transform:translate(var(--letter-x,0em),var(--letter-y,0em)) rotate(var(--letter-turn,0deg)) scale(var(--letter-scale,1));opacity:var(--letter-opacity,1);transition:transform 440ms cubic-bezier(.2,1.45,.35,1),opacity 240ms ease;will-change:transform}
.letter-glyph::before{content:"";position:absolute;z-index:-1;inset:.02em -.14em -.02em;border-radius:48% 52% 45% 55% / 55% 43% 57% 45%;background:var(--bubble,#ffffff80);box-shadow:inset 0 0 0 .012em #ffffff90,0 .035em .06em #183f3010;opacity:0;transform:scale(.7);transition:transform 440ms cubic-bezier(.2,1.45,.35,1),opacity 220ms ease}
.word-letter.is-highlighted{z-index:2}.word-letter.is-highlighted .letter-glyph::before{opacity:1;transform:scale(1)}
.word-letter:focus-visible{outline:2px dashed currentColor;outline-offset:.07em}
#word-text.is-fitting .letter-glyph{transform:none;transition:none}
#word-text.is-fitting .letter-glyph::before{display:none}
@media(prefers-reduced-motion:reduce){.letter-glyph,.letter-glyph::before{transition:none!important;transform:none!important}.word-letter.is-highlighted .letter-glyph::before{transform:none!important}}

/* Keep the learning display above the scrolling touch keyboard. */
@media (max-width:680px), (pointer:coarse){
  .playground{position:sticky;top:max(8px,env(safe-area-inset-top));z-index:10;box-shadow:0 5px 0 #e1e9e9,0 12px 24px #203d431a}
  .playground .stage{height:clamp(12rem,34svh,20rem)}
  .playground .stage-top{padding-bottom:8px}
  .playground .stage-bottom{padding:10px 2px}
  .playground .big-symbol{font-size:min(48vw,23svh,12rem)}
  .playground .symbol-details{margin-top:6px}
  .playground .hold-label{display:none}
  .playground .idle{padding:12px}
  .playground .sample-keys{gap:10px;margin-bottom:12px}
  .playground .sample-keys span{width:36px;height:40px;font-size:1.5rem}
  .playground h1{font-size:1.9rem;letter-spacing:-1px}
  .playground .idle p{font-size:.875rem;line-height:1.4;margin:10px auto 0}
  /* Leave room for letter bubbles and longer words in Words mode. */
  main:has(#words-mode[aria-pressed=true]) .stage{height:20rem}
  .key,.symbol-entry input,.play-options button{scroll-margin-top:calc(34svh + 6rem)}
}

/* Language selection and both complete alphabets. */
.toolbar{flex-wrap:wrap}.language-control{display:flex;align-items:center;gap:8px;font-size:.875rem;font-weight:650}.language-control select{font:inherit;color:var(--ink);background:white;border:1px solid var(--border);border-radius:13px;padding:11px 28px 11px 12px;min-height:45px}.language-control select:focus-visible{outline:3px solid #245bbb;outline-offset:3px}.keyboard-section{display:block}.key-row{display:flex;justify-content:center}.key-row .key{min-width:0;flex:1;max-width:75px}.review-link{text-align:center;font-size:.8rem}.review-link a{color:var(--green)}.big-symbol{max-width:100%;overflow-wrap:normal}#big-symbol[data-digraph=true]{font-size:clamp(6rem,20vw,12rem)}
@media(max-width:680px){.key-row:nth-child(2),.key-row:nth-child(3){padding:0}.language-control>span{display:none}.toolbar{gap:7px}.language-control select{max-width:125px}.key-row{gap:5px}}
@media(max-width:420px){.letter-keys{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.key-row{display:contents}.key-row .key{max-width:none}.toolbar{width:100%}.language-control{margin-right:auto}}
