.arsh-msv{--ink:#172033;--muted:#64748b;--brand:#9d174d;--brand2:#be185d;--paper:#fff;--soft:#f7f1f5;max-width:1200px;margin:20px auto;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:#fff;border:1px solid #e5e7eb;border-radius:20px;overflow:hidden;box-shadow:0 18px 50px #11182718}.msv-header{display:flex;justify-content:space-between;align-items:center;padding:24px 28px;background:linear-gradient(135deg,#fff,#f9edf3)}.msv-badge,.eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--brand)}.msv-header h1{margin:4px 0 2px;font-size:34px}.msv-header p{margin:0;color:var(--muted)}button,select,input{font:inherit}.msv-help,.animate-btn{border:1px solid #d9a8bb;background:#fff;color:var(--brand);border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer}.msv-progress{height:5px;background:#eee}.msv-progress span{display:block;height:100%;width:14%;background:linear-gradient(90deg,var(--brand),#e879a5);transition:.4s}.msv-tabs{display:flex;gap:6px;padding:12px 20px;border-bottom:1px solid #eee;overflow:auto}.msv-tabs button{border:0;background:transparent;padding:11px 18px;border-radius:9px;cursor:pointer;font-weight:700;color:#64748b;white-space:nowrap}.msv-tabs button.active{background:var(--brand);color:#fff}.msv-panel{display:none;padding:24px}.msv-panel.active{display:block}.topic-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-bottom:18px}.topic{padding:13px 8px;border:1px solid #e5e7eb;background:#fff;border-radius:12px;cursor:pointer;text-align:left}.topic b{display:block}.topic span{font-size:11px;color:var(--muted)}.topic.active{border-color:#c45a83;background:#fff4f8;box-shadow:inset 0 -3px 0 var(--brand)}.lesson-card{display:grid;grid-template-columns:1fr 1fr;gap:22px;background:var(--soft);border-radius:18px;padding:22px}.lesson-copy h2,.lab-head h2,.msv-panel>h2{margin:5px 0 10px;font-size:27px}.lesson-copy p{line-height:1.65;color:#475569}.formula-box{background:#171923;color:#fff;border-radius:12px;padding:15px 18px;font-size:20px;line-height:1.7;font-family:ui-monospace,monospace}.teach-points{margin-top:14px}.teach-points div{padding:7px 0;border-bottom:1px dashed #d6b6c4}.visual-stage,.lab-visual{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 35%,#fff,#f1e6ec);border-radius:16px;overflow:hidden}.shape-scene{position:relative;width:280px;height:240px;display:flex;align-items:center;justify-content:center;perspective:900px}.shape-scene.big{width:100%;height:430px}.shape-object{position:relative;transform-style:preserve-3d;transition:transform .6s;filter:drop-shadow(0 18px 12px #0002)}.shape-object.spin{animation:spin 3.5s linear infinite}@keyframes spin{to{transform:rotateY(360deg) rotateX(8deg)}}.cube3d,.cuboid3d{width:150px;height:150px;transform:rotateX(-20deg) rotateY(-28deg);transform-style:preserve-3d}.cuboid3d{width:190px;height:120px}.face{position:absolute;border:2px solid #fff8;background:linear-gradient(135deg,#d94673,#8b1646);box-sizing:border-box}.front{width:100%;height:100%;transform:translateZ(75px)}.back{width:100%;height:100%;transform:rotateY(180deg) translateZ(75px)}.right{width:150px;height:100%;right:-75px;transform:rotateY(90deg)}.left{width:150px;height:100%;left:-75px;transform:rotateY(-90deg)}.top{width:100%;height:150px;top:-75px;transform:rotateX(90deg)}.bottom{width:100%;height:150px;bottom:-75px;transform:rotateX(-90deg)}.cylinder{width:150px;height:180px;background:linear-gradient(90deg,#8b1646,#ec6c98,#8b1646);border-left:2px solid #fff;border-right:2px solid #fff;border-radius:75px/28px}.cylinder:before,.cylinder:after{content:"";position:absolute;left:-2px;width:150px;height:56px;border-radius:50%;background:#d94673;border:2px solid #fff}.cylinder:before{top:-28px}.cylinder:after{bottom:-28px;background:#9d174d}.cone{width:0;height:0;border-left:85px solid transparent;border-right:85px solid transparent;border-bottom:190px solid #c83c6b;filter:drop-shadow(0 12px 5px #0002);position:relative}.cone:after{content:"";position:absolute;left:-85px;top:180px;width:170px;height:42px;border-radius:50%;background:#9d174d;border:2px solid #fff}.sphere{width:180px;height:180px;border-radius:50%;background:radial-gradient(circle at 32% 28%,#fff,#ef7ba5 20%,#b21f58 55%,#74113c);box-shadow:inset -25px -30px 45px #500a2b55}.hemisphere{width:190px;height:100px;border-radius:190px 190px 10px 10px;background:radial-gradient(circle at 35% 25%,#fff,#ef7ba5 22%,#a51b50 70%);border:2px solid #fff}.pyramid{width:0;height:0;border-left:100px solid transparent;border-right:100px solid transparent;border-bottom:180px solid #b21f58;filter:drop-shadow(0 14px 5px #0002)}.step-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:15px}.step-strip div{padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:10px}.step-strip b{display:block;color:var(--brand)}.animate-btn{margin-top:10px}.lab-head{display:flex;justify-content:space-between;gap:15px;align-items:end;margin-bottom:16px}.lab-head select{padding:10px;border:1px solid #d1d5db;border-radius:10px}.lab-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.controls{padding:18px;background:#f8fafc;border-radius:16px}.controls label{display:grid;grid-template-columns:1fr 100px 35px;align-items:center;gap:8px;margin:12px 0;font-weight:700}.controls input{width:100%}.result-card{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.result-card div{background:#fff;border:1px solid #e5e7eb;padding:13px;border-radius:10px}.result-card span{display:block;color:var(--muted);font-size:12px}.result-card strong{font-size:20px}.primary{width:100%;border:0;background:var(--brand);color:#fff;padding:12px;border-radius:10px;font-weight:800;cursor:pointer}.formula-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.formula-card{padding:16px;border:1px solid #e5e7eb;border-radius:14px}.formula-card h3{margin:0 0 8px}.formula-card code{font-size:17px;background:#f8eef3;padding:8px 10px;border-radius:8px;display:block}.memory-box{margin-top:15px;background:#fff7ed;border-left:4px solid #f59e0b;padding:14px;border-radius:8px}.quiz-question{padding:16px;border:1px solid #e5e7eb;border-radius:13px;margin-bottom:10px}.quiz-question button{margin:5px;padding:9px 12px;border:1px solid #ddd;border-radius:8px;background:#fff;cursor:pointer}.quiz-question button.correct{background:#dcfce7;border-color:#22c55e}.quiz-question button.wrong{background:#fee2e2;border-color:#ef4444}.msv-modal{position:fixed;inset:0;background:#11182799;display:flex;align-items:center;justify-content:center;z-index:99999;padding:20px}.modal-inner{max-width:600px;background:#fff;border-radius:16px;padding:25px;position:relative}.modal-close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:28px;cursor:pointer}.rotate-hint{font-size:12px;color:var(--muted);margin-top:8px}@media(max-width:850px){.topic-grid{grid-template-columns:repeat(3,1fr)}.lesson-card,.lab-grid{grid-template-columns:1fr}.formula-grid{grid-template-columns:1fr}.step-strip{grid-template-columns:1fr 1fr}.msv-header{align-items:flex-start}.msv-header h1{font-size:27px}}

/* v1.0.5 — Cube teaching animation: square → height → 3D cube → six-face net → TSA */
.cube-teach-caption{width:100%;max-width:520px;margin:6px auto 0;padding:9px 12px;border-radius:10px;background:#fff;border:1px solid #ead2dc;color:#7f123f;font-weight:700;text-align:center;font-size:13px;line-height:1.4}
.cube-teach-stage{position:relative;width:100%;height:260px;display:flex;align-items:center;justify-content:center;overflow:visible}
.cube-build-area{position:relative;width:210px;height:210px;display:flex;align-items:center;justify-content:center;perspective:900px}
.cube-square-base{position:absolute;width:126px;height:126px;border:4px solid #be185d;background:linear-gradient(135deg,#f9a8c4,#d94673);box-shadow:0 12px 24px #9d174d30;display:flex;align-items:center;justify-content:center;color:#fff;font-size:23px;font-weight:900;opacity:1;transform:translateY(5px);transition:all .8s ease;z-index:2}
.cube-square-base span{background:#9d174d;padding:3px 9px;border-radius:7px}
.cube-depth-line{position:absolute;left:44px;top:42px;width:126px;height:126px;border-top:3px dashed #9d174d;border-right:3px dashed #9d174d;transform:skewY(-28deg);opacity:0;transition:opacity .6s ease;color:#9d174d;font-size:12px;font-weight:800}
.cube-depth-line span{position:absolute;right:-5px;top:-25px;white-space:nowrap;background:#fff;padding:3px 6px;border-radius:5px}
.cube-teach-object{position:absolute!important;width:126px;height:126px;transform:rotateX(-20deg) rotateY(-28deg) scale(.01);opacity:0;transition:all 1s ease;z-index:3}
.cube-teach-object .front,.cube-teach-object .back{width:126px;height:126px}
.cube-teach-object .front{transform:translateZ(63px)}
.cube-teach-object .back{transform:rotateY(180deg) translateZ(63px)}
.cube-teach-object .right,.cube-teach-object .left{width:126px;height:126px}
.cube-teach-object .right{right:-63px}
.cube-teach-object .left{left:-63px}
.cube-teach-object .top,.cube-teach-object .bottom{width:126px;height:126px}
.cube-teach-object .top{top:-63px}
.cube-teach-object .bottom{bottom:-63px}
.cube-net{position:absolute;width:300px;height:230px;left:50%;top:50%;transform:translate(-50%,-50%) scale(.65);opacity:0;transition:all 1s ease;z-index:5}
.net-square{position:absolute;width:72px;height:72px;background:linear-gradient(135deg,#f9a8c4,#c02662);border:3px solid #fff;box-shadow:0 6px 15px #9d174d2b;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:900;box-sizing:border-box;transition:transform .9s ease,opacity .9s ease}
.net-center{left:114px;top:78px}.net-top{left:114px;top:5px}.net-bottom{left:114px;top:151px}.net-left{left:41px;top:78px}.net-right{left:187px;top:78px}.net-back{left:260px;top:78px}
.cube-formula-reveal{position:absolute;bottom:4px;left:50%;transform:translateX(-50%) translateY(12px);opacity:0;background:#171923;color:#fff;padding:10px 16px;border-radius:10px;font-family:ui-monospace,monospace;font-size:15px;white-space:nowrap;box-shadow:0 8px 20px #11182733;transition:all .8s ease;z-index:7}
.cube-formula-reveal b{color:#f9a8c4;font-size:18px}
.cube-step-1 .cube-square-base{opacity:1;transform:translateY(5px) scale(1)}
.cube-step-2 .cube-square-base{opacity:.22;transform:translate(-28px,20px) scale(.92)}
.cube-step-2 .cube-depth-line{opacity:1}
.cube-step-3 .cube-square-base{opacity:0}
.cube-step-3 .cube-depth-line{opacity:0}
.cube-step-3 .cube-teach-object{opacity:1;transform:rotateX(-20deg) rotateY(-28deg) scale(1)}
.cube-step-3 .cube-teach-object{animation:cubeGentleTurn 2s ease-in-out 1}
.cube-step-4 .cube-teach-object{animation:none;transform:rotateX(-4deg) rotateY(-18deg) scale(.72)}
.cube-step-4 .cube-teach-object .front{transform:translateZ(63px) translateX(-18px)}
.cube-step-4 .cube-teach-object .back{transform:rotateY(180deg) translateZ(63px) translateX(18px)}
.cube-step-4 .cube-teach-object .right{transform:rotateY(90deg) translateX(18px)}
.cube-step-4 .cube-teach-object .left{transform:rotateY(-90deg) translateX(-18px)}
.cube-step-4 .cube-teach-object .top{transform:rotateX(90deg) translateY(-18px)}
.cube-step-4 .cube-teach-object .bottom{transform:rotateX(-90deg) translateY(18px)}
.cube-step-5 .cube-teach-object{opacity:0;transform:scale(.45)}
.cube-step-5 .cube-net{opacity:1;transform:translate(-50%,-50%) scale(1)}
.cube-step-5 .net-square{animation:netPop .7s ease both}
.cube-step-5 .net-top{animation-delay:.05s}.cube-step-5 .net-right{animation-delay:.12s}.cube-step-5 .net-bottom{animation-delay:.19s}.cube-step-5 .net-left{animation-delay:.26s}.cube-step-5 .net-back{animation-delay:.33s}
.cube-step-6 .cube-net{transform:translate(-50%,-50%) scale(.92)}
.cube-step-6 .cube-formula-reveal{opacity:1;transform:translateX(-50%) translateY(0)}
@keyframes cubeGentleTurn{0%{transform:rotateX(-20deg) rotateY(-28deg) scale(1)}50%{transform:rotateX(-8deg) rotateY(18deg) scale(1.04)}100%{transform:rotateX(-20deg) rotateY(-28deg) scale(1)}}
@keyframes netPop{0%{opacity:0;transform:scale(.45)}70%{opacity:1;transform:scale(1.08)}100%{opacity:1;transform:scale(1)}}
@media(max-width:650px){.cube-teach-stage{height:300px}.cube-net{transform:translate(-50%,-50%) scale(.78)}.cube-step-5 .cube-net{transform:translate(-50%,-50%) scale(.78)}.cube-formula-reveal{font-size:12px}.cube-formula-reveal b{font-size:15px}}

/* v1.0.6 — Large Cube 3D + visible face-by-face unfolding net */
.cube-teach-stage{height:390px;min-height:390px;perspective:1200px;background:radial-gradient(circle at 50% 40%,#ffffff 0%,#f8e8f0 58%,#ead4df 100%);position:relative}
.cube-build-area{width:330px;height:330px;perspective:1200px}
.cube-square-base{width:185px;height:185px;font-size:25px;border-width:4px;transform:translateY(8px);}
.cube-depth-line{left:66px;top:66px;width:185px;height:185px;font-size:13px}
.cube-teach-object{width:185px;height:185px;transform:rotateX(-18deg) rotateY(-32deg) scale(.01);}
.cube-teach-object .front,.cube-teach-object .back{width:185px;height:185px}
.cube-teach-object .front{transform:translateZ(92.5px)}
.cube-teach-object .back{transform:rotateY(180deg) translateZ(92.5px)}
.cube-teach-object .right,.cube-teach-object .left{width:185px;height:185px}
.cube-teach-object .right{right:-92.5px}.cube-teach-object .left{left:-92.5px}
.cube-teach-object .top,.cube-teach-object .bottom{width:185px;height:185px}
.cube-teach-object .top{top:-92.5px}.cube-teach-object .bottom{bottom:-92.5px}
.cube-teach-object .face{background:linear-gradient(135deg,#ef5f91,#9d174d);box-shadow:inset 0 0 30px #ffffff22}
.cube-dim{position:absolute;z-index:20;color:#fff;background:#9d174d;border:2px solid #fff;border-radius:7px;padding:2px 9px;font-weight:900;font-size:18px;box-shadow:0 4px 10px #0003;pointer-events:none}
.dim-front{left:68px;bottom:-28px}.dim-top{left:50%;top:-30px;transform:translateX(-50%)}.dim-side{right:-38px;top:50%;transform:translateY(-50%)}
.cube-step-1 .cube-square-base{transform:translateY(8px) scale(1.08)}
.cube-step-2 .cube-square-base{opacity:.2;transform:translate(-38px,25px) scale(.96)}
.cube-step-2 .cube-depth-line{opacity:1}
.cube-step-3 .cube-square-base,.cube-step-3 .cube-depth-line{opacity:0}
.cube-step-3 .cube-teach-object{opacity:1;transform:rotateX(-18deg) rotateY(-32deg) scale(1)}
.cube-step-3 .cube-teach-object{animation:cubeLargeTurn 2.4s ease-in-out 1}
.cube-step-4 .cube-teach-object{opacity:1;transform:rotateX(-8deg) rotateY(-18deg) scale(.82)}
.cube-step-4 .cube-unfold{opacity:1;transform:translate(-50%,-50%) scale(1)}
.cube-step-4 .net-square{opacity:1}
.cube-step-4 .net-center{transform:translate(0,0) rotateX(0) rotateY(0)}
.cube-step-4 .net-top{transform:translate(0,-92px) rotateX(0)}
.cube-step-4 .net-bottom{transform:translate(0,92px) rotateX(0)}
.cube-step-4 .net-left{transform:translate(-92px,0) rotateY(0)}
.cube-step-4 .net-right{transform:translate(92px,0) rotateY(0)}
.cube-step-4 .net-back{transform:translate(184px,0) rotateY(0)}
.cube-step-5 .cube-teach-object{opacity:0;transform:scale(.55)}
.cube-step-5 .cube-unfold{opacity:1;transform:translate(-50%,-50%) scale(1.03)}
.cube-step-5 .net-square{background:linear-gradient(135deg,#ffffff,#f4d4e1);border:3px solid #be185d;color:#7f123f;box-shadow:0 8px 22px #9d174d35}
.cube-step-5 .net-square span{opacity:1;transform:scale(1)}
.cube-step-6 .cube-unfold{transform:translate(-50%,-50%) scale(.82) translateY(-28px)}
.cube-step-6 .cube-formula-reveal{opacity:1;transform:translateX(-50%) translateY(0)}
.cube-unfold{position:absolute;width:280px;height:280px;left:50%;top:50%;transform:translate(-50%,-50%) scale(.2);opacity:0;transition:transform 1.2s ease,opacity .6s ease;z-index:8}
.net-square{width:84px;height:84px;border:3px solid #fff;background:linear-gradient(135deg,#f59abb,#b21f58);box-shadow:0 7px 18px #9d174d35;color:#fff;font-size:25px;font-weight:900;transition:transform 1.35s cubic-bezier(.2,.85,.25,1),opacity .7s ease,background .6s ease;display:flex;align-items:center;justify-content:center;box-sizing:border-box;position:absolute;left:98px;top:98px;opacity:0}
.net-square span{display:block;transition:transform .5s ease;font-size:27px}
.net-center{left:98px;top:98px;transform:translate(0,0)}
.net-top{left:98px;top:98px;transform:translate(0,0) rotateX(-88deg);transform-origin:bottom center}
.net-bottom{left:98px;top:98px;transform:translate(0,0) rotateX(88deg);transform-origin:top center}
.net-left{left:98px;top:98px;transform:translate(0,0) rotateY(88deg);transform-origin:right center}
.net-right{left:98px;top:98px;transform:translate(0,0) rotateY(-88deg);transform-origin:left center}
.net-back{left:98px;top:98px;transform:translate(0,0) rotateY(-178deg);transform-origin:left center}
.cube-formula-reveal{bottom:14px;font-size:18px;padding:12px 20px;border-radius:12px}
.cube-formula-reveal b{font-size:22px;color:#ffb4d0}
@keyframes cubeLargeTurn{0%{transform:rotateX(-18deg) rotateY(-32deg) scale(1)}50%{transform:rotateX(-5deg) rotateY(22deg) scale(1.06)}100%{transform:rotateX(-18deg) rotateY(-32deg) scale(1)}}
@media(max-width:650px){.cube-teach-stage{height:330px;min-height:330px}.cube-build-area{transform:scale(.82)}.cube-unfold{transform:translate(-50%,-50%) scale(.78)}.cube-step-4 .cube-unfold{transform:translate(-50%,-50%) scale(.78)}.cube-step-5 .cube-unfold{transform:translate(-50%,-50%) scale(.78)}.cube-step-6 .cube-unfold{transform:translate(-50%,-50%) scale(.68) translateY(-20px)}.net-square{width:76px;height:76px;left:102px;top:102px}}

/* v1.0.7 — Cube visual lesson redesigned like a teaching infographic */
.cube-mode .lesson-card{grid-template-columns:1fr;display:block;background:#fff;padding:0;overflow:hidden}
.cube-mode .lesson-copy{display:none}
.cube-mode .visual-stage{width:100%;min-height:650px;padding:0;background:#fff;display:block;position:relative}
.cube-mode .shape-scene{width:100%;height:650px;display:block;perspective:1400px}
.cube-teach-stage{width:100%;height:650px;min-height:650px;position:relative;overflow:hidden;background:linear-gradient(180deg,#ffffff 0%,#fff7fb 100%);border:1px solid #ead5e0;border-radius:22px;box-sizing:border-box}
.cube-lesson-top{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid #ead5e0;background:rgba(255,255,255,.94);position:relative;z-index:30}
.cube-stage-title{font-size:24px;font-weight:900;color:#172554}.cube-stage-title::first-letter{color:#be185d}.cube-stage-counter{font-weight:800;color:#9d174d;background:#fce7f3;border-radius:999px;padding:8px 15px}
.cube-step-nav{height:70px;display:flex;align-items:center;justify-content:center;gap:8px;background:#fbf5f8;border-bottom:1px solid #ead5e0;position:relative;z-index:30}
.cube-step-nav>span{font-size:22px;color:#9ca3af;font-weight:800}.cube-step-btn{border:1px solid #e5d7df;background:#fff;border-radius:14px;min-width:120px;padding:8px 12px;display:flex;align-items:center;gap:8px;justify-content:center;cursor:pointer;color:#172554;font-weight:800;transition:.2s;box-shadow:0 3px 10px #7f123f12}.cube-step-btn b{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#f1e7ed;color:#7f123f}.cube-step-btn.active{border-color:#be185d;background:#fff0f6;box-shadow:0 6px 18px #be185d20;color:#9d174d}.cube-step-btn.active b{background:#be185d;color:#fff}
.cube-main-visual{height:425px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;padding:18px 20px 10px;box-sizing:border-box}
.cube-visual-board{position:relative;min-width:0;border-radius:18px;overflow:hidden;background:radial-gradient(circle at 50% 35%,#263f88 0%,#171f56 55%,#11152e 100%);box-shadow:inset 0 -35px 70px #080b22cc;perspective:1400px}
.cube-grid-floor{position:absolute;left:-10%;right:-10%;bottom:-35px;height:180px;background:linear-gradient(#ffffff00 0 0),repeating-linear-gradient(90deg,#ffffff18 0 1px,transparent 1px 45px),repeating-linear-gradient(0deg,#ffffff18 0 1px,transparent 1px 45px);transform:perspective(400px) rotateX(62deg);transform-origin:center bottom;opacity:.7}
.cube-visual-board:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 35% 25%,#ffffff22,transparent 34%),radial-gradient(circle at 80% 70%,#ff4f9b18,transparent 30%)}
.cube-square-base{z-index:8;width:190px;height:190px;left:50%;top:50%;margin:-95px 0 0 -95px;border:4px solid #ff83b7;background:linear-gradient(135deg,#ff7eae,#c51c62);box-shadow:0 0 35px #ff5a9d66,0 18px 35px #0006;display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;font-weight:900;position:absolute;transition:1s cubic-bezier(.2,.8,.2,1)}
.cube-square-base span{background:#8e1244;padding:7px 13px;border-radius:10px;box-shadow:0 4px 12px #0003}.cube-depth-line{z-index:9;position:absolute;left:calc(50% - 95px);top:calc(50% - 95px);width:190px;height:190px;border-top:3px dashed #ffcfdf;border-right:3px dashed #ffcfdf;opacity:0;transition:opacity .6s;color:#fff;font-size:15px;font-weight:900}.cube-depth-line span{position:absolute;right:-20px;top:-32px;background:#be185d;border:1px solid #fff;padding:6px 9px;border-radius:8px;white-space:nowrap}
.cube-teach-object{position:absolute!important;left:50%;top:50%;margin:-95px 0 0 -95px;width:190px;height:190px;z-index:12;opacity:0;transform:rotateX(-18deg) rotateY(-32deg) scale(.2);transition:1.1s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 25px 22px #0007)}
.cube-teach-object .front,.cube-teach-object .back{width:190px;height:190px}.cube-teach-object .front{transform:translateZ(95px)}.cube-teach-object .back{transform:rotateY(180deg) translateZ(95px)}.cube-teach-object .right,.cube-teach-object .left{width:190px;height:190px}.cube-teach-object .right{right:-95px}.cube-teach-object .left{left:-95px}.cube-teach-object .top,.cube-teach-object .bottom{width:190px;height:190px}.cube-teach-object .top{top:-95px}.cube-teach-object .bottom{bottom:-95px}.cube-teach-object .face{border:2px solid #bfe7ff;background:linear-gradient(135deg,#399cff,#1766dc);box-shadow:inset 0 0 32px #fff2,0 0 12px #3ba8ff33}.cube-dim{z-index:20;color:#fff;background:#0f55bd;border:2px solid #d9f3ff;border-radius:8px;padding:3px 10px;font-weight:900;font-size:20px;box-shadow:0 4px 12px #0005;pointer-events:none}.dim-front{left:76px;bottom:-35px}.dim-top{left:50%;top:-38px;transform:translateX(-50%)}.dim-side{right:-48px;top:50%;transform:translateY(-50%)}
.cube-unfold{position:absolute;width:400px;height:300px;left:50%;top:50%;transform:translate(-50%,-50%) scale(.25);opacity:0;z-index:18;transition:1.3s cubic-bezier(.16,.8,.2,1)}.net-square{position:absolute;width:78px;height:78px;left:161px;top:111px;box-sizing:border-box;border:2px solid #8ed7ff;background:linear-gradient(135deg,#dff5ff,#7bc5ff);box-shadow:0 0 18px #6dd3ff66,0 7px 20px #0005;color:#0d3c72;font-size:25px;font-weight:900;display:flex;align-items:center;justify-content:center;transition:1.35s cubic-bezier(.15,.8,.2,1);opacity:0}.net-center{opacity:1;transform:translate(0,0)}.net-top{transform:translate(0,0) rotateX(-90deg);transform-origin:bottom center}.net-bottom{transform:translate(0,0) rotateX(90deg);transform-origin:top center}.net-left{transform:translate(0,0) rotateY(90deg);transform-origin:right center}.net-right{transform:translate(0,0) rotateY(-90deg);transform-origin:left center}.net-back{transform:translate(0,0) rotateY(90deg);transform-origin:left center}
.cube-face-labels{position:absolute;left:50%;bottom:24px;transform:translateX(-50%) translateY(12px);opacity:0;z-index:22;background:#ffffffee;color:#7f123f;border-radius:999px;padding:8px 15px;font-weight:900;box-shadow:0 6px 18px #0004;transition:.6s}.cube-formula-reveal{position:absolute;left:50%;bottom:20px;transform:translateX(-50%) translateY(25px);opacity:0;z-index:24;display:flex;gap:15px;align-items:center;background:#fff;border:2px solid #be185d;border-radius:14px;padding:13px 18px;color:#172554;font-size:19px;font-weight:900;box-shadow:0 12px 30px #0005;white-space:nowrap;transition:.8s}.cube-formula-reveal b{color:#be185d;font-size:25px}
.cube-explanation-card{border-radius:18px;background:#fff;border:1px solid #ead5e0;box-shadow:0 10px 28px #7f123f12;padding:22px;align-self:center}.cube-explain-kicker{font-size:12px;font-weight:900;color:#be185d;letter-spacing:.12em}.cube-explanation-card h3{margin:8px 0 9px;color:#172554;font-size:22px}.cube-explanation-card p{margin:0;line-height:1.55;color:#4b5563;font-size:15px}.cube-equation-chip{margin-top:18px;padding:12px 14px;background:#fff1f7;border-left:4px solid #be185d;border-radius:10px;color:#8f164a;font-weight:900;font-size:16px}
.cube-controls{display:flex;justify-content:center;gap:10px;padding:0 20px 18px;position:relative;z-index:30}.cube-control{border:1px solid #d9c7d2;background:#fff;color:#172554;border-radius:11px;padding:11px 16px;font-weight:900;cursor:pointer}.cube-control.primary{background:#be185d;border-color:#be185d;color:#fff;box-shadow:0 7px 18px #be185d30}.cube-control:hover{transform:translateY(-1px)}
.cube-step-1 .cube-square-base{opacity:1;transform:translate(-30px,0) scale(1.05)}
.cube-step-2 .cube-square-base{opacity:.18;transform:translate(-100px,40px) scale(.85)}.cube-step-2 .cube-depth-line{opacity:1}
.cube-step-3 .cube-square-base,.cube-step-3 .cube-depth-line{opacity:0}.cube-step-3 .cube-teach-object{opacity:1;transform:rotateX(-18deg) rotateY(-32deg) scale(1)}.cube-step-3 .cube-teach-object{animation:cubeModelTurn 2.2s ease-in-out 1}
.cube-step-4 .cube-teach-object{opacity:.18;transform:rotateX(-8deg) rotateY(-18deg) scale(.72)}.cube-step-4 .cube-unfold{opacity:1;transform:translate(-50%,-50%) scale(1)}.cube-step-4 .net-square{opacity:1}.cube-step-4 .net-top{transform:translate(0,-80px) rotateX(0)}.cube-step-4 .net-bottom{transform:translate(0,80px) rotateX(0)}.cube-step-4 .net-left{transform:translate(-80px,0) rotateY(0)}.cube-step-4 .net-right{transform:translate(80px,0) rotateY(0)}.cube-step-4 .net-back{transform:translate(160px,0) rotateY(0)}
.cube-step-5 .cube-teach-object{opacity:0;transform:scale(.45)}.cube-step-5 .cube-unfold{opacity:1;transform:translate(-50%,-50%) scale(1.08)}.cube-step-5 .net-square{opacity:1;background:linear-gradient(135deg,#fff,#dff5ff);border-color:#0c7fc1;box-shadow:0 7px 20px #178bd044}.cube-step-5 .cube-face-labels{opacity:1;transform:translateX(-50%) translateY(0)}.cube-step-5 .cube-formula-reveal{opacity:1;transform:translateX(-50%) translateY(0)}
@keyframes cubeModelTurn{0%{transform:rotateX(-18deg) rotateY(-32deg) scale(1)}50%{transform:rotateX(-4deg) rotateY(25deg) scale(1.08)}100%{transform:rotateX(-18deg) rotateY(-32deg) scale(1)}}
@media(max-width:900px){.cube-main-visual{grid-template-columns:1fr}.cube-explanation-card{position:absolute;right:18px;top:170px;width:250px;z-index:28}.cube-visual-board{min-height:425px}.cube-step-btn{min-width:80px;padding:7px}.cube-step-btn span{display:none}.cube-step-nav{gap:4px}.cube-formula-reveal{font-size:14px}.cube-formula-reveal b{font-size:19px}}
@media(max-width:650px){.cube-mode .visual-stage,.cube-mode .shape-scene,.cube-teach-stage{min-height:600px;height:600px}.cube-step-nav{overflow-x:auto;justify-content:flex-start;padding:0 10px}.cube-main-visual{height:405px;padding:12px}.cube-explanation-card{right:12px;top:145px;width:210px;padding:14px}.cube-explanation-card h3{font-size:18px}.cube-explanation-card p{font-size:13px}.cube-control{padding:9px 10px;font-size:12px}.cube-formula-reveal{bottom:12px;max-width:92%;font-size:11px;padding:10px}.cube-formula-reveal b{font-size:16px}.net-square{width:64px;height:64px;left:168px;top:118px;font-size:20px}.cube-step-4 .net-top{transform:translate(0,-65px)}.cube-step-4 .net-bottom{transform:translate(0,65px)}.cube-step-4 .net-left{transform:translate(-65px,0)}.cube-step-4 .net-right{transform:translate(65px,0)}.cube-step-4 .net-back{transform:translate(130px,0)}}

/* v1.0.8 — Cube teaching animation redesigned to match the ARSH Academy infographic reference */
.cube-teach-stage{width:100%;height:700px;min-height:700px;position:relative;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#fff7fb 100%);border:1px solid #ead5e0;border-radius:22px;box-sizing:border-box}
.cube-lesson-top{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid #ead5e0;background:rgba(255,255,255,.97);position:relative;z-index:50}
.cube-stage-title{font-size:25px;font-weight:900;color:#13265b}.cube-stage-title span{color:#be185d}.cube-stage-counter{font-weight:900;color:#9d174d;background:#fce7f3;border-radius:999px;padding:9px 16px}
.cube-step-nav{height:72px;display:flex;align-items:center;justify-content:center;gap:10px;background:#fbf5f8;border-bottom:1px solid #ead5e0;position:relative;z-index:50}.cube-step-nav i{font-style:normal;font-size:24px;color:#9ca3af;font-weight:900}.cube-step-btn{border:1px solid #e2d5de;background:#fff;border-radius:15px;min-width:128px;padding:9px 13px;display:flex;align-items:center;gap:9px;justify-content:center;cursor:pointer;color:#172554;font-weight:900;transition:.2s;box-shadow:0 3px 10px #7f123f12}.cube-step-btn b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eee5eb;color:#7f123f}.cube-step-btn.active{border-color:#be185d;background:#fff0f6;box-shadow:0 7px 20px #be185d24;color:#9d174d}.cube-step-btn.active b{background:#be185d;color:#fff}
.cube-main-visual{height:500px;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;padding:18px 20px 12px;box-sizing:border-box}.cube-visual-board{position:relative;min-width:0;height:470px;border-radius:20px;overflow:hidden;background:radial-gradient(circle at 50% 28%,#304c9d 0%,#1c285f 48%,#10162f 100%);box-shadow:inset 0 -55px 90px #070a20cc;perspective:1800px}.cube-visual-board:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 18%,#fff3,transparent 28%),radial-gradient(circle at 78% 68%,#ff4f9b18,transparent 35%);pointer-events:none;z-index:2}.cube-glow{position:absolute;width:460px;height:460px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#57b7ff24 0%,transparent 66%);filter:blur(8px)}
.cube-grid-floor{position:absolute;left:-10%;right:-10%;bottom:-55px;height:210px;background:repeating-linear-gradient(90deg,#ffffff17 0 1px,transparent 1px 46px),repeating-linear-gradient(0deg,#ffffff17 0 1px,transparent 1px 46px);transform:perspective(420px) rotateX(62deg);transform-origin:center bottom;opacity:.75;z-index:3}
.cube-square-base{z-index:10;width:260px;height:260px;left:38%;top:49%;margin:-130px 0 0 -130px;border:4px solid #ff9ac5;background:linear-gradient(135deg,#ff86b4,#c51861);box-shadow:0 0 42px #ff5a9d77,0 25px 40px #0006;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;position:absolute;transition:1s cubic-bezier(.2,.8,.2,1);border-radius:3px}.cube-square-base span{font-size:38px;font-weight:1000;background:#8e1244;padding:8px 17px;border-radius:12px;box-shadow:0 5px 15px #0004}.cube-square-base small{margin-top:12px;font-size:15px;font-weight:800;opacity:.95}
.cube-depth-line{z-index:12;position:absolute;left:calc(38% - 130px);top:calc(49% - 130px);width:260px;height:260px;border-top:4px dashed #ffcfdf;border-right:4px dashed #ffcfdf;opacity:0;transition:opacity .5s;color:#fff;font-size:17px;font-weight:900}.cube-depth-line span{position:absolute;right:-36px;top:-39px;background:#be185d;border:2px solid #fff;padding:7px 11px;border-radius:9px;white-space:nowrap}
.cube-teach-object{position:absolute!important;left:39%;top:49%;margin:-155px 0 0 -155px;width:310px;height:310px;z-index:15;opacity:0;transform:rotateX(-18deg) rotateY(-32deg) scale(.15);transition:1.1s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 30px 26px #0008)}.cube-teach-object .front,.cube-teach-object .back{width:310px;height:310px}.cube-teach-object .front{transform:translateZ(155px)}.cube-teach-object .back{transform:rotateY(180deg) translateZ(155px)}.cube-teach-object .right,.cube-teach-object .left{width:310px;height:310px}.cube-teach-object .right{right:-155px}.cube-teach-object .left{left:-155px}.cube-teach-object .top,.cube-teach-object .bottom{width:310px;height:310px}.cube-teach-object .top{top:-155px}.cube-teach-object .bottom{bottom:-155px}.cube-teach-object .face{border:3px solid #d9f5ff;background:linear-gradient(135deg,#43a8ff,#1558d2);box-shadow:inset 0 0 38px #fff2,0 0 15px #3ba8ff55}
.cube-dim{z-index:20;color:#fff;background:#0b5fc7;border:2px solid #d9f3ff;border-radius:9px;padding:5px 12px;font-weight:1000;font-size:28px;box-shadow:0 5px 14px #0006;pointer-events:none}.dim-front{left:126px;bottom:-48px}.dim-top{left:50%;top:-50px;transform:translateX(-50%)}.dim-side{right:-65px;top:50%;transform:translateY(-50%)}
.cube-arrow-label{position:absolute;z-index:14;color:#ffe45d;font-size:36px;font-weight:1000;text-shadow:0 2px 8px #000;opacity:0;transition:.5s}.cube-arrow-a-front{left:31%;bottom:46px}.cube-arrow-a-side{left:55%;bottom:68px}.cube-arrow-a-height{left:66%;top:88px}.cube-arrow-label:before{content:"↔";font-size:22px;margin-right:5px}.cube-arrow-a-height:before{content:"↕"}
.cube-unfold{position:absolute;width:600px;height:430px;left:52%;top:48%;transform:translate(-50%,-50%) scale(.1);opacity:0;z-index:18;transition:1s cubic-bezier(.12,.82,.2,1)}.net-square{position:absolute;width:108px;height:108px;left:246px;top:160px;box-sizing:border-box;border:3px solid #b9edff;background:linear-gradient(135deg,#dff7ff,#77c9ff);box-shadow:0 0 22px #6dd3ff77,0 10px 24px #0006;color:#0b3f73;font-size:33px;font-weight:1000;display:flex;align-items:center;justify-content:center;transition:transform 1.05s cubic-bezier(.15,.8,.2,1),opacity .55s,box-shadow .4s,background .4s;opacity:0;border-radius:4px}.net-center{opacity:1}.net-top{transform:translate(0,0) rotateX(-90deg);transform-origin:bottom center}.net-bottom{transform:translate(0,0) rotateX(90deg);transform-origin:top center}.net-left{transform:translate(0,0) rotateY(90deg);transform-origin:right center}.net-right{transform:translate(0,0) rotateY(-90deg);transform-origin:left center}.net-back{transform:translate(0,0) rotateY(90deg);transform-origin:left center}
.net-caption{position:absolute;left:50%;bottom:18px;transform:translate(-50%,20px);opacity:0;z-index:22;background:#fff;color:#7f123f;border:2px solid #be185d;border-radius:999px;padding:9px 17px;font-weight:1000;box-shadow:0 8px 20px #0005;transition:.6s}.cube-formula-reveal{position:absolute;left:50%;bottom:72px;transform:translate(-50%,25px);opacity:0;z-index:25;display:flex;gap:15px;align-items:center;background:#fff;border:3px solid #be185d;border-radius:15px;padding:15px 20px;color:#172554;font-size:21px;font-weight:1000;box-shadow:0 14px 34px #0006;white-space:nowrap;transition:.8s}.cube-formula-reveal b{color:#be185d;font-size:30px}.cube-formula-title{position:absolute;left:50%;top:30px;transform:translateX(-50%) translateY(-10px);opacity:0;z-index:25;background:#be185d;color:#fff;padding:8px 18px;border-radius:999px;font-size:17px;font-weight:1000;box-shadow:0 8px 18px #0005;transition:.6s}
.cube-explanation-card{border-radius:20px;background:#fff;border:1px solid #ead5e0;box-shadow:0 12px 30px #7f123f16;padding:24px;align-self:center}.cube-explain-kicker{font-size:13px;font-weight:1000;color:#be185d;letter-spacing:.12em}.cube-explanation-card h3{margin:9px 0 10px;color:#172554;font-size:24px;line-height:1.2}.cube-explanation-card p{margin:0;line-height:1.6;color:#4b5563;font-size:16px}.cube-equation-chip{margin-top:20px;padding:14px;background:#fff1f7;border-left:5px solid #be185d;border-radius:10px;color:#8f164a;font-weight:1000;font-size:18px}
.cube-controls{display:flex;justify-content:center;gap:10px;padding:0 20px 18px;position:relative;z-index:50}.cube-control{border:1px solid #d9c7d2;background:#fff;color:#172554;border-radius:11px;padding:11px 17px;font-weight:1000;cursor:pointer}.cube-control.primary{background:#be185d;border-color:#be185d;color:#fff;box-shadow:0 8px 20px #be185d35}.cube-control:hover{transform:translateY(-1px)}
.cube-step-1 .cube-square-base{opacity:1;transform:translate(-15px,0) scale(1.05)}.cube-step-1 .cube-arrow-label{opacity:1}.cube-step-1 .cube-arrow-a-side,.cube-step-1 .cube-arrow-a-height{opacity:.45}
.cube-step-2 .cube-square-base{opacity:.12;transform:translate(-80px,48px) scale(.82)}.cube-step-2 .cube-depth-line{opacity:1}.cube-step-2 .cube-arrow-label{opacity:1}.cube-step-2 .cube-arrow-a-front{opacity:.5}
.cube-step-3 .cube-square-base,.cube-step-3 .cube-depth-line{opacity:0}.cube-step-3 .cube-teach-object{opacity:1;transform:rotateX(-17deg) rotateY(-30deg) scale(1)}.cube-step-3 .cube-arrow-label{opacity:0}.cube-step-3 .cube-teach-object{animation:cubeModelTurn 3s ease-in-out 1}.cube-step-3 .cube-dim{opacity:1}
.cube-step-4 .cube-teach-object{opacity:.16;transform:rotateX(-7deg) rotateY(-15deg) scale(.55)}.cube-step-4 .cube-unfold{opacity:1;transform:translate(-50%,-50%) scale(1)}.cube-step-4 .net-square{opacity:1}.cube-step-4 .net-top{transform:translate(0,-108px) rotateX(0);transition-delay:.12s}.cube-step-4 .net-bottom{transform:translate(0,108px) rotateX(0);transition-delay:.32s}.cube-step-4 .net-left{transform:translate(-108px,0) rotateY(0);transition-delay:.52s}.cube-step-4 .net-right{transform:translate(108px,0) rotateY(0);transition-delay:.72s}.cube-step-4 .net-back{transform:translate(216px,0) rotateY(0);transition-delay:.92s}
.cube-step-5 .cube-teach-object{opacity:0;transform:scale(.35)}.cube-step-5 .cube-unfold{opacity:1;transform:translate(-50%,-50%) scale(1.08)}.cube-step-5 .net-square{opacity:1;background:linear-gradient(135deg,#ffffff,#dff5ff);border-color:#1687c7;box-shadow:0 8px 22px #178bd055}.cube-step-5 .net-top{transform:translate(0,-108px) rotateX(0)}.cube-step-5 .net-bottom{transform:translate(0,108px) rotateX(0)}.cube-step-5 .net-left{transform:translate(-108px,0) rotateY(0)}.cube-step-5 .net-right{transform:translate(108px,0) rotateY(0)}.cube-step-5 .net-back{transform:translate(216px,0) rotateY(0)}.cube-step-5 .net-caption,.cube-step-5 .cube-formula-reveal,.cube-step-5 .cube-formula-title{opacity:1}.cube-step-5 .net-caption{transform:translate(-50%,0)}.cube-step-5 .cube-formula-reveal{transform:translate(-50%,0)}.cube-step-5 .cube-formula-title{transform:translateX(-50%) translateY(0)}
@keyframes cubeModelTurn{0%{transform:rotateX(-17deg) rotateY(-30deg) scale(1)}45%{transform:rotateX(-4deg) rotateY(28deg) scale(1.08)}100%{transform:rotateX(-17deg) rotateY(-30deg) scale(1)}}
@media(max-width:900px){.cube-main-visual{grid-template-columns:1fr}.cube-explanation-card{position:absolute;right:18px;top:165px;width:255px;z-index:35}.cube-visual-board{height:470px}.cube-step-btn{min-width:86px}.cube-step-btn span{display:none}}
@media(max-width:650px){.cube-mode .visual-stage,.cube-mode .shape-scene,.cube-teach-stage{min-height:620px;height:620px}.cube-lesson-top{height:58px;padding:0 12px}.cube-stage-title{font-size:17px}.cube-stage-counter{padding:6px 9px;font-size:11px}.cube-step-nav{height:58px;overflow-x:auto;justify-content:flex-start;padding:0 8px}.cube-step-btn{min-width:70px;padding:6px 8px}.cube-step-nav i{font-size:17px}.cube-main-visual{height:450px;padding:10px}.cube-visual-board{height:430px}.cube-teach-object{width:230px;height:230px;margin:-115px 0 0 -115px;left:40%}.cube-teach-object .front,.cube-teach-object .back,.cube-teach-object .right,.cube-teach-object .left,.cube-teach-object .top,.cube-teach-object .bottom{width:230px;height:230px}.cube-teach-object .front{transform:translateZ(115px)}.cube-teach-object .back{transform:rotateY(180deg) translateZ(115px)}.cube-teach-object .right{right:-115px}.cube-teach-object .left{left:-115px}.cube-teach-object .top{top:-115px}.cube-teach-object .bottom{bottom:-115px}.cube-square-base{width:190px;height:190px;margin:-95px 0 0 -95px}.cube-depth-line{width:190px;height:190px;left:calc(40% - 95px);top:calc(49% - 95px)}.cube-unfold{width:430px;height:330px}.net-square{width:72px;height:72px;left:179px;top:129px;font-size:22px}.cube-step-4 .net-top,.cube-step-5 .net-top{transform:translate(0,-72px)}.cube-step-4 .net-bottom,.cube-step-5 .net-bottom{transform:translate(0,72px)}.cube-step-4 .net-left,.cube-step-5 .net-left{transform:translate(-72px,0)}.cube-step-4 .net-right,.cube-step-5 .net-right{transform:translate(72px,0)}.cube-step-4 .net-back,.cube-step-5 .net-back{transform:translate(144px,0)}.cube-formula-reveal{bottom:60px;max-width:94%;font-size:12px;padding:9px;gap:7px}.cube-formula-reveal b{font-size:18px}.cube-formula-title{top:12px;font-size:13px}.cube-explanation-card{right:10px;top:118px;width:190px;padding:12px}.cube-explanation-card h3{font-size:17px}.cube-explanation-card p{font-size:12px}.cube-equation-chip{font-size:13px;padding:9px}.cube-control{padding:8px 9px;font-size:11px}.cube-arrow-label{font-size:25px}.cube-arrow-a-front{left:22%;bottom:35px}.cube-arrow-a-side{left:54%;bottom:45px}.cube-arrow-a-height{left:67%;top:72px}}
