@font-face{font-family:Nunito;src:url('./nunito-bold.ttf') format('truetype');font-display:swap;font-weight:700 900}
@font-face{font-family:Nunito;src:url('./nunito.ttf') format('truetype');font-display:swap;font-weight:400}
body:has(.word-shell){background:#eef8f3}
.wrap:has(.word-shell){max-width:840px;padding:0 16px 24px;font-family:Nunito,ui-rounded,'Trebuchet MS',sans-serif}
.word-shell{min-height:calc(100svh - 24px)}
.word-header{position:sticky;top:0;z-index:35;display:flex;align-items:center;gap:10px;min-height:84px;padding:12px 0;background:#eef8f3}
.word-header .round{width:56px;height:56px;min-width:56px;padding:16px}
.word-header .star-bank{min-width:60px}
.word-header .play-progress{min-width:18px}
.word-stage{max-width:650px;margin:auto;text-align:center;position:relative;animation:wordFade .3s ease both}
.word-step-dots{height:24px;display:flex;justify-content:center;align-items:center;gap:10px;margin:0 0 8px}
.word-step-dots i{width:9px;height:9px;background:#c3d9cc;border-radius:50%}
.word-step-dots .current{width:25px;border-radius:9px;background:#268269}
.word-picture{display:block;margin:auto;width:min(100%,350px);border:3px solid #fff;border-radius:38px;box-shadow:0 7px 0 #d6e6d9;background:#fffdf5;padding:12px 16px 20px}
.word-picture img{display:block;width:100%;height:auto;max-height:260px;object-fit:contain;aspect-ratio:1}
.word-labels{display:grid;place-items:center;height:56px;position:relative;margin-top:6px}
.word-labels>*{grid-area:1/1;transition:opacity .3s ease,transform .3s ease;line-height:1.2}
.word-label-ru{color:#66776f;font-size:24px;opacity:1}
.word-label-ro{font-size:36px;font-weight:800;color:#00796b;opacity:0;transform:translateY(5px)}
.show-romanian .word-label-ru{opacity:0;transform:translateY(-5px)}
.show-romanian .word-label-ro{opacity:1;transform:translateY(0)}
.word-controls{display:flex;justify-content:center;align-items:center;gap:28px;margin:24px auto}
.word-controls button{min-width:64px;min-height:64px}
.word-controls .next-btn{width:88px;height:68px}
.word-controls .next-btn:disabled{opacity:.4;box-shadow:none}
.word-welcome{width:100%;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:min(570px,calc(100svh - 100px));padding:20px}
.word-mimi{width:105px;height:114px;flex-shrink:0;transform-origin:center 85%}
.word-welcome .word-mimi{width:210px;height:228px}
.word-stage h1{font-size:30px;color:#28654e;margin:15px 0 5px;font-weight:800}
.word-welcome>span[lang]{font-size:23px;color:#54796b}
.word-start-icon{width:64px;height:64px;background:#268269;color:#fff4c4;border-radius:50%;padding:19px;margin-top:25px}
.word-start-icon svg{fill:currentColor}
.word-mimi.idle svg{animation:wordIdle 2s ease-in-out 2}
.word-mimi.waving{animation:wordWave 1s ease-in-out 2}
.word-mimi.happy{animation:wordHappy .65s ease 2}
.word-mimi.encouraging{animation:wordNod .4s ease 2}
.word-question{display:flex;align-items:center;justify-content:center;gap:8px;margin:10px 0 20px;min-height:125px}
.word-question .speech-bubble{font-size:21px;font-weight:800;padding:14px 16px;color:#00796b;max-width:240px}
.word-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:420px;margin:0 auto;padding:5px 7px 10px}
.word-choice{min-height:136px;min-width:0;position:relative;background:#fffdf7;border:3px solid #fff;box-shadow:0 5px 0 #d5e6da;border-radius:28px;padding:8px;user-select:none}
.word-choice:last-child{grid-column:1/3;justify-self:center;width:calc((100% - 16px)/2)}
.word-choice img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.word-choice.correct{border-color:#4caf50;background:#e9f7dc;animation:wordRight .6s ease forwards}
.word-choice.retry{border-color:#ffcedb;animation:wordTry .4s ease}
.word-choice.word-hinted{box-shadow:0 0 0 5px #f7de8b,0 5px 0 #d5e6da}
.word-check{position:absolute;right:8px;top:8px;width:30px;height:30px;padding:6px;background:#4caf50;color:white;border-radius:50%}
.word-finale{width:240px;height:235px;position:relative;margin:28px auto 0}
.word-finale .word-mimi{width:215px;height:233px}
.word-trophy{position:absolute;right:-2px;bottom:18px;width:110px;height:110px;color:#b28328;filter:drop-shadow(0 5px 0 #deac41)}
.word-trophy svg,.word-earned svg{fill:#ffd75c;stroke:#c6993c}
.word-stage.word-end p{font-size:20px;margin:10px;color:#51715f}
.word-earned{display:flex;justify-content:center;align-items:center;gap:10px;font-size:38px;font-weight:800;color:#a77a22;margin:16px}
.word-earned svg{width:50px;height:50px}
.word-end-controls{display:flex;justify-content:center;align-items:center;gap:16px;margin:24px 0}
.word-end-controls .round{width:64px;height:64px;padding:19px;flex-shrink:0}
.word-break{display:flex;align-items:center;flex-direction:column;gap:30px;padding:40px 0}
.word-break .word-mimi{width:200px;height:218px}
.word-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.word-confetti i{position:absolute;width:10px;height:17px;border-radius:4px;left:calc(5% + var(--i)*6.5%);top:-20px;background:#f4c956;animation:wordConfetti 2.4s ease-out both;animation-delay:calc(var(--i)*.07s)}
.word-confetti i:nth-child(3n){background:#73b9d1}.word-confetti i:nth-child(3n + 1){background:#e9a4bc}
@media(min-width:600px){.word-choices{grid-template-columns:repeat(3,minmax(0,1fr));max-width:640px}.word-choice:last-child{grid-column:auto;width:100%}.word-question{margin:30px 0}.word-choice{min-height:190px}}
@media(max-height:650px) and (max-width:599px){.word-header{min-height:76px;padding:8px 0}.word-picture{max-width:280px;padding:8px 14px 14px}.word-picture img{max-height:208px}.word-controls{margin:18px auto}.word-question{margin:0 0 10px;min-height:95px}.word-question .word-mimi{width:78px;height:85px}.word-question .speech-bubble{font-size:19px}.word-choices{max-width:300px;gap:14px}.word-choice{min-height:115px;padding:5px}.word-choice img{max-height:120px}.word-finale{margin-top:10px}}
@keyframes wordFade{from{opacity:0}to{opacity:1}}@keyframes wordIdle{50%{transform:rotate(1.8deg)}}@keyframes wordWave{25%{transform:rotate(-7deg)}70%{transform:rotate(7deg)}}@keyframes wordHappy{40%{transform:translateY(-12px) rotate(3deg)}}@keyframes wordNod{50%{transform:rotate(4deg) translateY(3px)}}@keyframes wordRight{50%{transform:scale(1.1)}100%{transform:scale(1.04)}}@keyframes wordTry{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes wordConfetti{to{top:95%;transform:rotate(380deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.word-shell *{animation:none!important;transition:none!important}.word-confetti{display:none}}
@media(max-height:650px) and (max-width:599px){.word-finale{width:210px;height:190px}.word-finale .word-mimi{width:175px;height:190px}.word-trophy{width:90px;height:90px}.word-end .word-earned{margin:10px}.word-end-controls{margin:18px 0}}
