:root{font-family:ui-rounded,"Arial Rounded MT Bold",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#303e3a;background:#f7f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #398578;outline-offset:4px}header{max-width:1160px;margin:auto;padding:28px 34px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;font-weight:750;font-size:21px;letter-spacing:-.6px}.brand-icon{background:#719988;color:white;width:44px;height:46px;display:grid;place-items:center;border-radius:14px 14px 14px 5px;font-size:35px;transform:rotate(-7deg)}.brand small{display:block;font-size:8px;letter-spacing:1.65px;margin-top:7px;font-weight:600;color:#8b958e}.settings{display:flex;gap:14px;align-items:center}.languages{display:flex;padding:4px;background:#eaece6;border-radius:13px;gap:2px}.languages button{border:0;background:none;font-size:12px;font-weight:750;padding:10px 16px;border-radius:10px;color:#85918a}.languages button[aria-pressed=true]{background:white;color:#3e6658;box-shadow:0 2px 5px #354c3910}.icon-button{background:transparent;border:1px solid #dedfd7;border-radius:50%;width:40px;height:40px;font-size:22px}.icon-button[aria-pressed=false]{opacity:.45}main{max-width:940px;margin:25px auto 0;padding:0 26px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#7c9283;display:flex;gap:7px;align-items:center;justify-content:center}.eyebrow span{width:6px;height:6px;background:#8caa87;border-radius:50%}h1{font-size:44px;font-weight:750;letter-spacing:-1.8px;text-align:center;margin:14px 0 9px;position:relative}.heading-star{color:#e7b76a;display:inline-block;font-size:32px;position:absolute;margin:2px 0 0 15px;transform:rotate(14deg)}.intro{text-align:center;color:#92988f;font-size:15px;margin:0 0 28px}.game{background:#fff;border:1px solid #e7e9df;border-radius:27px;box-shadow:0 8px 22px #344d2e03;padding:22px 28px 19px;position:relative}.game-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#819087}.level{display:flex;gap:7px;align-items:center}.small-star{color:#86a18d;font-size:18px}.score{background:#fbf4e5;color:#c89b48;padding:7px 12px;border-radius:20px;font-weight:700}.score span{color:#827457;margin-left:5px}.progress{display:flex;gap:5px}.progress i{width:7px;height:7px;border-radius:50%;background:#e9ede6}.progress i.done{background:#85a790}.progress i.current{width:22px;border-radius:5px;background:#85a790}.picture-area{height:218px;display:flex;justify-content:center;align-items:center;position:relative;max-width:430px;margin:auto}#picture{z-index:1;font-size:125px;line-height:1;user-select:none}#picture img{width:270px;height:192px;display:block}.picture-shadow{position:absolute;bottom:23px;width:150px;height:14px;background:#e7ece1;border-radius:50%;filter:blur(5px)}.decoration{position:absolute;color:#d7dfc8}.d1{left:40px;top:55px;font-size:38px}.d2{right:42px;bottom:58px;font-size:24px;color:#edcf91}.speak{position:absolute;right:14px;top:17px;border:1px solid #e6eade;background:#f8faf5;width:34px;height:34px;border-radius:50%;color:#849781;font-size:19px}.slots{display:flex;gap:10px;justify-content:center;flex-wrap:nowrap;max-width:100%}.slot{width:62px;height:66px;min-width:0;border:2px dashed #d9dfd1;border-radius:13px;background:#fafbf7;font-weight:700;font-size:30px;transition:background .18s,border-color .18s;flex-shrink:1}.slot::after{content:'';display:block;width:13px;height:3px;background:#dbe1d2;margin:auto;border-radius:4px}.slot.filled{background:#e9f3e8;border:2px solid #a6c59c;color:#527c50;animation:pop .35s}.slot.filled::after{display:none}.slot.hover{border-color:#80a187;background:#eef5e9}.slot.wrong{animation:shake .35s;background:#fce9e7;border-color:#dfa19b}.feedback{text-align:center;color:#969f91;font-size:12px;min-height:18px;margin:18px 0 0}.feedback.success{color:#5e8c61;font-weight:700}.feedback.error{color:#be7870}.keyboard-panel{margin-top:22px;background:#eeefe8;border:1px solid #e6e8de;border-radius:21px;padding:19px 25px 22px}.keyboard-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;color:#919a89;font-size:11px}.keyboard-heading>span:first-child{font-size:10px;letter-spacing:1.6px;font-weight:700}.keyboard{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:730px;margin:auto}.key{width:51px;height:51px;display:grid;place-items:center;background:#fff;border:1px solid #e0e3d7;border-bottom:3px solid #d9dece;border-radius:10px;font-size:21px;font-weight:650;touch-action:none;user-select:none;-webkit-user-select:none;transition:background .15s,transform .15s}.key:hover{background:#f8fcf6;transform:translateY(-2px)}.key.selected{background:#e1edda;border-color:#91af84}.drag-ghost{position:fixed;z-index:10;pointer-events:none;opacity:.95;box-shadow:0 12px 20px #334d3326;transform:scale(1.13);background:#ecf4e6}.key.dragging{opacity:.35}.bottom-line{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#9ba18f;margin:20px 4px}.heart{font-size:18px;vertical-align:-2px;margin-right:6px;color:#aaa98b}#skip{border:0;background:none;font-size:11px;color:#8e9984;padding:8px}#skip span{font-size:18px;margin-left:5px}footer{text-align:center;font-size:10px;color:#b4b8aa;padding:25px 15px 26px}#celebration{text-align:center;margin-top:14px}.next{border:0;background:#729781;color:#fff;border-radius:12px;padding:12px 23px;font-size:14px;font-weight:650}.next span{margin-left:15px}#confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden}.confetto{position:absolute;top:-20px;width:9px;height:15px;border-radius:3px;animation:fall 2.4s ease-in forwards}#error{text-align:center;color:#ad5f57;padding:20px}[hidden]{display:none!important}@keyframes pop{50%{transform:scale(1.13)}}@keyframes shake{25%,75%{transform:translateX(-5px)}50%{transform:translateX(5px)}}@keyframes fall{to{transform:translateY(105vh) rotate(700deg)}}@media(max-width:650px){header{padding:20px}.brand{font-size:16px;gap:9px}.brand small{font-size:6px;letter-spacing:1px}.brand-icon{width:36px;height:39px;font-size:29px}.settings{gap:8px}.languages button{padding:9px 10px;font-size:10px}.icon-button{width:34px;height:34px}main{padding:0 15px;margin-top:15px}h1{font-size:35px}.heading-star{font-size:23px;margin-left:10px}.intro{font-size:12px;margin-bottom:22px}.game{padding:17px 13px;border-radius:22px}.picture-area{height:195px}#picture img{width:245px}.slot{width:51px;height:57px;border-radius:10px;font-size:23px}.slots{gap:5px}.keyboard-panel{padding:16px 12px 18px;margin-top:16px}.keyboard{gap:6px}.key{width:calc((100% - 48px)/9);height:43px;font-size:19px;border-radius:8px}.keyboard-heading{font-size:9px}.bottom-line{font-size:9px;gap:10px;margin-top:12px}#skip{font-size:10px;white-space:nowrap}.progress{gap:3px}.progress i{width:5px;height:5px}.progress i.current{width:14px}.level{font-size:10px}footer{padding-top:15px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(min-width:651px) and (max-height:820px){header{padding-top:17px;padding-bottom:17px}main{margin-top:8px}h1{font-size:38px;margin-top:9px}.intro{margin-bottom:19px}.game{padding-top:16px;padding-bottom:15px}.picture-area{height:173px}#picture img{height:160px;width:240px}.picture-shadow{bottom:10px}.slot{height:58px;width:57px}.feedback{margin-top:12px}.keyboard-panel{margin-top:15px;padding-top:14px;padding-bottom:16px}.keyboard-heading{margin-bottom:12px}.key{height:44px;width:47px}.keyboard{gap:7px}.bottom-line{margin-top:10px;margin-bottom:0}footer{padding-top:13px;padding-bottom:13px}}
/* Large finger targets, including on compact and short viewports. */
main{max-width:1040px}.keyboard{max-width:880px;gap:10px}.key{width:68px;height:68px;font-size:32px;border-radius:13px;border-bottom-width:4px}.slot{width:68px;height:72px;font-size:34px;flex-shrink:0}.slots{flex-wrap:wrap;gap:9px}.progress{font-size:11px;color:#889783;text-align:center}.drag-ghost{width:68px!important;height:68px!important;font-size:32px!important}button:disabled{opacity:.4;cursor:default}.settings{gap:10px}
dialog{width:min(540px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:27px;border:1px solid #dce3d7;border-radius:24px;color:#303e3a;background:#fcfcf8;box-shadow:0 20px 80px #203b3330}dialog::backdrop{background:#273d365c;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.dialog-heading .eyebrow{font-size:9px;justify-content:start}h2{font-size:25px;letter-spacing:-.6px;margin:8px 0 0}fieldset{border:0;padding:0;margin:20px 0}legend,.length-label{font-size:14px;font-weight:700;margin-bottom:10px}.mode-options{display:flex;gap:12px}.mode-options label{flex:1;display:flex;align-items:center;gap:9px;padding:14px 10px;border:1px solid #dce3d6;background:#f0f3e9;border-radius:12px;font-size:14px;cursor:pointer}input[type=radio],input[type=checkbox]{width:24px;height:24px;accent-color:#729781;flex-shrink:0;margin:0}.setting-hint{font-size:12px;line-height:1.55;color:#7c897b;margin:9px 0 0}.length-label{display:block}select{width:100%;min-height:48px;border:1px solid #d3ddcd;border-radius:10px;background:#fff;padding:10px;color:#3e5245;font:inherit;font-size:14px}.category-actions{display:flex;gap:16px;margin-bottom:10px}.category-actions button{border:0;background:none;padding:4px 0;color:#64846b;font-size:12px;text-decoration:underline}.category-row{border-bottom:1px solid #e5e9dd;padding:10px 0}.category-row>label{display:flex;gap:12px;align-items:center;min-height:40px;cursor:pointer;font-size:14px}.category-row small{margin-left:auto;color:#8c9885;font-size:11px}.category-row details{margin-left:36px;font-size:11px;color:#8b9881}.category-row summary{cursor:pointer;padding:4px 0}.category-row details p{font-size:12px;line-height:1.7;color:#65765e;margin:5px 0}.matching-count{background:#edf2e5;border-radius:10px;padding:13px;font-size:14px;color:#5a7854}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.dialog-actions>button{min-height:46px}.dialog-actions>button:first-child{background:none;border:1px solid #d8dfd1;padding:10px 18px;border-radius:12px}.game-top{gap:12px}
@media(max-width:650px){.keyboard{gap:8px}.key{width:calc((100% - 32px)/5);height:58px;min-width:44px;font-size:29px}.keyboard-panel{padding:15px 12px}.slot{width:54px;height:60px;font-size:29px}.slots{gap:7px}.brand small{display:none}.brand{font-size:14px}.brand-icon{width:30px;height:35px}.settings{gap:5px}header{padding:16px 12px}.languages button{padding:9px 7px}.icon-button{width:36px;height:36px}.progress{max-width:105px;font-size:9px}.game{padding-left:10px;padding-right:10px}.dialog-heading{margin-bottom:15px}dialog{padding:20px}.mode-options{gap:8px}.mode-options label{font-size:12px;padding:12px 8px}}
/* Fit the whole play surface to the current viewport, with no clipped controls. */
body{height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
header{width:100%;flex:0 0 auto;padding:10px 24px;min-height:60px}.brand-icon{height:38px;width:38px;font-size:30px}.brand small{display:none}
main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;margin:0 auto;padding:0 20px 8px;--key-size:52px;--key-columns:10;--slot-size:60px;--game-min-height:232px}
.game-heading{flex:none;text-align:center}.game-heading>.eyebrow,.intro{display:none}h1{font-size:28px;line-height:34px;margin:0}.heading-star{font-size:23px;margin-top:0}
.game{flex:1;min-height:var(--game-min-height);display:flex;flex-direction:column;padding:10px 18px 6px;border-radius:22px;gap:4px}.game-top{flex:none;min-height:28px}.score{padding:5px 10px}.picture-area{flex:1;min-height:70px;height:auto;width:100%;max-width:430px;overflow:hidden}.picture-area #picture{height:100%;width:100%;position:absolute;inset:0;display:flex;align-items:center;justify-content:center}#picture img{width:100%;height:100%;max-width:300px;max-height:215px;object-fit:contain}.picture-shadow{bottom:4px;height:7px;width:100px}.speak{top:4px;right:8px}.d1{top:20%;left:12%;font-size:26px}.d2{bottom:20%;right:12%;font-size:20px}
.slots{flex:none;gap:6px}.slot{width:var(--slot-size);height:var(--slot-size);font-size:calc(var(--slot-size)*.48);border-radius:11px}.feedback-area{height:44px;flex:none;display:grid;place-items:center}.feedback-area>*{grid-area:1/1}.feedback{font-size:11px;line-height:15px;margin:0;min-height:0;text-align:center}.game:has(#celebration:not([hidden])) .feedback{visibility:hidden}#celebration{margin:0}.next{padding:9px 20px;font-size:13px;min-height:38px}
.keyboard-panel{flex:none;margin:0;padding:8px 12px 10px;border-radius:18px}.keyboard-heading{margin:0 0 6px;min-height:12px;font-size:10px}.keyboard-heading>span:first-child{font-size:9px}.keyboard{display:grid;grid-template-columns:repeat(var(--key-columns),var(--key-size));gap:8px;justify-content:center;max-width:none;margin:0}.key{width:var(--key-size);height:var(--key-size);min-width:0;font-size:calc(var(--key-size)*.48);border-radius:11px}
.bottom-line{flex:none;min-height:28px;margin:0 4px;font-size:10px;gap:8px}.bottom-line #skip{min-height:28px;padding:2px 4px;font-size:11px}.bottom-line #skip span{font-size:17px}.heart{font-size:16px}
@media(max-width:650px){header{padding:6px 12px;min-height:50px}.brand{font-size:13px;gap:7px}.brand-icon{width:28px;height:32px;font-size:26px}.settings{gap:4px}.languages{padding:3px}.languages button{padding:8px 6px}.icon-button{width:34px;height:34px}main{padding:0 10px 6px;gap:6px}h1{font-size:24px;line-height:30px}.heading-star{font-size:20px}.game{padding:7px 9px 4px;border-radius:17px}.keyboard-panel{padding:7px 8px 8px}.bottom-line{font-size:9px}.bottom-line>span{max-width:57%}.keyboard-heading{font-size:8px}.progress{font-size:9px}.game-top{gap:6px}}
@media(max-height:550px) and (min-width:651px){header{min-height:46px;padding-top:4px;padding-bottom:4px}.brand-icon{height:30px;width:30px;font-size:25px}.game-heading{display:none}main{max-width:1200px}.game{min-height:var(--game-min-height)}.picture-area #picture img{max-height:120px}}
@media(max-height:720px){.game-heading{display:none}}
@media(max-height:550px) and (min-width:651px){main{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:minmax(0,1fr) auto;column-gap:12px}.game{grid-column:1;grid-row:1;height:100%}.keyboard-panel{grid-column:2;grid-row:1;align-self:center}.bottom-line{grid-column:1/-1;grid-row:2}.keyboard-heading #keyboard-note{display:none}.slot{width:48px;height:48px;font-size:25px}.picture-shadow{display:none}}
.keyboard{gap:var(--key-gap,8px)}
.mode-options{flex-wrap:wrap}.mode-options label{min-width:125px}.text-button,#restart-levels{border:0;background:none;color:#74916c;padding:5px 8px;font:inherit;font-size:11px;cursor:pointer}.bottom-line:has(#restart-levels:not([hidden]))>span{display:none}#level-reward{text-align:center;max-width:430px;padding:30px 24px}#level-reward h2{font-size:27px;line-height:1.25;margin:16px 0}#reward-description,#reward-next-description{font-size:14px;line-height:1.6;color:#829079;margin:12px 0}.reward-actions{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:24px}.reward-actions .next{font-size:15px;min-height:46px}.medal{width:100px;height:100px;border:7px solid #f1dca6;border-radius:50%;background:#f9edcb;box-shadow:0 0 0 6px #faf3e1;display:grid;place-items:center;margin:12px auto 25px;position:relative;color:#d3a74f}.medal>span{font-size:65px;line-height:1}.medal small{position:absolute;bottom:-13px;background:#7d9a78;color:white;border-radius:20px;padding:3px 13px;font-size:14px;font-weight:700}#reward-badge{font-size:10px;letter-spacing:1.5px}.progress{line-height:1.35}@media(max-width:650px){.mode-options label{min-width:110px}.progress{max-width:125px}#level-reward{padding:20px}.medal{width:85px;height:85px}.medal>span{font-size:52px}}
.catalogue-link{display:block;color:#54785e;text-decoration:none;background:#edf2e5;border:1px solid #dbe5d1;border-radius:12px;padding:13px 15px;font-size:14px;font-weight:650}.catalogue-link>span{float:right;font-size:19px}.catalogue-link small{display:block;font-weight:400;font-size:11px;color:#8a9980;margin-top:6px;line-height:1.4}.catalogue-link:hover{background:#e5eedc}.picture-navigation{display:flex;gap:8px;align-items:center;margin-left:auto;flex:none}.picture-navigation button{border:1px solid #d8e1d1;border-radius:9px;min-height:32px;padding:5px 10px;background:#f1f4eb;color:#6a8664;font-size:11px}.bottom-line .picture-navigation #skip{min-height:32px;padding:5px 10px}.bottom-line #restart-levels{padding-left:0;font-size:10px}@media(max-width:650px){.bottom-line>span{display:none}.picture-navigation{gap:6px}.picture-navigation button,.bottom-line .picture-navigation #skip{font-size:10px;padding:5px 9px}.bottom-line #restart-levels{max-width:115px}}
.hint-setting{display:flex;align-items:flex-start;gap:12px;padding:14px;background:#f4f3e8;border:1px solid #e6e3ce;border-radius:12px;margin-top:20px;cursor:pointer;font-size:14px;font-weight:650}.hint-setting input{margin-top:2px}.hint-setting small{display:block;font-size:11px;font-weight:400;line-height:1.6;color:#8b947c;margin-top:5px}.hint-button{right:52px;width:38px;height:38px;color:#b89345;background:#fff7df;border-color:#ecdfb5}.hint-button svg{width:22px;height:22px;display:block;margin:auto}.hint-button:disabled{opacity:.35}.slot.hint-target{position:relative;background:#fff6da;border-color:#d9b66c;border-style:solid;box-shadow:0 0 0 4px #e9cf8b26}.slot.hint-target::before{content:attr(data-hint);position:absolute;inset:0;display:grid;place-items:center;color:#be9b4c;opacity:.65;font:inherit;pointer-events:none}.slot.hint-target::after{display:none}.key.hint-key{background:#fff1c5;border-color:#d8b96f;box-shadow:0 0 0 3px #e7c66e55;animation:hint-glow 1s ease-in-out infinite alternate}.hint-feedback{color:#b18f48}@keyframes hint-glow{to{box-shadow:0 0 0 5px #e7c66e22}}@media(prefers-reduced-motion:reduce){.key.hint-key{animation:none}}
.picture-area .speak{z-index:2}
.picture-navigation button,.bottom-line .picture-navigation #skip{border:0;background:transparent;box-shadow:none;color:#8e9984;padding:5px 8px;font-size:11px;font-weight:400}
/* Matching word-audio and hint controls, stacked vertically. */
.picture-area .speak{width:38px;height:38px;right:8px;top:4px;display:grid;place-items:center;padding:8px;color:#8b958c;background:#f6f7f3;border:1px solid #e2e6dd;transition:color .2s,background .2s,border-color .2s}
.picture-area .speak svg{width:22px;height:22px;display:block;margin:0}
.picture-area .hint-button{top:50px;right:8px}
.picture-area .hint-button.hint-active{color:#b89345;background:#fff1c5;border-color:#e2c77e}
.picture-area{min-height:88px}
.language-trigger{display:flex;align-items:center;gap:7px;min-height:40px;border:1px solid #dfe4d9;background:#f1f4ec;border-radius:12px;padding:7px 11px;color:#6f8774;font-size:12px}.language-trigger svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;flex:none}#current-language{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#language-dialog{width:min(700px,calc(100% - 24px))}.language-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.language-list button{min-height:46px;border:1px solid #e0e6d9;border-radius:10px;background:white;padding:10px 12px;text-align:left;font-size:14px}.language-list button[aria-pressed=true]{background:#e5efdc;border-color:#96b48b;color:#52734f}.brand{min-width:0}.brand-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:320px}.brand-icon{flex:none}.catalogue-link>span{float:none;font-size:inherit}.slot.separator{width:15px;border:0;background:none;box-shadow:none;font-size:20px;pointer-events:none}.slot.separator::after{display:none}.key{font-size:clamp(16px,calc(var(--key-size)*.43),30px)}.key:has(span){font-size:inherit}.feedback{max-width:100%}.mode-options label{min-width:100px}.dialog-heading h2{overflow-wrap:anywhere}@media(max-width:650px){.language-list{grid-template-columns:repeat(2,minmax(0,1fr))}.language-list button{font-size:13px;padding:9px}.brand-name{max-width:125px}#current-language{max-width:88px}.language-trigger{padding:6px;gap:4px;font-size:11px;min-height:34px}.language-trigger svg{width:18px;height:18px}.brand{gap:5px}.settings{flex:none}.slot.separator{width:10px}.feedback{font-size:10px}.progress{font-size:9px}}
/* One visual family for header controls. */
header .settings>button{height:40px;min-height:40px;border:1px solid #dfe4d9;border-radius:12px;background:#f1f4ec;color:#6f8774;display:inline-flex;align-items:center;justify-content:center;box-shadow:none;line-height:1;flex-shrink:0;transition:background .15s,border-color .15s}
header .settings>.icon-button{width:40px;padding:9px}
header .settings>button:hover{background:#e9eee3;border-color:#cdd9c8}
header .settings>button svg{display:block;width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
header .language-trigger{gap:8px;padding:8px 11px}
header .language-trigger .language-chevron{width:14px;height:14px;stroke-width:1.9;margin-left:1px}
header #sound[aria-pressed=false]{opacity:1}
header #sound .sound-muted,header #sound[aria-pressed=false] .sound-waves{display:none}
header #sound[aria-pressed=false] .sound-muted{display:block}
@media(max-width:650px){header .settings>button{height:36px;min-height:36px;border-radius:11px}header .settings>.icon-button{width:36px;padding:8px}header .settings>button svg{width:19px;height:19px}header .language-trigger{padding:7px;gap:5px}header .language-trigger .language-chevron{width:13px;height:13px}}
