/* Alazo: Math module styles (loaded after the host styles) */
#mx .mx-sec{font-size:14px;font-weight:900;color:var(--soft);margin:20px 4px 8px;text-transform:uppercase;letter-spacing:.06em}
.mx-ic{font-size:30px!important;font-weight:900;line-height:1;opacity:.95}
.tile .ic svg{width:44px;height:44px;display:block}
.mx-lab{font-size:18px;font-weight:800;color:var(--soft);text-align:center;margin:6px 0 8px}
.mx-eq{font-size:44px;font-weight:900;text-align:center;margin:6px 0 10px;line-height:1.2;word-break:break-word}
.mx-eq.long{font-size:21px;text-align:left;line-height:1.4}
.mx-eq.seq{font-size:34px}
.mx-vis{text-align:center;margin:8px 0;line-height:0}
.mx-vis svg{max-width:100%;height:auto}
.mx-choices{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.mx-ch{flex:1 1 90px;min-width:90px;min-height:68px;border-radius:18px;background:#fff;border:3px solid #E4E9F5;box-shadow:0 4px 0 rgba(43,58,103,.12);font-size:30px;font-weight:900;color:var(--ink)}
.mx-choices.mx-stack{flex-direction:column;align-items:stretch}
.mx-choices.mx-stack .mx-ch{flex:0 0 auto;width:100%;min-height:60px;padding:8px 14px}
.mx-ch.ok{background:#DFF5DB;border-color:var(--leaf)}
.mx-ch.bad{background:#FFE1E0;border-color:var(--coral);opacity:.75}
.mx-disp{min-height:64px;background:#F5F8FF;border:3px solid #CFD8EE;border-radius:16px;font-size:36px;font-weight:900;text-align:center;padding:8px;font-variant-numeric:tabular-nums;margin:6px auto 12px;max-width:320px}
.mx-disp.ok{background:#DFF5DB;border-color:var(--leaf)}
.mx-disp.bad{background:#FFE1E0;border-color:var(--coral)}
.mx-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:320px;margin:0 auto}
.mx-pad button{height:62px;border-radius:16px;background:#EDF1FC;font-size:26px;box-shadow:0 3px 0 rgba(43,58,103,.12);color:var(--ink)}
.mx-pad .go{background:var(--leaf);color:#fff}
.mx-fb{min-height:30px;text-align:center;font-size:19px;font-weight:800;margin:10px 0}
.mx-fb.ok{color:#2E8B3A}
.mx-fb.bad{color:var(--coral)}
.mx-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 18px;border-radius:999px;font-weight:900;z-index:9;box-shadow:0 4px 0 rgba(0,0,0,.2)}
.fr{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1.05;margin:0 3px;font-weight:900}
.fr i{font-style:normal;padding:0 4px}
.fr i+i{border-top:.09em solid currentColor}
.hint svg{max-width:100%;height:auto}
.mx-note{font-size:14px;color:var(--soft);margin:6px 0}

/* hundred chart */
.hc-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;max-width:560px;margin:12px auto}
.hc{height:36px;border-radius:8px;background:#fff;font-size:14px;font-weight:800;color:var(--ink);box-shadow:0 2px 0 rgba(43,58,103,.12);padding:0;min-width:0}
.hc.w3{font-size:11.5px}
.hc.h{background:var(--teal);color:#fff}
.hc.on{background:var(--sky);color:#fff}
.hc.blank{background:#E3E9F8;box-shadow:inset 0 2px 0 rgba(43,58,103,.15)}
.hc.selc{outline:3px solid var(--grape)}
.hc.ok{background:#DFF5DB;color:#2E8B3A}
.hc.bad{background:#FFE1E0;color:var(--coral)}
.hc.miss{outline:3px solid var(--sun)}
.hc.shake{animation:mxshake .35s}
.hc.pop{animation:mxpop .3s}
.hc-tray{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:10px 0}
.hc.tray{width:54px;height:46px;font-size:20px;background:var(--orange);color:#fff}
.hc.tray.sel{outline:3px solid var(--grape);transform:scale(1.1)}
@keyframes mxshake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@keyframes mxpop{50%{transform:scale(1.25)}}
@media(min-width:600px){.hc{height:50px;font-size:19px}.hc.w3{font-size:15px}}

/* number blocks */
.pv-cols{display:flex;gap:8px;margin-bottom:14px}
.pv-col{flex:1;min-width:0;background:#fff;border-radius:20px;padding:10px 6px;box-shadow:0 4px 0 rgba(43,58,103,.07);text-align:center;border-top:6px solid #ccc}
.pv-h{font-size:14px;font-weight:900}
.pv-area{min-height:96px;display:flex;flex-wrap:wrap;gap:3px;align-content:flex-start;justify-content:center;padding:8px 0}
.pv-pc{background:none;padding:0;line-height:0;border-radius:4px}
.pv-pc svg{display:block}
.pv-num{font-size:30px;font-weight:900;line-height:1.2}
.pv-btns{display:flex;gap:6px;justify-content:center;margin-top:4px}
.pv-btn{width:44px;height:44px;border-radius:50%;background:#EEF0FF;color:var(--grape);font-size:26px;line-height:1;padding:0}
.pv-btn[disabled]{opacity:.35}
.pv-trade{font-size:12px;border-radius:12px;padding:8px 4px;background:var(--sun);color:#5a4200;margin-top:6px;width:100%;box-shadow:0 3px 0 rgba(0,0,0,.12)}
.pv-total{font-size:20px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.pv-total b{font-size:46px;font-variant-numeric:tabular-nums}

/* peg board */
.geo-svg{width:100%;max-width:420px;display:block;margin:0 auto;touch-action:manipulation}
.gcol{width:38px;height:38px;border-radius:50%;border:3px solid #fff;box-shadow:0 2px 0 rgba(0,0,0,.2);padding:0}
.gcol.on{outline:3px solid var(--ink)}
.geo-info{background:#F5F8FF;border-radius:16px;padding:10px 14px;font-size:16px;line-height:1.45}
.geo-info b{font-size:20px}

/* pizza */
.pz-row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.pz-svg{width:100%;max-width:250px;height:auto;display:block}
.pz-cmp{flex:1 1 140px;max-width:220px;text-align:center}
.pz-slice{cursor:pointer}

/* two columns on phones for the topic and tool menu */
#mx .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
#mx .tile{min-height:118px;padding:14px;font-size:18px}
#mx .tile small{font-size:12px}

/* math cross */
#xarea{padding:14px 10px}
.xg{display:grid;grid-template-columns:repeat(var(--cols),var(--xc));grid-auto-rows:var(--xc);gap:3px;justify-content:center;margin:12px auto}
.xc{display:flex;align-items:center;justify-content:center;border-radius:10px;font-weight:900;font-size:calc(var(--xc)*.46);line-height:1;min-width:0;box-sizing:border-box;-webkit-user-select:none;user-select:none}
.xc.d3{font-size:calc(var(--xc)*.35)}
.xc.d4{font-size:calc(var(--xc)*.28)}
.xn,.xo{background:#fff;color:var(--ink);box-shadow:0 3px 0 rgba(43,58,103,.14)}
.xo{color:var(--grape)}
.xn.xok,.xo.xok{background:#E6F7E4;color:#2E8B3A}
.xs{background:#DDE3F6;border:2px dashed #8D9AD0;cursor:pointer}
.xs.sel{background:#fff;border:2px solid var(--grape);box-shadow:0 0 0 3px rgba(123,77,219,.25)}
.xs.xf{background:#C9F7D4;border:2px solid #8AD6A0;color:#0A8F2A;box-shadow:0 3px 0 #8AD6A0}
.xs.xf.xok{border-color:#4DB85A}
.xs.xl{background:#FFF3C4;border-color:#F0C030;color:#8A6500;box-shadow:0 3px 0 #F0C030}
.xs.xbad{background:#FFE1E0;border:2px solid var(--coral);color:var(--coral);box-shadow:none}
.xtiles{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-content:flex-start;min-height:118px;margin:14px 0 4px}
.xt{min-width:54px;height:50px;padding:0 12px;box-sizing:border-box;border-radius:14px;background:#C9F7D4;color:#0A8F2A;font-size:26px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 0 #8AD6A0;cursor:pointer;-webkit-user-select:none;user-select:none}
.xt.sel{outline:3px solid var(--grape);transform:translateY(-3px)}

/* language switch */
.mx-lang{justify-content:flex-end;margin:0 0 4px}
.mx-lang .chip{padding:6px 12px;font-size:14px}

/* Deutsch (junior track) */
#dx .mx-sec{font-size:14px;font-weight:900;color:var(--soft);margin:20px 4px 8px;text-transform:uppercase;letter-spacing:.06em}
#dx .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
#dx .tile{min-height:118px;padding:14px;font-size:18px}
#dx .tile small{font-size:12px}
.dx-say{display:block;width:100%;text-align:center;margin:4px 0 8px}
.dx-pic{font-size:84px;line-height:1.15;text-align:center}
.dx-many{display:flex;align-items:center;justify-content:center;gap:10px;font-size:46px}
.dx-many i{font-style:normal;font-size:28px;color:var(--soft)}
.dx-big{font-size:76px;font-weight:900;line-height:1.15;text-align:center;color:var(--ink)}
.dx-big.dx-txt{font-size:46px}
.dx-word{font-size:26px;font-weight:900;text-align:center;color:var(--ink);margin-top:2px}
.dx-word.dx-sent{font-size:20px;line-height:1.3}
.dx-ch{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:96px;padding:8px 6px}
.dx-e{font-size:44px;line-height:1.1}
.dx-e.dx-xl{font-size:60px}
.dx-w{font-size:17px;font-weight:900}
.dx-w.dx-only{font-size:22px}
.dx-l{font-size:42px;font-weight:900;line-height:1.1}
.dx-yes{color:#2E8B3A}
.dx-no{color:var(--coral)}

/* story ending */
.mx-end{background:#EEF0FF;border-radius:16px;padding:12px 16px;margin:10px 0;text-align:left;font-size:17px;line-height:1.4}
.mx-end b{color:var(--grape)}
.mx-end p{margin:6px 0 0}

/* Deutsch (senior track) */
#dz .mx-sec{font-size:14px;font-weight:900;color:var(--soft);margin:20px 4px 8px;text-transform:uppercase;letter-spacing:.06em}
#dz .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
#dz .tile{min-height:112px;padding:14px;font-size:18px}
/* the corner symbol (1→2, W+W …) keeps its own row: the title starts below it and long words break inside the tile (Feket 23 Nov) */
#dz .tile,#mx .tile,#dx .tile{padding-top:48px;line-height:1.15;overflow-wrap:break-word;-webkit-hyphens:manual;hyphens:manual}
#dz .tile small{line-height:1.3}
#dz .tile small{font-size:12px}
#dz .mx-ic{font-size:24px!important}
.dz-lab{color:var(--ink);font-size:20px;font-weight:900}
.dz-vis{margin:4px 0 6px}
.dz-word{font-size:40px;font-weight:900;text-align:center;letter-spacing:.03em;color:var(--ink);margin:6px 0}
.dz-word.dz-long{font-size:26px;letter-spacing:0;line-height:1.35}
.dz-sentence{font-size:22px;font-weight:800;text-align:center;line-height:1.5;color:var(--ink)}
.dz-gap{display:inline-block;min-width:1.3em;padding:0 4px;border-bottom:4px solid var(--grape);color:var(--grape);text-align:center;line-height:1.1}
.dz-ch{min-height:64px;padding:8px 10px}
.dz-o{font-size:22px;font-weight:900;line-height:1.2}
.dz-o.dz-sm{font-size:16px}
.dz-o.dz-mark{font-size:40px}
.dz-sent{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin:6px 0}
.dz-tok{background:#fff;border:3px solid #E4E9F5;border-radius:14px;padding:8px 12px;font-size:21px;font-weight:800;box-shadow:0 3px 0 rgba(43,58,103,.1);color:var(--ink)}
.dz-segs .dz-tok{border-style:dashed}
.dz-tok.ok{background:#DFF5DB;border-color:var(--leaf);border-style:solid}
.dz-tok.bad{background:#FFE1E0;border-color:var(--coral);opacity:.75}
.dz-tail{font-size:24px;font-weight:900}
.dz-text{background:#F5F8FF;border-radius:16px;padding:12px 16px;font-size:18px;line-height:1.6;text-align:left;max-height:340px;overflow:auto}
.dz-text b{font-size:19px;color:var(--grape)}
.dz-text p{margin:6px 0 0}
.dz-in{display:block;width:100%;font-size:26px;font-family:inherit;font-weight:800;padding:12px 14px;border-radius:16px;border:3px solid #CFD8EE;color:var(--ink);text-align:center;background:#fff}
.dz-in.ok{border-color:var(--leaf);background:#DFF5DB}
.dz-in.bad{border-color:var(--coral);background:#FFE1E0}
.dz-keys{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:10px 0}
.dz-keys button{background:#EEF0FF;color:var(--grape);border-radius:12px;width:48px;height:46px;font-size:22px}
.dz-spk{font-size:22px;vertical-align:middle;opacity:.7}
.dz-kb{margin:12px 0 6px;display:flex;flex-direction:column;gap:6px;-webkit-user-select:none;user-select:none}
.dz-kr{display:flex;gap:5px;justify-content:center}
.dz-k{flex:1 1 0;max-width:58px;min-width:0;height:50px;border-radius:10px;background:#fff;border:2px solid #E4E9F5;box-shadow:0 3px 0 rgba(43,58,103,.12);font-size:21px;font-weight:800;color:var(--ink);padding:0}
.dz-k:active{transform:translateY(2px);box-shadow:none}
.dz-k.dz-kw{max-width:80px;flex-grow:1.5;background:#EEF0FF;color:var(--grape)}
.dz-k.dz-kw.on{background:var(--grape);color:#fff}
.dz-k.dz-ksp{max-width:320px;flex-grow:6;font-size:15px;color:var(--soft)}
/* read-aloud highlight and article colours (17 Nov 2026) */
.mx-ch.dx-hl{border-color:#FFB703;box-shadow:0 0 0 5px rgba(255,183,3,.45),0 4px 0 rgba(43,58,103,.12);transform:scale(1.05);transition:transform .15s}
.dx-art{display:block;min-width:86px;padding:10px 14px;border-radius:14px;color:#fff;font-size:30px;font-weight:900;line-height:1.1;text-shadow:0 1px 0 rgba(0,0,0,.2)}
.mx-ch.bad .dx-art{opacity:.55}
.dx-pic.dx-pic-m{font-size:60px}
.dx-e.dx-e-m{font-size:30px;letter-spacing:-2px}
.dx-art .dx-artL{font-size:44px;line-height:.9;margin-left:1px;vertical-align:-3px}
/* Compare: smaller, equal, bigger */
.cmp{display:flex;align-items:center;justify-content:center;gap:8px;margin:8px 0}
.cmp-side{flex:1 1 0;min-width:0;max-width:170px;display:flex;flex-direction:column;align-items:center;gap:6px}
.cmp.wide .cmp-side{max-width:230px}
.cmp-side svg{max-width:100%;height:auto;display:block}
.cmp-side .mx-vis{margin:0;width:100%}
.cmp-slot{flex:0 0 auto;width:52px;height:52px;border-radius:50%;background:#fff;border:3px dashed #B9C4E0;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900;color:var(--soft);line-height:1}
.cmp-slot.ok{border:3px solid var(--leaf);background:#DFF5DB;color:#2E7D32;animation:cmpPop .35s}
.cmp-slot.bad{border:3px solid var(--coral);background:#FFE1E0;color:var(--coral);animation:cmpPop .35s}
@keyframes cmpPop{0%{transform:scale(.6)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
.cmp-card{width:100%;min-height:88px;display:flex;align-items:center;justify-content:center;background:#fff;border:3px solid #DCE3F3;border-radius:16px;font-size:40px;font-weight:900;color:var(--ink);padding:6px;line-height:1.15;text-align:center;word-break:break-word}
.cmp-card.l{font-size:30px}.cmp-card.xl{font-size:21px}
.cmp-bal svg{width:100%;max-width:380px}
.cmp-beam{transform-origin:170px 69px;transition:transform .9s cubic-bezier(.3,1.5,.5,1)}
.cmp-pl,.cmp-pr{transition:transform .9s cubic-bezier(.3,1.5,.5,1)}
.cmp-chock{transition:opacity .4s}.cmp-chock.gone{opacity:0}
.cmp-ch{min-height:82px;padding:6px 4px}
.cmp-b{display:flex;flex-direction:column;align-items:center;gap:2px;pointer-events:none}
.cmp-b b{font-size:44px;line-height:1}
.cmp-b small{font-size:15px;font-weight:800;color:var(--soft)}
@media(max-width:380px){.cmp{gap:5px}.cmp-slot{width:42px;height:42px;font-size:28px}.cmp-card{font-size:32px;min-height:72px}.cmp-card.l{font-size:23px}.cmp-card.xl{font-size:17px}}
/* Compare: scratch boxes for results */
.cmp-sc{width:100%;min-height:44px;border-radius:12px;border:2.5px dashed #B9C4E0;background:#F7F9FF;font-size:19px;overflow:hidden;font-weight:900;color:var(--soft);padding:4px 6px;white-space:nowrap}
.cmp-sc b{color:var(--ink);font-size:21px}.cmp-sc i{font-style:normal}.cmp-sc.f .cmp-pen{display:none}
.cmp-sc.on{border:2.5px solid var(--grape);background:#F1EBFF}
.cmp-sc.ok{border:2.5px solid var(--leaf);background:#DFF5DB}.cmp-sc.ok b{color:#2E7D32}
.cmp-sc.bad{border:2.5px solid var(--orange);background:#FFF1E2}
.cmp-sc0{display:block;width:100%}
.cmp-scrow{display:flex;justify-content:space-between;gap:70px;margin:-2px 0 6px}
.cmp-scrow>*{flex:1 1 0;max-width:150px}
.cmp-kp{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:8px auto 4px;max-width:420px}
.cmp-kp button{min-height:46px;border-radius:12px;border:2px solid #E4E9F5;background:#fff;font-size:22px;font-weight:900;color:var(--ink);box-shadow:0 3px 0 rgba(43,58,103,.1)}
.cmp-kp button.go{background:var(--leaf);border-color:var(--leaf);color:#fff}
@media(max-width:380px){.cmp-sc{font-size:17px}.cmp-sc b{font-size:19px}.cmp-scrow{gap:40px}}
/* Pizza fractions: names, hear-it pizzas */
.pz-nm{border:0;background:#F1EBFF;color:var(--grape);font-weight:800;font-size:16px;border-radius:999px;padding:6px 12px;margin:4px auto;display:inline-block}
.pz-ch{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.pz-ch small{font-size:13px;font-weight:800;color:var(--soft);line-height:1.1}
.pz-now{text-align:center;font-size:18px;font-weight:900;color:var(--grape);margin:2px 0 6px}
.pz-big{text-align:center;font-size:26px;font-weight:900;color:var(--ink);margin:6px 0}
.pz-hear{font-size:20px}
.pz-opts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:10px}
.pz-opt{flex:1 1 0;min-width:0;max-width:150px;background:#fff;border:3px solid #E4E9F5;border-radius:18px;padding:6px;box-shadow:0 4px 0 rgba(43,58,103,.12);display:flex;flex-direction:column;align-items:center;gap:2px}
.pz-opt .pz-svg{max-width:130px}
.pz-opt.ok{background:#DFF5DB;border-color:var(--leaf)}.pz-opt.bad{background:#FFE1E0;border-color:var(--coral);opacity:.75}
.pz-onm{font-size:20px;font-weight:900;color:var(--ink)}
.pz-row .pz-svg{max-width:220px}
.pz-yn{font-size:24px;min-height:64px}
/* Share it! */
.sh-wrap{text-align:center;line-height:0;margin:6px 0}
.sh-svg{width:min(100%,500px);max-width:100%;height:auto;touch-action:none;user-select:none;-webkit-user-select:none}   /* bigger board on the iPad: 4 people need the room */
.sh-h{cursor:grab}.sh-sw{cursor:pointer}
.sh-win .sh-svg{animation:shWin .6s ease}
@keyframes shWin{0%{transform:scale(1)}40%{transform:scale(1.04)}100%{transform:scale(1)}}
.sh-kinds{display:flex;gap:12px;justify-content:center;margin:2px 0 4px}
.sh-kind{display:inline-flex;align-items:center;gap:4px;font-size:20px;font-weight:900;background:#F1EBFF;border-radius:999px;padding:2px 12px 2px 4px}
.sh-kind svg{width:30px;height:30px}
#mx .tile.mx-due{box-shadow:0 0 0 4px #FFCB3D,0 5px 0 rgba(0,0,0,.15)}
/* peg board: shapes around us (26 Nov 2026) */
.gp-pic{display:flex;justify-content:center;margin:4px 0 8px}
.gp-pic .gp-om{width:min(46vw,220px);height:min(46vw,220px)}
.gp-ch{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:10px 0}
.gp-b{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:108px;padding:10px 12px;border-radius:18px;background:#fff;border:3px solid #E3E8F7;font-weight:900;font-size:18px;color:#2B3A67;box-shadow:0 4px 0 rgba(43,58,103,.12)}
.gp-b.ok{border-color:#58C27D;background:#E7F8EC}.gp-b.bad{opacity:.45;border-color:#F2A0A0}
/* peg board: copy the picture, my pictures, perimeter/area help (27 Nov 2026) */
.gx-art{display:flex;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap;margin:6px 0}
.gx-tgt .gx-tsvg{width:min(46vw,230px);height:auto;display:block}
.gx-side{font-size:18px;line-height:1.45;max-width:320px}
.gx-side b{font-size:26px}
.geo-hint{fill:none;stroke:#fff;stroke-width:6;stroke-dasharray:12 9;stroke-linejoin:round;animation:gxh .9s linear infinite}
@keyframes gxh{to{stroke-dashoffset:-42}}
.gx-help .gx-p{font-size:18px;line-height:1.45;margin:8px 0}
.gx-help .gx-sum{font-weight:900;font-size:20px}
.gx-help .hint.gx-p{font-weight:700}
.gx-svg{width:100%;max-width:380px;height:auto;display:block;margin:8px auto}
.gx-n{opacity:0;animation:gxn 6s infinite both}
@keyframes gxn{0%{opacity:0}5%{opacity:1}88%{opacity:1}100%{opacity:0}}
.gx-a{opacity:0;animation:gxa 4.5s infinite both}
@keyframes gxa{0%{opacity:0}8%{opacity:1}85%{opacity:1}100%{opacity:0}}
.gx-q{border:0;background:#E9E4FF;color:#6B4BD8;font-weight:900;border-radius:50%;width:30px;height:30px;margin-left:8px;font-size:16px;vertical-align:middle;padding:0}
.gx-title{font-size:22px}
.gx-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:10px}
.gx-tile{background:#F5F8FF;border-radius:16px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:6px}
.gx-tile .gx-th{width:150px;height:150px;display:block}
.gx-acts{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.gx-acts .say{font-size:14px;padding:6px 10px}
.gx-save{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;margin-top:14px}
.gx-ok{color:#2E9B57;font-weight:900}
@media (prefers-reduced-motion:reduce){.gx-n,.gx-a{animation:none;opacity:1}.geo-hint{animation:none}}
/* set the clock (28 Nov 2026) */
.ck-task{text-align:center;margin:6px 0 2px;line-height:1.15}
.ck-task b{display:block;font-size:30px;font-weight:900;color:#2B3A67}
.ck-task small{display:block;font-size:20px;font-weight:800;color:#7A86A8;margin-top:2px}
.ck-wrap svg{width:min(80vw,340px);height:auto;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.ck-wrap svg.ck-drag{cursor:grabbing}
.ck-knob{transform-box:fill-box;transform-origin:center;transition:transform .12s ease-out,filter .12s}
.ck-knob.on{transform:scale(1.5);filter:drop-shadow(0 0 5px rgba(43,58,103,.55))}
.ck-hand{transition:stroke-width .12s}
#ckh.on{stroke-width:13}#ckm.on{stroke-width:10}
.ck-idle .ck-knob{animation:ckpulse 1.2s ease-in-out infinite alternate}
.ck-idle #ckhk{animation-delay:.6s}
@keyframes ckpulse{to{transform:scale(1.3)}}
.ck-dig{width:max-content;margin:6px auto 10px;padding:10px 20px;border-radius:14px;background:#141C33;border:3px solid #2B3A67;box-shadow:inset 0 2px 10px rgba(0,0,0,.6)}
.ck-dig .seg7{display:block;height:52px;width:auto}
.seg7 .on{fill:#7CFFB2;filter:drop-shadow(0 0 3px rgba(124,255,178,.75))}
.seg7 .off{fill:#7CFFB2;fill-opacity:.07}
.ck-btns{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:6px}

/* 100 chart: 10-chart set for Fill the gaps (1 Dec 2026) */
.hc-prog{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.hc-dots{display:inline-flex;gap:5px}
.hc-dots i{width:12px;height:12px;border-radius:50%;background:#E3E9F8}
.hc-dots i.now{background:var(--sun)}
.hc-dots i.on{background:var(--leaf,#7BC96F)}

/* detective stories: scene banner, clue sticker, case-closed ending (2 Dec 2026) */
.st-scene{position:relative;overflow:hidden;border-radius:16px;height:132px;margin:-4px 0 10px;background:radial-gradient(circle at 80% 20%,rgba(255,255,255,.55),transparent 55%),var(--stbg,#B9B4F0)}
@media(min-width:700px){.st-scene{height:190px}}
.st-pic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:stpan 26s ease-in-out infinite alternate}
@keyframes stpan{from{transform:scale(1.04) translate(-1%,0)}to{transform:scale(1.14) translate(1.5%,-1%)}}
.st-cap{position:absolute;left:10px;top:10px;right:84px;display:flex;align-items:center;gap:8px;color:#fff;font-weight:900;font-size:17px;text-shadow:0 2px 6px rgba(0,0,0,.45)}
.st-ic{width:40px;height:40px;flex:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}
.st-clue{position:absolute;right:10px;bottom:10px;width:72px;height:72px;border-radius:50%;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;animation:stpop .55s cubic-bezier(.2,1.6,.4,1) .15s both}
.st-cl{width:56px;height:56px}
@keyframes stpop{from{transform:scale(0) rotate(-30deg)}to{transform:scale(1) rotate(0)}}
.st-first .st-cap{animation:stin .7s ease-out both}
@keyframes stin{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
.st-endwrap{margin:12px 0 4px}
.st-endsc{height:190px;margin:0 0 8px}
@media(min-width:700px){.st-endsc{height:280px}}
.st-bigic{position:absolute;left:58%;top:58%;transform:translate(-50%,-50%)}
.st-ic2{width:110px;height:110px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.25))}
.st-pic+.st-bigic{display:none}
.st-badge{position:absolute;left:10px;bottom:10px;display:flex;align-items:center;gap:6px;background:#fff;border:3px solid #F2B705;border-radius:40px;padding:3px 12px 3px 3px;box-shadow:0 4px 12px rgba(0,0,0,.25);animation:stpop .6s cubic-bezier(.2,1.6,.4,1) 1s both}
.st-face{width:52px;height:52px;border-radius:50%;overflow:hidden;background:#EEF0FF;display:block}
.st-face svg{width:100%;height:100%;display:block}
.st-who{display:flex;align-items:center;gap:4px;font-weight:900;font-size:17px;color:#2B2D5E}
.st-spy{width:26px;height:26px}
.st-stamp{position:absolute;right:12px;top:14px;border:4px solid #D62839;color:#D62839;font-weight:900;font-size:22px;letter-spacing:1px;text-transform:uppercase;padding:4px 12px;border-radius:10px;background:rgba(255,255,255,.88);transform:rotate(-10deg);animation:ststamp .5s cubic-bezier(.3,1.5,.5,1) .5s both}
@keyframes ststamp{from{opacity:0;transform:scale(3) rotate(-25deg)}to{opacity:1;transform:scale(1) rotate(-10deg)}}
.st-conf{position:absolute;inset:0;pointer-events:none}
.st-conf i{position:absolute;top:-12px;width:9px;height:14px;border-radius:2px;opacity:0;animation:stconf 1.8s ease-in .6s 1 both}
@keyframes stconf{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--dx),300px) rotate(540deg)}}
@media(prefers-reduced-motion:reduce){.st-pic,.st-clue,.st-badge,.st-stamp,.st-cap{animation:none}.st-conf{display:none}}
.st-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,12,40,.55),rgba(10,12,40,0) 55%);pointer-events:none}
.tile .ic svg.mx-det{width:58px;height:58px;display:block;margin:-8px -6px -6px auto;transform-origin:78% 78%;animation:mxdet 3.2s ease-in-out infinite}
@keyframes mxdet{0%,100%{transform:rotate(0) translate(0,0)}25%{transform:rotate(-9deg) translate(-1px,1px)}50%{transform:rotate(4deg) translate(1px,-1px)}75%{transform:rotate(-4deg)}}
@media(prefers-reduced-motion:reduce){.tile .ic svg.mx-det{animation:none}}
.hint-tip{display:block;margin-top:6px;font-weight:800;color:#7A4B00}
.st-notes{margin-top:10px;background:#FFFBEA;border:2px solid #F2D27A;border-radius:14px;padding:10px 12px;max-height:46vh;overflow:auto;background-image:repeating-linear-gradient(180deg,transparent 0 27px,rgba(90,140,220,.13) 27px 28px)}
.st-nh{display:block;margin-bottom:6px;color:#7A4B00}
.st-note{display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:start;padding:7px 0;border-top:1px dashed #E8CF8A;font-size:15px;line-height:1.35;color:#3A3D6B}
.st-note:first-of-type{border-top:0}
.st-nn{width:24px;height:24px;border-radius:50%;background:#2B2D5E;color:#fff;font-weight:900;font-size:13px;display:flex;align-items:center;justify-content:center}
.st-na{background:#4DD599;color:#fff;font-weight:900;border-radius:10px;padding:2px 10px;font-size:17px;white-space:nowrap}
/* case finale (3 Dec 2026) */
.st-cluetag{background:#FFE08A;color:#7A4B00;font-weight:900;font-size:13px;border-radius:10px;padding:2px 8px;align-self:center}
.st-isclue{background:rgba(255,224,138,.45);border-radius:8px}
.st-isclue .st-nn{background:#F2B705;font-size:13px}
.cs-q{font-size:24px;font-weight:900;color:#2B2D5E;margin:4px 0 2px;text-align:center}
.cs-help{text-align:center;margin-bottom:10px}
.cs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media(max-width:560px){.cs-grid{grid-template-columns:1fr}}
.cs-card{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;border:3px solid #E3E6F8;border-radius:18px;padding:10px 8px 12px;cursor:pointer;font:inherit;color:#2B2D5E;box-shadow:0 4px 0 #E3E6F8;transition:transform .15s}
@media(max-width:560px){.cs-card{display:grid;grid-template-columns:72px 1fr;grid-template-rows:auto auto auto;column-gap:10px;row-gap:4px;align-items:center;text-align:left}.cs-card .cs-em,.cs-card .cs-pic{grid-row:1 / span 3}}
.cs-card:active{transform:scale(.97)}
.cs-em{width:72px;height:72px}
.cs-pic{width:96px;height:96px;border-radius:50%;object-fit:cover;background:#EEF0FF}
@media(max-width:560px){.cs-pic{width:72px;height:72px}}
.cs-name{font-size:17px;line-height:1.2}
.cs-line{display:flex;align-items:center;gap:6px;width:100%;background:#F4F6FF;border-radius:10px;padding:4px 8px;font-size:14px}
.cs-fi{width:22px;height:22px;flex:none}
.cs-lab{flex:1;text-align:left}
.cs-v{font-size:18px}
.cs-mis{background:#FFD9DC;color:#B3001B}
.cs-ok{border-color:#4DD599;box-shadow:0 4px 0 #4DD599;background:#EFFFF6}
.cs-bad{animation:csshake .45s}
@keyframes csshake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.cs-bonus{font-size:18px;font-weight:900;color:#7A4B00}
@media(prefers-reduced-motion:reduce){.cs-bad{animation:none}}
/* phones: keep the number pad (with OK) in reach while reading (3 Dec 2026) */
@media(max-width:600px){
 .mx-padcard{position:sticky;bottom:0;z-index:5;padding:10px 12px 12px;box-shadow:0 -8px 20px rgba(43,58,103,.12)}
 .mx-padcard .mx-disp{min-height:46px;font-size:28px;padding:4px;margin:0 auto 8px;border-radius:12px}
 .mx-padcard .mx-pad{gap:7px}
 .mx-padcard .mx-pad button{height:46px;font-size:23px;border-radius:12px}
 .mx-padcard .mx-fb:empty{display:none}
 /* set the clock (4 Dec 2026): Check stays in reach and the clock shrinks to the screen height, so nobody has to
    scroll over the clock (a finger on the clock while scrolling turned the hands) */
 .mx-ckcard{position:sticky;bottom:0;z-index:5;padding:10px 12px 12px;box-shadow:0 -8px 20px rgba(43,58,103,.12)}
 .mx-ckcard .big{margin:0}
 .mx-ckcard .mx-fb:empty{display:none}
 .ck-wrap svg{width:max(190px,min(80vw,340px,calc(100vh - 560px)));width:max(190px,min(80vw,340px,calc(100svh - 560px)))}
 .ck-task b{font-size:26px}.ck-task small{font-size:17px}
 .ck-dig{margin:4px auto 6px;padding:6px 14px}.ck-dig .seg7{height:38px}
 .ck-btns .say{font-size:15px;padding:6px 10px}
 #mxq .say{font-size:14px;padding:6px 10px}
 #mxq .st-scene{height:104px;margin-bottom:6px}
 #mxq .st-clue{width:58px;height:58px}#mxq .st-cl{width:44px;height:44px}
 #mxq .mx-eq.long{font-size:19px;margin:4px 0 6px}
}
.cs-ev{font-weight:800;color:#2B2D5E;margin:2px 2px 8px;font-size:15px}
.cs-why{background:#FFF6D6;border:2px solid #F2D27A;border-radius:14px;padding:10px 12px;margin:0 0 8px;text-align:left}
.cs-why b{color:#7A4B00}
.cs-why p{margin:4px 0 0;line-height:1.4}
