:root{--purple:#6941cf;--ink:#232b49;--muted:#68728a;--bg:#f5f7fc;--border:#e3e8f3;--teal:#087f86;--sun:#ffd34f}
body,.family{background:#f5f7fc;color:var(--ink)}
.sidebar{background:#fff;border-right:1px solid #e4e9f4}.brand{font-size:20px;gap:9px;letter-spacing:-.8px}.brand small{letter-spacing:1px;font-size:8px}.logo{background:#6841ce;box-shadow:0 4px 0 #452691;border-radius:13px;flex-shrink:0;font-size:27px;letter-spacing:-3px}.logo span{color:#ffdb59}
header{background:#ffffffed;border-bottom:1px solid #e4e9f4}.family header b,.editor-page header b{font-weight:800;color:#6135bf;font-size:20px}
.button{background:#6941cf;border-radius:13px;font-weight:700;min-height:44px;box-shadow:0 3px 0 #492499;transition:transform .18s,box-shadow .18s,background .18s}.button:hover{transform:translateY(-2px);filter:none;background:#5b32be;box-shadow:0 5px 0 #492499}.button:active{transform:translateY(2px);box-shadow:0 1px 0 #492499}.button.secondary,.button.light{background:#eee9ff;color:#5631ab;box-shadow:0 3px 0 #d7caef}.button.light{background:#ffdc62;color:#34244c;box-shadow:0 3px 0 #d1a827}
.card,.stat,.family-stats>div{border:1px solid #e3e8f3;border-radius:20px;box-shadow:0 5px 20px #273d6410}.mission:hover{box-shadow:0 12px 28px #6941cf20;border-color:#a995e3}.mission h3{font-size:17px}.mission p,.mission-footer{font-size:13px}.mission small{font-size:10px}.eyebrow{font-size:10px;color:#6841c8;letter-spacing:1.4px}
.hero{background:#e5f8f5;color:#203647;padding:32px 36px;min-height:330px;border:1px solid #c8ece5;border-radius:26px}.hero-copy{max-width:55%}.hero h2{font-size:38px;line-height:1.15}.hero p,.hero-note{color:#4e6570}.hero-label{color:#187b79;font-weight:800}.ds-hero-mascot{position:absolute;right:16px;bottom:0;width:43%;height:100%;object-fit:contain;pointer-events:none}
.welcome-hero{background:#eee9ff;border:1px solid #e0d6fa;border-radius:30px;padding:38px;gap:20px;overflow:hidden}.welcome-copy h1{font-size:clamp(32px,4vw,56px);line-height:1.12;letter-spacing:-2px}.welcome-copy h1 em{color:#6540c5}.welcome-copy p{max-width:430px;color:#59617b;font-size:16px}.welcome-kicker{color:#6440b5}.ds-mascot-stage{position:relative;display:grid;place-items:center;min-width:0;background:radial-gradient(ellipse,#ffdf7359,transparent 68%)}.ds-mascot{width:100%;height:auto;max-height:430px;object-fit:contain;animation:ds-arrive .7s ease-out both}.ds-sticker{position:absolute;top:8px;right:0;background:#ffda56;color:#4b3811;border:2px solid white;padding:10px 16px;border-radius:30px;transform:rotate(7deg);font-size:12px;font-weight:800;z-index:1}
.subject-book{transition:transform .2s,box-shadow .2s}.subject-book:hover{transform:translateY(-6px) rotate(-1deg)}.book-info p{display:none}.book-cover{border-radius:20px}.welcome-bottom{border-radius:24px}.learning-steps{gap:16px}.learning-steps>div{border-radius:20px}
.family-heading{background:#eeebfb;border-radius:22px;padding:24px;min-width:0}.family-heading>div{min-width:0}.family-heading h1{font-size:27px}.family-badge{background:#fff3bb;color:#624b16;white-space:nowrap;border:1px solid #f2de84}.family-tabs{gap:10px}.family-tabs a{border-radius:13px;font-weight:600;color:#616b82;background:#fff}.family-tabs a.selected{background:#6941cf;color:white;border-color:#6941cf;box-shadow:0 3px 0 #492499}.family-stats>div:first-child{border-top:4px solid #139e9d}.family-stats>div:nth-child(2){border-top:4px solid #9870e9}.family-stats>div:nth-child(3){border-top:4px solid #efbe3a}.family-stats>div:nth-child(4){border-top:4px solid #63b592}.family-table{border-radius:18px}.family-table th{background:#eeeafb;color:#4d3e76}.family-table tr:hover td{background:#faf9ff}.family-filter{padding:20px}.family-filter label{min-width:0}.family-filter select{max-width:100%}
.side-bottom{background:#edf8f5;border:1px solid #d6eee5}.study-time .study-clock{color:#087f86}.ds-auth-mascot{display:block;width:170px;height:135px;object-fit:contain;margin:-8px auto 8px}.auth{border-top:5px solid #19a5a4}.auth h1{text-align:center}.auth>.eyebrow{text-align:center}.options label{border-radius:14px;transition:background .18s,border-color .18s}.options label:has(input:checked){background:#e8f7f4;border-color:#159c96}.options input{accent-color:#6941cf}a:focus-visible,button:focus-visible{outline:3px solid #0c9699;outline-offset:4px}
@keyframes ds-arrive{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
@keyframes ds-pop{50%{transform:translateY(-8px) rotate(2deg)}}
.ds-mascot-stage:hover .ds-mascot{animation:ds-pop .6s ease-in-out}.ds-enter{animation:ds-arrive .45s ease-out both}
@media(max-width:800px){.welcome-hero{display:grid;grid-template-columns:1fr;padding:26px}.ds-mascot-stage{max-width:380px;margin:auto}.ds-mascot{max-height:280px}.hero{min-height:280px}.hero h2{font-size:30px}.sidebar nav{flex-wrap:wrap}.family-heading{padding:18px}.family-heading h1{font-size:23px}.brand{font-size:21px}}
@media(max-width:480px){.hero{padding:24px;display:flex;flex-direction:column}.hero-copy{max-width:100%}.ds-hero-mascot{position:static;display:block;width:80%;height:190px;margin:8px auto -24px}.family-heading{align-items:flex-start;gap:10px}.family-badge{padding:9px;font-size:11px}.family-tabs a{font-size:12px;flex:1 1 42%;justify-content:center}.family-filter{gap:12px}.family-filter label{flex-basis:100%}.ds-sticker{font-size:11px}.welcome-copy h1{letter-spacing:-1px}.welcome-hero{padding:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body,.family{background:white}.card,.family-heading,.stat,.family-stats>div{box-shadow:none}.ds-mascot-stage,.ds-hero-mascot,.ds-auth-mascot{display:none}.button{box-shadow:none}}

/* Illustrated primary-school subject books. Titles remain accessible HTML. */
.book-cover.illustrated-cover{padding:0;min-height:0;aspect-ratio:4/5;border-radius:8px 22px 22px 8px;background:#eae4fa;isolation:isolate;box-shadow:3px 4px 0 #fff,5px 6px 0 #d7d7e4,7px 12px 22px #30213920}
.illustrated-cover::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 7px 0 8px #34205420,inset 9px 0 1px #ffffff60;z-index:3}
.subject-illustration{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.subject-book:hover .subject-illustration{transform:scale(1.025)}
.cover-heading{position:relative;z-index:2;padding:17px 20px 22px;background:linear-gradient(#ffffffeb,#ffffffb0 65%,#ffffff00);text-align:left}
.illustrated-cover .cover-series{color:#6741bd;font-size:9px;letter-spacing:.4px;font-weight:800}
.illustrated-cover h3{font-size:clamp(19px,2.2vw,29px);line-height:1.08;letter-spacing:-.8px;color:#272244;min-height:0;margin:5px 0 0;max-width:95%;text-shadow:0 1px 0 #ffffff}
.illustrated-cover .cover-edition{position:absolute;z-index:2;bottom:12px;left:16px;right:12px;display:block;width:fit-content;max-width:calc(100% - 28px);margin:0;padding:6px 9px;border:1px solid #ffffffaa;border-radius:20px;background:#fffffff0;color:#423861;font-size:8px;letter-spacing:.2px;box-shadow:0 2px 7px #30213915}
@media(max-width:480px){.cover-heading{padding:12px 12px 20px 16px}.illustrated-cover h3{font-size:20px;letter-spacing:-.5px}.illustrated-cover .cover-series{font-size:8px}.illustrated-cover .cover-edition{font-size:7px;left:12px;bottom:8px;padding:5px 7px}.book-info>div{flex-wrap:wrap}}
/* A playful, ordered learning journey. */
.adventure{margin:48px 0 34px;padding:30px 30px 32px;border:1px solid #e7dff8;border-radius:30px;background:radial-gradient(circle at 8% 5%,#fff4c9,transparent 32%),linear-gradient(120deg,#f5f0ff,#ecfbf8);overflow:hidden}
.adventure-heading{text-align:center}.adventure-heading h2{font-size:28px;letter-spacing:-.9px;margin:8px 0 24px;line-height:1.2}.adventure-heading h2 span{color:#e6a623}
.adventure-trail{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;list-style:none;margin:0;padding:0;isolation:isolate}
.adventure-trail::before{content:"";position:absolute;left:16%;right:16%;top:188px;border-top:4px dashed #bca4e2;z-index:-1}
.adventure-step{text-align:center;position:relative;--step:#7146cb;--wash:#e9ddff}
.adventure-step.try{--step:#078478;--wash:#ccf2e7}.adventure-step.celebrate{--step:#9b6500;--wash:#ffedb0}
.adventure-art{width:180px;height:170px;margin:0 auto 0;position:relative;border-radius:48% 52% 42% 58%;background:var(--wash)}
.adventure-art img{width:100%;height:100%;object-fit:contain;transition:transform .3s ease;filter:drop-shadow(0 5px 4px #43316b10)}
.explore .adventure-art{overflow:hidden}.explore .adventure-art img{object-fit:cover;object-position:50% 65%;height:220px;transform:translateY(-45px)}
.adventure-spark{position:absolute;right:0;top:6px;font-size:28px;color:var(--step);transform:rotate(12deg)}
.adventure-number{display:grid;place-items:center;position:relative;margin:0 auto 13px;width:42px;height:42px;border:4px solid #fff;border-radius:50%;background:var(--step);color:#fff;font-size:20px;font-weight:800;box-shadow:0 3px 0 #d9cfee}
.adventure-step h3{font-size:20px;margin:0 0 7px;letter-spacing:-.4px}.adventure-step p{font-size:13px;color:#606579;margin:0 0 12px;line-height:1.5}
.adventure-tag{display:inline-block;background:var(--wash);color:var(--step);border-radius:20px;padding:5px 12px;font-size:11px;font-weight:800;transform:rotate(-3deg)}
.adventure-step:hover .adventure-art img{transform:translateY(-5px) rotate(2deg)}.adventure-step.explore:hover .adventure-art img{transform:translateY(-45px) scale(1.04)}
@media(max-width:760px){.adventure{padding:25px 18px}.adventure-heading h2{font-size:24px}.adventure-trail{grid-template-columns:1fr;gap:28px}.adventure-trail::before{left:21px;right:auto;top:60px;bottom:50px;border-top:0;border-left:3px dashed #bca4e2}.adventure-step{padding-left:55px;min-height:190px}.adventure-number{position:absolute;left:0;top:76px;margin:0}.adventure-art{width:150px;height:140px}.explore .adventure-art img{height:185px;transform:translateY(-40px)}.adventure-step.explore:hover .adventure-art img{transform:translateY(-40px) scale(1.04)}.adventure-step h3{font-size:19px}.adventure-step p{font-size:12px}.adventure-tag{font-size:10px}}
@media(prefers-reduced-motion:reduce){.adventure-step:hover .adventure-art img{transform:none}.adventure-step.explore:hover .adventure-art img{transform:translateY(-45px)}}
/* Closing invitation, matching the illustrated learning journey. */
.join-adventure{position:relative;isolation:isolate;display:grid;grid-template-columns:230px minmax(0,1fr) auto;align-items:center;gap:26px;padding:24px 38px 24px 20px;border-radius:30px;background:linear-gradient(115deg,#7045ce,#5331aa);color:white;overflow:hidden;box-shadow:0 8px 0 #e5dcf5}
.join-adventure::after{content:"";position:absolute;width:280px;height:280px;right:-110px;top:-160px;border:35px solid #ffffff0d;border-radius:50%;z-index:-1}
.join-mascots{position:relative;height:220px;display:grid;place-items:center}.join-halo{position:absolute;width:190px;height:190px;border-radius:50%;background:#ffffff18}.join-mascots img{position:relative;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 8px #32146840);transition:transform .3s ease}.join-mascots:hover img{transform:translateY(-5px) rotate(-2deg)}.join-star{position:absolute;left:6px;top:15px;color:#ffdc62;font-size:35px;transform:rotate(-12deg)}
.join-sticker{display:inline-block;background:#ffe080;color:#543776;font-size:9px;letter-spacing:.8px;font-weight:800;padding:7px 11px;border-radius:8px;transform:rotate(-3deg);margin-bottom:14px}.join-copy h2{font-size:34px;letter-spacing:-1px;line-height:1.12;margin:0 0 12px;color:white}.join-copy h2 em{font-style:normal;color:#ffe080}.join-copy p{font-size:13px;color:#eee6ff;margin:0;line-height:1.5}
.join-actions{display:flex;flex-direction:column;align-items:center;gap:10px}.join-actions .join-register{background:#ffdc62;color:#35214e;box-shadow:0 4px 0 #d5a937;padding:16px 22px;font-size:14px;white-space:nowrap}.join-actions .join-register:hover{background:#ffe58c;box-shadow:0 6px 0 #d5a937}.join-actions>span{font-size:11px;color:#e6dcfb;margin-top:8px}.join-login{display:inline-flex;align-items:center;gap:18px;border:1px solid #ffffff70;border-radius:12px;padding:10px 24px;font-size:13px;color:white;font-weight:700;min-height:44px}.join-login:hover{background:#ffffff17}.join-adventure a:focus-visible{outline-color:#fff}
@media(max-width:1000px){.join-adventure{grid-template-columns:180px minmax(0,1fr);padding:24px;gap:18px}.join-mascots{height:190px;grid-row:span 2}.join-copy h2{font-size:29px}.join-actions{grid-column:2;align-items:flex-start;gap:8px}.join-actions>span{margin-top:4px}}
@media(max-width:600px){.join-adventure{grid-template-columns:1fr;text-align:center;padding:22px;gap:12px}.join-mascots{width:200px;height:170px;margin:auto;grid-row:auto}.join-halo{width:155px;height:155px}.join-copy h2{font-size:30px}.join-actions{grid-column:1;align-items:center;margin-top:6px;width:100%}.join-register{width:100%;justify-content:center}.join-copy p{font-size:12px}.join-sticker{margin-bottom:12px}}
.picker-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(115deg,#eee6ff,#def7ef);border:1px solid #e5dcf7;border-radius:26px;padding:24px 30px;margin-bottom:26px}.picker-hero h1{font-size:32px;line-height:1.15;margin:10px 0}.picker-hero p{color:#616781;margin:0}.picker-hero img{width:190px;height:150px;object-fit:contain}.visual-picker{max-width:1100px}.picker-step-title{display:flex;align-items:center;gap:11px;margin:26px 0 16px}.picker-step-title>span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#7045cb;color:white;font-weight:800}.picker-step-title h2{font-size:19px;margin:0}.picker-enhanced>select,.picker-enhanced>.picker-select-label{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}.year-tiles{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.year-tiles button{cursor:pointer;background:#fff;border:2px solid #e5dff3;border-radius:18px;padding:14px 8px;box-shadow:0 4px 0 #e9e2f3;color:#6643b3;transition:transform .18s}.year-tiles span{display:block;font-size:10px;font-weight:800;letter-spacing:1px}.year-tiles strong{font-size:32px;line-height:1.3}.year-tiles button[aria-pressed=true]{background:#7045cb;color:#fff;border-color:#7045cb;box-shadow:0 4px 0 #47298e}.year-tiles button:hover{transform:translateY(-3px)}.year-tiles button:disabled{opacity:.4;cursor:not-allowed}.picker-books{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.picker-book{position:relative;aspect-ratio:4/5;border:3px solid transparent;border-radius:9px 20px 20px 9px;overflow:hidden;cursor:pointer;padding:0;background:#e9e0f8;box-shadow:3px 4px 0 #d9d5e6;transition:transform .2s,border-color .2s;text-align:left}.picker-book img{width:100%;height:100%;object-fit:cover;display:block}.picker-book strong{position:absolute;inset:0 0 auto;padding:15px 15px 30px;background:linear-gradient(#fffffff5,#ffffffc0 65%,transparent);font-size:21px;line-height:1.1;color:#28213f}.picker-book-check{position:absolute;bottom:10px;right:10px;background:#7045cb;color:white;border:2px solid white;border-radius:50%;width:30px;height:30px;display:none;place-items:center;font-weight:800}.picker-book[aria-pressed=true]{border-color:#7045cb;box-shadow:0 0 0 3px #dbccf7}.picker-book[aria-pressed=true] .picker-book-check{display:grid}.picker-book:hover{transform:translateY(-4px)}.picker-launch{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:#eee8fb;border-radius:20px;margin:26px 0}.picker-launch strong{display:block;font-size:14px}.picker-launch small{display:block;color:#647168;margin-top:8px;font-size:12px}.picker-launch .button{white-space:nowrap}.picker-launch .button:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}.picker-books[hidden],.year-tiles[hidden]{display:none}
@media(max-width:1000px){.picker-books{grid-template-columns:repeat(3,minmax(0,1fr))}.picker-hero h1{font-size:27px}}
@media(max-width:600px){.picker-hero{padding:20px;gap:8px}.picker-hero img{width:100px;height:110px}.picker-hero h1{font-size:24px}.picker-hero p{font-size:12px}.year-tiles{grid-template-columns:repeat(3,1fr)}.picker-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.picker-book strong{font-size:19px;padding:12px 12px 25px}.picker-launch{flex-direction:column;align-items:stretch;padding:18px}.picker-launch .button{justify-content:center}}
/* Calm question space: decoration stays above the reading and answer area. */
.question-heading{max-width:850px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0;background:linear-gradient(110deg,#f0eafa,#edf8f5);border:1px solid #e4dfef;border-radius:22px;padding:20px 25px}.question-heading h1{font-size:29px;margin:8px 0 12px}.question-heading .eyebrow{line-height:1.6}.question-badges{display:flex;gap:8px;flex-wrap:wrap}.question-badges>span{display:inline-flex;align-items:center;gap:6px;background:#fff;border-radius:20px;padding:6px 10px;font-size:11px;color:#5b526c}.question-badges b{color:#956100;letter-spacing:1px}.question-buddy{flex-shrink:0;text-align:center}.question-buddy img{display:block;width:110px;height:85px;object-fit:contain}.question-buddy small{font-size:10px;color:#596374;font-weight:600}.focused-question{margin-top:18px;border-top:4px solid #c6b5e9;box-shadow:0 4px 18px #32204908;padding:28px}.focused-question .tag{display:inline-block;padding:6px 9px;background:#f1edfa;border-radius:7px;font-size:10px;letter-spacing:.4px}.focused-question .prompt{color:#24283b;font-size:21px;line-height:1.8;margin:22px 0;overflow-wrap:anywhere}.answer-choices{border:0;padding:0;margin:26px 0;min-width:0}.answer-choices legend{font-size:13px;font-weight:700;color:#52556d}.focused-question .options{grid-template-columns:1fr;margin:14px 0 0;gap:12px}.focused-question .options label{position:relative;border:2px solid #e5e6ee;padding:14px 16px;gap:12px;min-height:64px;background:#fff;transition:border-color .15s,background .15s}.focused-question .options label:hover{border-color:#b9a7d9;background:#faf8ff}.focused-question .options label:has(input:checked){border-color:#078478;background:#edf9f5}.focused-question .options label:has(input:focus-visible){outline:3px solid #6941cf;outline-offset:3px}.focused-question .options input{position:absolute;opacity:0;width:1px;height:1px}.focused-question .option-letter{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#eee9fb;color:#6540b6;font-size:15px}.focused-question label:has(input:checked) .option-letter{background:#078478;color:white}.option-text{font-size:16px;line-height:1.6;overflow-wrap:anywhere;min-width:0}.option-check{margin-left:auto;flex-shrink:0;width:22px;text-align:center;color:#087d70;font-weight:800;visibility:hidden}.focused-question label:has(input:checked) .option-check{visibility:visible}.practice-answer>.button{margin-top:8px;min-height:48px;padding:13px 22px}.practice-answer textarea{font-size:16px;line-height:1.6}.practice-answer textarea:focus{outline:2px solid #a592cf;outline-offset:2px}
@media(max-width:480px){.question-heading{padding:16px;gap:10px}.question-heading h1{font-size:25px}.question-buddy img{width:78px;height:65px}.question-buddy small{font-size:9px}.question-badges>span{font-size:10px}.focused-question{padding:18px}.focused-question .prompt{font-size:19px}.focused-question .options label{padding:12px 10px;gap:9px}.option-text{font-size:15px}.practice-answer>.button{width:100%;justify-content:center}}
.result-banner{max-width:850px;display:flex;align-items:center;gap:20px;padding:25px;border:2px solid #cbe9dc;background:#eaf8f0;border-radius:24px;margin:8px 0 22px;color:#195d49}.result-banner.is-retry{background:#fff5e6;border-color:#efd2a2;color:#80501b}.result-banner.is-review{background:#f0ebfa;border-color:#ded3ef;color:#604294}.result-banner h1{color:inherit;font-size:28px;line-height:1.25;margin:8px 0}.result-banner p{font-size:13px;margin:0 0 12px;color:inherit}.result-banner small{font-size:10px;font-weight:800;letter-spacing:1px}.result-emblem{font-size:45px;flex-shrink:0;background:#ffffffaa;border-radius:22px;width:80px;height:80px;display:grid;place-items:center}.result-sound{padding:8px 12px;border:1px solid currentColor;border-radius:12px;background:#ffffffaa;color:inherit;margin:4px 7px 0 0;font-size:12px;min-height:40px}.result-sound:hover{background:white}@media(max-width:480px){.result-banner{padding:18px;gap:12px;align-items:flex-start}.result-emblem{width:45px;height:45px;font-size:28px;border-radius:13px}.result-banner h1{font-size:23px}}
#result-mute{min-width:44px;min-height:44px;padding:7px;font-size:21px;line-height:1;vertical-align:middle}#result-mute[aria-pressed=true]{background:#e8e8ed;border-color:#83838b}
