@charset "UTF-8";
:root{font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:#242822;background:#f7f6f2;font-synthesis:none;--green:#365c47;--muted:#777d75;--line:#e4e4dc;--soft:#edf1eb;--orange:#d78c49}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #9db6a4;outline-offset:4px}button{transition:background .15s,border-color .15s,box-shadow .15s}a{color:var(--green)}.header{height:79px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:28px;padding:0 38px}.brand{display:flex;align-items:center;gap:17px;text-decoration:none;color:#242822;white-space:nowrap}.brand svg{width:32px;height:36px}.brand span{font-size:27px;font-weight:700;letter-spacing:3px}.tagline{border-left:1px solid #c8ccc3;padding-left:27px;font-size:14px;letter-spacing:.7px}.header>.text-button{margin-left:auto}main{max-width:1600px;margin:auto;padding:0 28px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:26px 7px 25px}.heading-left{display:flex;align-items:center;gap:27px}h1{font-size:32px;letter-spacing:1px;line-height:1.25;margin:0}h2{font-size:19px;line-height:1.5;letter-spacing:.2px;margin:0}h3{font-size:17px}p{line-height:1.8}#method-label{font-size:12px;color:var(--muted);letter-spacing:1px;margin:0}.segmented{display:flex;padding:3px;border:1px solid #d5d9d0;background:#efeee9;border-radius:30px}.segmented button{border:0;border-radius:25px;padding:8px 23px;background:transparent;font-size:14px;font-weight:600}.segmented button[aria-pressed=true]{background:var(--green);color:white;box-shadow:0 2px 4px #213d2820}.workspace{display:grid;grid-template-columns:minmax(255px,.94fr) minmax(350px,1.4fr) minmax(285px,1fr);gap:17px;align-items:stretch}.panel{border:1px solid var(--line);border-radius:7px;background:#ffffff66;min-width:0}.input-panel,.teaching-panel{padding:24px 20px}.section-number{color:var(--green);font-size:24px;font-variant-numeric:tabular-nums;margin-right:5px}.muted{color:var(--muted)}.intro{font-size:12px;margin:10px 0 22px;line-height:1.9}.palette{display:flex;justify-content:space-between;gap:5px;border-bottom:1px solid var(--line);padding-bottom:18px}.swatch{border:0;background:transparent;padding:0;min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px}.swatch-dot{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #0002;border-radius:50%;box-shadow:inset 0 0 0 3px #ffffff35;color:#1f3329;font-weight:700;font-size:17px}.swatch[aria-pressed=true] .swatch-dot{outline:2px solid var(--green);outline-offset:3px}.swatch-count{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.swatch-count.over{color:#ab4236}.net-wrap{display:flex;align-items:center;justify-content:center;min-height:285px;margin-top:7px;padding:5px 0}.net{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:100%;max-width:330px;user-select:none}.net-face{min-width:0}.face-U{grid-column:2;grid-row:1}.face-L{grid-column:1;grid-row:2}.face-F{grid-column:2;grid-row:2}.face-R{grid-column:3;grid-row:2}.face-B{grid-column:4;grid-row:2}.face-D{grid-column:2;grid-row:3}.face-label{text-align:center;font-size:10px;color:#555e54;margin:0 0 5px}.face-D .face-label{margin:5px 0 0}.stickers{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:2px}.paint-cell{aspect-ratio:1;border:1px solid #2b352b70;border-radius:3px;padding:0;position:relative;min-width:0}.paint-cell:not(:disabled):hover{box-shadow:0 0 0 2px var(--green);z-index:1}.paint-cell:disabled{opacity:1}.paint-cell:disabled:after{content:"·";position:absolute;inset:0;display:grid;place-items:center;color:#24352766}.empty-cell{background:repeating-linear-gradient(135deg,#dedfd6,#dedfd6 3px,#f2f1ed 3px,#f2f1ed 7px)}.input-actions{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:9px 0 12px}.text-button{border:0;background:transparent;font-size:12px;padding:5px 0;white-space:nowrap}.text-button:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}.validation{background:var(--soft);min-height:78px;padding:12px;border-radius:5px;font-size:11px;line-height:1.9;color:var(--green);margin-top:8px}.validation strong{font-size:12px;display:block;margin-bottom:2px}.validation.error{background:#f7ebe5;color:#9e4d3c}.validation p{margin:0}.primary{background:var(--green);color:#fff;border:1px solid var(--green);border-radius:5px;min-height:49px;font-weight:600;font-size:15px}.primary:hover:not(:disabled){background:#284c39}.solve-button{width:100%;margin-top:18px;display:flex;align-items:center;justify-content:center;gap:20px}.local-note{font-size:10px;color:var(--muted);text-align:center;margin:11px 0 0}.viewer-panel{display:flex;flex-direction:column;overflow:hidden;background-color:#f7f7f2;background-image:linear-gradient(#43533b04 1px,transparent 1px),linear-gradient(90deg,#43533b04 1px,transparent 1px);background-size:29px 29px;padding:17px 22px 21px}.viewer-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.viewer-top .text-button{font-size:10px}.scene{position:relative;min-height:369px;flex:1;perspective:1100px;touch-action:none;cursor:grab;isolation:isolate}.scene:active{cursor:grabbing}.cube{position:absolute;left:50%;top:49%;width:0;height:0;transform-style:preserve-3d;transform:rotateX(-24deg) rotateY(-34deg);will-change:transform}.slice,.cubie{position:absolute;width:0;height:0;transform-style:preserve-3d}.tile{position:absolute;backface-visibility:hidden;border:3px solid #27332b;border-radius:7px;background:#27332b;box-shadow:inset 0 0 0 1px #ffffff18}.tile.inner{border-radius:2px;box-shadow:none}.slice.active .tile:not(.inner){filter:brightness(1.07);box-shadow:inset 0 0 0 1.5px #fff9}.cube-shadow{position:absolute;width:220px;height:40px;border-radius:50%;background:#27352823;filter:blur(18px);left:50%;top:82%;transform:translateX(-50%);z-index:-1}.axis-label{position:absolute;color:#698471;font-size:11px;letter-spacing:1px;pointer-events:none}.axis-top{top:12px;left:50%;transform:translateX(-50%)}.axis-front{bottom:47px;left:13px}.axis-right{top:44%;right:0}.drag-hint{position:absolute;bottom:0;width:100%;text-align:center;color:#8b9187;font-size:10px}.transport{display:flex;align-items:center;justify-content:center;gap:15px;margin:25px 0 18px}.circle{width:39px;height:39px;border-radius:50%;border:1px solid #cdd1c7;background:#fafaf6;font-size:14px;display:grid;place-items:center;padding:0}.circle:not(:disabled):hover{background:#e7eee3;border-color:#8fa391}.circle.play-button{width:49px;height:49px;background:var(--green);color:white;border-color:var(--green);font-size:18px}.circle.play-button:hover:not(:disabled){background:#254631}.speed-row{display:flex;gap:14px;align-items:center;font-size:10px;color:#6c766a;max-width:335px;width:100%;margin:0 auto 19px}.speed-row input{flex:1;min-width:0}.speed-row output{width:30px;text-align:right}.timeline-label{display:flex;justify-content:space-between;gap:10px;font-size:10px;margin-bottom:7px;color:#5f6c5d}#step-count{font-variant-numeric:tabular-nums;white-space:nowrap}input[type=range]{accent-color:var(--green);height:4px;cursor:pointer}#progress{width:100%;margin:0;height:5px}.move-strip{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;min-height:39px;margin-top:17px;max-height:84px;overflow:auto;padding:2px}.move-chip{border:1px solid #d7dcd1;background:#fafaf7;border-radius:4px;min-width:32px;height:29px;padding:0 7px;font:600 12px ui-monospace,Consolas,monospace}.move-chip.current{background:var(--green);color:white;border-color:var(--green)}.move-chip.done{color:#84907e;background:#eceee7}.play-note{font-size:10px;color:var(--muted);text-align:center;margin:9px 0 0;min-height:18px}.teaching-panel{display:flex;flex-direction:column}.stages{flex:1}.stage{border-bottom:1px solid var(--line)}.stage:last-child{border-bottom:0}.stage-heading{border:0;background:transparent;padding:12px 0;display:flex;gap:12px;align-items:center;width:100%;text-align:left;font-size:13px;font-weight:600}.stage-num{width:28px;height:28px;border:1px solid #dadfd4;border-radius:50%;background:#f2f2eb;display:grid;place-items:center;font-size:12px;flex-shrink:0}.stage.done .stage-num{color:var(--green);background:#e7eee3;border-color:#d0dccd}.stage-arrow{margin-left:auto;color:#8d9588;font-size:12px}.stage.active{background:#eaf0e8;border-radius:5px;border:0;padding:0 12px 13px;margin-bottom:2px}.stage.active .stage-num{background:var(--green);border-color:var(--green);color:white}.stage-body{font-size:13px;line-height:1.9;padding-left:39px;color:#56644f}.stage-body p{margin:0 0 12px;line-height:1.9}.goal-box{padding:9px 11px;background:#ffffff80;border-radius:3px;border-left:2px solid var(--orange);margin-bottom:12px}.goal-box strong{display:block;font-size:12px;color:var(--green);margin-bottom:3px}.current-move{border-top:1px solid #cfdbca;padding-top:12px;margin-top:9px;color:var(--green)}.current-move strong{font-size:12px;display:block;margin-bottom:7px}.move-detail{display:flex;align-items:flex-start;gap:9px;font-size:11px}.move-detail kbd{background:#fafbf7;border:1px solid #c4cfbd;padding:6px 9px;font-size:15px;border-radius:4px;color:#283728;white-space:nowrap}.formula-note{font-size:11px;color:#7c8777}.export-button{align-self:flex-start;margin:14px 0 0;color:var(--green)}.notation{display:flex;gap:18px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);border-radius:6px;padding:14px 18px;margin-top:16px;background:#ffffff50;font-size:11px;color:#727a6d}.notation strong{color:#333e2d;font-size:12px}.notation>span{display:flex;align-items:center;gap:8px}.notation kbd{background:#fbfaf6;border:1px solid var(--line);border-radius:4px;min-width:28px;text-align:center;padding:4px;font:600 12px ui-monospace,monospace;color:#2c3627}.notation p{width:100%;margin:0;font-size:10px}.all-steps{margin-top:16px;border:1px solid var(--line);border-radius:6px;padding:15px 18px;background:#ffffff50}.all-steps summary{cursor:pointer;font-size:12px;font-weight:600}.all-steps summary span{float:right;font-size:10px;color:var(--muted);font-weight:400}.lesson-stage{margin-top:22px;padding-top:12px;border-top:1px solid var(--line)}.lesson-stage h3{font-size:14px}.lesson-group{margin-bottom:14px;font-size:13px;color:#68745f;line-height:1.9}.lesson-group p{margin:0 0 6px}.lesson-group code{font-size:12px;color:var(--green);word-break:break-word}.lesson-group ol{margin:7px 0 0;padding-left:24px}.lesson-group details{margin-top:7px}.lesson-group summary{font-size:10px;font-weight:400}footer{display:flex;align-items:center;gap:10px;color:#8b9284;font-size:10px;padding:22px 3px 26px}footer>span{color:#b8bdaf}.keyboard-note{margin-left:auto;color:#8b9284}dialog{border:1px solid #d6dccc;border-radius:9px;max-width:620px;width:calc(100% - 36px);padding:28px;color:#33422b;background:#fafaf5;box-shadow:0 20px 80px #13220e25}dialog::backdrop{background:#17230e70;backdrop-filter:blur(3px)}dialog p{font-size:13px;line-height:1.9}.dialog-top{display:flex;justify-content:space-between;gap:20px;align-items:center}dialog h3{margin-top:25px}body.busy #solve{opacity:.7}.busy #solve:after{content:"";height:13px;width:13px;border:2px solid #fff5;border-top-color:white;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1450px){.input-panel,.teaching-panel{padding:26px}.intro{font-size:13px}.net-wrap{min-height:320px}.swatch-dot{width:40px;height:40px}.scene{min-height:430px}.stage-heading{font-size:14px;padding:14px 0}.stage-body{font-size:12px}.page-heading{padding-top:30px;padding-bottom:28px}.panel{border-radius:8px}}
@media(max-width:1100px){main{padding:0 16px}.header{padding:0 23px}.workspace{gap:10px;grid-template-columns:minmax(225px,.9fr) minmax(300px,1.2fr) minmax(240px,1fr)}.input-panel,.teaching-panel{padding:18px 13px}h2{font-size:16px}.section-number{font-size:21px}.viewer-panel{padding:13px}.transport{gap:10px}.stage-body{padding-left:0}.stage-heading{gap:8px;font-size:12px}.stage.active{padding:0 9px 10px}.scene{min-height:345px}.cube{scale:.88}.axis-right{right:-5px}.swatch-dot{width:29px;height:29px}.net-wrap{min-height:263px}}
@media(max-width:850px){.header{height:66px;gap:18px}.tagline{font-size:11px;padding-left:18px}.brand{gap:11px}.brand span{font-size:23px}.brand svg{width:27px;height:32px}.workspace{grid-template-columns:minmax(240px,.85fr) minmax(330px,1.15fr);gap:14px}.teaching-panel{grid-column:1/-1}.stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:0 20px}.stage.active{grid-column:1/-1}.stage.active .stage-body{padding-left:39px}.teaching-panel .intro{margin-bottom:10px}.scene{min-height:360px}.cube{scale:.95}.net-wrap{min-height:290px}.page-heading{padding:23px 0}h1{font-size:28px}#method-label{font-size:10px;letter-spacing:0}.segmented button{padding:7px 17px}.heading-left{gap:18px}.notation{gap:13px}}
@media(max-width:600px){.header{padding:0 17px;gap:0}.tagline{display:none}.header>.text-button{font-size:11px}.brand span{font-size:22px}main{padding:0 12px}.page-heading{align-items:flex-start;padding:21px 3px;flex-direction:column;gap:9px}.heading-left{width:100%;justify-content:space-between}h1{font-size:27px}#method-label{font-size:10px}.workspace{grid-template-columns:minmax(0,1fr);gap:13px}.input-panel,.teaching-panel{padding:20px}.input-panel{display:flex;flex-direction:column}.net-wrap{min-height:285px;margin:8px 0;}.palette{margin-top:0;justify-content:flex-start;gap:12px}.swatch{flex:1}.swatch-dot{width:35px;height:35px}.intro{margin-bottom:20px}.net{max-width:320px;gap:9px}.paint-cell{min-height:0}.viewer-panel{min-height:570px;padding:18px}.scene{min-height:350px}.cube{scale:.95}.axis-front{left:10px}.axis-right{right:4px}.transport{gap:19px;margin:25px 0 18px}.teaching-panel{grid-column:auto}.stages{display:block}.stage-heading{font-size:14px;padding:13px 0}.stage.active .stage-body{padding-left:0;font-size:12px}.stage.active{padding:0 13px 14px}.stage-body{font-size:12px}.notation{gap:12px;padding:14px}.notation strong{width:100%}.notation p{line-height:1.9}.all-steps summary span{float:none;display:block;margin:6px 0 0 15px}.keyboard-note{display:none}footer{font-size:10px;gap:6px}.current-move .move-detail{font-size:12px}.scene-status{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.busy #solve:after{animation:none}}

.tile.focused:not(.inner){box-shadow:inset 0 0 0 2px #f5d79a,inset 0 0 12px #e7ba5926}.slice.active .tile.focused:not(.inner){box-shadow:inset 0 0 0 2px #f5d79a}
.scene,.scene *{-webkit-user-select:none;user-select:none}
