@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700;800&family=Fredoka:wght@600;700&display=swap');

:root{--ink:#25233a;--muted:#706d82;--paper:#fbfaf7;--white:#fff;--purple:#7358e8;--purple-dark:#5940c7;--yellow:#ffc843;--green:#43bf8b;--red:#ef6a72;--blue:#54a8e8;--line:#e9e6ee;--shadow:0 14px 40px rgba(45,36,90,.1)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"DM Sans",sans-serif;min-height:100vh;background-image:radial-gradient(#e7e1ff 1px,transparent 1px);background-size:28px 28px}
button,a,input{font:inherit}
button{cursor:pointer}
.topbar{height:74px;padding:0 max(24px,calc((100% - 1120px)/2));display:flex;align-items:center;justify-content:space-between;background:rgba(251,250,247,.9);backdrop-filter:blur(12px);border-bottom:1px solid rgba(50,40,70,.08);position:sticky;top:0;z-index:10}
.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-family:"Fredoka",sans-serif;font-weight:700;font-size:20px;text-decoration:none}.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:white;background:var(--purple);transform:rotate(-4deg);box-shadow:0 5px 0 var(--purple-dark);font-size:15px}.top-actions{display:flex;align-items:center;gap:12px}.sound-button,.avatar{width:40px;height:40px;border:0;border-radius:13px;background:white;box-shadow:0 2px 10px rgba(30,20,80,.08)}.avatar{width:auto;min-width:64px;padding:0 15px;display:grid;place-items:center;background:var(--yellow);font-weight:800;color:#674b00}
main{width:min(1120px,calc(100% - 40px));margin:auto;padding:46px 0 80px}.hero{min-height:330px;border-radius:32px;padding:55px 60px;display:grid;grid-template-columns:1.3fr .7fr;align-items:center;overflow:hidden;position:relative;color:white;background:linear-gradient(125deg,#6750dc,#8b67ed);box-shadow:0 18px 50px rgba(93,67,201,.25)}.hero:before{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.06);left:-90px;top:-140px}.eyebrow,.mini-label{font-weight:800;font-size:12px;letter-spacing:.14em;margin:0 0 9px}.hero .eyebrow{color:#ded7ff}.hero h1{font-family:"Fredoka";font-size:clamp(39px,5vw,66px);line-height:.98;margin:0;max-width:620px}.hero h1 em{font-style:normal;color:var(--yellow)}.hero-copy{font-size:18px;line-height:1.55;max-width:570px;color:#eeeaff;margin:22px 0 25px}.date-pill{display:inline-flex;align-items:center;gap:10px;border-radius:15px;background:rgba(255,255,255,.14);padding:11px 15px;font-size:14px}.date-pill strong{padding-left:10px;border-left:1px solid rgba(255,255,255,.25)}.hero-art{height:240px;position:relative;display:grid;place-items:center}.mascot{font-size:85px;z-index:2;filter:drop-shadow(0 12px 8px rgba(30,15,100,.25));animation:float 3s ease-in-out infinite}.orbit{position:absolute;border:2px dashed rgba(255,255,255,.23);border-radius:50%}.orbit-one{width:210px;height:210px}.orbit-two{width:290px;height:140px;transform:rotate(-18deg)}.float-star{position:absolute;color:var(--yellow);animation:pulse 2s ease-in-out infinite}.s1{top:12px;right:20%;font-size:28px}.s2{left:5%;bottom:40px;font-size:18px;animation-delay:.6s}.s3{right:3%;bottom:40px;font-size:35px;animation-delay:1s}@keyframes float{50%{transform:translateY(-12px) rotate(3deg)}}@keyframes pulse{50%{transform:scale(1.35) rotate(15deg)}}
.progress-card{background:white;border:1px solid var(--line);box-shadow:var(--shadow);padding:25px 28px;border-radius:23px;margin:-20px 34px 55px;position:relative;z-index:3}.progress-top{display:flex;justify-content:space-between;align-items:center}.mini-label{color:var(--purple)}.progress-top h2{font-family:"Fredoka";margin:0 0 14px;font-size:20px}.level-badge{background:#f0edff;color:var(--purple-dark);border-radius:13px;padding:9px 13px;font-size:13px}.progress-track{height:12px;background:#eeecf3;border-radius:20px;overflow:hidden}.progress-track div,.round-progress div{height:100%;width:0;background:linear-gradient(90deg,var(--purple),#a084ff);border-radius:20px;transition:width .5s}.progress-card>p{margin:10px 0 0;color:var(--muted);font-size:13px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:23px}.section-heading h2{font-family:"Fredoka";font-size:31px;margin:0}.section-heading .eyebrow{color:var(--purple)}.text-button{border:0;background:none;color:var(--muted);font-size:13px;text-decoration:underline}.mission-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.mission-card{border:1px solid var(--line);background:white;border-radius:24px;padding:24px;display:grid;grid-template-columns:76px 1fr;gap:19px;position:relative;overflow:hidden;box-shadow:0 5px 18px rgba(30,22,70,.05);transition:.2s}.mission-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.mission-icon{width:76px;height:76px;display:grid;place-items:center;border-radius:22px;font-size:37px}.mission-card:nth-child(1) .mission-icon{background:#e8f4ff}.mission-card:nth-child(2) .mission-icon{background:#fff1cf}.mission-card:nth-child(3) .mission-icon{background:#e3f8ef}.mission-card:nth-child(4) .mission-icon{background:#f3eaff}.mission-card:nth-child(5) .mission-icon{background:#e7f5ff}.mission-card:nth-child(6) .mission-icon{background:#fff1cf}.mission-card:nth-child(7) .mission-icon{background:#ffe9ef}.mission-card:nth-child(8) .mission-icon{background:#e3f8ef}.mission-card h3{font-family:"Fredoka";font-size:21px;margin:2px 0 5px}.mission-card p{color:var(--muted);line-height:1.45;font-size:14px;margin:0 0 15px}.mission-footer{display:flex;align-items:center;justify-content:space-between}.stars{color:#d8d5df;letter-spacing:2px}.stars .earned{color:var(--yellow)}.play-button{border:0;border-radius:12px;padding:9px 15px;background:var(--ink);color:white;font-weight:700;font-size:13px}.play-button:hover{background:var(--purple)}.tip{margin-top:36px;padding:20px 24px;border:1px solid #f3d895;background:#fff8df;border-radius:20px;display:flex;gap:17px;align-items:center}.tip-icon{font-size:27px}.tip p{margin:4px 0 0;color:#76673d;font-size:14px}
#gameDialog{width:min(650px,calc(100% - 24px));max-height:calc(100vh - 24px);padding:0;border:0;border-radius:28px;background:white;box-shadow:0 30px 100px rgba(25,15,60,.35)}#gameDialog::backdrop{background:rgba(30,24,51,.68);backdrop-filter:blur(4px)}.dialog-shell{padding:29px;position:relative}.dialog-head{display:flex;justify-content:space-between;align-items:start}.dialog-head h2{font-family:"Fredoka";font-size:28px;margin:0}.close-button{border:0;background:#f1eff4;border-radius:50%;font-size:26px;width:40px;height:40px;line-height:1}.round-status{text-align:right;color:var(--purple-dark);font-size:13px;font-weight:800;margin-top:13px}.round-progress{height:7px;background:#eeeaf3;border-radius:10px;margin:7px 0 28px}.game-content{text-align:center;min-height:305px}.game-content h3{font-size:19px;margin:0 0 20px}.big-prompt{font-family:"Fredoka";font-size:46px;margin:15px 0 27px}.number-prompt{font-size:70px;color:var(--purple-dark)}.colour-prompt{display:grid;place-items:center;height:166px;margin:2px 0 17px}.colour-swatch{display:block;width:190px;height:148px;overflow:visible;filter:drop-shadow(0 0 1px rgba(20,18,30,.75)) drop-shadow(0 10px 12px rgba(37,35,58,.2))}.listen-button{border:0;width:100px;height:100px;border-radius:50%;background:var(--purple);color:white;font-size:42px;box-shadow:0 8px 0 var(--purple-dark);margin:10px 0 30px}.listen-button:active{transform:translateY(5px);box-shadow:0 3px 0 var(--purple-dark)}.answers{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.answer{min-height:57px;border:2px solid #e5e1eb;background:white;border-radius:15px;font-weight:700;color:var(--ink);padding:10px}.answer:hover{border-color:var(--purple);background:#f6f3ff}.answer.correct{border-color:var(--green);background:#eafaf3}.answer.wrong{border-color:var(--red);background:#fff0f1}.spell-input{width:min(330px,90%);height:60px;border:2px solid #ddd8e6;border-radius:15px;padding:0 18px;text-align:center;font-size:21px;outline:none}.spell-input:focus{border-color:var(--purple)}.submit-answer{display:block;margin:16px auto 0;border:0;border-radius:14px;background:var(--purple);color:white;padding:13px 28px;font-weight:800}.picture-prompt{font-size:74px;margin:5px}.school-picture{height:160px;display:grid;place-items:center}.school-picture img{display:block;width:220px;height:160px;max-width:85%;object-fit:contain}.school-picture span{line-height:1}.body-figure-wrap{display:flex;flex-direction:column;align-items:center;margin:-8px 0 14px}.body-figure-svg{display:block;width:230px;height:220px}.body-arrow{stroke:#ef5361;stroke-width:7;stroke-linecap:round}.body-target{fill:#ffcf43;stroke:#ef5361;stroke-width:3;animation:targetPulse 1.25s ease-in-out infinite}.mini-listen{border:0;border-radius:12px;background:#f0edff;color:var(--purple-dark);font-size:13px;font-weight:800;padding:9px 14px;margin-top:-5px}.mini-listen:hover{background:#e4ddff}.writing-figure{margin-bottom:2px}.body-answers .answer{font-size:16px}.feeling-figure-wrap{display:flex;flex-direction:column;align-items:center;margin:-5px 0 14px}.feeling-figure-svg{display:block;width:240px;height:205px}.feeling-writing{margin-bottom:0}.feeling-answers .answer{font-size:16px}@keyframes targetPulse{50%{opacity:.45}}.feedback{min-height:25px;text-align:center;font-weight:800;margin-top:16px}.feedback.good{color:#18835b}.feedback.bad{color:#d94751}.feedback:empty{min-height:0;margin-top:6px}.feedback-panel{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;margin-top:8px;padding:15px 16px;border:2px solid #f1d27a;border-radius:18px;background:#fff9e5;box-shadow:0 8px 24px rgba(85,66,17,.1);text-align:left}.feedback-panel[hidden]{display:none}.feedback-face{font-size:35px;line-height:1}.feedback-copy .mini-label{color:#a97100;margin:0 0 4px}.feedback-copy>p:not(.mini-label){margin:0 0 3px;color:var(--muted)}.feedback-copy strong{color:var(--purple-dark);font-family:"Fredoka";font-size:22px;margin-left:4px}.feedback-copy small,.feedback-action small{color:var(--muted);font-size:12px}.feedback-action{text-align:center}.feedback-action button{display:block;margin:0 auto 5px;border:0;border-radius:12px;background:var(--purple);color:white;font-weight:800;padding:11px 18px;box-shadow:0 4px 0 var(--purple-dark);white-space:nowrap}.feedback-action button:active{transform:translateY(2px);box-shadow:0 2px 0 var(--purple-dark)}.result-view{display:grid;place-items:center;padding:5px}.result-face{font-size:70px}.result-view h3{font-family:"Fredoka";font-size:30px;margin:10px}.result-view p{color:var(--muted);margin:0 0 20px}.result-enter-hint{display:block;color:var(--muted);font-size:12px;margin-top:10px}.confetti i{position:fixed;z-index:100;top:-20px;width:10px;height:16px;animation:fall 1.8s linear forwards}@keyframes fall{to{transform:translateY(105vh) rotate(600deg)}}
.worksheet-section{margin-top:70px}.worksheet-intro{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}.worksheet-intro .eyebrow{color:var(--purple)}.worksheet-intro h2{font-family:"Fredoka";font-size:31px;margin:0}.worksheet-intro>div>p:last-child{color:var(--muted);margin:7px 0 0}.print-button{border:0;border-radius:14px;padding:13px 18px;background:var(--purple);color:white;font-weight:800;box-shadow:0 5px 0 var(--purple-dark);white-space:nowrap}.print-button:active{transform:translateY(3px);box-shadow:0 2px 0 var(--purple-dark)}.solution-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:25px;padding:20px 22px;border:1px solid #cfe8dc;border-radius:18px;background:#effaf5}.solution-actions strong{font-family:"Fredoka";font-size:20px}.solution-actions p{color:var(--muted);font-size:13px;margin:3px 0 0}.solution-print-button{border:0;border-radius:14px;padding:13px 18px;background:var(--green);color:#123d2d;font-weight:800;box-shadow:0 5px 0 #269467;white-space:nowrap}.solution-print-button:active{transform:translateY(3px);box-shadow:0 2px 0 #269467}.solution-pages{display:none}.worksheet-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.worksheet-page{position:relative;aspect-ratio:210/297;padding:27px;background:white;border:1px solid #ddd9e5;border-radius:8px;box-shadow:0 12px 35px rgba(37,35,58,.1);overflow:hidden;color:#282638}.sheet-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding-bottom:10px;border-bottom:3px solid var(--purple)}.sheet-logo{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--purple);color:white;font-family:"Fredoka";font-size:13px}.sheet-header h2{font-family:"Fredoka";font-size:20px;margin:0}.sheet-header p{font-size:10px;color:var(--muted);margin:1px 0 0}.sheet-header>strong{color:var(--purple);font-size:12px}.sheet-meta{display:grid;grid-template-columns:1.5fr 1fr;gap:25px;margin:11px 0 14px;font-size:11px}.sheet-meta span{display:flex;gap:5px}.sheet-meta i{flex:1;border-bottom:1px solid #777}.sheet-block{margin-top:14px}.sheet-block h3{display:flex;align-items:center;gap:7px;font-family:"Fredoka";font-size:16px;margin:0}.sheet-block h3 span{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#eeeaff;color:var(--purple-dark);font:800 11px "DM Sans"}.sheet-block>p{font-size:10px;color:var(--muted);margin:4px 0 9px}.sheet-number-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px 12px}.sheet-number{display:grid;grid-template-columns:23px 1fr;align-items:end;gap:5px;font-size:12px}.sheet-number b{height:23px;display:grid;place-items:center;border-radius:6px;background:#f1eff6}.sheet-number i,.sheet-colour-item i{height:20px;border-bottom:1px solid #777}.sheet-colour-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.sheet-colour-item{position:relative;text-align:center}.sheet-colour-item>b{position:absolute;left:0;top:1px;font-size:9px;color:var(--muted)}.sheet-colour-item svg{display:block;width:62px;height:48px;max-width:100%;margin:auto;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}.sheet-colour-item i{display:block;height:16px}.sheet-phone-write-list{display:grid;grid-template-columns:1fr;gap:9px}.sheet-phone-write{display:grid;grid-template-columns:18px 100px 1fr;align-items:end;gap:7px;font-size:12px}.sheet-phone-write span{font-weight:800;letter-spacing:1px;white-space:nowrap}.sheet-phone-write i{height:30px;border-bottom:1px solid #777}.sheet-bonus{margin-top:11px;padding:9px 11px;border:1.5px dashed #d8b64f;border-radius:10px;background:#fff9e5}.sheet-bonus>strong{color:#8b6500;font-size:10px}.sheet-bonus>p{font-size:9px;color:var(--muted);margin:3px 0}.sheet-phone-row{display:grid;grid-template-columns:18px repeat(4,34px);gap:8px;align-items:center;margin:7px 0 0;font-size:11px}.sheet-phone-row i{height:30px;border:1.5px solid #9b95a8;border-radius:6px}.sheet-word-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px 18px}.sheet-body-grid{grid-template-columns:repeat(3,1fr);gap:7px 12px}.sheet-word{display:grid;grid-template-columns:18px auto 1fr;align-items:end;gap:5px;font-size:11px}.sheet-word b{color:var(--purple)}.sheet-word i{height:16px;border-bottom:1px solid #777}.sheet-feelings{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.sheet-feelings>div{text-align:center}.sheet-feelings .feeling-figure-svg{width:78px;height:70px;max-width:100%}.sheet-feelings i{display:block;height:16px;border-bottom:1px solid #777}.filled-answer{display:flex!important;align-items:flex-end;color:var(--purple-dark);font-style:normal;font-weight:800;white-space:nowrap}.sheet-colour-item .filled-answer{align-items:center;justify-content:center;font-size:11px}.sheet-phone-write .filled-answer{font-size:10px}.solution-ribbon{position:absolute;right:27px;top:78px;padding:5px 9px;border-radius:8px;background:#e3f8ef;color:#16704d;font-size:10px;font-weight:800}.solution-bonus{min-height:45px}.sheet-footer{margin-top:15px;padding-top:8px;border-top:1px dashed #c9c5d0;text-align:center;color:var(--purple-dark);font-size:10px;font-weight:800}
@media(max-width:760px){main{width:min(100% - 24px,600px);padding-top:18px}.topbar{height:64px;padding:0 14px}.brand{font-size:17px}.hero{grid-template-columns:1fr;padding:36px 25px;min-height:auto}.hero-copy{font-size:16px}.hero-art{display:none}.date-pill{align-items:flex-start;flex-wrap:wrap}.progress-card{margin:-10px 10px 38px;padding:20px}.mission-grid{grid-template-columns:1fr}.section-heading{align-items:start}.text-button{display:none}.mission-card{grid-template-columns:62px 1fr;padding:18px;gap:14px}.mission-icon{width:62px;height:62px;font-size:30px}.tip{align-items:flex-start}.dialog-shell{padding:22px 16px}.answers{grid-template-columns:1fr}.game-content{min-height:370px}.top-actions{gap:7px}}
@media(max-width:760px){.worksheet-section{margin-top:48px}.worksheet-intro{align-items:start;flex-direction:column}.worksheet-pages{grid-template-columns:1fr}.worksheet-page{aspect-ratio:auto;padding:20px}.print-button{width:100%}.solution-actions{align-items:flex-start;flex-direction:column}.solution-print-button{width:100%}.sheet-body-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.feedback-panel{grid-template-columns:auto 1fr;padding:13px;gap:11px}.feedback-action{grid-column:1/-1;width:100%}.feedback-action button{width:100%}}
@media print{
  @page{size:A4 portrait;margin:10mm}
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body{background:#fff!important;background-image:none!important}
  .topbar,main>:not(.worksheet-section),body>dialog,body>.confetti{display:none!important}
  main{width:auto!important;margin:0!important;padding:0!important}
  .worksheet-section{margin:0!important}
  .worksheet-intro,.solution-actions{display:none!important}
  .worksheet-pages{display:block!important}
  .solution-pages{display:none!important}
  body.print-solutions .worksheet-pages{display:none!important}
  body.print-solutions .solution-pages{display:block!important}
  .worksheet-page{width:190mm!important;height:277mm!important;min-height:0!important;aspect-ratio:auto!important;margin:0!important;padding:8mm!important;border:0!important;border-radius:0!important;box-shadow:none!important;break-after:page;page-break-after:always;overflow:hidden!important}
  .worksheet-page:last-child{break-after:auto;page-break-after:auto}
  .solution-ribbon{right:8mm;top:22mm}
  .sheet-header h2{font-size:21px}.sheet-header p{font-size:10px}.sheet-block{margin-top:14px}.sheet-block h3{font-size:17px}.sheet-block>p{font-size:10px}.sheet-number-grid{gap:7px 15px}.sheet-number{font-size:13px}.sheet-colour-item svg{width:25mm;height:18mm}.sheet-colour-grid{gap:2mm}.sheet-phone-row{grid-template-columns:7mm repeat(4,13mm);gap:3mm;margin:3mm 0}.sheet-phone-row i{height:10mm}.sheet-word-grid{gap:3mm 8mm}.sheet-body-grid{grid-template-columns:repeat(3,1fr);gap:3mm 5mm}.sheet-word{font-size:12px}.sheet-feelings .feeling-figure-svg{width:30mm;height:25mm}.sheet-footer{font-size:11px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
