:root{--ink:#263957;--muted:#6c7a90;--blue:#426db1;--bg:#f7f8fc;--border:#e1e6ef}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:ui-rounded,'Trebuchet MS',Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:inherit;border:0;user-select:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:4px solid #274eae;outline-offset:4px}button:disabled{opacity:.35;cursor:default}[hidden]{display:none!important}.app{max-width:820px;min-height:100dvh;margin:auto;padding:0 30px;display:flex;flex-direction:column}header{height:80px;display:flex;align-items:center;justify-content:space-between}.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.logo svg{width:36px;height:36px}.logo strong{font-size:28px;letter-spacing:-1.5px}.logo strong span{color:#f5af64}.settings-button{background:transparent;color:#8490a3;width:48px;height:48px;border-radius:14px;padding:13px}.settings-button svg{width:22px;height:22px}main{flex:1;display:flex;flex-direction:column;justify-content:center}.heading{display:flex;align-items:center;gap:12px;margin:8px 0 22px;min-height:66px}.heading-copy{flex:1;text-align:center}h1{font-size:27px;letter-spacing:-.8px;line-height:1.2;margin:0 0 8px}#prompt{margin:0;color:var(--muted);font-size:14px}.nav-button{width:52px;height:52px;border-radius:16px;background:#fff;border:1px solid var(--border);padding:12px;flex-shrink:0}.nav-button svg{width:100%;height:100%}.selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.choice{min-height:210px;position:relative;border-radius:26px;border:2px solid var(--edge);border-bottom-width:6px;background:var(--tint);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;gap:7px;transition:transform .15s,box-shadow .15s;box-shadow:0 6px 18px #31477204}.choice{animation:appear .22s ease-out}.choice:hover{box-shadow:0 8px 22px #3147720d}.choice:active{transform:translateY(4px);border-bottom-width:2px;margin-bottom:4px}.blue{--tint:#e9f3ff;--edge:#c7ddf5;--strong:#426db1}.green{--tint:#eaf6ed;--edge:#c5e4cf;--strong:#4c8260}.yellow{--tint:#fff6db;--edge:#f0dda6;--strong:#947127}.pink{--tint:#fff0ec;--edge:#efcfc5;--strong:#b0685b}.purple{--tint:#f2edff;--edge:#ddd0f3;--strong:#78609f}.choice .illustration{width:145px;height:145px;filter:drop-shadow(0 6px 2px #213d580c)}.choice-label{font-size:21px;line-height:1.1;font-weight:700;text-align:center}.illustration{display:block;width:100%;height:100%}.photo{width:100%;height:100%;object-fit:contain;border-radius:20px}.pager{height:60px;display:flex;align-items:center;justify-content:center;gap:18px}.pager:empty{height:20px}.pager button{width:55px;height:43px;background:#fff;border:1px solid var(--border);border-radius:13px;padding:8px}.pager svg{width:100%;height:100%}.page-dots{display:flex;align-items:center;gap:8px}.page-dots i{width:8px;height:8px;border-radius:50%;background:#d9dfeb}.page-dots i.active{background:#5677ac;transform:scale(1.2)}.always{margin-top:20px;padding:17px 0 0;border-top:1px solid var(--border)}.quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quick button{border-radius:17px;min-height:76px;background:var(--tint);border:1px solid var(--edge);display:flex;align-items:center;justify-content:center;gap:7px;font-size:16px;font-weight:700}.quick svg{width:42px;height:42px}.quick button:active{transform:scale(.96)}footer{text-align:center;color:#8b96a5;font-size:10px;padding:19px 0 17px}.message{text-align:center;animation:appear .22s ease-out}.word-strip{display:flex;align-items:stretch;justify-content:center;gap:14px;margin:5px 0 24px}.word{background:#fff;border:1px solid var(--border);border-radius:22px;padding:16px 12px;flex:1;max-width:215px;min-width:0}.word .illustration{width:125px;height:125px;max-width:100%;margin:auto}.word span{display:block;font-size:19px;font-weight:700;margin-top:12px;line-height:1.25}.word:last-child{background:#eff6ef;border-color:#d7e5d5}.full-sentence{font-size:25px;font-weight:700;line-height:1.4;margin:10px auto 25px;max-width:650px}.speak{min-height:84px;width:min(100%,440px);display:inline-flex;align-items:center;justify-content:center;gap:15px;border-radius:22px;background:#426db1;color:white;border-bottom:5px solid #31548d;font-size:26px;font-weight:700}.speak:active{transform:translateY(3px);border-bottom-width:2px}.speak #speaker-icon{display:block;width:40px;height:40px}.speak svg{width:100%;height:100%}.speech-status{min-height:35px;padding:12px 0 0;font-size:12px;color:var(--muted)}.start-again{background:transparent;text-decoration:underline;text-underline-offset:5px;color:#667c9a;min-height:52px;font-size:15px}.sound-waves{display:none;align-items:center;gap:4px;height:28px}.sound-waves i{width:4px;height:10px;border-radius:4px;background:white;animation:wave .6s alternate infinite}.sound-waves i:nth-child(2){animation-delay:.2s}.sound-waves i:nth-child(3){animation-delay:.4s}.speaking .sound-waves{display:flex}.empty{grid-column:1/-1;min-height:300px;display:grid;place-content:center;text-align:center;color:var(--muted);padding:25px}.empty p{max-width:320px;line-height:1.6}.empty button{padding:15px;background:#e8edf7;border-radius:15px;min-height:50px}dialog{width:min(660px,calc(100% - 24px));max-height:92dvh;border:0;border-radius:24px;padding:27px;box-shadow:0 25px 100px #193d3d30;color:var(--ink)}dialog::backdrop{background:#25355270;backdrop-filter:blur(4px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.overline{font-size:10px;letter-spacing:1.5px;color:#7288a5}h2{font-size:24px;margin:8px 0}h3{font-size:17px;margin:0 0 9px}.close{width:46px;height:46px;border-radius:13px;background:#eff2f8;font-size:29px;flex-shrink:0}#gate{text-align:center;padding:10px 0 30px}#gate-picture{width:100px;height:100px;margin:auto}#gate p{line-height:1.7;color:var(--muted)}.primary,.secondary{border-radius:12px;padding:13px 18px;min-height:48px;font-weight:700;background:var(--blue);color:white}.secondary{background:#eaf0f9;color:#426290}.holding{background:linear-gradient(90deg,#96a8d7 50%,#426db1 50%);background-size:200% 100%;animation:hold 2s linear}.hint{color:#66768e;font-size:12px;line-height:1.7}.setting{padding:14px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);font-size:14px}.setting small{font-size:11px;display:block;color:#78869b;margin-top:5px;line-height:1.4}.setting input[type=checkbox]{width:24px;height:24px;accent-color:var(--blue);flex-shrink:0}.setting select{max-width:190px}select,input[type=text]{background:#f4f6fb;border:1px solid #dbe1ec;border-radius:9px;padding:11px;font:inherit;color:var(--ink);max-width:100%}.settings-section{margin-top:29px}.inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.card-manager{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:300px;overflow:auto;margin-top:12px}.managed{padding:8px;display:flex;align-items:center;gap:8px;background:#f5f7fc;border-radius:10px;font-size:12px}.managed .mini{width:35px;height:35px;flex-shrink:0}.managed input{accent-color:var(--blue);width:18px;height:18px}.managed .delete{background:#fae5df;color:#a6544a;min-width:34px;min-height:34px;border-radius:8px;margin-left:auto}.custom-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.custom-form label{font-size:12px;display:flex;flex-direction:column;gap:7px}.wide{grid-column:1/-1}.custom-form input[type=file]{font-size:12px;max-width:100%}.field-note{font-size:11px;color:#697a95}.toast{position:fixed;z-index:5;bottom:20px;left:50%;transform:translate(-50%,20px);background:#2e486d;color:white;border-radius:13px;padding:13px 20px;font-size:13px;line-height:1.5;max-width:min(90%,500px);text-align:center;opacity:0;transition:.2s;pointer-events:none}.toast.visible{opacity:1;transform:translate(-50%,0)}.pressed .illustration,.word .motion-part{transform-origin:center;animation:gentle .65s ease-in-out 1}.word{animation:appear .25s ease-out backwards}.word:nth-child(2){animation-delay:.07s}.word:nth-child(3){animation-delay:.14s}.no-motion *{animation:none!important;transition:none!important}.six .choice{min-height:165px}.six .choice .illustration{width:108px;height:108px}.six .choice-label{font-size:18px}@keyframes gentle{0%,100%{transform:rotate(0)}35%{transform:rotate(-5deg) translateY(-3px)}70%{transform:rotate(4deg)}}@keyframes appear{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes wave{to{height:27px}}@keyframes hold{from{background-position:100%}to{background-position:0%}}@media(min-width:1100px){.app{max-width:840px}header{height:90px}.choice{min-height:230px}.choice .illustration{width:160px;height:160px}.always{margin-top:25px}.heading{margin-bottom:27px}}@media(max-width:580px){.app{padding:0 16px}header{height:59px}.logo svg{width:29px;height:29px}.logo strong{font-size:24px}.settings-button{width:44px;height:44px}.heading{margin:7px 0 17px;min-height:55px;gap:9px}h1{font-size:21px;margin-bottom:5px}#prompt{font-size:12px}.nav-button{width:43px;height:43px;border-radius:13px;padding:10px}.selection{gap:13px}.choice{min-height:clamp(140px,24dvh,195px);border-radius:22px;border-bottom-width:5px;padding:9px;gap:5px}.choice .illustration{width:clamp(90px,16dvh,125px);height:clamp(90px,16dvh,125px)}.choice-label{font-size:17px}.pager{height:53px;gap:14px}.pager:empty{height:6px}.pager button{height:40px;width:48px}.page-dots{gap:6px}.page-dots i{width:6px;height:6px}.always{margin-top:16px;padding-top:13px}.quick{gap:8px}.quick button{flex-direction:column;gap:1px;min-height:74px;border-radius:15px;font-size:12px}.quick svg{width:40px;height:40px}footer{font-size:9px;padding:15px 0 12px}.word-strip{gap:7px;margin-top:5px;margin-bottom:20px}.word{padding:13px 7px;border-radius:16px}.word .illustration{width:86px;height:86px}.word span{font-size:14px;margin-top:9px}.full-sentence{font-size:21px;margin:12px 0 24px}.speak{min-height:76px;font-size:24px;border-radius:19px}.message{padding-top:12px}.start-again{font-size:14px}.six .choice{min-height:123px}.six .choice .illustration{width:77px;height:77px}.six .choice-label{font-size:15px}dialog{padding:20px}h2{font-size:20px}.setting{font-size:13px}.setting select{max-width:150px;font-size:12px}.custom-form{grid-template-columns:1fr}.wide{grid-column:auto}}@media(max-height:650px){header{height:55px}.heading{margin:4px 0 12px}.choice{min-height:133px}.choice .illustration{height:90px;width:90px}.always{margin-top:8px;padding-top:9px}footer{padding:10px 0}.word .illustration{width:80px;height:80px}.word-strip{margin-bottom:12px}.word{padding:10px}.full-sentence{margin:10px 0 15px}.message{padding-top:0}.speak{min-height:68px}.six .choice{min-height:110px}.six .choice .illustration{width:65px;height:65px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(orientation:landscape) and (max-height:550px){.app{max-width:1000px}.selection{grid-template-columns:repeat(4,minmax(0,1fr))}.choice{min-height:145px}.quick button{flex-direction:row;min-height:58px}.word-strip{max-width:540px;margin:0 auto 10px}.word .illustration{width:65px;height:65px}.message .full-sentence{margin:6px 0 12px}.speak{min-height:60px}.speech-status{min-height:25px;padding:7px 0 0}}
/* Short, meaningful movement only after a choice; no continuously moving board. */
.word .pictogram-ball .motion-part{animation:ball-bounce .7s ease-in-out 2;transform-box:fill-box;transform-origin:50% 100%}
.word .pictogram-water .motion-part{animation:water-rock 1s ease-in-out 2;transform-box:fill-box;transform-origin:50% 100%}
.word .pictogram-bubbles .motion-part,.word .pictogram-bath .motion-part{animation:bubbles-rise 1.4s ease-out 1}
.word .pictogram-swing .motion-part{animation:swing-seat 1.2s ease-in-out 2;transform-origin:65px 17px}
.word .pictogram-music .motion-part{animation:music-step .7s ease-in-out 2}
.word .pictogram-wash .motion-part{animation:water-fall .75s ease-out 2}
.word .pictogram-happy,.word .pictogram-excited,.word .pictogram-love{animation:happy-nod .9s ease-in-out 1;transform-origin:50% 80%}
.word .pictogram-head .motion-part,.word .pictogram-tummy .motion-part,.word .pictogram-arm .motion-part,.word .pictogram-leg .motion-part,.word .pictogram-throat .motion-part,.word .pictogram-backpain .motion-part{animation:pain-show 1s ease-in-out 2;transform-box:fill-box;transform-origin:center}
@keyframes ball-bounce{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-10px) scale(1)}75%{transform:translateY(1px) scale(1.04,.96)}}
@keyframes water-rock{0%,100%{transform:rotate(0)}30%{transform:rotate(-3deg)}65%{transform:rotate(3deg)}}
@keyframes bubbles-rise{0%{transform:translateY(4px);opacity:.6}70%{transform:translateY(-7px);opacity:1}100%{transform:translateY(0);opacity:1}}
@keyframes swing-seat{0%,100%{transform:rotate(0)}25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}
@keyframes music-step{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes water-fall{0%{transform:translateY(-4px);opacity:.6}100%{transform:translateY(4px);opacity:1}}
@keyframes happy-nod{0%,100%{transform:rotate(0)}30%{transform:rotate(-5deg)}70%{transform:rotate(5deg)}}
@keyframes pain-show{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.75;transform:scale(1.12)}}
