:root{--bg:#fff8e7;--surface:#fff;--text:#2b2d42;--muted:#8d8fa3;--good:#2f9e44;--bad:#e03131;--gold:#fab005;--radius:22px;--shadow:0 5px 0 #0000001f;--accent:#4dabf7;color:var(--text);background:var(--bg);-webkit-tap-highlight-color:transparent;font-family:Rubik,system-ui,sans-serif}*{box-sizing:border-box}body{background:var(--bg);touch-action:manipulation;-webkit-user-select:none;user-select:none;min-height:100dvh;margin:0}button{font:inherit;color:inherit;cursor:pointer;border:none}button:disabled{cursor:default}button:focus-visible,select:focus-visible,input:focus-visible{outline:4px solid var(--accent);outline-offset:3px}.title{text-align:center;margin:.5em 0 .4em;font-size:clamp(2rem,7vw,3.5rem);font-weight:800}.icon-btn{background:var(--surface);width:56px;height:56px;box-shadow:var(--shadow);border-radius:50%;flex:none;font-size:1.6rem}.icon-btn:active{transform:translateY(3px);box-shadow:0 2px #0000001f}.btn{background:var(--surface);box-shadow:var(--shadow);border-radius:16px;padding:.6em 1.2em;font-size:1.1rem;font-weight:600}.btn:active{transform:translateY(3px)}.btn-big{background:var(--accent);color:#fff;padding:.6em 1.4em;font-size:clamp(1.3rem,4vw,1.8rem)}.btn-secondary{background:var(--surface);color:var(--text)}.btn-danger{color:var(--bad)}.btn-hint{background:#fff3bf}.muted{color:var(--muted)}.home{flex-direction:column;align-items:center;gap:12px;height:100dvh;padding:16px 16px 72px;display:flex}.tiles-area{flex:1;justify-content:center;width:100%;min-height:0;display:flex;overflow-y:auto}.tiles.is-fitted{justify-content:center;width:auto;margin:auto 0}.tiles.is-fitted .tile{aspect-ratio:auto;container-type:size}.tiles.is-fitted .tile-icon{font-size:40cqmin}.tiles.is-fitted .tile-name{text-align:center;font-size:clamp(.95rem,13cqmin,2.2rem);line-height:1.15}.tiles.is-fitted .tile-meta{font-size:clamp(.7rem,8cqmin,1.05rem)}.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,3vw,24px);width:min(100%,640px);display:grid}.tile{aspect-ratio:1;border-radius:var(--radius);color:#fff;flex-direction:column;justify-content:center;align-items:center;gap:.2em;transition:transform .1s;display:flex;box-shadow:0 8px #0000002e}.tile:active{transform:translateY(6px);box-shadow:0 2px #0000002e}.tile-icon{font-size:clamp(3.5rem,15vw,6rem);font-weight:800;line-height:1}.tile-name{font-size:clamp(1.4rem,5vw,2.2rem);font-weight:800}.tile-meta{opacity:.9;font-size:clamp(.85rem,2.5vw,1.05rem)}.settings-btn{bottom:16px;opacity:.6;width:48px;height:48px;font-size:1.3rem;position:fixed;inset-inline-start:16px}.profiles{flex-direction:column;align-items:center;min-height:100dvh;padding:16px;display:flex}.profile-grid{grid-template-columns:repeat(auto-fit,minmax(150px,190px));justify-content:center;gap:clamp(12px,3vw,20px);width:min(100%,760px);display:grid}.profile-card{background:var(--surface);border-radius:var(--radius);flex-direction:column;align-items:center;gap:4px;padding:20px 12px;display:flex;box-shadow:0 6px #0000001f}.profile-card:active{transform:translateY(4px);box-shadow:0 2px #0000001f}.profile-avatar{font-size:clamp(3.5rem,12vw,4.5rem);line-height:1.1}.profile-name{overflow-wrap:anywhere;font-size:1.5rem;font-weight:800}.profile-age{color:var(--muted)}.profile-new{box-shadow:none;color:var(--muted);background:0 0;border:4px dashed #ced4da}.profile-form{flex-direction:column;gap:18px;width:min(100%,560px);display:flex}.field{border:none;flex-direction:column;gap:8px;margin:0;padding:0;display:flex}.field-label{padding:0;font-size:1.3rem;font-weight:600}.text-input{font:inherit;background:var(--surface);color:var(--text);-webkit-user-select:text;user-select:text;border:3px solid #dee2e6;border-radius:16px;padding:.4em .6em;font-size:1.6rem}.text-input:focus{border-color:var(--accent);outline:none}.pill-row{flex-wrap:wrap;gap:10px;display:flex}.pill{background:var(--surface);min-width:60px;height:60px;box-shadow:var(--shadow);border-radius:16px;font-size:1.6rem;font-weight:800}.pill-avatar{font-size:2rem}.pill.is-selected{background:var(--accent);color:#fff;outline:4px solid #1c7ed6}.form-actions{flex-wrap:wrap;gap:12px;display:flex}.form-actions .btn:disabled{opacity:.45}.modal .profile-form .btn-big{font-size:1.2rem}.home-header{align-items:center;gap:12px;width:min(100%,640px);display:flex}.home-header .title{overflow-wrap:anywhere;flex:1;font-size:clamp(1.6rem,6vw,2.8rem)}.home-avatar{font-size:clamp(2.2rem,8vw,3rem)}.activity{flex-direction:column;align-items:center;gap:12px;max-width:900px;min-height:100dvh;margin:0 auto;padding:12px 16px 24px;display:flex}.activity>.question{margin-top:auto}.activity>.feedback{margin-bottom:auto}.activity-header{align-items:center;gap:12px;width:100%;display:flex}.round-progress{flex:1;justify-content:center;align-items:center;gap:14px;font-size:clamp(1rem,3.5vw,1.3rem);font-weight:800;display:flex}.round-counter{color:var(--muted)}.round-stars{color:#8a6d00;background:#fff3bf;border-radius:999px;padding:.2em .7em}.level-badge{background:var(--accent);color:#fff;white-space:nowrap;border-radius:999px;padding:.3em .9em;font-weight:600}.question{flex-direction:column;align-items:center;gap:12px;width:100%;display:flex}.prompt-row{align-items:center;gap:12px;display:flex}.prompt{text-align:center;margin:0;font-size:clamp(1.4rem,5vw,2rem);font-weight:600}.speak-btn{width:48px;height:48px;font-size:1.3rem}.expression{letter-spacing:.04em;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);white-space:nowrap;padding:.1em .6em;font-size:clamp(2.5rem,11vw,5rem);font-weight:800}.expression.pop{color:var(--good);animation:.4s ease-out pop}.visual{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);justify-content:center;max-width:100%;padding:16px;display:flex}.object-emoji{font-size:clamp(5rem,22vw,8rem);line-height:1.1}.object-emoji.is-sequence{letter-spacing:.15em;white-space:pre-line;text-align:center;direction:ltr;font-size:clamp(2rem,8vw,3.2rem)}.blocks{flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:12px;display:flex}.blocks-number{align-items:flex-end;gap:4px;display:flex}.blocks-op{align-self:center;font-size:2.5rem;font-weight:800}.rod,.ones{flex-direction:column-reverse;gap:1px;display:flex}.ones{width:calc(3 * var(--cube) + 2px);flex-flow:wrap;align-content:flex-end}.blocks{--cube:clamp(9px, 2.6vw, 16px)}.cube{width:var(--cube);height:var(--cube);background:var(--block);border-radius:2px;box-shadow:inset 0 -2px #0000002e}.groups{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.group{max-width:calc(5 * var(--item) * 1.25 + 18px);border:3px dashed #ced4da;border-radius:14px;flex-wrap:wrap;justify-content:center;padding:6px;display:flex}.group-item{font-size:var(--item);width:calc(var(--item) * 1.25);text-align:center;line-height:1.2}.answer-area{justify-content:center;width:100%;display:flex}.choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,2.5vw,20px);width:min(100%,720px);display:grid}@media (width<=560px){.choices{grid-template-columns:repeat(2,minmax(0,1fr))}}.choice{background:var(--surface);border-radius:var(--radius);min-height:88px;box-shadow:var(--shadow);place-items:center;padding:10px;font-size:clamp(2rem,8vw,3rem);font-weight:800;transition:transform .1s,background .2s;display:grid}.choices-shapes .choice{aspect-ratio:1;max-height:220px}.choices-shapes .choice svg{width:72%;height:72%}.choice:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px #0000001f}.choice.is-correct{outline:5px solid var(--good);background:#d3f9d8;animation:.4s ease-out pop}.choice.is-wrong{opacity:.4;animation:.4s shake}.numpad-wrap{flex-direction:column;align-items:center;gap:12px;display:flex}.numpad-display{text-align:center;background:var(--surface);border:4px solid var(--accent);border-radius:16px;min-width:5ch;padding:.05em .4em;font-size:clamp(2.2rem,9vw,3.2rem);font-weight:800}.numpad-display.is-wrong{border-color:var(--bad);animation:.4s shake}.numpad{grid-template-columns:repeat(3,clamp(64px,18vw,88px));gap:10px;display:grid}.numpad button{background:var(--surface);height:clamp(64px,18vw,80px);box-shadow:var(--shadow);border-radius:18px;font-size:clamp(1.8rem,7vw,2.4rem);font-weight:800}.numpad button:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px #0000001f}.numpad .numpad-ok{background:var(--good);color:#fff}.numpad .numpad-ok:disabled{opacity:.4}.numpad .numpad-back{background:#ffe3e3}@media (width>=800px) and (orientation:landscape) and (height<=820px){.activity{grid-template:"header header""question answer"1fr"feedback feedback"/minmax(0,1fr) minmax(0,1fr);align-items:center;max-width:1200px;display:grid}.activity-header{grid-area:header}.activity>.question,.activity>.feedback{margin:0}.question{grid-area:question}.answer-area{grid-area:answer}.feedback{grid-area:feedback}.choices{grid-template-columns:repeat(2,minmax(0,1fr))}.expression{font-size:clamp(2.5rem,5.5vw,4.5rem)}}.feedback{justify-content:center;align-items:center;min-height:64px;font-size:clamp(1.5rem,5vw,2.2rem);font-weight:800;display:flex}.feedback-good{color:var(--good);animation:.4s ease-out pop}.feedback-retry{color:#e8590c}.feedback{gap:16px}.help-btn{color:#fff;background:#fab005;border-radius:50%;flex:none;width:64px;height:64px;font-size:2.2rem;font-weight:800;animation:.4s ease-out pop,2.5s ease-in-out 1s infinite wiggle;box-shadow:0 5px #e67700}.help-btn:active{transform:translateY(4px);box-shadow:0 1px #e67700}.explain-panel{width:min(100%,560px)}.explain-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.explain-header h2{margin:0}.explain-steps{flex-direction:column;gap:14px;margin:16px 0;padding:0;list-style:none;display:flex}.explain-step{opacity:0;align-items:flex-start;gap:12px;animation:.4s ease-out forwards step-in;display:flex}.step-num{background:var(--accent);color:#fff;border-radius:50%;flex:none;place-items:center;width:36px;height:36px;font-size:1.2rem;font-weight:800;display:grid}.step-body{flex-direction:column;flex:1;align-items:flex-start;gap:6px;min-width:0;display:flex}.step-text{margin:0;font-size:clamp(1.15rem,4vw,1.4rem);font-weight:600;line-height:1.4}.step-math{overflow-wrap:anywhere;background:#f1f3f5;border-radius:12px;max-width:100%;padding:.1em .5em;font-size:clamp(1.5rem,6vw,2.2rem);font-weight:800}.step-visual{max-width:100%;overflow-x:auto}.step-visual .groups{--item:1rem!important}.explain-close{width:100%}.corner-badge{opacity:0;animation:.3s ease-out forwards step-in}.results{flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:100dvh;padding:16px;display:flex;overflow:hidden}.results-stars{flex-wrap:wrap;justify-content:center;gap:4px;max-width:520px;display:flex}.star{color:#dee2e6;font-size:clamp(2.2rem,8vw,3.2rem)}.star.on{color:var(--gold);animation:.5s ease-out both pop}.results-text{margin:0;font-size:clamp(1.3rem,4.5vw,1.8rem)}.results-actions{flex-wrap:wrap;justify-content:center;gap:16px;display:flex}.celebration{pointer-events:none;position:fixed;inset:0;overflow:hidden}.celebration span{animation-name:fall;animation-timing-function:linear;animation-iteration-count:2;position:absolute;top:-3rem}.modal-backdrop{-webkit-user-select:text;user-select:text;background:#0006;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border-radius:var(--radius);width:min(100%,420px);max-height:90dvh;padding:20px 24px;overflow:auto}.modal h2{margin-top:0}.modal h3{margin-bottom:.4em}.setting-row{align-items:center;gap:10px;padding:8px 0;font-size:1.1rem;display:flex}.setting-row input[type=checkbox]{width:24px;height:24px}.setting-name{flex:1}.setting-row select{font:inherit;border-radius:10px;padding:6px 10px}.modal-actions{flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:20px;display:flex}@keyframes pop{0%{transform:scale(.85)}60%{transform:scale(1.12)}to{transform:scale(1)}}@keyframes shake{0%,to{transform:translate(0)}20%,60%{transform:translate(-10px)}40%,80%{transform:translate(10px)}}@keyframes step-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes wiggle{0%,80%,to{transform:rotate(0)}85%{transform:rotate(-12deg)}90%{transform:rotate(12deg)}95%{transform:rotate(-6deg)}}@keyframes fall{to{transform:translateY(110dvh)rotate(360deg)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.celebration{display:none}}.pv-units{color:#2b8a3e}.pv-tens{color:#1864ab}.pv-hundreds{color:#c92a2a}.math-text{unicode-bidi:isolate}.frac{vertical-align:middle;flex-direction:column;align-items:center;margin:0 .1em;font-size:.75em;line-height:1;display:inline-flex}.frac-num{border-bottom:.08em solid;padding:0 .15em .05em}.frac-den{padding-top:.05em}.golden-beads{--bead:clamp(7px, 1.9vw, 11px);flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:6px;display:inline-flex}.golden-beads.is-small{--bead:clamp(4px, 1vw, 6px)}.bead-group{align-items:flex-end;gap:2px;display:inline-flex}.bead-units{max-height:calc(5 * (var(--bead) + 2px));flex-flow:column-reverse wrap}.bead,.bar-bead{width:var(--bead,11px);height:var(--bead,11px);background:radial-gradient(circle at 35% 30%,#fff3bf,#e6b422 55%,#b08900);border-radius:50%;display:inline-block}.ten-bar{border-radius:calc(var(--bead) / 2);outline:1px solid #b08900;flex-direction:column;gap:0;display:inline-flex}.hundred-square{outline:1px solid #b08900;gap:0;display:inline-flex}.hundred-square .ten-bar{outline:none}.thousand-cube{width:calc(var(--bead) * 10);height:calc(var(--bead) * 10);background:repeating-linear-gradient(0deg, transparent 0 calc(var(--bead) - 1px), #78500059 calc(var(--bead) - 1px) var(--bead)), repeating-linear-gradient(90deg, transparent 0 calc(var(--bead) - 1px), #78500059 calc(var(--bead) - 1px) var(--bead)), #e6b422;margin:8px 8px 0 0;display:inline-block;box-shadow:4px -4px #c99a06,8px -8px #b08900}.repeat-beads{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.repeat-item{border:2px dashed #ced4da;border-radius:10px;padding:4px 6px}.bead-bars{flex-direction:column;align-items:flex-start;gap:6px;display:flex}.bead-bar{background:#868e96;border-radius:999px;gap:1px;padding:1px;display:inline-flex}.bead-bar .bar-bead{--bead:clamp(12px, 3vw, 20px);background:var(--bar,#e6b422);box-shadow:inset -2px -3px #0003,inset 2px 2px #ffffff59}.share{flex-direction:column;align-items:center;gap:12px;display:flex}.share-pile{--bead:14px;flex-wrap:wrap;justify-content:center;gap:3px;max-width:260px;display:flex}.share-pile.is-remainder{outline-offset:4px;border-radius:6px;outline:2px dashed #e8590c}.share-kids{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.share-column{flex-direction:column;align-items:center;gap:4px;display:flex}.share-beads{--bead:12px;flex-direction:column;gap:2px;display:flex}.skittle{background:#2f9e44;border-radius:9px 9px 4px 4px;width:18px;height:30px;margin-top:10px;position:relative}.skittle:before{content:"";background:#2f9e44;border-radius:50%;width:12px;height:12px;position:absolute;top:-11px;left:3px}.fractions-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.fraction-item-wrap{align-items:center;gap:8px;display:flex}.fraction-item{flex-direction:column;align-items:center;gap:4px;margin:0;font-size:1.6rem;font-weight:800;display:flex}.fraction-circle{width:clamp(90px,22vw,130px);height:auto}.slice{fill:#fff;stroke:#495057;stroke-width:1.5px}.slice.is-filled{fill:#e03131}.code-block{text-align:left;color:#e9ecef;-webkit-user-select:text;user-select:text;background:#212529;border-radius:12px;max-width:100%;margin:0;padding:12px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:clamp(.95rem,3vw,1.2rem);line-height:1.5;overflow-x:auto}.map{width:100%;height:auto;display:block}.world-map{width:min(84vw,640px)}.world-map.is-loading{aspect-ratio:800/420;background:#d0ebff;border-radius:12px}.israel-map{width:min(42vw,230px)}.sea{fill:#a5d8ff}.country{stroke:#00000040;stroke-width:.5px}.has-highlight .country:not(.is-highlight){opacity:.55}.country.is-highlight{stroke:#212529;stroke-width:2px}.land-israel{fill:#e9d8a6;stroke:#8d6e3f;stroke-width:2px;stroke-linejoin:round}.lake{fill:#74c0fc;stroke:#1c7ed6;stroke-width:1px}.river{fill:none;stroke:#1c7ed6;stroke-width:2.5px;stroke-linecap:round}.marker{fill:#e03131;stroke:#fff;stroke-width:2px}.marker-pulse{fill:none;stroke:#e03131;stroke-width:3px;transform-box:fill-box;transform-origin:50%;animation:1.6s ease-out infinite pulse}@keyframes pulse{0%{opacity:1;transform:scale(.4)}to{opacity:0;transform:scale(1.4)}}.choices.choices-text{grid-template-columns:repeat(2,minmax(0,1fr))}.choices-text .choice{min-height:72px;padding:12px 14px;font-size:clamp(1.05rem,3.6vw,1.35rem);font-weight:600;line-height:1.3}@media (width<=560px){.choices.choices-text{grid-template-columns:1fr}}.prompt-long{max-width:36ch;font-size:clamp(1.2rem,4.2vw,1.6rem);line-height:1.35}.step-icon{font-size:1.2em}.tiles{grid-template-columns:repeat(auto-fill,minmax(min(150px,42vw),1fr))}.flag{aspect-ratio:4/3;object-fit:cover;border-radius:8px;width:min(260px,60vw);display:block;box-shadow:0 0 0 1px #00000026,0 4px 10px #0000001f}.step-visual:has(.map){width:100%}.step-visual .world-map{width:100%}.step-visual .israel-map{width:min(45%,200px)}.profile-card-wrap{display:flex;position:relative}.profile-card-wrap .profile-card{flex:1}.profile-edit{top:8px;background:#f1f3f5;border-radius:50%;width:44px;height:44px;font-size:1.2rem;position:absolute;inset-inline-end:8px;box-shadow:0 2px #0000001f}.profile-edit:active{transform:translateY(2px)}.delete-player{margin-top:24px}.profiles{position:relative}.sync-btn{top:16px;width:48px;height:48px;font-size:1.4rem;position:absolute;inset-inline-end:16px}.sync-dot{bottom:4px;background:#adb5bd;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;inset-inline-end:4px}.sync-dot.is-ok{background:var(--good)}.sync-dot.is-syncing{background:var(--gold)}.sync-dot.is-error{background:var(--bad)}.sync-panel p{line-height:1.5}.family-code{letter-spacing:.08em;text-align:center;-webkit-user-select:all;user-select:all;background:#f1f3f5;border-radius:12px;padding:10px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:clamp(1.6rem,7vw,2.2rem);font-weight:800}.sync-status{font-weight:600}.sync-status.is-ok{color:var(--good)}.sync-status.is-error{color:var(--bad)}.sync-create{width:100%}.sync-join{flex-direction:column;gap:8px;margin-top:20px;display:flex}.sync-join-row{gap:8px;display:flex}.family-code-input{text-transform:uppercase;flex:1;min-width:0;font-family:ui-monospace,Menlo,Consolas,monospace}.sync-error{color:var(--bad)}.sync-close{width:100%;margin-top:16px}.sketch{width:min(84vw,420px);line-height:0}.sketch svg{width:100%;height:auto;display:block}.pill-adult{padding:0 14px;font-size:1.2rem}.music-btn{width:48px;height:48px;font-size:1.3rem;position:relative}.music-btn .music-state{bottom:2px;color:#fff;background:#495057;border-radius:999px;padding:3px 4px;font-size:.55rem;line-height:1;position:absolute;inset-inline-start:2px}.music-btn.is-on{box-shadow:0 0 0 3px #b197fc, var(--shadow)}.music-btn.is-on>span:first-child{animation:2.4s ease-in-out infinite music-sway;display:inline-block}.music-btn.is-on .music-state{background:#7950f2}@keyframes music-sway{0%,to{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}.read-aloud-btn{width:48px;height:48px;font-size:1.3rem}.read-aloud-btn.is-muted{opacity:.7;box-shadow:0 0 0 3px #ced4da, var(--shadow)}.corner-music{top:16px;position:absolute;inset-inline-start:16px}@media (width<=440px){.activity-header{gap:8px}.activity-header .icon-btn{width:44px;height:44px;font-size:1.2rem}.round-progress{gap:8px;font-size:.95rem}.level-badge{padding:.25em .6em;font-size:.9rem}}.choices-emoji .choice{min-height:100px;font-size:clamp(2.6rem,11vw,3.6rem)}.diamond-chip{color:#1864ab;white-space:nowrap;background:#e7f5ff;border-radius:999px;padding:.25em .7em;font-size:1.1rem;font-weight:800}.won-diamond{color:#1864ab;background:#e7f5ff;border-radius:18px;align-items:center;gap:10px;margin:0;padding:10px 18px;font-size:clamp(1.2rem,4.5vw,1.6rem);font-weight:800;display:flex}.won-diamond-gem{font-size:2.4rem;animation:1.2s ease-out both gem-spin,2.4s ease-in-out 1.2s infinite gem-shine;display:inline-block}@keyframes gem-spin{0%{transform:scale(0)rotate(-180deg)}to{transform:scale(1)rotate(0)}}@keyframes gem-shine{0%,to{filter:drop-shadow(0 0 #74c0fc)}50%{filter:drop-shadow(0 0 10px #74c0fc)}}.answer-area{flex-direction:column;align-items:center;gap:10px}.read-answers-btn{color:#5f3dc4;background:#f3f0ff;margin-top:22px;padding:.45em 1em;font-size:1rem}.read-answers-btn.is-active{color:#fff;background:#7950f2}.choice.is-reading{background:#f3f0ff;outline:5px solid #7950f2;transition:transform .15s,background .15s;transform:scale(1.04)}.level-control{position:relative}.level-control .level-badge{cursor:pointer;font:inherit;font-weight:600}.level-menu{top:calc(100% + 8px);z-index:5;background:var(--surface);border-radius:999px;align-items:center;gap:8px;padding:6px;animation:.2s ease-out pop;display:flex;position:absolute;inset-inline-end:0;box-shadow:0 6px 18px #0000002e}.level-menu button{background:var(--accent);color:#fff;border-radius:50%;width:44px;height:44px;font-size:1.6rem;font-weight:800;line-height:1}.level-menu button:disabled{opacity:.3}.level-menu-value{text-align:center;min-width:1.6em;font-size:1.3rem;font-weight:800}.auth{flex-direction:column;align-items:center;min-height:100dvh;padding:24px 16px;display:flex}.auth-subtitle{margin:0 0 16px;font-size:1.4rem}.auth-form{flex-direction:column;gap:14px;width:min(100%,440px);display:flex}.auth-form p{margin:0;line-height:1.5}.code-input{letter-spacing:.3em;text-align:center;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:2rem}.auth-links{flex-wrap:wrap;justify-content:space-between;gap:10px;display:flex}.auth-links .btn,.auth-note{font-size:.95rem}.auth-error{color:var(--bad);text-align:center;max-width:440px;margin-top:16px;font-weight:600}.account-email{overflow-wrap:anywhere;margin:0 0 12px;font-size:1.2rem;font-weight:600}.pill-wide{padding:0 22px;font-size:1.3rem}.admin{--viz-1:#2a78d6;--viz-track:#eef0f3;flex-direction:column;gap:16px;max-width:1100px;margin:0 auto;padding:16px;display:flex}.admin-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.admin-header h1{margin:0;font-size:clamp(1.4rem,4vw,2rem)}.kpis{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;display:grid}.kpi,.admin-card{background:var(--surface);border-radius:16px;padding:16px 18px;box-shadow:0 2px #00000014}.kpi{flex-direction:column;gap:2px;display:flex}.kpi-value{font-size:2.2rem;font-weight:800;line-height:1.1}.kpi-label{font-weight:600}.kpi-sub{color:var(--muted);font-size:.9rem}.admin-card h2{margin:0 0 4px;font-size:1.2rem}.admin-card>.muted{margin:0 0 12px;font-size:.9rem}.hbars{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.hbar-row{border-radius:8px;grid-template-columns:minmax(110px,160px) 1fr 3.5em;align-items:center;gap:10px;padding:6px 4px;display:grid;position:relative}.hbar-row:hover,.hbar-row:focus-visible{background:#f8f9fa;outline:none}.hbar-label{white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.hbar-track{background:var(--viz-track);border-radius:4px;height:14px;overflow:hidden}.hbar-fill{background:var(--viz-1);border-radius:4px;min-width:2px;height:100%;display:block}.hbar-value{color:var(--muted);font-variant-numeric:tabular-nums;text-align:end}.hbar-tip{inset-inline-end:3.5em;background:var(--text);color:#fff;white-space:nowrap;z-index:2;pointer-events:none;border-radius:8px;padding:4px 10px;font-size:.85rem;position:absolute;top:-30px}.admin-two{grid-template-columns:2fr 1fr;gap:16px;display:grid}@media (width<=720px){.admin-two{grid-template-columns:1fr}}.vbars{grid-template-columns:repeat(9,1fr);align-items:end;gap:6px;height:180px;display:grid}.vbar{flex-direction:column;align-items:center;gap:4px;height:100%;display:flex}.vbar-value{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.85rem}.vbar-track{flex:1;align-items:flex-end;width:70%;display:flex}.vbar-fill{background:var(--viz-1);border-radius:4px 4px 0 0;width:100%;min-height:2px;display:block}.vbar-label{white-space:nowrap;font-size:.85rem;font-weight:600}.gender-list{grid-template-columns:1fr auto;gap:8px 16px;margin:8px 0 0;display:grid}.gender-list dt{font-weight:600}.gender-list dd{font-variant-numeric:tabular-nums;margin:0;font-weight:800}.table-wrap{overflow-x:auto}.admin-table{border-collapse:collapse;width:100%;font-size:.95rem}.admin-table th,.admin-table td{text-align:start;vertical-align:top;border-bottom:1px solid #e9ecef;padding:8px 10px}.admin-table th{color:var(--muted);white-space:nowrap;font-weight:600}.email-cell{text-align:start;-webkit-user-select:text;user-select:text;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.85rem}.player-chips{flex-wrap:wrap;gap:6px;display:flex}.player-chip{background:#f1f3f5;border-radius:999px;padding:4px 10px;font-size:.9rem}.player-chip.is-open{background:var(--viz-1);color:#fff}.player-details>td{background:#f8f9fa}.admin-table.inner{background:var(--surface);margin-top:8px}.admin-open{background:#343a40;width:100%;margin-top:12px}.start-choice{flex-direction:column;gap:12px;width:min(100%,440px);display:flex}.start-choice h2{margin:0 0 4px}.start-option{text-align:start;background:#f8f9fa;border-radius:18px;grid-template-rows:auto auto;grid-template-columns:auto 1fr;align-items:center;column-gap:14px;padding:16px 18px;display:grid;box-shadow:0 4px #0000001a}.start-option:active{transform:translateY(3px)}.start-option.is-lesson{background:#fff3bf}.start-option.is-questions{background:#e7f5ff}.start-option-icon{grid-row:span 2;font-size:2.4rem}.start-option-name{font-size:1.4rem;font-weight:800}.start-option-sub{color:var(--muted)}.lesson{flex-direction:column;gap:14px;max-width:820px;min-height:100dvh;margin:0 auto;padding:12px 16px 24px;display:flex}.lesson-heading{text-align:center;flex-direction:column;flex:1;align-items:center;display:flex}.lesson-topic{color:var(--muted);font-size:.95rem;font-weight:600}.lesson-title{margin:0;font-size:clamp(1.3rem,5vw,1.9rem)}.lesson-progress{justify-content:center;gap:6px;display:flex}.lesson-step{background:#e9ecef;border-radius:999px;width:28px;height:6px}.lesson-step.is-done{background:var(--accent)}.lesson-slide{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:16px;animation:.35s ease-out step-in;display:flex}.lesson-emoji{font-size:clamp(4rem,18vw,6.5rem);line-height:1.1}.lesson-text{max-width:34ch;margin:0;font-size:clamp(1.3rem,4.6vw,1.75rem);font-weight:600;line-height:1.5}.lesson-example{background:var(--surface);border-radius:var(--radius);width:100%;box-shadow:var(--shadow);text-align:start;flex-direction:column;align-items:center;gap:12px;padding:16px;display:flex}.lesson-example .explain-steps{width:100%;margin:0}.lesson-answer{margin:0;font-size:1.3rem}.lesson-nav{justify-content:space-between;align-items:center;gap:12px;display:flex}.column-math{font-variant-numeric:tabular-nums;vertical-align:middle;unicode-bidi:isolate;place-items:center;gap:.02em .06em;line-height:1.1;display:inline-grid}.col-op{padding-inline-end:.25em;font-weight:800}.col-cell{text-align:center;width:.72em}.col-carry{color:#e8590c;align-self:end;font-size:.45em;font-weight:800}.col-line{background:currentColor;border-radius:2px;width:100%;height:.08em;margin:.08em 0}.col-unknown{justify-self:end}.expression:has(.column-math){padding:.15em .5em;line-height:1}.step-math:has(.column-math){padding:.2em .6em}.avatar{line-height:1.1;display:inline-block;position:relative}.avatar-base{display:inline-block}.avatar-hat,.avatar-face,.avatar-hand{pointer-events:none;filter:drop-shadow(0 1px 1px #00000040);line-height:1;position:absolute}.avatar-hat{font-size:.6em;top:-.42em;left:50%;transform:translate(-50%)}.avatar-face{font-size:.55em;top:.26em;left:50%;transform:translate(-50%)}.avatar-hand{bottom:-.1em;font-size:.55em;inset-inline-end:-.3em}.home-avatar-btn{background:0 0;border-radius:16px;padding:.25em .2em 0}.home-avatar-btn:active{transform:scale(.95)}.diamond-chip-btn{box-shadow:var(--shadow);align-items:center;gap:.3em;display:inline-flex}.diamond-chip-btn:active{box-shadow:none;transform:translateY(3px)}.diamond-chip-shop{font-size:.9em}.diamond-chip-big{font-size:1.4rem}.shop{flex-direction:column;align-items:center;gap:20px;min-height:100dvh;padding:16px 16px 40px;display:flex}.shop-header{align-items:center;gap:12px;width:min(100%,720px);display:flex}.shop-header .title{flex:1;margin:.2em 0;font-size:clamp(1.6rem,6vw,2.6rem)}.shop-preview{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;align-items:center;gap:6px;min-width:200px;padding:36px 48px 16px;display:flex}.shop-avatar{font-size:clamp(4.5rem,16vw,6rem)}.shop-preview-name{font-size:1.3rem;font-weight:800}.shop-tabs{flex-wrap:wrap;justify-content:center;gap:12px;width:min(100%,760px);display:flex}.shop-tab{height:52px;padding:0 20px;font-size:1.15rem}.shop-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:clamp(12px,2.5vw,20px);width:min(100%,760px);display:grid}.shop-item{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;align-items:center;gap:6px;padding:18px 10px 14px;transition:transform .1s;display:flex;position:relative}.shop-item:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px #0000001f}.shop-item.is-owned{outline:3px solid #b2f2bb}.shop-item.is-wearing{outline:4px solid var(--good);background:#ebfbee}.shop-item.is-locked{opacity:.5}.shop-item-emoji{font-size:3.2rem;line-height:1.1}.shop-item-name{text-align:center;font-size:1.05rem;font-weight:700}.shop-item-price{color:#1864ab;font-size:.95rem;font-weight:800}.shop-item.is-wearing .shop-item-price,.shop-item.is-owned .shop-item-price{color:var(--good)}.shop-item-lock{top:6px;font-size:1rem;position:absolute;inset-inline-end:8px}.shop-note{text-align:center;width:min(100%,720px);margin:4px 0 0;font-size:1rem}.shop-toast{background:var(--text);color:#fff;white-space:nowrap;border-radius:999px;padding:12px 24px;font-size:1.2rem;font-weight:800;animation:.4s ease-out both pop;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 6px 16px #00000040}.shop-confirm{text-align:center}.shop-confirm-emoji{font-size:4rem;line-height:1.2;display:block}.theme-ocean{background:linear-gradient(#a5d8ff 0%,#4dabf7 100%)}.theme-jungle{background:linear-gradient(#b2f2bb 0%,#2f9e44 100%)}.theme-candy{background:linear-gradient(135deg,#ffdeeb 0%,#fcc2d7 50%,#d0bfff 100%)}.theme-snow{background:linear-gradient(#fff 0%,#d0ebff 100%)}.theme-night{color:#fff;background:radial-gradient(circle at 80% 15%,#fff3bf 0 32px,#0000 34px),linear-gradient(#1b2a4a 0%,#364fc7 100%)}.theme-space{color:#fff;background:radial-gradient(1.5px 1.5px at 20% 30%,#fff 50%,#0000 51%),radial-gradient(2px 2px at 70% 20%,#fff 50%,#0000 51%),radial-gradient(1.5px 1.5px at 40% 70%,#fff 50%,#0000 51%),radial-gradient(2px 2px at 85% 60%,#fff 50%,#0000 51%),radial-gradient(1.5px 1.5px at 10% 85%,#fff 50%,#0000 51%),radial-gradient(2px 2px at 55% 45%,#fff 50%,#0000 51%),linear-gradient(#0b1026 0%,#2b1055 100%)}.theme-night .muted,.theme-space .muted{color:#c5c9e0}.theme-night .shop-preview,.theme-night .shop-item,.theme-night .icon-btn,.theme-night .pill,.theme-night .btn,.theme-night .modal,.theme-space .shop-preview,.theme-space .shop-item,.theme-space .icon-btn,.theme-space .pill,.theme-space .btn,.theme-space .modal{color:var(--text)}.theme-night .pill.is-selected,.theme-space .pill.is-selected{color:#fff}.points-meter{flex-direction:column;align-items:center;gap:6px;display:flex}.points-track{align-items:center;gap:5px;display:flex}.points-cell{background:#e9ecef;border-radius:6px;width:clamp(16px,4vw,26px);height:clamp(16px,4vw,26px)}.points-cell.on{background:var(--gold);animation:.4s ease-out both pop}.points-goal{margin-inline-start:4px;font-size:1.6rem}.points-text{color:var(--muted);margin:0;font-weight:600}.diamond-chip-points{opacity:.85;margin:0 .3em;font-size:.8em;font-weight:700}.expression.is-series{white-space:normal;letter-spacing:.02em;max-width:100%;font-size:clamp(1.5rem,5.5vw,2.6rem)}.voice-hint{margin:-.25rem 0 .75rem;font-size:.85rem}
