/* ===== Colourful subject-page refresh ===== */
.subject-hero{position:relative;isolation:isolate;overflow:hidden;min-height:260px;padding:34px 38px!important;border:0!important;border-radius:28px!important;box-shadow:0 16px 38px rgba(28,35,67,.12);}
.subject-hero:before{content:"";position:absolute;z-index:-1;width:430px;height:430px;border:1px solid rgba(255,255,255,.28);border-radius:50%;right:5%;top:-245px;box-shadow:0 0 0 28px rgba(255,255,255,.07),0 0 0 62px rgba(255,255,255,.05),0 0 0 100px rgba(255,255,255,.035)}
.subject-hero:after{content:"";position:absolute;z-index:-1;width:260px;height:260px;border-radius:50%;right:22%;bottom:-205px;background:rgba(255,255,255,.12)}
.subject-hero-maths{background:linear-gradient(116deg,#087c62 0%,#10a77c 54%,#36c69a 100%)!important;color:#fff!important;}
.subject-hero-words{background:linear-gradient(116deg,#463c9a 0%,#6557c7 54%,#8a78e4 100%)!important;color:#fff!important;}
.subject-hero>div:first-child{position:relative;z-index:2;max-width:72%;align-items:flex-start!important}
.subject-hero h1{font-family:'Fredoka',sans-serif!important;color:#fff!important;font-size:clamp(2.8rem,5vw,4.25rem)!important;line-height:.98!important;letter-spacing:-.035em;margin:8px 0 10px!important;text-shadow:0 2px 0 rgba(0,0,0,.06)}
.subject-hero p{color:rgba(255,255,255,.92)!important;font-size:15px!important;line-height:1.6!important;max-width:540px}
.subject-hero>div:first-child>div:first-child>div:first-child{background:rgba(255,255,255,.17)!important;color:#fff!important;border:1px solid rgba(255,255,255,.25);backdrop-filter:blur(8px);font-size:10px!important;letter-spacing:.07em}
.subject-hero>div:first-child>button,.subject-hero>div:first-child>a{background:#fff!important;color:#27324a!important;border:0!important;box-shadow:0 5px 0 rgba(0,0,0,.12)!important;position:relative;z-index:4}
.subject-hero-art{position:absolute;z-index:1;right:7%;bottom:-22px;height:290px;width:220px;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.subject-hero-art img{height:100%;width:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 12px 12px rgba(0,0,0,.18))}
.subject-hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}
.subject-hero-chips span{display:inline-flex;padding:7px 11px;border-radius:99px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);color:#fff;font-size:11px;font-weight:800;letter-spacing:.01em}
/* Make progress feel like a reward dashboard, not another plain settings panel. */
#view-maths .scout-rank-label{color:#087c62!important}#view-words .scout-rank-label{color:#5144a7!important}
#view-maths .surface-card:has(.scout-rank-label),#view-words .surface-card:has(.scout-rank-label){border:0!important;border-radius:22px!important;box-shadow:0 10px 28px rgba(36,40,72,.07);background:linear-gradient(105deg,#effcf5,#fff)!important}
#view-words .surface-card:has(.scout-rank-label){background:linear-gradient(105deg,#f3f0ff,#fff)!important}
#view-maths .scout-progress-bar{background:linear-gradient(90deg,#10b981,#34d399,#fbbf24)!important}
#view-words .scout-progress-bar{background:linear-gradient(90deg,#7c3aed,#a78bfa,#f59e0b)!important}
#view-maths .maths-yr-btn{border-radius:14px!important;box-shadow:0 3px 0 rgba(4,95,70,.14);transition:transform .15s,filter .15s}
#view-maths .maths-yr-btn:nth-child(3n+1){background:#087f5b!important}#view-maths .maths-yr-btn:nth-child(3n+2){background:#0e9f8a!important}#view-maths .maths-yr-btn:nth-child(3n){background:#28a879!important}
#view-maths .maths-yr-btn:hover,#view-words .spell-yr-btn:hover{transform:translateY(-2px);filter:brightness(1.05)}
#view-words .spell-yr-btn{border-radius:14px!important;transition:transform .15s,filter .15s}
#view-words .spell-yr-btn.kid-btn-indigo{background:#5141a6!important;box-shadow:0 3px 0 #33266f}
#view-words .spell-yr-btn:not(.kid-btn-indigo){background:#f0edff!important;border-color:#d8d0ff!important;color:#493b91!important}
#view-maths .maths-strand-btn,#view-words .spell-strand-btn{padding:9px 14px!important;font-weight:800!important}
#view-maths .maths-strand-btn[data-maths-strand="all"],#view-words .spell-strand-btn[data-spell-strand="all"]{box-shadow:0 3px 0 rgba(0,0,0,.12)}
#view-maths .surface-card.p-5.sm\:p-7,#view-words .surface-card.p-5.sm\:p-7{border-radius:25px!important;box-shadow:0 12px 32px rgba(35,43,75,.06)}
#view-maths #mathsObjectivesList>*,#view-words #spellingRulesContainer>*{border-radius:16px!important}
#view-maths #mathsQuestionText{color:#087c62}
#view-maths #mathsAnswerInput{border-color:#10a77c!important}
#view-maths .lg\:col-span-2{background:linear-gradient(145deg,#f4fcf8,#fff)!important;border-color:#ccefe0!important}
#view-maths .lg\:col-span-2 h2{color:#087c62}
#view-words #spellingActivityPanel{background:linear-gradient(145deg,#f5f2ff,#fff)!important;border-color:#a99bea!important}
#view-maths .dojo-bottom-emerald{padding:42px 0 54px!important}
#view-words .dojo-bottom-gold-sky{padding:42px 0 54px!important}
#view-maths .dojo-bottom-emerald .surface-card{border:2px solid #9ee7c9!important;background:linear-gradient(110deg,#edfff5,#fff)!important;border-radius:24px!important}
#view-words .dojo-bottom-gold-sky .surface-card{border:2px solid #f6d68b!important;background:linear-gradient(110deg,#fff8e8,#f3f0ff)!important;border-radius:24px!important}
/* Bring back the lively, high-colour subject cards on the homepage. */
.fa-subject{min-height:330px!important;padding:32px!important;border:0!important;box-shadow:0 12px 30px rgba(35,35,70,.09)}
.fa-subject.maths{background:linear-gradient(135deg,#b8f1d4 0%,#73d9ad 48%,#3fbd91 100%)!important}
.fa-subject.words{background:linear-gradient(135deg,#ffe6a8 0%,#ffc66b 48%,#ff9b72 100%)!important}
.fa-subject.maths .fa-subject-label,.fa-subject.maths p,.fa-subject.maths h3,.fa-subject.maths .fa-subject-cta{color:#14583f!important}
.fa-subject.words .fa-subject-label,.fa-subject.words p,.fa-subject.words h3,.fa-subject.words .fa-subject-cta{color:#754016!important}
.fa-subject h3{font-size:2.45rem!important}
.fa-subject .fa-chip{background:rgba(255,255,255,.62)!important;backdrop-filter:blur(5px);border:1px solid rgba(255,255,255,.5);padding:8px 11px!important;font-size:11px!important}
.fa-subject-art{font-size:125px!important;right:22px!important;bottom:42px!important;opacity:.19!important;color:#fff!important;transform:rotate(-10deg) scale(1.05)!important;text-shadow:0 3px 15px rgba(0,0,0,.08)}
.fa-subject:after{width:270px!important;height:270px!important;right:-90px!important;top:-105px!important;background:rgba(255,255,255,.25)!important}
.fa-subject-cta{font-size:14px!important;padding:12px 16px!important;border-radius:13px!important;background:rgba(255,255,255,.72)!important;display:inline-flex!important;box-shadow:0 3px 0 rgba(0,0,0,.08)}
/* Three colourful, distinct steps: learn / earn / play. */
.fa-steps{gap:20px!important}
.fa-step{position:relative;overflow:hidden;min-height:245px;padding:27px!important;border:0!important;border-radius:23px!important;box-shadow:0 12px 28px rgba(38,35,75,.08);transition:transform .2s,box-shadow .2s}
.fa-step:hover{transform:translateY(-5px);box-shadow:0 18px 36px rgba(38,35,75,.13)}
.fa-step:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-65px;bottom:-85px;background:rgba(255,255,255,.25)}
.fa-step-learn{background:linear-gradient(145deg,#d8f7e7,#8ee0b9)!important}
.fa-step-earn{background:linear-gradient(145deg,#fff0bd,#ffd16a)!important}
.fa-step-play{background:linear-gradient(145deg,#e6ddff,#afa0f4)!important}
.fa-step-num{width:52px!important;height:52px!important;border-radius:17px!important;font-size:0!important;box-shadow:0 4px 0 rgba(0,0,0,.07);background:rgba(255,255,255,.72)!important}
.fa-step-num:before{content:attr(data-icon);font-size:25px}
.fa-step-learn .fa-step-num{color:#176b49!important}.fa-step-earn .fa-step-num{color:#93600b!important}.fa-step-play .fa-step-num{color:#5141a6!important}
.fa-step h3{font-size:1.55rem!important;color:#282044!important;margin-top:18px!important}
.fa-step p{font-size:14px!important;color:#514b63!important;max-width:300px}
.fa-step small{display:inline-flex!important;margin-top:18px!important;padding:7px 11px;border-radius:99px;background:rgba(255,255,255,.62);color:#30274e!important;letter-spacing:.1em!important}
@media(max-width:800px){.subject-hero{padding:26px 23px!important;min-height:245px}.subject-hero>div:first-child{max-width:100%;padding-right:80px}.subject-hero-art{right:-7px;height:205px;width:145px;bottom:-8px;opacity:.92}.subject-hero h1{font-size:clamp(2.5rem,10vw,3.5rem)!important}.subject-hero-chips{max-width:75%}.fa-subject{min-height:300px!important}.fa-steps{grid-template-columns:1fr!important}.fa-step{min-height:190px!important}}
@media(max-width:480px){.subject-hero>div:first-child{padding-right:38px}.subject-hero-art{right:-28px;height:170px;width:120px;opacity:.78}.subject-hero-chips{max-width:100%}.subject-hero-chips span{font-size:10px;padding:6px 8px}}