@import "https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap";@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-gray-500:oklch(55.1% .027 264.364);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}body{background-color:var(--color-gray-900);min-height:100vh;font-family:var(--font-sans);color:var(--color-white)}*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.bg-gray-500{background-color:var(--color-gray-500)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}:root{--bg:#0d1320;--surface:#171f2f;--border:#2b3a50;--text:#eef3fb;--muted:#93a3ba;--accent:#4f8cff;--accent-strong:#3577ee;--font-sans:Manrope, "Segoe UI", sans-serif;--font-mono:"JetBrains Mono", "Cascadia Code", Consolas, monospace}body{font-family:var(--font-sans)}.app-header h1,.camera-head h2{letter-spacing:-.045em;font-size:25px;font-weight:800}.app-header h1 span{font-weight:700}.eyebrow,.section-kicker{color:#8eaeeb;letter-spacing:.05em;text-transform:uppercase}.scramble-row input{font:600 12px var(--font-mono)}.move-tile{font-family:var(--font-mono)}.sticker-W,.color-W{background:#f8fbff}.sticker-G,.color-G{background:#00a86b}.sticker-R,.color-R{background:#e6293b}.sticker-B,.color-B{background:#2878e8}.sticker-O,.color-O{background:#ff7900}.sticker-Y,.color-Y{background:#ffd400}.result-strip strong{font-family:var(--font-mono);font-variant-numeric:tabular-nums}.solution-string code{font-family:var(--font-mono)}.upward-select{gap:5px;display:grid;position:relative}.select-label{color:var(--muted);font-size:11px;font-weight:700}.select-trigger,.select-options button{width:100%;color:var(--text);font:700 12px var(--font-sans);background:#0e1624;border:1px solid #384961}.select-trigger{text-align:left;border-radius:7px;justify-content:space-between;align-items:center;min-height:36px;padding:8px 10px;display:flex}.select-trigger:hover,.select-trigger:focus-visible{border-color:var(--accent);outline:none}.select-arrow{color:#9ec0ff;font-size:17px;line-height:1}.select-options{z-index:10;background:#101a2a;border:1px solid #476188;border-radius:8px;padding:4px;position:absolute;bottom:calc(100% + 6px);left:0;right:0;box-shadow:0 12px 28px #020711aa}.select-options button{text-align:left;border:0;border-radius:5px;padding:8px 9px;display:block}.select-options button:hover,.select-options button.selected{color:#fff;background:#2469c9}.playback-card{min-width:0}.cube-player{width:100%;min-width:0;min-height:280px}.cube-player twisty-player{max-width:100%!important}*{box-sizing:border-box}body{background:radial-gradient(circle at 84% -10%, #1c3155 0, transparent 30rem), var(--bg);color:var(--text);margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.62}.app-shell{max-width:1380px;min-height:100vh;margin:auto;padding:18px 24px 28px}.app-header,.header-actions,.mode-switch,.section-heading,.solve-actions,.result-strip,.player-controls,.speed-control{align-items:center;display:flex}.app-header{justify-content:space-between;gap:18px;min-height:53px;margin-bottom:16px}.app-header h1,.camera-head h2{letter-spacing:-.035em;margin:1px 0 0;font-size:23px;line-height:1.1}.app-header h1 span{color:var(--muted);font-size:15px;font-weight:500}.eyebrow,.section-kicker{color:#7d9bd0;letter-spacing:.12em;margin:0;font-size:10px;font-weight:800}.header-actions{gap:12px}.tech-badge,.status-badge,.player-status,.camera-progress{border:1px solid var(--border);color:var(--muted);white-space:nowrap;background:#121b2a;border-radius:999px;padding:6px 9px;font-size:11px}.status-badge{color:#a8e7c6;border-color:#317953}.player-status{color:#b9c7dd}.mode-switch{border:1px solid var(--border);background:#111927;border-radius:9px;gap:2px;padding:3px}.mode-switch button{color:var(--muted);background:0 0;border:0;border-radius:6px;padding:7px 10px;font-size:12px;font-weight:700}.mode-switch button.active{color:#fff;background:var(--accent);box-shadow:0 2px 9px #0004}.solver-layout{grid-template-columns:1fr 1fr;align-items:stretch;gap:16px;display:grid}.input-column,.visual-column{flex-direction:column;gap:12px;display:flex}.card,.camera-card{border:1px solid var(--border);background:linear-gradient(145deg, #1a2436, var(--surface));border-radius:10px;box-shadow:0 12px 30px #02071138}.input-card{padding:15px}.section-heading{justify-content:space-between;gap:8px}.section-heading h2,.visual-empty h2{letter-spacing:-.025em;margin:3px 0 0;font-size:15px}.scramble-input{margin:13px 0 11px}.scramble-input label,.config-grid label,.mini-label{color:var(--muted);font-size:11px;font-weight:700}.scramble-row{gap:8px;margin-top:5px;display:flex}.scramble-row input,select{width:100%;min-width:0;color:var(--text);background:#0e1624;border:1px solid #384961;border-radius:7px;outline:0}.scramble-row input{flex:1;padding:9px 10px;font-size:12px}.scramble-row input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #4f8cff22}.button{border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;padding:9px 13px;font-size:12px;font-weight:800;transition:background .16s,transform .16s,border-color .16s;display:inline-flex}.button:hover:not(:disabled),.move-tile:hover{transform:translateY(-1px)}.primary{background:var(--accent);color:#fff}.primary:hover:not(:disabled){background:var(--accent-strong)}.secondary{color:#d4deee;background:#202c3f;border-color:#34445d}.secondary:hover:not(:disabled){background:#293850}.apply-button{min-width:72px}.input-error,.error-inline{color:#ffb5bd;margin:7px 0 0;font-size:12px}.move-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:5px;display:grid}.move-tile{color:#e4edfb;background:#202b3d;border:1px solid #34455e;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:70px;font-size:11px;font-weight:800;display:flex}.move-tile img{object-fit:contain;width:43px;height:43px;display:block}.move-tile span{color:#cbd9ef;font-size:11px}.entry-area{grid-template-columns:minmax(280px,1fr) 126px;align-items:end;gap:12px;margin-top:12px;display:grid}.mini-label{margin:0 0 5px}.cube-net{justify-content:center;padding:1px;display:flex}.cube-net-grid{grid-template-columns:repeat(4,max-content);gap:4px;display:grid}.cube-face{border:2px solid #080d14;grid-template-columns:repeat(3,22px);display:grid}.cube-sticker{border:1px solid #0a101a;width:22px;height:22px}.palette{flex-wrap:wrap;align-content:center;align-self:stretch;align-items:center;gap:5px;display:flex}.palette .mini-label{width:100%}.palette-chip{border:2px solid #e9eff9;border-radius:50%;width:22px;height:22px;font-size:0;box-shadow:0 0 0 1px #0a101a}.color-W{background:#f7f9ff}.color-G{background:#30b96a}.color-R{background:#ef5560}.color-B{background:#4386f4}.color-O{background:#f08a3d}.color-Y{background:#f1ce46}.solve-card{padding:12px 15px}.config-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.config-grid label{gap:5px;display:grid}.config-grid select{padding:8px;font-size:12px}.solve-actions{gap:8px;margin-top:11px}.solve-actions .primary{flex:1}.spinner{border:2px solid #fff7;border-top-color:#fff;border-radius:50%;width:13px;height:13px;margin-right:7px;animation:.75s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.visual-empty{text-align:center;background:linear-gradient(145deg,#182338,#131c2b);flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:542px;padding:28px;display:flex}.visual-empty h2{margin-top:7px;font-size:20px}.visual-empty>p:not(.section-kicker){max-width:350px;color:var(--muted);font-size:13px;line-height:1.55}.instructions{text-align:left;max-width:420px;margin:14px auto 24px}.instructions h4{color:var(--text);text-align:center;margin:0 0 12px;font-size:15px}.instructions ol{color:var(--muted);margin:0;padding-left:24px;font-size:13px;line-height:1.6;list-style-type:decimal}.instructions li{margin-bottom:10px}.instructions li:last-child{margin-bottom:0}.instructions strong{color:#e2e8f0;font-weight:700}.cube-mark{grid-template-columns:repeat(3,18px);gap:4px;margin-bottom:25px;display:grid;transform:rotate(8deg)}.cube-mark i{background:linear-gradient(145deg,#5b97ff,#2754a6);border-radius:3px;width:18px;height:18px;box-shadow:inset 1px 1px #a6c8ff42,0 3px 7px #020a1799}.cube-mark i:nth-child(3n+2){background:linear-gradient(145deg,#74adff,#4478cc)}.empty-steps{gap:7px;margin-top:16px;display:flex}.empty-steps span{color:#a4b8d7;border:1px solid #30425c;border-radius:999px;padding:6px 8px;font-size:10px;font-weight:700}.result-strip{background:linear-gradient(90deg,#102b25,#142b2c);border:1px solid #266744;border-radius:9px;justify-content:space-between;gap:10px;padding:10px 13px}.result-strip>div{gap:2px;display:grid}.result-strip>div:not(:first-child){text-align:right}.result-strip span{color:#9cb7b5;font-size:10px}.result-strip strong{color:#e5fff3;font-size:13px}.solution-string{border:1px solid var(--border);background:#111a28;border-radius:8px;grid-template-columns:68px 1fr;gap:10px;padding:11px 13px;display:grid}.solution-string span{color:var(--muted);padding-top:1px;font-size:11px;font-weight:700}.solution-string code{color:#b7d2ff;overflow-wrap:anywhere;font-size:12px}.playback-card{flex-direction:column;flex:1;padding:14px;display:flex}.cube-player{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;display:flex}.player-controls{flex-wrap:wrap;justify-content:center;gap:5px}.player-button{color:#fff;background:#202b3d;border:1px solid #34455e;border-radius:6px;min-width:34px;height:32px;padding:0 8px}.player-button-main{background:var(--accent);border-color:var(--accent);min-width:47px}.speed-control{color:var(--muted);gap:7px;font-size:11px}.speed-slider{width:105px;accent-color:var(--accent)}.camera-workspace{max-width:1040px;margin:0 auto}.camera-head{justify-content:space-between;align-items:center;gap:18px;margin-bottom:13px;display:flex}.camera-head h2{font-size:21px}.face-stepper{grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:12px;display:grid}.face-stepper span{color:var(--muted);align-items:center;gap:6px;font-size:12px;font-weight:700;display:flex}.face-stepper b{border:1px solid #394b65;border-radius:50%;place-items:center;width:23px;height:23px;font-size:10px;display:grid}.face-stepper .current{color:#fff}.face-stepper .current b{background:var(--accent);border-color:var(--accent)}.face-stepper .done{color:#89d9ae}.face-stepper .done b{background:#1e6744;border-color:#298353}.camera-card{grid-template-columns:210px minmax(0,1fr);min-height:450px;display:grid;overflow:hidden}.scan-instructions{border-right:1px solid var(--border);background:#121b29;padding:23px 18px}.scan-instructions h3{margin:5px 0 8px;font-size:22px}.scan-instructions p:not(.section-kicker){color:#aab9cf;margin:0 0 20px;font-size:12px;line-height:1.5}.scan-instructions kbd{color:#d9e6fa;background:#202d40;border:1px solid #435774;border-radius:4px;margin:5px 6px 5px 0;padding:4px 5px;font-size:10px;display:inline-block}.scan-instructions small{color:var(--muted);font-size:10px}.camera-preview{background:#0b1019;flex-direction:column;justify-content:center;align-items:center;min-width:0;padding:16px;display:flex}.camera-feed{aspect-ratio:16/9;background:#020407;border-radius:8px;width:min(100%,590px);position:relative;overflow:hidden}.camera-video,.camera-overlay{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.camera-overlay{pointer-events:none}.camera-error{color:#ffc6ca;background:#541d2a;border:1px solid #9a3744;border-radius:6px;width:min(100%,590px);margin-bottom:10px;padding:9px;font-size:12px}.capture-review{align-items:center;gap:22px;display:flex}.capture-review>img{aspect-ratio:1;object-fit:cover;border:1px solid #41536f;border-radius:7px;width:min(46vw,260px)}.classifying{color:#b9cced}.capture-result>p{color:var(--muted);margin:0 0 6px;font-size:11px}.capture-result>div{grid-template-columns:repeat(3,25px);gap:3px;display:grid}.capture-result i{border:1px solid #0a101a;width:25px;height:25px}.camera-actions{border-top:1px solid var(--border);background:#151e2d;grid-column:1/-1;justify-content:center;align-items:center;gap:8px;padding:12px;display:flex}.camera-actions .button span{opacity:.7;margin-left:4px;font-weight:600}@media (width<=960px){.solver-layout{grid-template-columns:1fr}.visual-empty{min-height:300px}.camera-workspace{max-width:760px}.camera-card{grid-template-columns:180px minmax(0,1fr)}}@media (width<=640px){.app-shell{padding:12px}.app-header,.camera-head{flex-direction:column;align-items:flex-start}.header-actions{justify-content:space-between;width:100%}.tech-badge{display:none}.solver-layout{grid-template-columns:minmax(0,1fr)}.entry-area{grid-template-columns:1fr}.palette{align-self:auto}.palette .mini-label{width:auto;margin:0 4px 0 0}.move-grid{grid-template-columns:repeat(6,1fr)}.camera-card{grid-template-columns:1fr}.scan-instructions{border-right:0;border-bottom:1px solid var(--border);padding:14px}.scan-instructions p:not(.section-kicker){margin-top:4px;margin-bottom:0}.scan-instructions kbd,.scan-instructions small{display:none}.scan-instructions h3{margin:3px 0 0;font-size:18px}.capture-review{gap:12px}.face-stepper span{justify-content:center;font-size:0}.face-stepper b{font-size:10px}.result-strip{flex-wrap:wrap}.result-strip>div:not(:first-child){text-align:left}.solution-string{grid-template-columns:1fr;gap:3px}}.cube-player twisty-player{filter:hue-rotate(-10deg)saturate(1.25)contrast(1.1);max-width:100%!important}@media (height<=800px) and (width>=961px){.app-shell{padding:12px 24px}.app-header{min-height:44px;margin-bottom:10px}.app-header h1{font-size:21px}.input-column,.visual-column{gap:10px}.input-card{padding:12px 14px}.solve-card{padding:10px 14px}.move-tile{min-height:54px}.move-tile img{width:28px;height:28px}.cube-face{grid-template-columns:repeat(3,19px)}.cube-sticker{width:19px;height:19px}.camera-head{margin-bottom:10px}.camera-head h2{font-size:19px}.face-stepper{margin-bottom:10px}.scan-instructions{padding:16px 14px}.scan-instructions p:not(.section-kicker){margin-bottom:14px}.camera-card{min-height:380px}.playback-card{padding:10px}}@media (width>=961px){html,body{height:100%!important;overflow:hidden!important}.app-shell{flex-direction:column;padding-bottom:24px;display:flex;height:100vh!important}.solver-layout,.camera-workspace{flex:1;width:100%;height:100%;min-height:0}.camera-workspace{flex-direction:column;display:flex}.solver-layout{align-items:stretch}.input-column,.visual-column{height:100%;padding-right:6px;overflow-y:auto}.visual-empty,.playback-card,.cube-player{height:100%;min-height:0!important}.visual-column{flex-direction:column;display:flex}.visual-column>*{flex-shrink:0}.playback-card{flex:1}.camera-card{flex:1;min-height:0;margin-bottom:20px}.camera-preview{height:100%;min-height:0}.camera-feed{height:auto;max-height:100%}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#2a384e;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#3e5374}
