:root{font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;color:#5a402b;background:#fff9e9;font-synthesis:none}
*{box-sizing:border-box}html{min-height:100%}body{margin:0;min-width:320px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #e49a58;outline-offset:3px}[hidden]{display:none!important}
.app-shell{display:grid;grid-template-columns:274px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff4ca;border-right:2px solid #f4e6b3;padding:31px 20px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:5}.brand{display:flex;align-items:center;gap:10px;margin:0 2px 52px}.brand-mascot{width:62px;height:62px;flex:none;filter:drop-shadow(0 4px 0 #eadba9)}.brand-mascot img{display:block;width:100%;height:100%;object-fit:contain}.brand-name{font-size:20px;font-weight:900;letter-spacing:-.9px;line-height:1.05;white-space:nowrap}.brand-tagline{font-size:10px;color:#9c8161;margin-top:6px;white-space:nowrap}.nav-heading{color:#ac8d60;display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:900;letter-spacing:1.5px;padding:0 11px;margin-bottom:15px}.unit-list{display:grid;gap:10px}.unit-button{display:flex;align-items:center;width:100%;gap:12px;text-align:left;padding:13px 12px;border:2px solid transparent;background:transparent;color:#816447;border-radius:17px;transition:transform .2s,background .2s,box-shadow .2s}.unit-button:hover{transform:translateY(-2px);background:#fffae7}.unit-button.active{background:#fffdf4;border-color:#f4df9d;box-shadow:0 5px 0 #ead8a5;color:#5d4027}.unit-number{height:36px;width:36px;flex:none;display:grid;place-items:center;border-radius:12px;background:#f8e4a8;color:#9a6e3f;font-size:13px;font-weight:900}.unit-button.active .unit-number{background:#ffd668;color:#744c2a}.unit-info{display:grid;gap:3px;min-width:0}.unit-info strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unit-info small{font-size:11px;color:#ad9070}.unit-tick{margin-left:auto;color:#7baa6c;font-size:21px}
.main-content{min-width:0;max-width:1200px;width:100%;margin:0 auto;padding:29px clamp(22px,5vw,74px) 18px}.lesson-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:19px}.section-kicker{font-weight:900;color:#c29150;font-size:10px;letter-spacing:1.5px}.kicker-dot{display:inline-block;background:#f3c966;height:8px;width:8px;border-radius:50%;margin-right:5px}.lesson-heading h2{font-size:27px;letter-spacing:-1px;margin:7px 0 0}.progress-card{min-width:120px;display:flex;align-items:center;justify-content:center;gap:12px;background:#fff3d0;border:2px solid #f0e2b7;padding:10px 15px;border-radius:18px;box-shadow:0 4px 0 #f4ead0}.progress-bone{width:37px;color:#bd8555;transform:rotate(-26deg)}.progress-bone svg{display:block;width:100%}#progress-count{font-size:26px;line-height:1;letter-spacing:-1px}.progress-track{height:11px;background:#f7ebc9;border-radius:20px;overflow:hidden;margin-bottom:23px;box-shadow:inset 0 1px 2px #e7d8af}.progress-track>div{height:100%;width:0;background:repeating-linear-gradient(-45deg,#f5be60 0 12px,#ffd274 12px 24px);border-radius:20px;transition:width .5s cubic-bezier(.2,.8,.2,1)}
.learning-stage{position:relative;border-radius:25px;min-height:357px}.task-card{position:relative;min-height:357px;background:#fffef7;border:2px solid #f1e6c7;border-radius:25px;padding:30px 38px 30px;box-shadow:0 8px 0 #f6e9c7;animation:cardIn .38s both}.task-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.task-type{font-size:10px;letter-spacing:1.4px;font-weight:900;color:#b48755;display:flex;align-items:center;gap:8px}.task-type-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#ffedba;color:#ab7442;font-size:16px}.task-number{font-size:12px;color:#b49b76;font-weight:800}.task-question{font-size:27px;line-height:1.22;letter-spacing:-.8px;margin:25px 0 6px;color:#5a3d29}.task-subtitle{font-size:13px;color:#ad9170;margin:0 0 22px}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.choice{background:#fffaf0;border:2px solid #eddcb8;border-radius:14px;min-height:65px;color:#65452e;font-size:19px;font-weight:900;transition:transform .18s,box-shadow .18s,border-color .18s,background .18s;box-shadow:0 4px 0 #eadcbe}.choice:hover{transform:translateY(-3px);box-shadow:0 7px 0 #eadcbe}.choice.selected{background:#fff0ba;border-color:#e7b452;box-shadow:0 4px 0 #dba955}.choice.wrong{background:#fff0eb;border-color:#e6a99e;animation:shake .3s}.comparison{grid-template-columns:repeat(2,minmax(0,1fr))}.comparison .choice{padding:15px 20px;text-align:left;font-size:16px;line-height:1.4}.choice-letter{display:inline-grid;place-items:center;width:25px;height:25px;background:#fae9c6;border-radius:8px;font-size:12px;margin-right:9px;color:#9b7043}.input-wrap{position:relative;max-width:440px}.answer-input{width:100%;height:61px;background:#fffaf0;border:2px solid #ebd7ac;border-radius:14px;box-shadow:0 4px 0 #eadcbe;padding:0 17px;font-size:18px;font-weight:800;color:#67452e}.answer-input::placeholder{color:#c2a986;font-weight:normal}.answer-input.wrong{border-color:#e7a99d;background:#fff1ed;animation:shake .3s}.task-bottom{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-top:26px;min-height:48px}.help-area{display:grid;justify-items:start;gap:9px;max-width:440px}.hint-button{border:2px solid #ecd9ad;border-radius:13px;background:#fff7df;color:#8b633f;font-size:13px;font-weight:900;padding:11px 15px;box-shadow:0 4px 0 #eadcbe;transition:transform .18s,box-shadow .18s}.hint-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 0 #eadcbe}.hint-button:disabled{opacity:.55;cursor:not-allowed}.hint-text{font-size:13px;line-height:1.4;color:#795633;background:#fff2cf;border-radius:11px;padding:9px 12px}.feedback{font-size:12px;line-height:1.4}.feedback.error{color:#be6858;font-weight:800}.feedback.success{color:#659557;font-weight:800}.check-button,.restart-button{border:0;border-radius:13px;background:#e7a85d;color:#fffdf6;font-size:14px;font-weight:900;padding:14px 24px;box-shadow:0 5px 0 #c78746;white-space:nowrap;transition:transform .18s,box-shadow .18s,opacity .18s}.check-button:hover:not(:disabled),.restart-button:hover{transform:translateY(-2px);box-shadow:0 7px 0 #c78746}.check-button:disabled{opacity:.5;cursor:not-allowed}.done-state{text-align:center;padding:10px 20px}.done-sticker{display:grid;place-items:center;width:86px;height:86px;margin:auto;border-radius:27px;background:#ffe3a0;font-size:44px;transform:rotate(-8deg);box-shadow:0 6px 0 #f0d394}.done-state h3{font-size:31px;letter-spacing:-1px;margin:22px 0 6px}.done-state p{color:#9f8061;font-size:14px;margin-bottom:22px}.page-footer{text-align:center;font-size:11px;color:#b7a17e;margin-top:27px}
.celebration{position:absolute;inset:0;z-index:4;display:grid;place-items:center;overflow:hidden;border-radius:25px;background:var(--party-bg,#ffe29a);cursor:pointer;animation:partyIn .3s both;box-shadow:0 8px 0 #f2dfba}.celebration.closing{animation:partyOut .35s both}.celebration-content{z-index:2;text-align:center;animation:popIn .55s cubic-bezier(.2,1.4,.4,1) both}.celebration-pill{background:#fff9e5;color:#895d37;border:2px solid rgba(112,69,41,.12);border-radius:30px;padding:8px 20px;font-size:18px;font-weight:900;display:table;margin:0 auto 12px;box-shadow:0 3px 0 rgba(100,70,40,.12)}.celebration img{display:block;max-height:245px;max-width:min(76vw,350px);width:auto;height:auto;object-fit:contain;margin-inline:auto;-webkit-mask-image:radial-gradient(ellipse closest-side at center,#000 72%,transparent 100%);mask-image:radial-gradient(ellipse closest-side at center,#000 72%,transparent 100%)}.celebrate-sparkle{position:absolute;color:#fff6d9;z-index:1;font-size:48px;animation:twinkle 1s ease-in-out infinite}.sparkle-one{left:12%;top:18%}.sparkle-two{right:12%;top:12%;animation-delay:.3s}.sparkle-three{right:20%;bottom:12%;animation-delay:.6s}.confetti{position:absolute;top:-20px;width:12px;height:19px;border-radius:3px;animation:confetti 2.1s linear infinite}.c1{left:11%;background:#f19b8d;animation-delay:.1s}.c2{left:27%;background:#fff5dc;animation-delay:.8s}.c3{left:44%;background:#a4c89d;animation-delay:.2s}.c4{left:63%;background:#fff1a0;animation-delay:1s}.c5{left:78%;background:#e9adbf;animation-delay:.5s}.c6{left:92%;background:#b6cee0;animation-delay:1.4s}
@keyframes cardIn{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}@keyframes twinkle{50%{transform:scale(1.35);opacity:.55}}@keyframes shake{25%{transform:translateX(-5px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)}}@keyframes partyIn{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@keyframes partyOut{to{opacity:0;transform:scale(1.06)}}@keyframes popIn{from{opacity:0;transform:scale(.5) rotate(-8deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes confetti{to{transform:translateY(480px) rotate(680deg)}}
@media(max-width:800px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;padding:17px 19px 12px;border-right:0;border-bottom:2px solid #f1e0ad}.brand{margin:0 0 12px}.brand-mascot{width:49px;height:49px}.brand-name{font-size:18px}.nav-heading{margin-bottom:7px;padding:0 2px}.unit-list{display:flex;overflow:auto;padding-bottom:6px}.unit-button{width:auto;min-width:186px;padding:8px 10px}.unit-number{height:31px;width:31px}.main-content{padding:20px 20px 26px}}
@media(max-width:580px){.main-content{padding:18px 16px 30px}.lesson-heading h2{font-size:22px}.progress-card{min-width:auto;padding:7px 9px;gap:4px;border-radius:13px}.progress-bone{width:28px}#progress-count{font-size:22px}.task-card{padding:25px 19px;min-height:390px}.task-question{font-size:23px;margin-top:22px}.choices{gap:8px}.choice{min-height:58px;font-size:16px}.comparison{grid-template-columns:1fr}.comparison .choice{min-height:56px;font-size:14px}.task-bottom{align-items:stretch;flex-direction:column;margin-top:22px;gap:12px}.check-button{width:100%}.celebration img{max-width:75vw;max-height:220px}.celebrate-sparkle{font-size:30px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
