*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}button{font-family:inherit}:root{--bg: hsl(0 0% 95%);--surface: hsl(0 0% 100%);--border: hsl(0 0% 86%);--text-primary: hsl(0 0% 10%);--text-secondary: hsl(0 0% 42%);--accent: hsl(45 95% 50%);--accent-hover: hsl(45 95% 44%);--sidebar-w: 300px}body{background:var(--bg);color:var(--text-primary);height:100dvh;overflow:hidden}#root{height:100dvh;display:flex;flex-direction:column}.app{display:flex;flex-direction:column;height:100%}.header{display:flex;align-items:center;gap:.5rem;padding:0 1.25rem;height:52px;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--border);z-index:10}.header-brand{display:flex;align-items:center;gap:.45rem;cursor:pointer;flex-shrink:0;text-decoration:none;transition:opacity .15s}.header-brand:hover{opacity:.65}.header-dot{width:10px;height:10px;background:var(--text-primary);border-radius:50%;flex-shrink:0}.header-fwt{font-size:.875rem;font-weight:700;letter-spacing:.02em;color:var(--text-primary);line-height:1}.header-badge{font-size:.6rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;border:1.5px solid var(--border);border-radius:4px;padding:.18rem .5rem;color:var(--text-secondary);line-height:1;flex-shrink:0}.header-sep{width:1px;height:18px;background:var(--border);flex-shrink:0;display:none}.header-title{font-size:.9rem;font-weight:700;color:var(--text-primary);line-height:1;flex-shrink:0;display:none}.header-right{margin-left:auto;display:flex;align-items:center;gap:.75rem}.header-hint{font-size:.75rem;color:var(--text-secondary);display:none}.header-menu-btn{display:flex;flex-direction:column;justify-content:center;gap:4px;width:32px;height:32px;background:none;border:none;cursor:pointer;padding:6px;border-radius:6px;transition:background .15s}.header-menu-btn:hover{background:var(--bg)}.header-menu-btn span{display:block;width:100%;height:2px;background:var(--text-primary);border-radius:1px}@media(min-width:480px){.header-sep,.header-title{display:block}}@media(min-width:900px){.header-hint{display:block}}.main{flex:1;min-height:0;display:flex;overflow:hidden}.sidebar{width:var(--sidebar-w);flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);overflow-y:auto;display:flex;flex-direction:column}.sidebar-section{padding:1.25rem 1.25rem 0;display:flex;flex-direction:column;gap:.75rem}.section-label{font-size:.62rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text-secondary);line-height:1}.diff-grid{display:flex;gap:.5rem}.diff-card{flex:1;display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:.65rem .25rem;border:1.5px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer;transition:border-color .12s,background .12s}.diff-card:hover{border-color:#bbb;background:var(--bg)}.diff-card.active{border:2px solid var(--text-primary)}.diff-emoji{font-size:1.3rem;line-height:1}.diff-label{font-size:.78rem;font-weight:700;color:var(--text-primary);line-height:1}.diff-moves{font-size:.65rem;color:var(--text-secondary);line-height:1}.stats-grid{display:flex;gap:.5rem}.stat-card{flex:1;display:flex;flex-direction:column;gap:.25rem;padding:.65rem .75rem;border:1.5px solid var(--border);border-radius:8px;background:var(--surface)}.stat-value{font-size:1.6rem;font-weight:700;color:var(--text-primary);line-height:1;font-variant-numeric:tabular-nums}.stat-label{font-size:.62rem;color:var(--text-secondary);font-weight:600;text-transform:uppercase;letter-spacing:.06em;line-height:1}.controls-hints{list-style:none;display:flex;flex-direction:column;gap:.55rem}.controls-hints li{display:flex;align-items:flex-start;gap:.5rem;font-size:.78rem;color:var(--text-secondary);line-height:1.3}.hint-icon{flex-shrink:0;font-size:.9rem;line-height:1.3}.hint-mouse{width:14px;height:14px;border:1.5px solid var(--border);border-radius:50%;display:inline-block;margin-top:1px;flex-shrink:0}.hint-keyboard-row{display:flex;flex-direction:column;gap:0}.key-row{display:flex;align-items:center;gap:.2rem;flex-wrap:wrap}.key-badge{display:inline-flex;align-items:center;justify-content:center;width:22px;height:20px;border:1.5px solid var(--border);border-radius:4px;font-size:.65rem;font-weight:700;font-family:inherit;color:var(--text-secondary);background:var(--bg);line-height:1}.hint-sub{font-size:.7rem;color:var(--text-secondary);margin-left:.15rem}.solved-banner{margin:1.25rem 1.25rem 0;background:var(--accent);color:var(--text-primary);font-weight:700;font-size:.85rem;padding:.55rem 1rem;border-radius:8px;text-align:center;animation:fwt-pulse 1s ease-in-out infinite alternate}@keyframes fwt-pulse{0%{opacity:.85}to{opacity:1}}.sidebar-footer{margin-top:auto;padding:1.25rem}.reset-btn{width:100%;padding:.6rem 1rem;border:1.5px solid var(--border);border-radius:8px;background:transparent;color:var(--text-primary);font-size:.82rem;font-weight:600;cursor:pointer;transition:background .12s,border-color .12s;display:flex;align-items:center;justify-content:center;gap:.4rem}.reset-btn:hover{background:var(--bg);border-color:#bbb}.canvas-area{flex:1;min-width:0;background:var(--bg);position:relative}.canvas-area canvas{display:block;width:100%!important;height:100%!important}.scramble-fab{position:absolute;top:1rem;right:1rem;z-index:10;padding:.5rem 1.25rem;border:1.5px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-primary);font-size:.82rem;font-weight:700;cursor:pointer;transition:background .12s,border-color .12s,box-shadow .12s;letter-spacing:.01em;box-shadow:0 1px 4px #00000014}.scramble-fab:hover{background:var(--bg);border-color:#bbb;box-shadow:0 2px 8px #0000001f}.scramble-fab:active{transform:scale(.96)}@media(max-width:767px){.main{flex-direction:column}.canvas-area{flex:0 0 auto;height:46vh;min-height:220px}.sidebar{width:100%;border-right:none;border-top:1px solid var(--border);flex:1}.sidebar-section{padding:.9rem 1rem 0}.diff-card{padding:.5rem .2rem}.diff-emoji{font-size:1.1rem}.stat-value{font-size:1.25rem}.sidebar-footer{padding:.9rem 1rem}.scramble-fab{top:.65rem;right:.65rem;padding:.4rem 1rem;font-size:.76rem}}@media(max-width:380px){.header{padding:0 .9rem}.diff-moves{display:none}}
