@font-face{font-family:Nunito;src:url("../fonts/nunito.acfce21e9f6e.woff2") format("woff2");
  font-weight:400 900;font-display:swap}

/* ══ THE DUMDUM MATHS DESIGN SYSTEM ════════════════════════════════════
   Chosen by Hrishi on 6 Sep 2026 out of three directions (DECISIONS §5).
   This is the only design system; every page uses these tokens and nothing
   else declares a colour.

   The idea: the page is a PLACE, not a document. DumDum is a lit, fuzzy,
   rendered character; flat shapes set beside him read as stickers stuck
   onto a photograph. So nothing here is flat. The ground has depth and a
   horizon, light falls from the upper left, surfaces are objects with
   weight, and the counters in a ten frame are things a child could pick
   up — because concrete before pictorial is the whole pedagogy
   (DECISIONS P6), and it should look like it.

   The signature is the counter: a real lit sphere with a highlight and a
   contact shadow, sitting in a tray with a rim. Everything else stays
   quiet around it.                                                       */
:root{
  /* the world */
  --sky-hi:#FBF6FF;         /* light source, upper left            */
  --sky:#F0E6FC;
  --sky-lo:#DFCEF5;
  --horizon:#C4A9EC;
  --ground:#5C3196;         /* brand purple as the earth           */
  --ground-deep:#3A2B50;
  /* surfaces */
  --surface:#FFFDFA;        /* warm white objects                  */
  --surface-2:#F8F2FF;
  --rim:#FFFFFF;            /* the lit top edge of an object       */
  /* ink */
  --ink:#2E2340;
  --ink-2:#5B4C74;
  --ink-3:#695A85;        /* AA on the world: 5.1:1  */
  /* brand */
  --brand:#5C3196;
  --brand-lift:#7D4FC8;
  --lav:#EADFF7;
  --coral:#FF3D3D;
  --coral-deep:#C42B2B;
  --on-coral:#FFFFFF;       /* 3.51:1 — CTA text is set large      */
  --teal:#3DBFB0;           /* DumDum's own belly                  */
  --on-teal:#0B3F39;        /* 5.0:1 on the teal                   */
  --on-core:#0B3F39;
  --stretch:#FFD86B;
  --on-stretch:#5B3F00;     /* 7.1:1 on the amber                  */
  --counter:#FF6B3D;        /* the apparatus                       */
  /* the four colours a child sorts by. Every shape is outlined in
     --ink, so the boundary never depends on the fill. */
  --c-red:#E04B3A;
  --c-blue:#3C7BE0;
  --c-green:#4CA13F;
  --c-yellow:#F2C230;
  --counter-lo:#B8300C;
  /* type */
  --face:Nunito,ui-rounded,system-ui,sans-serif;
  --t-hero:clamp(2.3rem,4.8vw,4.1rem);
  --t-h2:clamp(1.5rem,2.7vw,2.2rem);
  --t-body:clamp(1.05rem,1.25vw,1.2rem);
  --t-micro:.8rem;
  /* space, radius */
  --gap:clamp(1.1rem,2.5vw,1.9rem);
  --bay:clamp(3rem,7vw,6rem);
  --r:16px; --r-lg:26px; --r-xl:38px;
  /* light and weight — every object gets ambient + contact + rim */
  --lift:0 1px 0 var(--rim) inset, 0 18px 34px -18px rgba(46,35,64,.42),
         0 3px 8px -3px rgba(46,35,64,.18);
  --lift-lg:0 1px 0 var(--rim) inset, 0 40px 70px -34px rgba(46,35,64,.5),
            0 6px 16px -6px rgba(46,35,64,.2);
  --press:0 1px 0 var(--rim) inset, 0 4px 10px -6px rgba(46,35,64,.35);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body.dd{margin:0;font-family:var(--face);font-size:var(--t-body);line-height:1.6;
  font-weight:600;color:var(--ink);-webkit-text-size-adjust:100%;
  background:var(--sky);position:relative;min-height:100svh;overflow-x:hidden}

/* ── THE WORLD ──────────────────────────────────────────────────────────
   Layered light rather than a flat fill: a warm source upper-left, a cool
   fall-off, and a purple ground glow at the horizon.                    */
body.dd::before{content:"";position:fixed;inset:0;z-index:-2;
  background:
    radial-gradient(120% 90% at 12% -10%, var(--sky-hi) 0%, transparent 55%),
    radial-gradient(90% 70% at 88% 4%, #FFF3D9 0%, transparent 48%),
    radial-gradient(140% 100% at 50% 118%, var(--ground) 0%, var(--horizon) 34%, transparent 68%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-lo) 100%)}
/* soft out-of-focus volumes, so the world has depth behind the content */
body.dd::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(closest-side circle at 8% 68%, rgba(61,191,176,.34), transparent 100%),
    radial-gradient(closest-side circle at 92% 30%, rgba(255,197,61,.30), transparent 100%),
    radial-gradient(closest-side circle at 72% 88%, rgba(125,79,200,.34), transparent 100%);
  background-size:52vw 52vw,44vw 44vw,60vw 60vw;background-repeat:no-repeat;
  filter:blur(38px);opacity:.85}

img{max-width:100%;height:auto;display:block}
a{color:var(--brand)}
.wrap{width:min(1180px,calc(100% - 2.5rem));margin-inline:auto;position:relative}
.bay{padding-block:var(--bay)}

/* ── objects ── */
.card{background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 100%);
  border-radius:var(--r-xl);box-shadow:var(--lift);padding:clamp(1.4rem,3vw,2.2rem)}

/* ── header ── */
.top{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem;padding-block:1.4rem}
.top__acts{display:flex;align-items:center;gap:.5rem;margin-left:auto}
.mark{display:flex;align-items:center;gap:.7rem;font-weight:900;font-size:1.35rem;
  color:var(--brand);text-decoration:none;letter-spacing:-.03em}
.mark img{width:44px;height:44px;border-radius:50%;
  box-shadow:0 6px 14px -6px rgba(46,35,64,.55),0 0 0 3px rgba(255,255,255,.75)}
.btn{display:inline-block;font:900 1.2rem/1 var(--face);padding:1rem 1.7rem;border:0;
  border-radius:999px;text-decoration:none;cursor:pointer;position:relative;
  transition:transform .12s cubic-bezier(.2,.8,.3,1),box-shadow .12s}
