:root{--ink:#243252;--purple:#7657dd;--pink:#ff7699;--yellow:#ffd65a;--blue:#61c8f5;--cream:#fffaf0;--green:#5ccf8a}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Fredoka,Arial,sans-serif;background:#eaf8ff}button,a{font:inherit}.drag-choice-ghost{position:fixed!important;z-index:1000;pointer-events:none;translate:none!important;margin:0;opacity:.95;border-radius:15px;box-shadow:0 8px 20px #24325244}.home-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(150deg,#bceeff,#fff3af 55%,#ffc9d6);overflow:hidden}.welcome-card{width:min(820px,100%);text-align:center;position:relative;padding:38px 42px 58px;background:rgba(255,253,247,.96);border:7px solid white;border-radius:36px;box-shadow:0 18px 0 #ccddf0,0 30px 50px #55769a44}.brand-mark{font-size:68px;line-height:1}.welcome-card h1{font-size:clamp(42px,8vw,67px);margin:4px 0 10px;color:var(--purple);letter-spacing:-2px}.welcome-card h1 span{color:var(--pink)}.intro{font-size:18px;line-height:1.4;margin:0 auto 24px;max-width:490px}.home-columns{display:grid;grid-template-columns:1.08fr .92fr;gap:18px;text-align:left;align-items:stretch}.home-column{min-height:290px;padding:25px 28px;display:flex;flex-direction:column;justify-content:center;border-radius:26px;overflow:hidden}.home-welcome{position:relative;padding:10px;background:linear-gradient(145deg,#fff,#eaf6ff);box-shadow:0 12px 26px #40527822;isolation:isolate}.home-hero-image{display:block;width:100%;height:100%;min-height:270px;object-fit:cover;object-position:center 28%;border:5px solid #fff;border-radius:20px;box-shadow:0 4px 14px #24325222}.image-spark{position:absolute;z-index:1;display:grid;place-items:center;width:40px;height:40px;border:3px solid white;border-radius:50%;background:#ffd65a;color:#7657dd;font-size:22px;box-shadow:0 4px 12px #24325233}.image-spark-one{top:24px;right:24px}.image-spark-two{bottom:25px;left:25px;width:32px;height:32px;background:#ff91aa;font-size:17px}.home-column h2{margin:0 0 10px;font-size:23px;color:var(--purple)}.home-column p{margin:0;max-width:270px;font-size:16px;line-height:1.5}.home-choice{background:linear-gradient(145deg,#fff7e2,#fff);box-shadow:0 8px 18px #55769a18}.home-choice .class-picker{justify-content:flex-start}.home-choice .class-button{width:min(230px,100%);min-width:0;padding:13px 16px;text-align:center;border-radius:18px}.class-picker{display:flex;gap:18px;justify-content:center}.class-button{min-width:205px;padding:16px 18px;color:white;text-decoration:none;border-radius:22px;box-shadow:0 7px 0 #48389d;transition:transform .15s,box-shadow .15s;background:var(--purple)}.class-button.senior{background:#f37a95;box-shadow:0 7px 0 #bd4b69}.class-button:hover{transform:translateY(-3px)}.class-button:active{transform:translateY(4px);box-shadow:0 3px 0 #48389d}.button-icon{display:block;font-size:34px}.class-button strong,.class-button small{display:block}.class-button strong{font-size:24px}.class-button small{opacity:.9}.developer-credit{position:absolute;right:22px;bottom:16px;margin:0;font-size:13px}.developer-credit a{color:#6046ba;text-decoration:none;border-bottom:1px dotted currentColor}.developer-credit a:hover,.developer-credit a:focus-visible{text-decoration:underline}.cloud{position:absolute;background:white;border-radius:50px;width:90px;height:30px;opacity:.8}.cloud:before,.cloud:after{content:"";position:absolute;background:white;border-radius:50%}.cloud:before{height:42px;width:42px;bottom:0;left:13px}.cloud:after{height:31px;width:31px;bottom:0;right:11px}.cloud-one{left:-68px;top:45px}.cloud-two{right:-62px;bottom:90px}.activities-page{min-height:100vh;background:linear-gradient(135deg,#ecfaff,#fff5c9)}.topbar{height:74px;padding:0 clamp(18px,4vw,54px);display:flex;align-items:center;justify-content:space-between;background:#fffdf9;border-bottom:3px solid #dceafa}.site-name{font-size:27px;font-weight:700;color:var(--purple);text-decoration:none}.class-badge{background:#e9ddff;color:#6046ba;padding:7px 15px;border-radius:999px;font-weight:600}.learning-layout{display:grid;grid-template-columns:286px minmax(0,1fr);min-height:calc(100vh - 74px)}.sidebar{background:#fffdf9;padding:22px 16px;border-right:3px solid #dceafa}.sidebar h2{font-size:22px;margin:0 7px 18px}.sidebar section{margin-bottom:22px}.sidebar h3{font-size:17px;color:#7657dd;margin:0 7px 7px}.sidebar button{display:block;width:100%;border:0;background:transparent;padding:10px 11px;text-align:left;border-radius:11px;color:var(--ink);cursor:pointer;font-size:16px}.sidebar button:hover,.sidebar button.active{background:#e5f6ff;color:#4e35a6;font-weight:600}.activity-stage{padding:clamp(18px,4vw,45px);display:grid;place-items:center}.tablet{width:min(880px,100%);height:min(620px,calc(100vh - 150px));min-height:440px;position:relative;padding:21px;background:#273046;border:10px solid #1b2131;border-radius:38px;box-shadow:0 18px 30px #40527855}.tablet:after{content:"";position:absolute;bottom:6px;left:50%;width:35px;height:4px;border-radius:4px;background:#586174;transform:translateX(-50%)}.camera{position:absolute;top:5px;left:50%;height:7px;width:7px;border-radius:50%;background:#65728a;transform:translateX(-50%)}iframe{display:block;border:0;border-radius:20px;width:100%;height:100%;background:var(--cream)}.frame-page{height:100%;overflow:auto;background:var(--cream)}.activity-root{min-height:100vh;padding:clamp(20px,5vw,42px);text-align:center}.activity-root h1{font-size:clamp(28px,5vw,42px);margin:0 0 5px;color:var(--purple)}.activity-root .instruction{font-size:18px;margin:0 0 24px}.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:16px;max-width:720px;margin:auto}.reveal-card{border:0;border-radius:19px;min-height:145px;background:white;box-shadow:0 6px 0 #c8e8f5;cursor:pointer;padding:15px;color:var(--ink)}.reveal-card .cover{font-size:55px}.reveal-card .answer{display:none;font-size:24px;font-weight:700;color:#2878c5}.reveal-card.revealed{background:#e7f8ff}.reveal-card.revealed .cover{display:none}.reveal-card.revealed .answer{display:block}.match-board{max-width:690px;margin:auto;display:grid;grid-template-columns:1fr 100px 1fr;gap:10px;align-items:center}.match-column{display:grid;gap:13px}.match-item{border:3px solid #d9e5ef;background:white;border-radius:14px;padding:13px;font-size:20px;font-weight:600;min-height:57px;cursor:pointer}.match-item.selected{border-color:var(--yellow);background:#fff8d7}.match-item.correct{border-color:var(--green);background:#e2faeb;color:#248752}.match-item.wrong{border-color:var(--pink);background:#ffedf1;color:#c23c60}.match-item.answer{border-color:#509de8;background:#e7f2ff;color:#2472bc}.match-lines{height:100%;min-height:190px}.feedback{min-height:27px;margin:18px 0 0;font-size:19px;font-weight:600}.feedback.success{color:#268553}.feedback.error{color:#c23c60}.try-again{margin-top:16px;border:0;background:var(--purple);color:#fff;border-radius:12px;padding:10px 22px;cursor:pointer;font-weight:600}.sequence{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:25px auto;max-width:650px}.draggable{touch-action:none;background:#fff;border:3px solid #d9e5ef;border-radius:15px;padding:15px 22px;font-size:27px;font-weight:700;cursor:grab;box-shadow:0 4px 0 #cbdde9}.drop-zone{background:#eef7ff;border:3px dashed #83bce6;border-radius:15px;min-width:72px;min-height:68px;display:grid;place-items:center;font-size:27px;font-weight:700}.drop-zone.correct{border-color:var(--green);background:#e2faeb;color:#248752}.drop-zone.wrong{border-color:var(--pink);background:#ffedf1;color:#c23c60}.drop-zone.answer{border-color:#509de8;background:#e7f2ff;color:#2472bc}@media(max-width:700px){.welcome-card{padding:30px 22px 58px}.home-columns{grid-template-columns:1fr;gap:14px}.home-column{min-height:170px;padding:20px}.home-welcome{min-height:230px;padding:9px}.home-hero-image{min-height:210px;object-position:center 25%}.image-spark-one{top:20px;right:20px}.image-spark-two{bottom:20px;left:20px}.home-choice .class-picker{flex-direction:column}.class-picker{flex-direction:column}.class-button{width:100%}.learning-layout{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:3px solid #dceafa;padding:16px}.sidebar h2{display:none}.sidebar section{margin:0 0 12px}.sidebar h3{margin-top:5px}.sidebar nav{display:flex;flex-wrap:wrap;gap:4px}.sidebar section{flex:1 1 200px}.activity-stage{padding:16px}.tablet{height:520px;min-height:0;border-radius:28px}.match-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px;row-gap:12px}.match-lines{display:none}}@media(max-width:400px){.welcome-card{padding:35px 22px}.class-badge{display:none}.site-name{font-size:23px}.tablet{height:475px}.activity-root{padding:20px 14px}.match-item{font-size:16px;padding:10px}}


/* A spacious learning panel with a supporting portrait and curved color fields. */
.home-class-card .class-button.maths{background:#2878c5;box-shadow:0 5px 0 #1c568f}
.home-class-card .class-button.maths:hover{background:#2269af}
.home-class-card .class-button.maths:active{box-shadow:0 3px 0 #1c568f}
.home-class-card .class-button.olympiad{background:#349a81;box-shadow:0 5px 0 #24745f}
.home-class-card .class-picker{flex-wrap:wrap;gap:13px}
.landing-page .welcome-card{padding:30px 34px 54px}
.home-showcase{position:relative;width:100%;margin:0 auto 8px;isolation:isolate}
.home-hero-image{position:absolute;z-index:2;top:50%;left:16px;width:36%;height:232px;min-height:0;transform:translateY(-50%);object-fit:cover;object-position:center 24%;border:6px solid #fff;border-radius:44% 56% 40% 60% / 40% 38% 62% 60%;box-shadow:0 10px 20px #40527826}
.home-showcase::before{content:"";position:absolute;z-index:1;left:8px;top:50%;width:38%;height:246px;transform:translateY(-50%) rotate(-8deg);border-radius:55% 45% 60% 40%;background:#ffe59a}
.home-showcase::after{content:"";position:absolute;z-index:3;left:31%;bottom:25px;width:24px;height:24px;border-radius:50%;background:#ff91aa;border:4px solid #fff}
.home-showcase .image-spark-one{top:22px;left:18px;right:auto;width:32px;height:32px;font-size:18px;background:#fff;border-color:#fff;color:#ff7699}
.home-showcase .image-spark-two{display:none}
.home-class-card{position:relative;width:100%;min-height:260px;display:flex;flex-direction:column;justify-content:center;padding:30px 28px 32px 41%;border:2px solid #fff;border-radius:36px 70px 36px 70px;background:radial-gradient(ellipse at 0% 100%,#fff0bd 0,transparent 55%),linear-gradient(135deg,#fff9ed,#eef6ff);box-shadow:0 10px 26px #40527816;text-align:center}
.home-class-card h2{margin:0 0 18px;color:var(--purple);font-size:27px}
.home-class-card .class-picker{justify-content:center;align-items:center}
.home-class-card .class-button{width:min(270px,100%);min-width:0;padding:16px 18px;border-radius:19px;text-align:center;box-shadow:0 5px 0 #48389d}
.home-class-card .button-icon{display:inline-block;margin-right:8px;font-size:28px;vertical-align:middle}
.home-class-card .class-button strong{display:inline;font-size:24px}
.home-class-card .class-button small{margin-top:4px;font-size:14px}
@media(max-width:700px){
  .landing-page{min-height:100svh;padding:14px;overflow:auto}
  .landing-page .welcome-card{width:min(540px,100%);padding:22px 16px 48px;border-width:5px;border-radius:28px;box-shadow:0 9px 0 #ccddf0,0 18px 35px #55769a33}
  .landing-page .brand-mark{font-size:42px}
  .landing-page .welcome-card h1{font-size:clamp(36px,10vw,52px);margin:2px 0 7px}
  .landing-page .intro{font-size:16px;margin:0 auto 20px}
  .home-class-card{min-height:190px;padding:22px 14px 24px 40%;border-radius:26px 42px 26px 42px}
  .home-class-card h2{font-size:21px;margin-bottom:14px}
  .home-class-card .class-button{padding:13px 10px;border-radius:16px}
  .home-class-card .button-icon{font-size:23px;margin-right:3px}
  .home-class-card .class-button strong{font-size:21px}
  .home-class-card .class-button small{font-size:13px}
  .home-hero-image{left:7px;width:36%;height:162px;border-width:4px}
  .home-showcase::before{left:4px;width:35%;height:161px}
  .home-showcase::after{left:29%;bottom:18px;width:18px;height:18px;border-width:3px}
  .home-showcase .image-spark-one{top:12px;left:8px;width:25px;height:25px;font-size:14px}
  .landing-page .developer-credit{right:16px;bottom:12px;font-size:12px}
}
@media(max-height:600px) and (max-width:700px){
  .landing-page{padding:8px}
  .landing-page .welcome-card{padding-top:14px;padding-bottom:42px}
  .landing-page .brand-mark{font-size:30px}
  .landing-page .welcome-card h1{font-size:36px}
  .landing-page .intro{margin-bottom:12px}
  .home-class-card{min-height:166px;padding-top:16px;padding-bottom:18px}
  .home-hero-image{height:142px}
  .home-showcase::before{height:151px}
}
