:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ink:#1b1d22;--plate:#ffffffc7;--studio-mid:#5e636b;color:var(--ink);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#5e636b;font-family:ui-rounded,SF Pro Rounded,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.4}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{overflow:hidden}:is(html:has(.shell:not(.lesson-mode)),body:has(.shell:not(.lesson-mode))){background:#f4f5f7;height:auto;min-height:100%;overflow:auto}a{color:#0051ff;text-decoration:none}button{font:inherit}.shell{flex-direction:column;height:100%;min-height:100%;display:flex}.shell:not(.lesson-mode){height:auto;min-height:100%;color:var(--ink);background:#f4f5f7}.shell.lesson-mode .topbar,.shell.lesson-mode .footer{display:none}.shell.lesson-mode .main{flex:1;width:100%;max-width:none;min-height:0;margin:0;padding:0}.topbar{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffffb8;border-bottom:1px solid #00000014;align-items:center;gap:.75rem;padding:.55rem .85rem;display:flex}.brand{color:var(--ink);align-items:center;gap:.45rem;font-weight:800;text-decoration:none;display:inline-flex}.brand-mark{background:conic-gradient(#ff1d1a 0 25%, #00e03c 0 50%, #0051ff 0 75%, #ff5e00 0);border-radius:6px;width:22px;height:22px}.nav{gap:.75rem;margin-left:auto;display:flex}.nav a{color:#5e636b;font-size:.92rem;font-weight:600}.nav a.active{color:var(--ink)}.footer{color:#5e636b;background:#ffffff8c;flex-wrap:wrap;justify-content:space-between;gap:1rem;padding:.75rem 1rem;font-size:.82rem;display:flex}.footer-links{flex-wrap:wrap;gap:.85rem;display:flex}.main{flex:1;min-height:0}.page{max-width:720px;color:var(--ink);margin:0 auto;padding:1.25rem}.page h2,.page h3,.page h4{line-height:1.25}.page h1{margin:0 0 .5rem;font-size:1.6rem}.legal h2{margin:1.35rem 0 .35rem;font-size:1.12rem}.legal p{margin:.45rem 0}.legal code{font-size:.92em}.muted{color:#5e636b}.btn{cursor:pointer;color:var(--ink);background:#fff;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;padding:.55rem 1rem;font-weight:700;display:inline-flex}.btn-primary{color:#fff;background:linear-gradient(90deg,#0051ff,#ff5e00)}.btn-sm{padding:.35rem .75rem;font-size:.88rem}.lesson{flex-direction:column;height:100%;min-height:100dvh;display:flex;position:relative;overflow:hidden}.studio-bg{z-index:0;background:radial-gradient(620px 620px at 50% 36%,#f3f4f6 0%,#c5c8ce 46%,#5e636b 100%),#5e636b;position:absolute;inset:0}.lesson-col{z-index:1;flex-direction:column;gap:8px;width:100%;max-width:560px;height:100%;margin:0 auto;padding:8px 10px 6px;display:flex;position:relative}.viewport-wrap{border-radius:16px;flex:auto;min-height:220px;position:relative;overflow:hidden}.cube-canvas{touch-action:none;cursor:grab;width:100%;height:100%;display:block}.cube-canvas:active{cursor:grabbing}.overlay-tl{z-index:3;pointer-events:none;position:absolute;top:2px;left:2px}.overlay-bl{z-index:3;pointer-events:none;position:absolute;bottom:4px;left:4px}.overlay-br{z-index:3;flex-direction:column;gap:6px;display:flex;position:absolute;bottom:4px;right:4px}.overlay-tr{z-index:3;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute;top:4px;right:4px}.brand-capsule{letter-spacing:-.02em;color:var(--ink);opacity:0;pointer-events:none;background:#ffffffeb;border-radius:999px;margin:0;padding:8px 16px;font-family:ui-rounded,SF Pro Rounded,system-ui,-apple-system,sans-serif;font-size:23px;font-weight:800;transition:transform .72s cubic-bezier(.22,1,.36,1),opacity .5s;transform:scale(.9);box-shadow:0 3px 8px #00000024}.brand-capsule.in{opacity:1;transform:scale(1)}.formulas-btn{cursor:pointer;background:#ffffffeb;border:0;border-radius:999px;align-items:center;min-height:38px;padding:3px 6px;display:inline-flex;box-shadow:0 2px 4px #0000001f}.formula-icon{align-items:center;gap:4px;display:flex}.formula-icon img{object-fit:cover;border-radius:4px;flex:none;width:28px;height:32px;display:block}.formula-bars{flex-direction:column;align-items:flex-start;gap:3px;display:flex}.formula-bars span{border-radius:1.5px;height:3.5px;display:block}.layer-btn{cursor:pointer;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#ffffff38;border:0;border-radius:10px;place-items:center;width:44px;height:44px;padding:0;display:grid;box-shadow:0 1px 3px #00000024}.layer-btn.on{outline-offset:0;outline:1.5px solid #7a22f5}.layer-glyph{pointer-events:none;width:36px;height:36px;display:block}.advance-block{flex-direction:column;align-items:center;gap:6px;width:100%;display:flex}.advance-btn{cursor:pointer;color:#fff;background:linear-gradient(#ffffff6b,#ffffff0d 45%,#00000047),#7a22f5;border:0;border-radius:14px;place-items:center;width:112px;height:56px;display:grid;position:relative;box-shadow:0 2px 1px #00000047,0 5px 7px #00000029}.advance-btn:after{content:"";pointer-events:none;-webkit-mask-composite:xor;background:linear-gradient(#ffffff8c,#ffffff0d,#00000059) border-box;border:1.5px solid #0000;border-radius:14px;position:absolute;inset:0;-webkit-mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);mask-image:linear-gradient(#fff 0 0),linear-gradient(#fff 0 0);-webkit-mask-position:0 0,0 0;mask-position:0 0,0 0;-webkit-mask-size:auto,auto;mask-size:auto,auto;-webkit-mask-repeat:repeat,repeat;mask-repeat:repeat,repeat;-webkit-mask-clip:padding-box,border-box;mask-clip:padding-box,border-box;-webkit-mask-origin:padding-box,border-box;mask-origin:padding-box,border-box;-webkit-mask-composite:xor;mask-composite:exclude;-webkit-mask-source-type:auto,auto;mask-mode:match-source,match-source}.advance-btn:disabled{opacity:.55;cursor:not-allowed}.advance-btn svg{filter:drop-shadow(0 1px 1px #00000047);margin-left:3px}.formula-strip-slot{justify-content:center;align-items:center;width:100%;height:56px;display:flex}.formula-strip{background:var(--plate);border-radius:999px;align-items:center;gap:5px;max-width:100%;padding:5px 8px;display:flex;overflow-x:auto;box-shadow:0 3px 8px #0000001f}.fchip{white-space:nowrap;border:1px solid #ffffff59;border-radius:999px;padding:3px 7px;font-weight:800;line-height:1.1;transition:font-size .2s,opacity .2s}.fchip.on{padding-top:4px;padding-bottom:4px}.utility-row{gap:8px;display:flex}.util-btn{cursor:pointer;min-height:40px;color:var(--ink);background:var(--plate);border:0;border-radius:14px;flex:1;font-weight:800;box-shadow:0 1px 4px #00000014}.util-speed{font-weight:800}.util-reset{font-weight:600}.move-pad{grid-template-columns:repeat(5,1fr);gap:6px;display:grid}.pad-btn{cursor:pointer;height:44px;color:var(--ink);background:var(--plate);border:0;border-radius:12px;font-family:ui-rounded,SF Pro Rounded,system-ui,-apple-system,sans-serif;font-size:18px;font-weight:600;box-shadow:0 1px 3px #0000000f}.pad-btn:disabled{cursor:not-allowed}.lifetime-link{cursor:pointer;color:#1b1d22b8;background:0 0;border:0;align-self:center;height:22px;font-size:.82rem;font-weight:600}.lifetime-link:disabled{cursor:default;opacity:.7}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.lesson-about{color:var(--ink);background:#fffffff0;border-radius:14px;flex:none;padding:6px 12px;font-size:14px;line-height:1.45}.lesson-about summary{cursor:pointer;font-weight:700}.lesson-about[open]{max-height:42vh;padding-bottom:12px;overflow:auto}.guide-page{padding-bottom:2.5rem}.guide-article h1,.guide-article h2,.guide-article h3,.guide-article h4{margin:.9rem 0 .35rem;line-height:1.25}.guide-article h1{font-size:1.55rem}.guide-article h2{font-size:1.2rem}.guide-article h3{font-size:1.05rem}.guide-article h4{font-size:.98rem}.guide-article p,.guide-article li{margin:.35rem 0}.guide-article ol{padding-left:1.2rem}.guide-article a{font-weight:700}.step-preview{filter:drop-shadow(0 3px 8px #00000029);place-items:center;display:grid}.sp-cube{width:58%;height:58%;transform-style:preserve-3d;position:relative;transform:rotateX(-22deg)rotateY(32deg)}.step-preview.spin .sp-cube{animation:8s linear infinite yawspin}@keyframes yawspin{0%{transform:rotateX(-22deg)rotateY(0)}to{transform:rotateX(-22deg)rotateY(360deg)}}.sp-face{background:#0a0a0a;border-radius:4px;grid-template-columns:repeat(3,1fr);gap:2px;padding:3px;display:grid;position:absolute;inset:0}.sp-face:before{content:"";background:repeating-conic-gradient(from 0deg, #3a3a3a 0 25%, #ffea00 0 50%) 0 0 / 66% 66%;opacity:.001;border-radius:2px;grid-area:1/1/-1/-1}.sp-u{transform:rotateX(90deg) translateZ(calc(29%));background:#0a0a0a}.sp-u:after,.sp-f:after,.sp-r:after{content:"";background-size:100% 100%;border-radius:3px;display:block;position:absolute;inset:4px}.sp-u:after{background:linear-gradient(#0a0a0a 0 0) 0 0/100% 100%,repeating-linear-gradient(90deg,#4e4e4e 0 30%,#0000 0 33.33%),repeating-linear-gradient(#ffea00 0 30%,#0000 0 33.33%);background:conic-gradient(from 90deg at 33% 33%, #ffea00 0 25%, #4e4e4e 0) 0 0/50% 50%, conic-gradient(#ffea00 0 0);background:#ffea00;box-shadow:inset 0 0 0 2px #0a0a0a,12px 0 0 -2px #4e4e4e,-12px 0 0 -2px #4e4e4e,0 12px 0 -2px #4e4e4e,0 -12px 0 -2px #4e4e4e,12px 12px 0 -2px #4e4e4e,-12px 12px 0 -2px #4e4e4e,12px -12px 0 -2px #4e4e4e,-12px -12px 0 -2px #4e4e4e}.sp-f{transform:translateZ(calc(29%));background:#0a0a0a}.sp-f:after{background:#00e03c;box-shadow:inset 0 0 0 2px #0a0a0a,12px 0 0 -2px #00e03c,-12px 0 0 -2px #00e03c,0 12px 0 -2px #00e03c,0 -12px 0 -2px #4e4e4e,12px 12px 0 -2px #00e03c,-12px 12px 0 -2px #00e03c,12px -12px 0 -2px #4e4e4e,-12px -12px 0 -2px #4e4e4e}.sp-r{transform:rotateY(90deg) translateZ(calc(29%));background:#0a0a0a}.sp-r:after{background:#ff5e00;box-shadow:inset 0 0 0 2px #0a0a0a,12px 0 0 -2px #4e4e4e,-12px 0 0 -2px #ff5e00,0 12px 0 -2px #ff5e00,0 -12px 0 -2px #4e4e4e,12px 12px 0 -2px #4e4e4e,-12px 12px 0 -2px #ff5e00,12px -12px 0 -2px #4e4e4e,-12px -12px 0 -2px #ff5e00}.sp-cube[data-step="1"] .sp-u:after{background:#fff}.sp-cube[data-step="7"] .sp-u:after,.sp-cube[data-step="7"] .sp-f:after,.sp-cube[data-step="7"] .sp-r:after{box-shadow:inset 0 0 0 2px #0a0a0a}.last-formula-cube{background:linear-gradient(135deg,#ffea00 40%,#0000 40%),linear-gradient(225deg,#ff1d1a 35%,#0000 35%),linear-gradient(45deg,#00e03c 40%,#0051ff);border-radius:10px;width:68px;height:68px;box-shadow:0 2px 6px #00000029}.cheer{pointer-events:none;z-index:6;position:absolute;inset:0;overflow:hidden}.popper{filter:drop-shadow(0 6px 8px #00000047);font-size:46px;line-height:1;animation:1.45s cubic-bezier(.18,1.35,.32,1) both popper-pop;position:absolute;bottom:6%}.cheer-step .popper{font-size:54px;animation-duration:1.8s}.cheer-solved .popper{font-size:64px;animation-duration:2.35s}.popper-l{left:8%}.popper-r{animation-name:popper-pop-r;right:8%}.popper-c{margin-left:-.5em;bottom:16%;left:50%}.confetti{animation-name:confetti-burst;animation-timing-function:cubic-bezier(.12,.7,.2,1);animation-fill-mode:both;position:absolute;top:68%}@keyframes confetti-burst{0%{opacity:0;transform:translateY(16px)rotate(0)}14%{opacity:1}to{transform:translate3d(var(--drift), -280px, 0) rotate(var(--rot));opacity:0}}@keyframes popper-pop{0%{opacity:0;transform:translateY(28px)scale(.35)rotate(-18deg)}28%{opacity:1;transform:translateY(-10px)scale(1.12)rotate(-6deg)}to{opacity:0;transform:translateY(-56px)scale(1)rotate(8deg)}}@keyframes popper-pop-r{0%{opacity:0;transform:translateY(28px)scale(.35)rotate(18deg)}28%{opacity:1;transform:translateY(-10px)scale(1.12)rotate(6deg)}to{opacity:0;transform:translateY(-56px)scale(1)rotate(-8deg)}}.paywall-overlay{z-index:40;background:#0000008c;place-items:center;padding:22px;display:grid;position:fixed;inset:0}.paywall-card{-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);background:#ffffffd1;border:1px solid #ffffff24;border-radius:24px;width:min(420px,100%);padding:22px;box-shadow:0 20px 60px #00000047}.paywall-head{align-items:center;gap:12px;margin-bottom:12px;display:flex}.paywall-head h2{flex:1;margin:0;font-size:1.35rem;font-weight:800}.paywall-x{cursor:pointer;background:#0000000f;border:0;border-radius:999px;width:32px;height:32px;font-size:1.1rem;font-weight:700}.paywall-body{margin:0 0 16px;font-size:1rem}.paywall-unlock{cursor:pointer;color:#000;background:#ffd400;border:0;border-radius:14px;width:100%;height:52px;margin-bottom:8px;font-size:1.05rem;font-weight:700}.paywall-unlock:disabled{opacity:.7}.paywall-restore{cursor:pointer;width:100%;height:44px;color:var(--ink);background:0 0;border:0;font-weight:600}.paywall-notnow{cursor:pointer;color:#6b7280;background:0 0;border:0;width:100%;margin-top:4px;padding:8px}.paywall-note{color:#6b7280;margin:8px 0 0;font-size:.85rem}.formulas-sheet{z-index:35;background:#00000059;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.formulas-panel{background:#d6d8dc;border-radius:20px 20px 0 0;flex-direction:column;width:min(560px,100%);max-height:92dvh;display:flex;box-shadow:0 -8px 40px #0003}.formulas-toolbar{flex:none;justify-content:center;align-items:center;min-height:44px;padding:10px 14px 4px;display:flex;position:relative}.formulas-drag{background:#1b1d2238;border-radius:999px;width:36px;height:5px}.formulas-close{cursor:pointer;width:32px;height:32px;color:var(--ink);background:#ffffffb8;border:0;border-radius:999px;place-items:center;font-size:1.15rem;font-weight:700;line-height:1;display:grid;position:absolute;top:8px;right:12px;box-shadow:0 0 0 1px #0000000f}.formulas-scroll{-webkit-overflow-scrolling:touch;flex-direction:column;gap:18px;padding:8px 16px 28px;display:flex;overflow:auto}.formula-row{flex-direction:column;align-items:flex-start;gap:8px;width:100%;display:flex}.formula-row-top{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.formula-chips{flex-wrap:wrap;gap:6px;display:flex}.sheet-chips{gap:6px}.sheet-fchip{border:1px solid #ffffff59;border-radius:999px;font-family:ui-rounded,SF Pro Rounded,system-ui,-apple-system,sans-serif;font-size:16px;font-weight:800;line-height:1.1;color:#1b1d22!important;padding:4px 8px!important}@media (width<=430px){.lesson-col{gap:6px;padding:6px 10px 4px}.formula-strip-slot{height:48px}}@media (width>=900px){.lesson-col{max-width:430px}}.caption-pill{color:#1b1d22;pointer-events:none;z-index:4;background:#ffffffe0;border-radius:999px;padding:6px 14px;font-size:14px;font-weight:700;position:absolute;bottom:12%;left:50%;transform:translate(-50%);box-shadow:0 2px 8px #00000024}