.btn--go{color:var(--on-coral);background:linear-gradient(180deg,#FF6060 0%,var(--coral) 55%,#EE2F2F 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.45) inset,0 10px 20px -10px var(--coral-deep),
             0 4px 0 var(--coral-deep)}
.btn--go:hover{transform:translateY(2px);box-shadow:0 1px 0 rgba(255,255,255,.45) inset,
             0 6px 14px -8px var(--coral-deep),0 2px 0 var(--coral-deep)}
.btn--quiet{color:var(--ink);background:linear-gradient(180deg,#fff,#F4EDFC);
  box-shadow:var(--lift)}
.btn--quiet:hover{transform:translateY(2px);box-shadow:var(--press)}

/* ── hero ── */
.hero{display:grid;grid-template-columns:1.06fr .94fr;gap:clamp(1.5rem,4vw,3.5rem);
  align-items:center;padding-block:clamp(1rem,3vw,2.5rem)}
.eyebrow{display:inline-block;font:900 var(--t-micro)/1 var(--face);letter-spacing:.13em;
  text-transform:uppercase;color:var(--brand);background:rgba(255,255,255,.72);
  padding:.6rem 1rem;border-radius:999px;margin:0 0 1.1rem;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 6px 14px -10px rgba(46,35,64,.5)}
h1{font-size:var(--t-hero);line-height:1.02;letter-spacing:-.04em;font-weight:900;
  color:var(--brand);margin:0 0 1.1rem;text-wrap:balance;
  text-shadow:0 1px 0 rgba(255,255,255,.6)}
h1 em{font-style:normal;color:var(--coral)}
.lede{font-size:1.08em;font-weight:600;color:var(--ink-2);margin:0 0 1.8rem;max-width:36ch}
.cta-row{display:flex;flex-wrap:wrap;gap:.85rem;align-items:center}
.cta-note{font-size:.92rem;color:var(--ink-3);font-weight:700}

/* DumDum standing IN the world, with a contact shadow so he is not floating */
.hero__art{position:relative;display:grid;justify-items:center;gap:1.2rem}
.dum{position:relative;width:min(100%,330px)}
.dum img{filter:drop-shadow(0 30px 26px rgba(46,35,64,.34))}
.dum::after{content:"";position:absolute;left:50%;bottom:-16px;transform:translateX(-50%);
  width:64%;height:26px;border-radius:50%;
  background:radial-gradient(ellipse,rgba(46,35,64,.34) 0%,transparent 72%);filter:blur(5px)}

/* ── THE APPARATUS: the signature of this direction ──
   A tray with a rim and a recessed bed, holding counters that are lit
   spheres with a highlight and their own contact shadow.               */
.tray{background:linear-gradient(180deg,#FFFFFF 0%,#F3EAFE 100%);
  border-radius:22px;padding:12px;box-shadow:var(--lift);width:min(100%,520px)}
.frame{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;
  background:linear-gradient(180deg,#E7DBF7 0%,#F3ECFB 100%);border-radius:14px;padding:6px;
  box-shadow:inset 0 3px 7px rgba(72,52,104,.24),inset 0 -1px 0 rgba(255,255,255,.85)}
.frame__c{aspect-ratio:1;border-radius:10px;display:grid;place-items:center;
  background:linear-gradient(180deg,#FFFFFF 0%,#FBF8FE 100%);
  box-shadow:inset 0 1px 0 #fff,inset 0 -2px 4px rgba(72,52,104,.1),
             0 1px 2px rgba(72,52,104,.06)}
.dot{width:70%;aspect-ratio:1;border-radius:50%;position:relative;
  background:radial-gradient(circle at 34% 27%,#FFB48F 0%,#FF8354 22%,var(--counter) 46%,
             #E8501F 74%,var(--counter-lo) 100%);
  box-shadow:inset -3px -5px 9px rgba(120,28,0,.42),
             inset 2px 3px 7px rgba(255,255,255,.42),
             0 5px 8px -3px rgba(120,40,10,.5)}
.dot::after{content:"";position:absolute;top:12%;left:22%;width:32%;height:24%;
  border-radius:50%;background:rgba(255,255,255,.72);filter:blur(2px);transform:rotate(-18deg)}

/* the try-it band, lifted out of the hero so the headline always lands
   first — on a phone the monster must not push the promise under the fold */
.try{display:grid;grid-template-columns:auto 1fr;gap:clamp(1.5rem,4vw,3rem);
  align-items:center;padding-block:var(--bay)}
.try__say h2{margin-bottom:.5rem}
@media (max-width:940px){.try{grid-template-columns:1fr;padding-block:2.5rem}}

/* the live sample */
.sample{width:min(100%,380px)}
.sample__q{font-weight:900;font-size:1.05rem;margin:0 0 .9rem;color:var(--ink)}
.sample__opts{display:grid;grid-template-columns:repeat(5,1fr);gap:.45rem;margin-top:.9rem}
.opt{font:900 1.15rem/1 var(--face);padding:.85rem 0;border:0;border-radius:13px;cursor:pointer;
  color:var(--brand);background:linear-gradient(180deg,#fff,#F1E8FD);
  box-shadow:0 1px 0 #fff inset,0 4px 0 #DCCBF3,0 8px 14px -8px rgba(46,35,64,.4)}
.opt:hover{transform:translateY(2px);box-shadow:0 1px 0 #fff inset,0 2px 0 #DCCBF3}

/* ── sections ── */
h2{font-size:var(--t-h2);font-weight:900;letter-spacing:-.03em;margin:0 0 .5rem;color:var(--brand)}
.sub{color:var(--ink-2);margin:0 0 var(--gap);max-width:58ch;font-weight:600}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);counter-reset:s}
.step{counter-increment:s;position:relative;padding-top:1.4rem}
.step::before{content:counter(s);position:absolute;top:-14px;left:0;width:46px;height:46px;
  display:grid;place-items:center;border-radius:50%;font-weight:900;color:#fff;font-size:1.2rem;
  background:linear-gradient(180deg,var(--brand-lift),var(--brand));
  box-shadow:0 1px 0 rgba(255,255,255,.4) inset,0 10px 18px -10px rgba(46,35,64,.7)}
.step h3{margin:1.6rem 0 .4rem;font-size:1.2rem;font-weight:900;color:var(--ink)}
.step p{margin:0;color:var(--ink-2);font-size:1rem;font-weight:600}

/* counts, on lit plinths */
.counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;text-align:center}
.count{padding:1.5rem 1rem;border-radius:var(--r-lg);
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,242,255,.86));
  box-shadow:var(--lift)}
.count__n{font-size:clamp(2.4rem,5.2vw,3.4rem);font-weight:900;line-height:1;color:var(--brand);
  font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.count__l{font-size:var(--t-micro);letter-spacing:.09em;text-transform:uppercase;
  font-weight:900;color:var(--ink-3);margin-top:.5rem}

.price{display:flex;align-items:baseline;gap:.5rem;justify-content:center}
.price__n{font-size:clamp(3rem,8vw,4.8rem);font-weight:900;color:var(--brand);line-height:1;
  letter-spacing:-.05em}
.price__p{color:var(--ink-2);font-weight:800}

.faq{display:grid;gap:.9rem;max-width:68ch}
.faq details{border-radius:var(--r-lg);padding:1.1rem 1.4rem;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,242,255,.82));
  box-shadow:var(--lift)}
.faq summary{font-weight:900;cursor:pointer;list-style:none;color:var(--ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";float:right;color:var(--brand);font-size:1.2rem;line-height:1}
.faq details[open] summary::after{content:"–"}
.faq p{margin:.75rem 0 0;color:var(--ink-2);font-weight:600}

/* ── SKILL WALL ── */
.wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:var(--gap)}
.strand{border-radius:var(--r-xl);padding:1.3rem 1.4rem 1.4rem;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(248,242,255,.88));
  box-shadow:var(--lift)}
.strand__h{display:flex;align-items:center;gap:.75rem;margin:0 0 .9rem}
.strand__h h2{margin:0;font-size:1.12rem;font-weight:900;color:var(--ink);line-height:1.2}
.strand__n{flex:none;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;
  font-weight:900;color:#fff;font-size:1.02rem;
  background:linear-gradient(180deg,var(--brand-lift),var(--brand));
  box-shadow:0 1px 0 rgba(255,255,255,.4) inset,0 8px 14px -9px rgba(46,35,64,.75)}
.skills{list-style:none;margin:0;padding:0;display:grid;gap:.3rem}
.skill{display:flex;align-items:center;gap:.7rem;padding:.6rem .7rem;border-radius:13px;
  text-decoration:none;color:var(--ink-2);font-size:1rem;font-weight:700;min-height:46px;
  line-height:1.3;transition:background .14s,color .14s}
.skill:hover{background:rgba(234,223,247,.85);color:var(--brand)}
.skill__m{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  font-size:.8rem;font-weight:900;box-shadow:0 1px 0 rgba(255,255,255,.6) inset,
  0 3px 6px -3px rgba(46,35,64,.5)}
.skill__m--core{background:linear-gradient(180deg,#5FD9C6,var(--teal));color:var(--on-core)}
.skill__m--stretch{background:linear-gradient(180deg,var(--stretch),#F5A623);color:var(--on-stretch)}
.legend{display:flex;gap:1.3rem;flex-wrap:wrap;margin:0 0 var(--gap);font-size:.95rem;
  font-weight:700;color:var(--ink-2)}
.legend span{display:flex;align-items:center;gap:.5rem}

/* ── CHILD QUESTION SCREEN ── */
.play{min-height:100svh;display:grid;grid-template-rows:auto 1fr}
.play__bar{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.5rem}
.play__who{display:flex;align-items:center;gap:.7rem;font-weight:900;color:var(--brand)}
.play__who img{width:50px;height:50px;border-radius:50%;
  box-shadow:0 6px 14px -7px rgba(46,35,64,.6),0 0 0 3px rgba(255,255,255,.8)}
.play__main{display:grid;grid-template-columns:auto 1fr;gap:clamp(1.2rem,3.5vw,3rem);
  align-items:center;padding:0 clamp(1rem,4vw,3rem) clamp(1.5rem,4vw,3rem);
  max-width:1320px;margin-inline:auto;width:100%}
.play__dum{display:grid;justify-items:center;gap:1rem;max-width:280px}
.play__dum .dum{width:min(100%,220px)}
.bubble{position:relative;background:linear-gradient(180deg,#fff,#F7F1FE);border-radius:24px;
  padding:.9rem 1.3rem;font-weight:900;font-size:1.1rem;color:var(--ink);text-align:center;
  box-shadow:var(--lift)}
.bubble::after{content:"";position:absolute;left:50%;bottom:-12px;transform:translateX(-50%);
  width:0;height:0;border:12px solid transparent;border-top-color:#F7F1FE;border-bottom:0}
.ask{display:flex;align-items:center;gap:1.1rem;margin:0 0 1.4rem}
.ask h2{font-size:clamp(1.6rem,3.4vw,2.5rem);margin:0;color:var(--ink);letter-spacing:-.03em}
.say{flex:none;width:88px;height:88px;border-radius:50%;border:0;cursor:pointer;
  display:grid;place-items:center;
  background:linear-gradient(180deg,#FFD86B 0%,#F5A623 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 6px 0 #C97F0B,
             0 16px 26px -14px rgba(46,35,64,.7)}
.say:active{transform:translateY(5px);box-shadow:0 1px 0 rgba(255,255,255,.55) inset,0 1px 0 #C97F0B}
.say svg{width:40px;height:40px;fill:#5B3F00}
.tray--play{max-width:min(100%,560px)}
.answers{display:grid;grid-template-columns:repeat(5,1fr);gap:clamp(.55rem,1.5vw,1rem);
  margin-top:clamp(1rem,2.5vw,1.6rem)}
.ans{min-height:104px;min-width:80px;border:0;cursor:pointer;border-radius:22px;
  font:900 clamp(2.1rem,4.2vw,3rem)/1 var(--face);color:var(--brand);
  font-variant-numeric:tabular-nums;letter-spacing:-.03em;
  background:linear-gradient(180deg,#FFFFFF 0%,#F2EAFD 100%);
  box-shadow:0 1px 0 #fff inset,0 7px 0 #D9C7F1,0 18px 26px -16px rgba(46,35,64,.6);
  transition:transform .1s cubic-bezier(.2,.8,.3,1),box-shadow .1s}
.ans:hover{background:linear-gradient(180deg,#fff,#EADFF7)}
.ans:active{transform:translateY(6px);box-shadow:0 1px 0 #fff inset,0 1px 0 #D9C7F1}
.play__helper{margin:1.2rem 0 0;color:var(--ink-2);font-size:.95rem;text-align:center;font-weight:700}

/* ── responsive ── */
@media (max-width:940px){
  .hero,.play__main{grid-template-columns:1fr}
  .hero__art{order:-1}
  .dum{width:min(46%,200px)}
  .steps{grid-template-columns:1fr;gap:2.2rem}
  .play__main{align-content:start;gap:1.2rem}
  .play__dum{display:none}
}
@media (max-width:560px){
  .answers{grid-template-columns:repeat(3,1fr)}
  .top{flex-wrap:wrap;gap:.75rem}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;
  scroll-behavior:auto!important}}

/* the speaker shows it is working: a child who sees nothing happen taps again */
.say[aria-pressed]{position:relative}
.say.is-speaking{animation:say-pulse 1s ease-in-out infinite}
.say[disabled]{opacity:.45;cursor:not-allowed;animation:none}
@keyframes say-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
@media (prefers-reduced-motion:reduce){
  .say.is-speaking{animation:none;outline:4px solid currentColor;outline-offset:4px}}
:focus-visible{outline:3px solid var(--brand);outline-offset:3px}

/* ══ THE PRACTICE LOOP ═════════════════════════════════════════════════
   One question, one way to answer, and three states — right, one more go,
   and told. No score appears anywhere, in any state (DECISIONS P4).      */

.skip{position:absolute;left:-9999px;top:0;z-index:200;padding:.9rem 1.4rem;
  background:var(--ink);color:#fff;text-decoration:none;font:800 1rem/1 var(--face);
  border-radius:0 0 12px 0}
.skip:focus{left:0}

.q{display:grid;gap:1.1rem;margin:0}
.q__ask{display:flex;align-items:center;gap:1rem}
.q__prompt{margin:0;font-size:clamp(1.25rem,2.6vw,1.7rem);font-weight:900;color:var(--ink);
  letter-spacing:-.02em}
.q__stage{display:grid;justify-items:center;gap:1rem;width:100%}
.q__helper,.q__placed{margin:0;text-align:center;color:var(--ink-2);font-weight:700;font-size:.95rem}

/* what DumDum says. A noticing, never a verdict. */
.q__said{margin:0;text-align:center;font-weight:900;font-size:1.15rem;padding:.9rem 1.2rem;
  border-radius:var(--r-lg)}
.q__said--right{background:linear-gradient(180deg,#E6F9F3,#D2F3E9);color:#0B3F39}
.q__said--again{background:linear-gradient(180deg,#FFF6E2,#FFEFCB);color:#5B3F00}
.q__said--told{background:linear-gradient(180deg,#F3ECFE,#E9DDFB);color:var(--ink)}

/* the frame a child builds on */
.frame--5{grid-template-columns:repeat(5,1fr)}
.frame__c--tap{border:0;padding:0;cursor:pointer;font:inherit;
  background:linear-gradient(180deg,#FFFFFF 0%,#FBF8FE 100%)}
.frame__c--tap .dot{opacity:0;transform:scale(.4);
  transition:opacity .16s cubic-bezier(.2,.8,.3,1),transform .16s cubic-bezier(.2,.8,.3,1)}
.frame__c--tap.is-on .dot{opacity:1;transform:scale(1)}
.frame__c--tap:hover{background:linear-gradient(180deg,#fff,#F2EAFD)}
.frame__c--tap:active{transform:scale(.96)}
.frame__c--tap[disabled]{cursor:default}

/* one miss: the frame nudges. It does not go red and it does not mark. */
.is-nudging{animation:nudge .42s cubic-bezier(.36,.07,.19,.97)}
@keyframes nudge{10%,90%{transform:translateX(-3px)}30%,70%{transform:translateX(5px)}
  50%{transform:translateX(-5px)}}

.btn--done{justify-self:center;min-width:180px}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed;box-shadow:var(--press)}

/* dot plate */
/* The stage centres its children, which collapses a grid to content width
   and leaves 1fr columns at zero. Every piece of apparatus therefore states
   its own width. */
.plate{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;padding:16px;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));border-radius:var(--r-xl);
  box-shadow:var(--lift);width:min(100%,420px)}
.plate__c{aspect-ratio:1;display:grid;place-items:center}
.plate .dot{width:76%}

/* loose counters */
.counters{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;
  width:min(100%,460px);padding:16px}
.counters .dot{width:46px}
.counters--scattered{gap:18px 26px}

/* two groups to compare, or to match to a numeral */
.groups{display:flex;flex-wrap:wrap;gap:clamp(1rem,3vw,2rem);justify-content:center}
.group{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:16px;border:0;
  cursor:pointer;border-radius:var(--r-lg);min-height:96px;min-width:104px;place-content:center;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:var(--lift)}
.group:hover{background:linear-gradient(180deg,#fff,var(--lav))}
.group:active{transform:translateY(3px);box-shadow:var(--press)}
.group .dot{width:34px}
.big-numeral{font:900 clamp(3.5rem,10vw,5.5rem)/1 var(--face);color:var(--brand);margin:0;
  text-align:center;letter-spacing:-.05em}

/* part-whole model */
.part-whole{display:grid;gap:1rem;justify-items:center}
.part-whole__whole{display:grid;place-items:center;width:110px;height:110px;border-radius:50%;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:var(--lift)}
.pw-n{font:900 2.4rem/1 var(--face);color:var(--brand)}
.pw-l{font-size:.75rem;font-weight:800;color:var(--ink-3);text-transform:uppercase;
  letter-spacing:.08em}
.part-whole__parts{display:flex;gap:1.5rem}
.pw-part{display:flex;flex-wrap:wrap;gap:8px;width:120px;min-height:90px;padding:12px;
  border-radius:var(--r-lg);place-content:center;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:var(--lift)}
.pw-part .dot{width:30px}
.pw-part--hidden{display:grid;place-items:center;font:900 2.2rem/1 var(--face);color:var(--ink-3)}

/* ══ THE SKILL WALL ════════════════════════════════════════════════════ */

.strand__h > div{min-width:0}
.strand__t{margin:.15rem 0 0;font-size:.78rem;font-weight:800;color:var(--ink-3);
  text-transform:uppercase;letter-spacing:.08em}
.strand__note{margin:0 0 1rem;font-size:.94rem;color:var(--ink-2);font-weight:600}
.legend__play{font-weight:900;color:var(--brand)}
/* ── ONE SKILL, ONE PAGE ────────────────────────────────────────────────
   This replaced a fixed-position sheet that slid over the wall. A sheet has
   no URL, so Back left the wall instead of closing it, and every way of
   closing it had to be hand-built (NEVER-AGAIN 28, RESEARCH/navigation.md).
   A page needs none of that: the browser already knows how to leave one. */
.skillpage{display:grid;gap:1.1rem;max-width:820px;justify-items:stretch}
/* A pill is a pill, not a bar: a grid item stretches whatever its own
   display says, so it has to be told to stop. */
.skillpage>.eyebrow{justify-self:start;margin:0}
.skillpage__q{width:100%}
.skillpage h1{margin:0;font-size:var(--t-h2);color:var(--brand);line-height:1.15}
.crumbs{margin:0}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .5rem;
  margin:0;padding:0;font-size:.9rem;font-weight:800;color:var(--ink-3)}
.crumbs li{display:flex;align-items:center;gap:.5rem;min-width:0}
.crumbs li+li::before{content:"›";color:var(--horizon);font-weight:900}
.crumbs a{color:var(--ink-2);text-decoration:none;border-radius:8px}
.crumbs a:hover{color:var(--brand);text-decoration:underline}
.crumbs [aria-current="page"]{color:var(--ink);overflow-wrap:anywhere}
.skillpage__mark{display:flex;align-items:center;gap:.6rem;margin:0;font-weight:700;
  color:var(--ink-2);font-size:1rem}
.skillpage__mark strong{color:var(--ink)}
.skillpage__plain{margin:0;font-size:1.12rem;color:var(--ink);font-weight:700}
.skillpage__try{margin-top:.6rem;padding-top:1.5rem;border-top:2px solid var(--lav)}
.skillpage__try h2{margin:0 0 1rem;font-size:.8rem;font-weight:800;color:var(--ink-3);
  text-transform:uppercase;letter-spacing:.08em}
.skillpage__soon{margin:0;color:var(--ink-2);font-weight:600;font-size:.98rem}
.skillpage__back{margin:0}
.skillpage__back a{font-weight:800;text-decoration:none}
.skillpage__back a:hover{text-decoration:underline}

/* Previous and next in teaching order, so a strand can be read through —
   the one thing IXL's skill page does not give you. */
.stepnav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));
  gap:.7rem;margin-top:.6rem;padding-top:1.4rem;border-top:2px solid var(--lav)}
.stepnav__a{display:grid;gap:.2rem;padding:.85rem 1rem;border-radius:var(--r);min-width:0;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(248,242,255,.88));
  box-shadow:var(--lift);text-decoration:none;color:var(--ink)}
.stepnav__a:hover{color:var(--brand)}
.stepnav__a--next{text-align:right}
.stepnav__l{font-size:.74rem;font-weight:800;color:var(--ink-3);
  text-transform:uppercase;letter-spacing:.08em}
.stepnav__n{font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.stepnav__none{display:grid;align-content:center;padding:.85rem 1rem;font-size:.92rem;
  font-weight:700;color:var(--ink-3)}

/* Where this parent's own children are on this skill. Signed out, none of
   this exists; a child never sees it at all. */
.minerow{display:grid;gap:.6rem;padding:1.1rem 1.2rem;border-radius:var(--r-lg);
  background:rgba(255,255,255,.72);box-shadow:var(--lift)}
.minerow h2{margin:0;font-size:.8rem;font-weight:800;color:var(--ink-3);
  text-transform:uppercase;letter-spacing:.08em}
.mine{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.mine>div{min-width:0;flex:1 1 8rem}
.mine__who{margin:0;font-weight:900;color:var(--ink)}
.mine__state{margin:0;font-size:.92rem;font-weight:700;color:var(--ink-2)}
.mine--mastered .mine__state{color:var(--brand)}
.mine__done{margin:0;font-size:.92rem;font-weight:800;color:var(--brand)}

@media (max-width:560px){
  .counters .dot{width:38px}
  .part-whole__parts{gap:1rem}
  .pw-part{width:104px}
}

/* ══ THE PARENT'S PAGES ════════════════════════════════════════════════ */

.wrap.narrow{width:min(620px,calc(100% - 2.5rem))}
.pnav{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.pnav a,.linkish{font:800 .98rem/1 var(--face);color:var(--ink-2);text-decoration:none;
  padding:.7rem .9rem;border-radius:999px;border:0;background:transparent;cursor:pointer}
.pnav a:hover,.linkish:hover{background:rgba(255,255,255,.7);color:var(--brand)}
.pnav a[aria-current="page"]{background:#fff;color:var(--brand);box-shadow:var(--lift)}
.pnav__out{display:inline}
.linkish--bad{color:var(--coral-deep)}
.linkish--bad:hover{background:#FFE8E8;color:var(--coral-deep)}

.flashes{padding-top:1rem}
.flash{margin:0 0 .6rem;padding:.9rem 1.2rem;border-radius:var(--r-lg);font-weight:800;
  background:linear-gradient(180deg,#E6F9F3,#D2F3E9);color:#0B3F39;box-shadow:var(--lift)}
.flash--error{background:linear-gradient(180deg,#FFECEC,#FFDCDC);color:#8A1B1B}
.notice{margin:0 0 1.5rem;padding:.9rem 1.2rem;border-radius:var(--r-lg);font-weight:700;
  background:linear-gradient(180deg,#FFF6E2,#FFEFCB);color:#5B3F00}

/* forms */
.form{display:grid;gap:1.25rem;margin-block:1.5rem}
.form h2{margin:0;font-size:1.2rem}
.field{display:grid;gap:.4rem}
.field label{font-weight:900;color:var(--ink);font-size:1rem}
.field__help{margin:0;font-size:.88rem;color:var(--ink-2);font-weight:600}
.field input[type=text],.field input[type=email],.field input[type=password],
.field textarea{font:600 1.05rem/1.4 var(--face);padding:.9rem 1rem;border-radius:var(--r);
  border:2px solid #E0D6F2;background:#fff;color:var(--ink);width:100%;min-height:52px}
.field input:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 4px rgba(92,49,150,.16)}
.field--bad input{border-color:var(--coral-deep)}
.field__error{margin:.15rem 0 0;color:#8A1B1B;font-weight:800;font-size:.92rem}
.fineprint{font-size:.9rem;color:var(--ink-2);font-weight:600;background:rgba(255,255,255,.65);
  padding:1rem 1.2rem;border-radius:var(--r-lg);margin:0 0 1.25rem}
.check{display:flex;align-items:center;gap:.7rem;font-weight:800;cursor:pointer;min-height:44px}
.check input{width:26px;height:26px;accent-color:var(--brand)}
.card--danger{border:2px solid #F3C6C6}
.plainlist{margin:0 0 1.25rem;padding-left:1.3rem;color:var(--ink-2);font-weight:600}
.plainlist li{margin-bottom:.5rem}

/* radio pickers: school year and colour */
/* A group of choices. Django 5 renders radios as nested <div>s, so these
   select the label that wraps each input — the whole chip is the target,
   never the 13px dot the browser draws by default. */
.choices{border:0;margin:0;padding:0;display:grid;gap:.5rem}
.choices legend{padding:0;font-weight:900;color:var(--ink);font-size:1rem}
.choices__row{display:flex;flex-wrap:wrap;gap:.6rem}
.choice{display:inline-flex;align-items:center;gap:.55rem;min-height:52px;
  padding:.7rem 1.1rem;border-radius:var(--r);border:2px solid var(--lav);
  background:var(--surface);font-weight:800;color:var(--ink);cursor:pointer}
.choice input{flex:none;width:22px;height:22px;accent-color:var(--brand);margin:0}
.choice:hover{background:var(--lav)}
.choice:has(input:checked){border-color:var(--brand);background:var(--lav)}
.choice:focus-within{outline:3px solid var(--brand);outline-offset:2px}
/* the avatar colours, on the dot the parent is choosing */
.choice input[value=blueberry]{accent-color:#5C3196}
.choice input[value=clementine]{accent-color:#E8622A}
.choice input[value=pear]{accent-color:#5C9A2E}
.choice input[value=plum]{accent-color:#A8327D}
.choice input[value=mint]{accent-color:#1A7A6D}
.choice input[value=honey]{accent-color:#C98A0B}

/* the child cards on /home */
.kids{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:var(--gap);
  list-style:none;margin:0;padding:0}
.kids--list{grid-template-columns:1fr}
.kid{display:grid;gap:1rem;padding:1.4rem;border-radius:var(--r-xl);align-content:start;
  grid-template-columns:minmax(0,1fr);
  background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:var(--lift)}
.kids--list .kid{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.kid__who{display:flex;align-items:center;gap:.9rem;min-width:0}
.kid__who>div{min-width:0}
.kid__who h2{margin:0;font-size:1.3rem;color:var(--ink);overflow-wrap:anywhere}
.kid__yr{margin:.1rem 0 0;font-size:.8rem;font-weight:800;color:var(--ink-3);
  text-transform:uppercase;letter-spacing:.08em}
/* Three buttons and a 390px phone: they wrap rather than push the card
   past the edge of the screen (NEVER-AGAIN 18). */
.kid__acts{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.av{flex:none;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;
  background:var(--av,var(--brand));color:#fff;font:900 1.5rem/1 var(--face);
  box-shadow:0 1px 0 rgba(255,255,255,.4) inset,0 8px 16px -10px rgba(46,35,64,.8)}
.kid__nums{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin:0}
.kid__nums div{text-align:center;padding:.8rem .4rem;border-radius:var(--r);
  background:rgba(234,223,247,.55)}
.kid__nums dt{font-size:.72rem;font-weight:800;color:var(--ink-3);text-transform:uppercase;
  letter-spacing:.06em}
.kid__nums dd{margin:.25rem 0 0;font:900 1.7rem/1 var(--face);color:var(--brand);
  font-variant-numeric:tabular-nums}
.kid__none{margin:0;font-size:.9rem;color:var(--ink-2);font-weight:600}
@media (max-width:430px){.kids--list .kid{grid-template-columns:minmax(0,1fr)}}
.empty{display:grid;gap:1rem;justify-items:start;text-align:left;padding:clamp(1.6rem,4vw,2.6rem)}
.empty h1{margin:0}

/* ── child mode ───────────────────────────────────────────────────────
   A room with one door. Everything a grown-up needs is one small button
   in the corner; everything else on the screen belongs to the child. */
.vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.kid-top{display:flex;justify-content:flex-end;padding:.9rem clamp(1rem,4vw,2rem) 0}
.grownups{font:800 .85rem/1 var(--face);color:var(--ink-3);text-decoration:none;
  padding:.7rem 1rem;border-radius:999px;background:rgba(255,255,255,.55);
  min-height:44px;display:inline-flex;align-items:center}
.grownups:hover{background:#fff;color:var(--brand)}

/* who is playing */
.tiles-bay{text-align:center}
.tiles__ask{font-size:var(--t-h2);margin:0 0 clamp(1.5rem,4vw,2.5rem)}
.tiles{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;
  gap:clamp(1.2rem,4vw,2.5rem);justify-content:center}
.tile{display:grid;gap:.9rem;justify-items:center;text-decoration:none;
  padding:1.2rem;border-radius:var(--r-xl);min-width:160px}
.tile:hover,.tile:focus-visible{background:rgba(255,255,255,.6)}
.tile__face{width:clamp(120px,26vw,168px);aspect-ratio:1;border-radius:50%;
  display:grid;place-items:center;background:var(--av,var(--brand));color:#fff;
  font:900 clamp(3rem,9vw,4.4rem)/1 var(--face);
  box-shadow:0 2px 0 rgba(255,255,255,.45) inset,0 18px 30px -18px rgba(46,35,64,.9)}
.tile__name{font:900 1.4rem/1 var(--face);color:var(--ink)}

/* how far through this go — dots, never a number */
.dots{list-style:none;display:flex;flex-wrap:wrap;gap:.45rem;margin:0 0 1.2rem;padding:0;
  justify-content:center}
.pip{width:14px;height:14px;border-radius:50%;background:var(--lav)}
.pip--done{background:var(--brand)}
.pip--now{background:var(--brand);box-shadow:0 0 0 4px rgba(92,49,150,.22)}

.play-bay{padding-top:clamp(1rem,3vw,2rem)}

/* the garden */
.garden__head{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}
.garden__head h1{margin:0;font-size:var(--t-h2)}
.garden{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:clamp(1rem,3vw,1.8rem)}
.plant{display:grid;justify-items:center;gap:.5rem;padding:1rem .6rem 1.2rem;
  border-radius:var(--r-lg);background:linear-gradient(180deg,var(--surface),var(--surface-2));
  box-shadow:var(--lift)}
.plant__art{width:clamp(64px,14vw,88px);height:auto}
.plant__stem{stroke:#2F6B2A;stroke-width:5;stroke-linecap:round;fill:none}
.plant__leaf{fill:#3E8A34}
.plant__bloom{fill:var(--av,var(--brand))}
.plant__heart{fill:#FFF6D8}
.plant__name{font:800 .82rem/1.25 var(--face);color:var(--ink-2);text-align:center}
.garden__bare{max-width:34ch}
.garden__acts{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:clamp(1.8rem,5vw,3rem)}

/* one child's wall, with where they are on it */
.prog__who{margin-bottom:1.2rem}
.prog__who h1{margin:0;font-size:var(--t-h2)}
.prog__nums{max-width:520px}
.prog__next{font-weight:800;color:var(--ink)}
.prog{list-style:none;margin:0 0 1.5rem;padding:0;display:grid;gap:.5rem}
.prog__row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.8rem;
  align-items:center;padding:.8rem 1rem;border-radius:var(--r);background:var(--surface);
  border-left:6px solid var(--lav)}
.prog__row--mastered{border-left-color:var(--teal)}
.prog__row--working{border-left-color:var(--brand-lift)}
.prog__row--help{border-left-color:var(--coral-deep)}
.prog__name{font-weight:800;color:var(--ink)}
.prog__state{font:800 .78rem/1 var(--face);color:var(--ink-3);text-transform:uppercase;
  letter-spacing:.06em;white-space:nowrap}
.prog__soon{font:800 .78rem/1 var(--face);color:var(--ink-3);white-space:nowrap}
.prog__nudged{font:800 .78rem/1 var(--face);color:var(--brand);white-space:nowrap}
@media (max-width:560px){.prog__row{grid-template-columns:1fr;gap:.35rem}}

/* which year you are looking at */
.yeartabs{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.9rem}
.yeartab{font:800 .85rem/1 var(--face);letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink-2);text-decoration:none;padding:.65rem .95rem;border-radius:999px;
  background:rgba(255,255,255,.55);min-height:44px;display:inline-flex;align-items:center}
.yeartab:hover{background:#fff;color:var(--brand)}
.yeartab.is-on{background:var(--brand);color:#fff}
.yeartab--soon{opacity:.6;background:transparent}
.yeartabs--hero{margin-bottom:1.1rem}

/* ── Year 1 apparatus ─────────────────────────────────────────────────
   Ten frames come in pairs past ten, which is how a Year 1 classroom
   holds seventeen (RESEARCH/year-1.md 4). Five columns, four rows, with
   a gap across the middle so the two tens stay two tens. */
.frame--20{grid-template-columns:repeat(5,1fr);row-gap:14px}

/* written numerals — what Year 1 adds to the pictures */
.ncard{display:grid;justify-items:center;gap:1rem;width:min(100%,420px)}
.ncard__one{margin:0;font:900 clamp(3.4rem,12vw,5.5rem)/1 var(--face);color:var(--brand);
  font-variant-numeric:tabular-nums}
.ncard__word{margin:0;font:900 clamp(2.2rem,8vw,3.4rem)/1 var(--face);color:var(--brand)}
.ncard__run{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0;
  justify-content:center}
.ncard__run li{min-width:64px;min-height:64px;display:grid;place-items:center;
  border-radius:var(--r);background:var(--surface);box-shadow:var(--lift);
  font:900 1.9rem/1 var(--face);color:var(--ink);font-variant-numeric:tabular-nums}
.ncard__blank{color:var(--brand)!important;background:var(--lav)!important;
  box-shadow:none!important}
.ncard__pair{display:flex;flex-wrap:wrap;gap:clamp(.8rem,3vw,1.4rem);justify-content:center}
.ncard__pick{min-width:120px;min-height:104px;border:0;border-radius:var(--r-lg);
  background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:var(--lift);
  font:900 2.6rem/1 var(--face);color:var(--ink);cursor:pointer;
  font-variant-numeric:tabular-nums}
.ncard__pick:hover:not(:disabled){background:var(--lav)}
.ncard__pick:disabled{opacity:.65}

/* base ten — tens rods and ones cubes */
.baseten{display:flex;flex-wrap:wrap;gap:1.2rem;align-items:flex-end;justify-content:center;
  width:min(100%,420px)}
.baseten__tens,.baseten__ones{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-end}
.rod{width:18px;height:90px;border-radius:5px;
  background:linear-gradient(180deg,#8B63C9,var(--brand));
  box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 6px 10px -7px rgba(46,35,64,.9)}
.cube{width:18px;height:18px;border-radius:4px;
  background:linear-gradient(180deg,#FF9B76,var(--counter));
  box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 4px 8px -5px rgba(46,35,64,.9)}

/* a number sentence, with the counters still underneath it */
.sentence{display:grid;gap:1.1rem;justify-items:center;width:min(100%,460px)}
.sentence__line{margin:0;font:900 clamp(2rem,7vw,3rem)/1 var(--face);color:var(--ink);
  font-variant-numeric:tabular-nums}
.sentence__work{display:flex;align-items:center;justify-content:center;
  gap:.8rem;flex-wrap:wrap}
.sentence__rows{display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:.5rem}
.sentence__op{font:900 1.6rem/1 var(--face);color:var(--ink-3)}
.pile{display:flex;flex-wrap:wrap;gap:6px;padding:.7rem;border-radius:var(--r);
  background:rgba(234,223,247,.55);max-width:220px;justify-content:center}
.pile .dot{width:26px;height:26px}
.dot.is-gone{opacity:.28}

/* equal groups, arrays and sharing */
.groupsof{display:flex;flex-wrap:wrap;gap:.9rem;justify-content:center;width:min(100%,460px)}
.groupsof--array{flex-direction:column;gap:6px;align-items:center}
.groupsof__g{display:flex;gap:6px;padding:.7rem;border-radius:var(--r);
  background:rgba(234,223,247,.55)}
.groupsof--array .groupsof__g{background:none;padding:0}
.groupsof__g .dot{width:24px;height:24px}
.shareout{display:grid;gap:1.1rem;justify-items:center;width:min(100%,460px)}
.shareout__pile{display:flex;flex-wrap:wrap;gap:6px;max-width:280px;justify-content:center}
.shareout__pile .dot{width:24px;height:24px}
.shareout__plates{display:flex;flex-wrap:wrap;gap:.9rem;justify-content:center}
.plate-empty{width:74px;height:74px;border-radius:50%;border:3px dashed var(--horizon);
  background:rgba(255,255,255,.45)}

/* ── the apparatus both years were missing ────────────────────────────
   Sorting hoops, a balance, solid shapes, a pattern train, a part-whole
   model and a number line. Every one is real classroom equipment. */

/* a thing: a shape, in a colour, at a size */
.thing{width:clamp(52px,13vw,76px);height:auto;fill:var(--thing,var(--c-red));
  stroke:var(--ink);stroke-width:3;stroke-linejoin:round}
.thing line,.thing polyline{stroke:var(--ink);stroke-width:2.5;fill:none}
.thing--small{width:clamp(34px,8vw,48px)}

/* one row of things to tap */
.pickrow{display:flex;flex-wrap:wrap;gap:clamp(.7rem,3vw,1.2rem);justify-content:center;
  width:min(100%,460px)}
.pick{min-width:96px;min-height:96px;display:grid;place-items:center;border:0;padding:.6rem;
  border-radius:var(--r-lg);background:linear-gradient(180deg,var(--surface),var(--surface-2));
  box-shadow:var(--lift);cursor:pointer}
.pick:hover:not(:disabled){background:var(--lav)}
.pick:disabled{opacity:.7}
.pick--inline{min-width:72px;min-height:72px;padding:.35rem}

/* sorting: one thing, two hoops */
.sortbay{display:grid;gap:1.4rem;justify-items:center;width:min(100%,460px)}
.sortitem{display:grid;place-items:center;padding:.6rem;border-radius:var(--r-lg);
  background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:var(--lift);
  touch-action:none;cursor:grab}
.sortitem.is-held{cursor:grabbing;outline:3px solid var(--brand);outline-offset:3px}
.hoops{display:flex;flex-wrap:wrap;gap:clamp(.9rem,4vw,1.8rem);justify-content:center}
.hoop{min-width:132px;min-height:112px;border:4px dashed var(--horizon);border-radius:50%/40%;
  background:rgba(255,255,255,.5);color:var(--ink);cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;
  padding:.6rem}
.hoop:hover:not(:disabled),.hoop.is-over{background:var(--lav);border-color:var(--brand)}
.sortrow{display:flex;align-items:center;gap:.9rem;justify-content:center;margin-bottom:1rem}
.sortrow__label{font:800 .85rem/1 var(--face);color:var(--ink-3);text-transform:uppercase;
  letter-spacing:.06em}

/* comparing size, mass and capacity */
.compare{display:flex;align-items:flex-end;gap:clamp(1rem,5vw,2.2rem);justify-content:center;
  width:min(100%,460px);min-height:150px}
.cmp{border:0;background:none;padding:.5rem;border-radius:var(--r);cursor:pointer;
  display:grid;place-items:end;min-width:80px;min-height:80px}
.cmp:hover:not(:disabled) .cmp__art{filter:brightness(1.08)}
.cmp__art{display:block;border-radius:8px;border:3px solid var(--ink);
  background:linear-gradient(180deg,#8B63C9,var(--brand))}
.cmp--length .cmp__art{width:calc(30px + (var(--v)/var(--scale))*170px);height:26px}
.cmp--height .cmp__art,.cmp--size .cmp__art{width:56px;
  height:calc(24px + (var(--v)/var(--scale))*110px)}
.cmp--mass .cmp__art{width:calc(28px + (var(--v)/var(--scale))*54px);
  height:calc(28px + (var(--v)/var(--scale))*54px);border-radius:50%}
.cmp--capacity .cmp__art{width:74px;height:110px;border-radius:6px 6px 14px 14px;
  background:linear-gradient(to top,var(--c-blue) calc((var(--v)/var(--scale))*100%),
    rgba(255,255,255,.6) calc((var(--v)/var(--scale))*100%))}
.compare--balance{align-items:flex-start}
.compare--balance .cmp{align-items:start}
.measured{display:grid;gap:.6rem;justify-items:center;width:min(100%,460px)}
.bar{display:block;height:30px;border-radius:8px;border:3px solid var(--ink);
  width:calc(var(--len)*32px);background:linear-gradient(180deg,#8B63C9,var(--brand))}
.cubes{display:flex;gap:4px}

/* shape: fractions, turns, position */
.shapesolo{display:grid;place-items:center;width:min(100%,420px)}
.shapesolo .thing{width:clamp(120px,32vw,180px)}
.frac{display:block;width:78px;height:78px;border-radius:50%;border:3px solid var(--ink);
  background:conic-gradient(var(--brand) 0 var(--shaded,0deg),var(--surface) 0)}
.frac--2{--shaded:180deg}
.frac--4{--shaded:90deg}
.frac--5{--shaded:72deg}
.frac--uneven{background:conic-gradient(var(--brand) 0 120deg,var(--surface) 0)}
.frac--shaded-3{--shaded:270deg}
.turned{display:block;width:74px;height:74px;border-radius:50%;border:3px solid var(--ink);
  background:var(--surface);position:relative;transform:rotate(var(--deg))}
.turned::after{content:"";position:absolute;left:50%;top:6px;width:0;height:0;
  transform:translateX(-50%);border-left:11px solid transparent;
  border-right:11px solid transparent;border-bottom:22px solid var(--brand)}
.posbay{display:flex;gap:clamp(.9rem,4vw,1.6rem);justify-content:center;flex-wrap:wrap}
.pick--pos{position:relative;min-width:118px;min-height:118px}
.posbox{width:56px;height:44px;border-radius:6px;border:3px solid var(--ink);
  background:var(--lav);display:block}
.posdot{position:absolute;width:26px;height:26px;border-radius:50%;
  background:var(--counter);border:3px solid var(--ink)}
.pos--above .posdot{top:16px;left:50%;transform:translateX(-50%)}
.pos--below .posdot{bottom:16px;left:50%;transform:translateX(-50%)}
.pos--beside .posdot,.pos--right .posdot{top:50%;right:14px;transform:translateY(-50%)}
.pos--left .posdot{top:50%;left:14px;transform:translateY(-50%)}
.pos--in-front .posdot{bottom:26px;left:56%}
.pos--behind .posdot{top:26px;left:32%}

/* a repeating pattern train */
.train{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;justify-content:center;
  width:min(100%,520px);margin-bottom:1rem}
.train__gap{width:clamp(52px,13vw,76px);aspect-ratio:1;border-radius:var(--r);
  border:3px dashed var(--brand);display:grid;place-items:center;
  font:900 1.6rem/1 var(--face);color:var(--brand)}
.trains{display:grid;gap:1rem;width:min(100%,520px)}
.train--pick{border:0;padding:.7rem;border-radius:var(--r-lg);cursor:pointer;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:var(--lift);
  display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin:0}
.train--pick:hover:not(:disabled){background:var(--lav)}
.train--tappable{margin-bottom:0}

/* the number line — statutory in Year 1 */
.numline{position:relative;width:min(100%,560px);padding:2.6rem 0 .5rem}
.numline__rail{position:absolute;left:0;right:0;top:2.6rem;height:5px;border-radius:3px;
  background:var(--horizon)}
.numline__marker{position:absolute;top:.6rem;left:var(--at);transform:translateX(-50%);
  width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;
  border-top:20px solid var(--coral-deep)}
.numline__ticks{list-style:none;display:flex;justify-content:space-between;margin:0;padding:0}
.numline__tick{display:flex}
.tick{min-width:44px;min-height:56px;border:0;border-radius:12px;cursor:pointer;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:var(--lift);
  font:900 1.1rem/1 var(--face);color:var(--ink);font-variant-numeric:tabular-nums}
.tick:hover:not(:disabled){background:var(--lav);color:var(--brand)}
.tick--flat{background:none;box-shadow:none;display:grid;place-items:center}
.pw-part--going{opacity:.4}
.part-whole__whole--asked .pw-n{color:var(--brand)}
.hoop__face .thing{width:34px}
.hoop__label{font:900 .95rem/1 var(--face)}
.group--shown{cursor:default}
.verdicts{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center;margin-top:1.1rem}
.verdict{min-width:132px;min-height:84px;border:0;border-radius:var(--r-lg);cursor:pointer;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:var(--lift);
  font:900 1.25rem/1.2 var(--face);color:var(--ink);padding:.8rem 1.1rem}
.verdict:hover:not(:disabled){background:var(--lav);color:var(--brand)}
.ncard__compare{display:flex;align-items:center;gap:1rem;margin:0;
  font:900 clamp(2.4rem,9vw,3.6rem)/1 var(--face);color:var(--ink);
  font-variant-numeric:tabular-nums}
.ncard__slot{color:var(--brand);border-bottom:4px dashed var(--brand);min-width:2ch;
  text-align:center}
.ncard__pick--sign{min-width:96px}

/* ── money, measures, clocks, fractions, arrays, charts ───────────────
   The last of the apparatus. Sizes are roughly right where being roughly
   right is the lesson: a 2p really is bigger than a 5p. */
.coinrow,.cointray{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center;
  width:min(100%,460px)}
.coin{display:grid;place-items:center;border-radius:50%;border:3px solid var(--ink);
  font:900 .8rem/1 var(--face);color:var(--ink);cursor:pointer;position:relative;
  background:linear-gradient(180deg,#F6D9A6,#D8A44E)}
/* Copper, silver, and the two-tone pound. Sizes are the real ratios:
   a 2p is bigger than a 5p, which children notice before adults do. */
.coin--1{width:56px;height:56px;background:linear-gradient(180deg,#E9A87C,#B96B3C)}
.coin--2{width:72px;height:72px;background:linear-gradient(180deg,#E9A87C,#B96B3C)}
.coin--5{width:50px;height:50px;background:linear-gradient(180deg,#EFEFF3,#B8BCC7)}
.coin--10{width:62px;height:62px;background:linear-gradient(180deg,#EFEFF3,#B8BCC7)}
.coin--20{width:56px;height:56px;background:linear-gradient(180deg,#EFEFF3,#B8BCC7)}
.coin--50{width:70px;height:70px;background:linear-gradient(180deg,#EFEFF3,#B8BCC7)}
.coin--100{width:60px;height:60px;background:linear-gradient(180deg,#F6D9A6,#C79A3E)}
.coin--200{width:74px;height:74px;background:linear-gradient(180deg,#EFEFF3,#C79A3E)}
button.coin:hover:not(:disabled){filter:brightness(1.08)}
.coin.is-taken::after{content:attr(data-count);position:absolute;top:-6px;right:-6px;
  min-width:22px;height:22px;border-radius:11px;background:var(--brand);color:#fff;
  font:900 .72rem/22px var(--face);text-align:center}
.moneytotal{margin:0 0 .8rem;font:900 1.6rem/1 var(--face);color:var(--brand)}
.purses{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;width:min(100%,520px)}
.purse{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;padding:1rem;border:0;
  border-radius:var(--r-lg);background:linear-gradient(180deg,var(--surface),var(--surface-2));
  box-shadow:var(--lift);cursor:pointer;min-width:150px;min-height:110px}
.purse:hover:not(:disabled){background:var(--lav)}
.purse .coin{width:38px;height:38px;font-size:.62rem}
.pricetag{margin:.9rem 0 0;font:900 1.2rem/1 var(--face);color:var(--ink)}

.unitpick{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap}
/* The bar and the marks share one 320px track and one left edge, so a
   mark under the end of the bar means what it looks like it means. */
.scalebay{display:grid;gap:.5rem;justify-items:start;width:min(100%,320px)}
.scalebar{display:block;height:34px;border-radius:8px;border:3px solid var(--ink);
  width:calc(20px + (var(--of)/var(--top))*300px);
  background:linear-gradient(90deg,var(--brand-lift),var(--brand))}
/* The marks are drawn, not written. Estimating hides the numbers — and
   with nothing else on the ruler there was nothing left to estimate
   against, which is a worse question than the numbered one it replaced. */
.scaleticks{list-style:none;position:relative;margin:0;padding:0;height:1.5rem;
  width:100%;font:800 .78rem/1 var(--face);color:var(--ink-3)}
.scaleticks li{position:absolute;top:0;padding-top:.6rem;text-align:center;
  left:calc(20px + var(--at));transform:translateX(-50%)}
.scaleticks li::before{content:"";position:absolute;top:0;left:50%;width:2px;height:.42rem;
  transform:translateX(-50%);border-radius:1px;background:var(--ink-3)}
.scaleunit{margin:0;justify-self:center;font:900 1rem/1 var(--face);color:var(--ink-2)}
.scalepair{display:grid;gap:.7rem;justify-items:start;width:min(100%,420px)}
.verdict--sign{min-width:96px;font-size:2rem}

.clockbay,.clockset{display:grid;gap:1rem;justify-items:center;width:min(100%,460px)}
.clocks{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;width:min(100%,520px)}
.clockpick{border:0;background:none;padding:.4rem;border-radius:var(--r-lg);cursor:pointer}
.clockpick:hover:not(:disabled){background:var(--lav)}
.clockface{width:clamp(130px,34vw,190px);height:auto}
.clockpick .clockface{width:clamp(84px,20vw,120px)}
.clockface__rim{fill:var(--surface);stroke:var(--ink);stroke-width:3}
.clockface__ticks line{stroke:var(--ink-3);stroke-width:3;stroke-linecap:round}
.clockface__n{font:900 11px var(--face);fill:var(--ink);text-anchor:middle}
.clockface__hour{stroke:var(--ink);stroke-width:6;stroke-linecap:round}
.clockface__min{stroke:var(--brand);stroke-width:4;stroke-linecap:round}
.clockface__pin{fill:var(--ink)}
.clockmarks{position:relative;width:220px;height:220px}
.clockmark{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px;border:0;
  border-radius:50%;background:var(--surface);box-shadow:var(--lift);cursor:pointer;
  font:900 .82rem/1 var(--face);color:var(--ink);
  transform:rotate(var(--turn)) translateY(-92px) rotate(calc(-1*var(--turn)))}
.clockmark:hover:not(:disabled){background:var(--lav);color:var(--brand)}

.fracbay{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;width:min(100%,460px)}
.fracshape{display:block;width:96px;height:96px;border:3px solid var(--ink);border-radius:50%;
  background:conic-gradient(var(--brand) 0 calc(var(--shaded)*(360deg/var(--parts))),
    var(--surface) 0)}
.fracshape--uneven{background:conic-gradient(var(--brand) 0 100deg,var(--surface) 0)}
.fracshape--square{border-radius:8px}
.fracshape--bar{width:220px;height:52px;border-radius:8px;
  background:linear-gradient(90deg,var(--brand) 0 calc(var(--shaded)*(100%/var(--parts))),
    var(--surface) 0)}
.fracpicks{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap;margin-top:1.1rem}
.fracpick{min-width:96px;min-height:84px;border:0;border-radius:var(--r-lg);cursor:pointer;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:var(--lift);
  font:900 1.8rem/1 var(--face);color:var(--ink)}
.fracpick:hover:not(:disabled){background:var(--lav);color:var(--brand)}

.array,.arraybuild{display:grid;gap:6px;justify-content:center;width:min(100%,460px)}
.array__row{display:flex;gap:6px;justify-content:center}
.arrayrow{display:flex;gap:6px;justify-content:center;border:0;
  background:rgba(234,223,247,.4);border-radius:var(--r);padding:.45rem;
  cursor:pointer;min-height:44px}
.arrayrow .dot{opacity:.25}
.arrayrow.is-on{background:var(--lav)}
.arrayrow.is-on .dot{opacity:1}
.array .dot,.arrayrow .dot{width:24px;height:24px}

.chart{display:grid;gap:.5rem;width:min(100%,520px)}
.chartrow{display:grid;grid-template-columns:110px 1fr;gap:.8rem;align-items:center;
  padding:.5rem .6rem;border-radius:var(--r);background:var(--surface);border:0;text-align:left}
.chartrow--tap{cursor:pointer;box-shadow:var(--lift);min-height:52px}
.chartrow--tap:hover:not(:disabled){background:var(--lav)}
.chartrow__name{font:800 .95rem/1.2 var(--face);color:var(--ink)}
.chartrow__marks{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.tallyone{display:block;width:16px;height:26px;
  background:linear-gradient(90deg,var(--ink) 0 3px,transparent 0)}
.tallygate{display:block;height:26px;width:22px;margin-right:6px;position:relative;
  background:repeating-linear-gradient(90deg,var(--ink) 0 3px,transparent 3px 8px)}
.tallygate::after{content:"";position:absolute;inset:0;
  background:linear-gradient(24deg,transparent 45%,var(--ink) 45% 55%,transparent 55%)}
.picto{display:block;width:22px;height:22px;border-radius:50%;background:var(--counter);
  border:2px solid var(--ink)}
.block{display:block;height:24px;border-radius:5px;border:2px solid var(--ink);
  width:calc(var(--n)*16px);background:linear-gradient(180deg,var(--brand-lift),var(--brand))}
.blockn{font:900 .9rem/1 var(--face);color:var(--ink-2)}
.tablecell{font:900 1.1rem/1 var(--face);color:var(--ink);font-variant-numeric:tabular-nums}
.chartkey{margin:.8rem 0 0;font:800 .88rem/1 var(--face);color:var(--ink-2)}

.timeline{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;
  margin:0 0 1rem;padding:0;width:min(100%,520px)}
.timeline__x{padding:.5rem .7rem;border-radius:999px;background:var(--surface);
  font:800 .82rem/1 var(--face);color:var(--ink-2)}
.timeline__x.is-on{background:var(--brand);color:#fff}
.timeline__this{margin:0 0 1rem;font:900 1.2rem/1.3 var(--face);color:var(--ink)}

.bars{display:grid;gap:.6rem;justify-items:start;width:min(100%,460px)}
.bars__parts{display:flex;gap:6px}
.bar-m{display:grid;place-items:center;height:48px;border-radius:8px;border:3px solid var(--ink);
  width:calc(28px + (var(--of)/var(--top))*300px);
  background:linear-gradient(180deg,var(--brand-lift),var(--brand));
  color:#fff;font:900 1.05rem/1 var(--face)}
.bar-m--part{background:linear-gradient(180deg,#8B63C9,var(--brand))}
.bar-m--short{background:linear-gradient(180deg,#F0A28A,var(--counter-lo))}
.bars--compare{gap:.5rem}

.hands{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;width:min(100%,420px)}
.hands .finger{width:34px;height:76px;border-radius:17px;border:3px solid var(--ink);
  background:#F1D9C4;opacity:.35;padding:0}
.hands button.finger{cursor:pointer}
.finger.is-up{opacity:1;background:linear-gradient(180deg,#FBE7D6,#EBC49F)}
.hands--shown .finger{cursor:default}
.pick--fold{position:relative}
.foldline{position:absolute;background:var(--coral-deep);border-radius:2px}
.foldline--vertical{left:50%;top:8%;width:4px;height:84%;transform:translateX(-50%)}
.foldline--offset{left:32%;top:8%;width:4px;height:84%}
.foldline--diagonal{left:50%;top:8%;width:4px;height:84%;
  transform:translateX(-50%) rotate(38deg)}

/* ── THE ONE DIALOG ─────────────────────────────────────────────────────
   A question with two answers, and nothing else is allowed in here
   (NEVER-AGAIN 28). Native <dialog>, so the browser owns the focus trap,
   Escape and the inert page behind it. */
.confirm{border:0;padding:1.5rem 1.6rem 1.4rem;border-radius:var(--r-lg);max-width:min(440px,92vw);
  background:var(--surface);color:var(--ink);box-shadow:var(--lift-lg);font-family:var(--face)}
.confirm::backdrop{background:rgba(46,35,64,.55)}
.confirm h2{margin:0 0 .5rem;font-size:1.3rem;color:var(--brand);padding-right:2rem}
.confirm p{margin:0 0 1.2rem;color:var(--ink-2);font-weight:600;font-size:1rem}
.confirm__x{position:absolute;top:8px;right:10px;margin:0}
.confirm__x button{width:44px;height:44px;border:0;border-radius:50%;background:transparent;
  font:900 1.6rem/1 var(--face);color:var(--ink-3);cursor:pointer}
.confirm__x button:hover{background:var(--lav);color:var(--ink)}
.confirm__acts{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.confirm__acts form{margin:0}
.btn--bad{background:linear-gradient(180deg,var(--coral),var(--coral-deep));color:var(--on-coral)}
.btn--bad:hover{filter:brightness(1.06)}

/* A place value chart is two labelled columns, not loose blocks. */
.baseten__col{display:grid;gap:.4rem;justify-items:center}
.baseten--chart{gap:0;align-items:start}
.baseten--chart .baseten__col{padding:.5rem .9rem;border-radius:var(--r);
  background:rgba(255,255,255,.6);box-shadow:0 1px 0 var(--rim) inset}
.baseten--chart .baseten__col+.baseten__col{border-left:2px solid var(--lav)}
.baseten__h{font-size:.72rem;font-weight:900;color:var(--ink-3);
  text-transform:uppercase;letter-spacing:.09em}
.scalebar--second{margin-top:.4rem;opacity:.85}

/* ── STAGING (AGENTS §9) — every staging page says so ─────────────────── */
.staging-note{margin:0;padding:.5rem 1rem;background:var(--ink);color:#FFFFFF;text-align:center;
  font:700 .85rem/1.35 var(--face)}
.staging-note a{color:#FFFFFF;text-decoration:underline}
