:root{font-family:'Trebuchet MS','Arial Rounded MT Bold',Arial,sans-serif;color:#292140;background:#f5f3ff;font-size:16px;--purple:#5633a6;--ink:#292140;--yellow:#ffce4e}
*{box-sizing:border-box}body{margin:0}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:4px solid #178998;outline-offset:5px}[hidden]{display:none!important}
.app{max-width:980px;margin:auto;padding:24px 30px 14px}header{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font-size:26px;font-weight:900;text-decoration:none;color:var(--purple);letter-spacing:-1px}.brand>span:not(.brand-paw){color:#af6810}.brand-paw{font-size:23px;margin-left:10px}.quiet{border:0;background:transparent;color:var(--purple);min-height:44px;padding:10px;font-weight:bold;text-decoration:underline;text-underline-offset:4px}.journey{display:flex;align-items:center;margin:26px auto;max-width:640px;gap:10px}.journey span{display:flex;align-items:center;gap:7px;font-size:14px;color:#696176;white-space:nowrap}.journey b{display:grid;place-items:center;border:2px solid #d9d1ea;border-radius:50%;width:30px;height:30px}.journey i{height:2px;background:#ddd7ec;flex:1}.journey .active{color:var(--purple);font-weight:bold}.journey .active b{color:white;border-color:var(--purple);background:var(--purple)}.journey .done b{background:#e0d7f4;border-color:#e0d7f4;color:var(--purple)}
main{position:relative;background:#fff;border:1px solid #e8e1f3;border-radius:32px;min-height:590px;padding:30px 36px;box-shadow:0 12px 38px #44307408;text-align:center;outline:none}.eyebrow{text-transform:uppercase;font-size:13px;letter-spacing:2px;color:#70627e;font-weight:bold;margin:0 0 10px}h1{font-size:clamp(28px,5vw,43px);line-height:1.1;letter-spacing:-1.1px;margin:0 0 10px}h2{font-size:25px}.subtitle{font-size:17px;line-height:1.5;color:#685b78;margin:0 auto 14px}.primary{background:var(--purple);border:0;border-bottom:4px solid #392172;color:white;border-radius:18px;padding:15px 26px;font-weight:bold;min-height:58px;font-size:18px;box-shadow:0 4px 0 #5633a610}.primary:active{transform:translateY(2px);border-bottom-width:2px}.primary:disabled{opacity:.5}.secondary{background:#f2ecfd;border:2px solid #dfd3f3;color:var(--purple);border-radius:16px;padding:13px 20px;min-height:54px;font-weight:bold}.actions{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}.icon-button{width:48px;height:48px;border:0;background:#f1ecf8;border-radius:50%;font-size:28px;color:var(--purple)}
.heroes{display:flex;justify-content:center;align-items:end;gap:22px;margin:14px auto 20px;height:280px}.hero{height:100%;max-width:43%;object-fit:contain;border-radius:16px;transition:opacity .3s,transform .3s}.hero.waiting{opacity:0;transform:translateY(14px)}.hero.speaking{animation:bob .8s ease-in-out infinite alternate}.hero.dim{opacity:.6}.hero-small{height:135px;border-radius:12px}.bubble{font-size:25px;font-weight:bold;min-height:39px;line-height:1.35;color:var(--purple);margin:12px 0 4px}.translation{color:#73667d;min-height:24px;margin:0;font-size:16px}.count{color:#756981;font-size:14px;margin:12px 0}.animal-scene{margin:15px auto 8px;width:min(280px,65vw);height:260px;border-radius:50%;background:var(--animal-color);display:grid;place-items:center}.animal-scene img{width:88%;height:88%;object-fit:contain}.talking{animation:bob .55s ease-in-out infinite alternate}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;max-width:530px;margin:20px auto 8px}.animal-choice{position:relative;border:3px solid transparent;background:var(--animal-color);border-radius:24px;padding:13px;min-height:165px;transition:border-color .2s,transform .2s}.animal-choice img{height:150px;width:100%;object-fit:contain}.animal-choice:hover:not(:disabled){transform:translateY(-3px)}.animal-choice.correct{border-color:#198261;box-shadow:0 0 0 3px #19826120}.animal-choice.correct:after{content:'✓';position:absolute;right:8px;top:8px;background:#198261;color:#fff;border-radius:50%;width:30px;height:30px;font-size:23px}.animal-choice.retry{animation:nudge .25s ease-in-out 2}.yes-no{display:flex;justify-content:center;gap:24px;margin-top:15px}.answer{border:3px solid transparent;border-radius:22px;width:112px;height:82px;font-size:43px;background:#e5f5f1}.answer:last-child{background:#ffeddf}.answer.correct{border-color:#198261}.answer.retry{animation:nudge .25s ease-in-out 2}.feedback{min-height:30px;font-size:18px;color:#226b58;font-weight:bold;margin:12px 0 0}.audio-error{margin:15px auto;background:#fff0ce;border-radius:14px;padding:14px;line-height:1.5}.paw-reward{font-size:90px;background:#fff0b8;border:4px solid #ffd566;border-radius:50%;width:166px;height:166px;display:grid;place-items:center;margin:24px auto;animation:appear .5s ease-out}.paw-path{display:flex;justify-content:center;align-items:center;gap:18px;font-size:28px;margin:15px}.paw-path .future{filter:grayscale(1);opacity:.25}.paw-path span{display:grid;gap:3px}.paw-path small{font-size:14px;color:#6c617a}.reward-heroes{display:flex;justify-content:center;gap:16px}footer{display:flex;justify-content:space-between;gap:10px;color:#766c81;font-size:13px;padding:20px 6px}.audio-playing{opacity:.65}dialog{max-width:540px;width:calc(100% - 30px);border:0;border-radius:26px;padding:26px;color:var(--ink);max-height:85dvh;line-height:1.55}dialog::backdrop{background:#24153a88}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-top h2{margin:0}summary{cursor:pointer;color:var(--purple);font-weight:bold;padding:12px 0}dt{font-weight:bold;margin-top:12px}dd{margin:4px 0}.no-storage{font-size:14px;color:#7c5b14}
@keyframes bob{to{transform:translateY(-7px) rotate(1deg)}}@keyframes nudge{50%{transform:translateX(4px)}}@keyframes appear{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
@media(max-width:600px){.app{padding:15px 12px 8px}.brand{font-size:23px}.brand-paw{display:none}.journey{margin:18px 0;gap:5px}.journey span{font-size:12px;gap:4px}.journey b{width:25px;height:25px}.journey i{min-width:5px}main{padding:23px 15px;border-radius:25px;min-height:560px}.heroes{height:245px;gap:12px}.bubble{font-size:23px}.choice-grid{gap:11px}.animal-choice{min-height:142px;padding:10px;border-radius:20px}.animal-choice img{height:125px}.animal-scene{height:235px;width:235px}.actions{gap:10px}.primary,.secondary{padding:13px 18px}.subtitle{font-size:16px}footer{font-size:12px}.hero-small{height:100px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.reward-klara{display:block;width:min(270px,70vw);height:auto;max-height:310px;object-fit:contain;margin:18px auto 8px}
