:root{font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#29352f;background:#f5f3ee;font-synthesis:none;--green:#34c6a5;--red:#e95865;--ink:#29352f;--muted:#7d827a;--line:#e8e7df;--accent:#28735d}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button,a,input{touch-action:manipulation}button{transition:background .18s,transform .18s,opacity .18s}button:not(:disabled):active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #60ab94;outline-offset:4px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-library{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}
.app-shell{max-width:1400px;margin:auto;padding:0 56px}.topbar{height:103px;display:flex;align-items:center;border-bottom:1px solid #dfdfd4;gap:24px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink);font-size:18px;font-weight:650;letter-spacing:1px}.brand-icon{display:grid;place-items:center;width:44px;height:44px;background:#e4eadc;border:1px solid #d5dfcc;border-radius:13px;color:#386b4b}.brand-icon svg{width:27px;height:27px}.brand-en{display:block;font-size:9px;letter-spacing:3px;font-weight:500;color:#838a7b;margin-top:4px}.top-meta{margin-left:auto;font-size:11px;color:#858c81;display:flex;align-items:center;gap:9px;letter-spacing:1px}.online-dot,.live-dot{height:6px;width:6px;border-radius:50%;background:#72967d;display:inline-block}.version{margin-left:24px;font-size:10px;letter-spacing:1.5px;color:#a3a599}.icon-button{display:grid;place-items:center;width:32px;height:32px;border:1px solid #dddfd4;border-radius:50%;background:transparent;color:#6b7469;font-size:17px}.help-button{font-family:Georgia,serif;font-style:italic;font-weight:bold;margin-left:2px}.icon-button:hover{background:#e9ede3}main{padding-top:36px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#778777;display:flex;align-items:center;gap:8px}.eyebrow>span{width:17px;height:1px;background:#95a78e}h1{font-size:35px;line-height:1.4;font-weight:550;letter-spacing:1px;margin:12px 0 9px}h1 span{color:#8a9682}.intro p{font-size:12px;color:#919486;margin:0;letter-spacing:.5px}.cube-type{display:flex;flex-direction:column;text-align:right;gap:6px;font-size:10px;color:#989d90;letter-spacing:1px}.type-mark{font-size:26px;font-weight:300;color:#7f8976;letter-spacing:3px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:22px}.stage-card{position:relative;min-width:0;min-height:555px;border-radius:20px;border:1px solid #e0e5d8;overflow:hidden;background:radial-gradient(ellipse at 43% 40%,#f6f8ef 0%,#e9eee0 75%,#e3e9da 100%)}.stage-top{position:absolute;top:24px;left:25px;right:25px;display:flex;justify-content:space-between;align-items:center;z-index:2;pointer-events:none}.stage-label{font-size:11px;letter-spacing:1px;color:#788a72;display:flex;align-items:center;gap:8px}.status-badge{font-size:10px;color:#527357;background:#f7f9f0bc;border:1px solid #dbe4d3;border-radius:16px;padding:6px 11px;letter-spacing:.5px}.status-badge.busy{color:#957d44;background:#fff7e5ce;border-color:#e9dec4}#viewport{position:absolute;inset:20px 0 44px;touch-action:none;cursor:grab}#viewport:active{cursor:grabbing}#viewport canvas{display:block;width:100%;height:100%;outline:none}.loading{position:absolute;inset:0;display:grid;place-items:center;font-size:13px;color:#7a8c76;padding:40px;text-align:center;line-height:1.9;z-index:4;background:#edf1e4}.axis-legend{position:absolute;left:25px;bottom:88px;display:flex;gap:14px;font-size:10px;color:#7c8b74;pointer-events:none}.axis-legend span{display:flex;align-items:center;gap:5px}.axis-legend i{width:7px;height:7px;border-radius:2px;background:var(--face)}.view-button{position:absolute;right:21px;bottom:79px;display:flex;align-items:center;gap:6px;background:#f8faf2b3;border:1px solid #dae2d2;border-radius:8px;padding:8px 10px;font-size:10px;color:#77876d}.view-button svg{width:15px;height:15px}.view-button:hover{background:#fff}.stage-message{position:absolute;left:24px;right:24px;bottom:59px;text-align:center;font-size:10px;color:#7e8b77;letter-spacing:.4px;pointer-events:none}.stage-bottom{position:absolute;left:0;right:0;bottom:0;height:44px;border-top:1px solid #dce2d1;background:#e8eedfd1;display:flex;align-items:center;justify-content:center;gap:20px;font-size:10px;color:#8b9681}.stage-bottom span{display:flex;align-items:center;gap:6px}.mouse-icon{display:inline-block;border:1px solid #95a28a;width:9px;height:13px;border-radius:4px;position:relative}.mouse-icon:after{content:"";position:absolute;top:2px;left:3px;width:1px;height:3px;background:#95a28a}.drag-icon{font-size:16px;font-weight:400}
.controls-card{background:#fdfcf8;border:1px solid #e7e6df;border-radius:20px;padding:0 23px;min-width:0}.control-section{padding:22px 0}.control-section+.control-section{border-top:1px solid var(--line)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-heading h2{font-size:12px;letter-spacing:.7px;margin:0;font-weight:600}.section-index{font-family:monospace;color:#b9bdaf;font-size:10px}.button{border:1px solid #e2e6d9;border-radius:9px;min-height:42px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:500;color:#425a42;background:#f0f3e8}.scramble-button{width:100%;justify-content:flex-start;padding:0 14px;background:#edf1e4;border-color:#dfe5d4}.scramble-button:hover{background:#e4ead8}.button-note{margin-left:auto;font-size:10px;color:#8d9a82;font-weight:400}.button svg{width:17px;height:17px}.solve-row{display:flex;gap:9px;margin-top:10px}.primary-button{background:#2c755e;color:#fff;border-color:#2c755e;flex:1}.primary-button:hover{background:#215f4b}.primary-button svg{width:15px;height:15px}.step-button{background:#fffefa;flex:0 0 80px;color:#6e7969;border-color:#e3e6dc}.step-button:hover{background:#edf1e6}.speed-control{display:flex;align-items:center;gap:12px;margin-top:19px;font-size:10px;color:#969d8e}.speed-control label{flex-shrink:0}.speed-control input{min-width:0;width:100%;height:3px;accent-color:#7d9272;cursor:pointer}.speed-control output{width:31px;flex-shrink:0;font-family:monospace;color:#78886e;text-align:right}.direction-picker{display:flex;background:#f0f1eb;padding:3px;border-radius:8px;gap:2px;margin-bottom:12px}.direction-picker button{flex:1;min-height:29px;border:0;border-radius:6px;background:none;color:#a0a596;font-size:10px;white-space:nowrap;padding:4px}.direction-picker .selected{background:#fffefb;color:#526849;box-shadow:0 1px 4px #343e2710}.face-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.face-button{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #e4e6dc;border-radius:8px;background:#fdfdf9;min-height:40px;color:#4d5948}.face-button:hover{background:#f0f3e8;border-color:#b9c6ad}.face-button strong{font-size:15px;font-weight:550}.face-button small{font-size:10px;color:#979f8e}.face-button i{width:5px;height:5px;border-radius:50%;background:var(--face);position:absolute;top:6px;right:6px}.keyboard-tip{text-align:center;font-size:9px;color:#9da492;margin:15px 0 0;line-height:2}.keyboard-tip>span{font-size:9px;color:#b0b4a5}kbd{display:inline-block;font:9px "Segoe UI",sans-serif;border:1px solid #e5e8dc;border-radius:3px;min-width:14px;line-height:16px;padding:0 3px;background:#f7f8f1;margin-left:3px;color:#8b967e}.session-controls{padding-top:18px;padding-bottom:15px}.session-stats{display:flex;justify-content:space-between;gap:15px}.session-stats>div{display:flex;flex-direction:column;gap:7px}.session-stats span{color:#9ea491;font-size:9px}.session-stats strong{font-size:22px;font-weight:400;font-family:"Segoe UI",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.6px;color:#607353}.session-stats small{font-size:10px;color:#a3ac97;margin-left:4px;letter-spacing:0}.session-stats #timer{font-size:20px;padding-top:2px}.utility-row{display:flex;justify-content:space-between;margin-top:17px;gap:10px}.text-button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:26px;background:none;border:0;color:#8c977f;font-size:10px;padding:2px 0}.text-button svg{width:14px;height:14px}.text-button:hover{color:#365b3d}
.journey-card{margin-top:21px;border:1px solid #e5e6dc;border-radius:15px;background:#fcfbf6;padding:20px 24px 18px;position:relative;overflow:hidden}.journey-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.journey-heading>div:first-child{display:flex;align-items:center;gap:17px}.journey-heading .eyebrow{font-size:8px;letter-spacing:1.8px;color:#a2a88f}.journey-heading h2{font-size:12px;font-weight:500;margin:0;color:#64705b}.journey-right{font-size:10px;color:#a4ab96}.move-trail{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:45px;margin-top:9px;max-height:140px;overflow-y:auto}.trail-empty{display:flex;align-items:center;gap:12px;font-size:11px;color:#b0b5a4}.trail-empty svg{width:15px;height:15px;color:#a3ae96}.move-chip{font-family:"Segoe UI",sans-serif;font-size:12px;min-width:30px;height:29px;border:1px solid #e5e8dc;border-radius:5px;background:#f4f5ee;display:grid;place-items:center;color:#7d8b71;padding:0 7px}.move-chip.done{color:#afbaa3;background:#f1f4e9;border-color:#e7ecdc}.move-chip.next{background:#2c755e;border-color:#2c755e;color:white;box-shadow:0 2px 7px #2c755e20}.move-chip.pending{background:#fbfbf6;color:#8d9b7f}.solve-progress-track{position:absolute;bottom:0;left:0;right:0;height:3px;background:#e9ede0}.solve-progress-track>div{height:100%;background:#6e9a65;transition:width .2s}footer{display:flex;justify-content:space-between;align-items:center;padding:23px 2px 26px;font-size:9px;letter-spacing:1px;color:#a9ad9d}footer>span:last-child{font-size:8px;letter-spacing:1.4px;color:#b0b4a4}.footer-cross{margin:0 10px;color:#839677}dialog{border:1px solid #e1e7d7;border-radius:19px;max-width:480px;width:calc(100% - 36px);background:#fcfcf6;padding:28px;color:#68765c;box-shadow:0 20px 90px #22352025}dialog::backdrop{background:#20302655;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{font-size:21px;color:#3f573d;font-weight:500;margin:0}dialog p{font-size:12px;line-height:1.9}dialog dl{display:grid;grid-template-columns:1fr 2fr;gap:10px;font-size:12px;background:#f0f4e8;padding:15px;border-radius:9px}dialog dt{font-family:monospace}dialog dd{margin:0}dialog .primary-button{width:100%;margin-top:18px}.error-message{color:#9e5e49}
@media(min-width:1400px){main{padding-top:42px}.intro{margin-bottom:33px}.stage-card{min-height:580px}.control-section{padding-top:25px;padding-bottom:25px}.session-controls{padding-top:22px;padding-bottom:20px}}
@media(max-width:1050px){.app-shell{padding:0 28px}.workspace{gap:16px;grid-template-columns:minmax(0,1fr) 282px}.controls-card{padding:0 19px}h1{font-size:30px}.top-meta{font-size:10px}.version{display:none}.stage-bottom{gap:12px;font-size:9px}.axis-legend{gap:9px;left:18px}.stage-top{left:19px;right:19px}.journey-heading .eyebrow{display:none}}
@media(max-width:760px){.app-shell{padding:0 18px}.topbar{height:80px}.top-meta{display:none}.help-button{margin-left:auto}.brand{font-size:16px}.brand-icon{width:38px;height:38px}.brand-en{font-size:8px}.intro{margin-bottom:24px}main{padding-top:28px}h1{font-size:27px}.intro p{font-size:11px}.cube-type{display:none}.workspace{grid-template-columns:1fr}.stage-card{min-height:470px}.controls-card{display:grid;grid-template-columns:1fr 1fr;padding:0 20px;gap:0 24px}.control-section{padding:22px 0}.control-section+.control-section{border:0}.session-controls{grid-column:1/-1;border-top:1px solid var(--line)!important;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0}.session-stats{gap:25px}.utility-row{margin:0;gap:16px}.stage-bottom{font-size:10px;gap:18px}.stage-message{bottom:61px}.journey-card{padding:18px;margin-top:16px}.journey-right{font-size:9px}.trail-empty{font-size:10px;line-height:1.8}footer>span:last-child{font-size:7px;letter-spacing:.5px}}
@media(max-width:440px){.app-shell{padding:0 13px}.intro h1{font-size:24px}.eyebrow{font-size:8px}.stage-card{min-height:420px}.controls-card{gap:0 16px;padding:0 15px}.section-heading{margin-bottom:13px}.button{font-size:11px;gap:6px}.button-note{display:none}.step-button{flex-basis:58px;gap:4px}.step-button svg{width:13px}.speed-control{gap:6px;font-size:9px}.direction-picker button{font-size:9px}.face-controls{gap:6px}.face-button{gap:4px}.face-button strong{font-size:13px}.face-button small{font-size:9px}.session-controls{flex-wrap:wrap;gap:14px}.session-stats{flex:1;gap:16px;justify-content:space-between}.utility-row{width:100%;justify-content:space-between}.stage-bottom{gap:11px;font-size:9px}.view-button{right:15px;font-size:9px;bottom:81px}.axis-legend{left:17px;font-size:9px;gap:9px}.stage-message{font-size:9px}.journey-right{max-width:125px;text-align:right;line-height:1.5}footer{font-size:8px}footer>span:last-child{max-width:150px;text-align:right;line-height:1.8}.keyboard-tip{font-size:8px}kbd{margin-left:1px;font-size:8px;min-width:12px;padding:0 2px}}
@media(pointer:coarse){.face-button{min-height:44px}.direction-picker button{min-height:38px}.text-button{min-height:40px}.icon-button{min-width:40px;min-height:40px}.view-button{min-height:36px}}
.slice-caption{font-size:10px;color:#8b967e;margin:12px 0 7px}.slice-caption+.face-controls .face-button{background:#f2f5ed}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.selection-hint{position:absolute;top:53px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fbfdf4ee;border:1px solid #afc4aa;border-radius:20px;padding:8px 15px;font-size:11px;color:#3b644d;pointer-events:none;box-shadow:0 3px 15px #324f3410}
#viewport .selection-arrow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;stroke:none}.selection-arrow .turn-arc{fill:none;stroke:#286b53;stroke-width:2.5;stroke-linecap:round;filter:drop-shadow(0 1px 2px #fff)}
.journey-actions{display:flex;align-items:center;gap:16px;font-size:11px;color:#7d8b71}.replay-button{font-size:11px;min-height:32px;padding:0 14px}.history-tip{font-size:10px;color:#959e8a;margin:12px 0 0}.move-chip.future{border-style:dashed;color:#a4ac99;background:transparent}.move-trail button:not(:disabled):hover{border-color:#5f977d;background:#e1ecdc;color:#315d42}.move-trail button.next{color:#fff}.move-trail button:disabled{opacity:.7}.history-pages{display:flex;align-items:center;gap:18px;font-size:10px;color:#85917d;margin-top:8px}.save-row{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:#9ca590;margin-top:15px}.save-row>span:first-child:before{content:'●';font-size:7px;color:#7b9a70;margin-right:6px}#solution-progress{font-size:11px;color:#86947b}
@media(max-width:440px){.journey-actions{gap:8px;font-size:10px}.replay-button{padding:0 10px}.save-row{flex-direction:column;gap:6px}.history-tip{line-height:1.8}.selection-hint{font-size:10px;padding:7px 11px;top:52px}}
