:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#fafafa;--background:#09090b;--foreground:#fafafa;--muted:#27272a;--muted-foreground:#a1a1aa;--border:#27272a;--line:#313135;--accent:#f4f4f5;--accent-foreground:#18181b;--danger:#dc2626;--success:#22c55e;background:#09090b;font-family:Inter,Noto Sans SC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--background);min-width:1120px;margin:0}button,input{font:inherit}button{color:inherit;cursor:pointer;background:0 0;border:0}.app-shell{grid-template-columns:300px minmax(560px,1fr) 360px;height:100vh;display:grid;overflow:hidden}.level-sidebar,.workbench,.info-sidebar{min-height:0}.level-sidebar{border-right:1px solid var(--border);flex-direction:column;min-width:0;display:flex}.sidebar-header{border-bottom:1px solid var(--border);padding:1.25rem}.sidebar-header h1,.workbench-header h2,.info-section h2,.info-section h3,.section-title-row h3{letter-spacing:-.025em;margin:0;line-height:1.2}.sidebar-header h1{font-size:1.35rem}.workbench-header h2,.info-section h2{font-size:1.2rem}.info-section h3,.section-title-row h3{font-size:.95rem}.eyebrow{color:var(--muted-foreground);letter-spacing:.08em;text-transform:uppercase;margin:0 0 .45rem;font-size:.72rem;font-weight:600}.muted,small{color:var(--muted-foreground)}.level-list{flex-direction:column;flex:1;padding:.5rem;display:flex;overflow:auto}.level-item{text-align:left;border-radius:4px;grid-template-columns:auto 1fr;align-items:center;gap:.75rem;min-height:3.5rem;padding:.65rem .75rem;display:grid}.level-item:hover{background:#1d1d20}.level-item.active{background:var(--accent);color:var(--accent-foreground)}.level-item.active small{color:#54545f}.level-item span:last-child{flex-direction:column;gap:.15rem;min-width:0;display:flex}.level-number{background:var(--muted);color:var(--muted-foreground);border-radius:.45rem;justify-content:center;align-items:center;width:2rem;height:2rem;font-size:.78rem;font-weight:700;display:inline-flex}.level-item.active .level-number{color:#fafafa;background:#18181b}.workbench{grid-template-rows:auto minmax(260px,1fr) auto 320px;min-width:0;display:grid}.workbench-header{border-bottom:1px solid var(--border);grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);align-items:center;gap:1rem;padding:1.25rem;display:grid}.header-actions{justify-content:flex-end;align-items:center;gap:.5rem;display:flex}.header-actions button,.terminal-input button,.command-list button{border:1px solid var(--border);color:var(--foreground);border-radius:.5rem;min-height:2.25rem;padding:.45rem .75rem}.header-actions button:hover,.terminal-input button:hover,.command-list button:hover{background:var(--muted)}.win-badge{color:#3bdd77;border:1px solid #22c55e59;border-radius:999px;padding:.35rem .6rem;font-size:.75rem;font-weight:600}.graph-stage{border-bottom:1px solid var(--border);grid-template-rows:auto 1fr;min-height:0;padding:1.25rem;display:grid;overflow:hidden}.section-title-row{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.section-title-row span{color:var(--muted-foreground);font-size:.875rem}.empty-state{border:1px dashed var(--line);color:var(--muted-foreground);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:.35rem;height:calc(100% - 2rem);min-height:220px;display:flex}.empty-state p{color:var(--foreground);margin:0}.commit-lane{margin:0;padding:0 0 0 .15rem;list-style:none;position:relative}.commit-lane:before{background:var(--border);content:"";width:1px;position:absolute;top:1.2rem;bottom:1.2rem;left:.62rem}.commit-lane li{align-items:center;gap:.75rem;margin:.85rem 0;display:flex;position:relative}.commit-lane li>div{border:1px solid var(--border);flex-direction:column;gap:.3rem;min-width:220px;padding:.7rem .8rem;display:flex}.dot{background:var(--foreground);border:3px solid var(--background);z-index:1;border-radius:999px;flex:none;width:18px;height:18px;display:inline-block;position:relative}.terminal-stage{min-height:0;overflow:hidden}.terminal-input{border-bottom:1px solid var(--border);grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:.75rem 1.25rem;display:grid}.terminal-input span{color:var(--muted-foreground);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.terminal-input input{color:var(--foreground);background:0 0;border:0;outline:0;min-width:0}.terminal-input input::placeholder{color:var(--muted-foreground)}.terminal-log{flex-direction:column;gap:.8rem;min-height:0;padding:1rem 1.25rem;display:flex;overflow:auto}.terminal-entry{border-left:2px solid var(--border);padding-left:.75rem}.terminal-entry.error{border-left-color:var(--danger)}.terminal-command{color:var(--foreground);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.86rem}.terminal-entry pre{color:var(--muted-foreground);white-space:pre-wrap;margin:.35rem 0 0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.82rem;line-height:1.6}.info-sidebar{border-left:1px solid var(--border);min-width:0;overflow:auto}.canvas-wrap{border:1px solid var(--border);min-height:0;position:relative;overflow:hidden}.commit-canvas{width:100%;height:100%;display:block}.xterm-container{width:100%;height:100%;padding:.75rem 1rem}.xterm-container .xterm{height:100%}.account-bar{border-top:1px solid var(--border);grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:.85rem;display:grid}.avatar{background:var(--accent);color:var(--accent-foreground);border-radius:999px;justify-content:center;align-items:center;width:2.25rem;height:2.25rem;font-weight:800;display:flex}.account-meta{flex-direction:column;gap:.1rem;min-width:0;display:flex}.account-meta strong,.account-meta small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.account-bar button{border:1px solid var(--border);color:var(--foreground);border-radius:.5rem;min-height:2rem;padding:.25rem .55rem}.account-bar button:hover{background:var(--muted)}.info-section{border-bottom:1px solid var(--border);padding:1.25rem}.info-section p{color:var(--muted-foreground);line-height:1.7}.message-line{border-left:2px solid var(--border);color:var(--foreground);margin-top:1rem;padding-left:.75rem;font-size:.875rem;line-height:1.6}.plain-list,.status-list{margin:1rem 0 0;padding:0}.plain-list{list-style:none}.plain-list.ordered{counter-reset:step}.plain-list.ordered li{counter-increment:step;grid-template-columns:auto 1fr;gap:.6rem;display:grid}.plain-list.ordered li:before{color:var(--muted-foreground);content:counter(step) ".";font-variant-numeric:tabular-nums}.plain-list li,.status-list li{border-bottom:1px solid var(--border);color:var(--foreground);padding:.65rem 0;font-size:.875rem;line-height:1.6}.plain-list li:first-child,.status-list li:first-child{padding-top:0}.plain-list li:last-child,.status-list li:last-child{border-bottom:0;padding-bottom:0}.command-list{flex-direction:column;gap:.5rem;margin-top:1rem;display:flex}.command-list button{text-align:left;justify-content:flex-start;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.status-list{list-style:none}.status-list li{align-items:center;gap:.6rem;display:flex}code{background:var(--muted);color:var(--foreground);border-radius:.3rem;padding:.1rem .35rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.78rem}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border);border:3px solid var(--background);border-radius:999px}@media (max-width:1180px){body{min-width:0}.app-shell{grid-template-columns:240px minmax(420px,1fr) 300px}}.login-screen{background:var(--background);min-height:100vh;padding:0;position:relative;overflow:hidden}.landing-screen,.login-screen{display:block}.darkveil-layer{opacity:.92;pointer-events:none;z-index:0;position:fixed;inset:0;overflow:hidden}.darkveil-layer:after{content:"";background:linear-gradient(#ffffff06 1px,#0000 1px) 0 0/42px 42px,linear-gradient(90deg,#ffffff06 1px,#0000 1px) 0 0/42px 42px,radial-gradient(circle,#0000 0,#09090b2e 52%,#09090bb8 100%);position:absolute;inset:0}.darkveil-canvas{width:100%;height:100%;display:block}.hero-nav{z-index:2;justify-content:space-between;align-items:center;padding:2.25rem 3.5rem;display:flex;position:relative;inset:0 0 auto}.hero-logo{color:var(--foreground);letter-spacing:-.06em;align-items:center;gap:.65rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:1.7rem;text-decoration:none;display:inline-flex}.hero-logo span{color:var(--foreground);font-weight:900}.hero-logo b{font-weight:900}.hero-logo b:first-letter{color:#b070ff}.hero-nav nav{align-items:center;gap:2.1rem;display:flex}.hero-nav nav a{color:#e0e0e0c7;font-size:.98rem;font-weight:700;text-decoration:none}.hero-nav nav a:hover{color:var(--foreground)}.hero-signin{border:1px solid #ffffff2e;border-radius:8px;padding:.8rem 1.45rem;color:var(--foreground)!important}.hero-layout{z-index:1;grid-template-columns:minmax(560px,.96fr) minmax(560px,1.04fr);align-items:center;gap:clamp(2rem,5vw,5rem);width:min(1800px,100%);min-height:calc(100vh - 250px);margin:0 auto;padding:3.5rem 6rem 4rem;display:grid;position:relative}.play-login-layout{min-height:calc(100vh - 120px)}.hero-copy{max-width:900px}.hero-kicker{color:#62d84f;letter-spacing:.02em;background:#ffffff0b;border:1px solid #ffffff17;border-radius:8px;margin-bottom:2.1rem;padding:.55rem .8rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92rem;font-weight:900;display:inline-flex}.hero-copy h1{color:var(--foreground);letter-spacing:-.085em;text-wrap:balance;margin:0;font-size:clamp(4.2rem,6vw,6.8rem);line-height:.98}.hero-copy h1 span{background:linear-gradient(90deg,#cf66ff,#8082ff);color:#0000;-webkit-background-clip:text;background-clip:text}.hero-copy p{color:#e0e0e0ad;max-width:720px;margin:2rem 0 0;font-size:1.18rem;line-height:1.72}.hero-auth-label{color:#e0e0e0b8;margin-top:3.4rem;font-weight:800}.hero-auth-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;max-width:560px;margin-top:.85rem;display:grid}.hero-auth-button{color:var(--foreground);background:#ffffff0e;border:1px solid #ffffff1c;border-radius:9px;justify-content:center;align-items:center;min-height:3.35rem;padding:0 1.1rem;font-weight:900;text-decoration:none;display:inline-flex}button.hero-auth-button{font:inherit}.hero-auth-button:first-child{color:#09090b;background:#fffffff5}.hero-auth-button:hover,.hero-signin:hover{transform:translateY(-1px);box-shadow:0 0 30px #b070ff2e}.hero-note{color:#e0e0e073;margin-top:1.4rem;font-size:.92rem;font-weight:700}.play-login-form{display:block}.play-login-form .login-field{flex-direction:column;gap:.55rem;max-width:560px;margin-top:2.2rem;display:flex}.login-field span{color:#e0e0e0b8;font-size:.92rem;font-weight:800}.login-field input{color:var(--foreground);font:inherit;background:#ffffff0b;border:1px solid #ffffff21;border-radius:9px;outline:0;min-height:3.35rem;padding:0 1rem}.login-field input:focus{border-color:#b070ffbf;box-shadow:0 0 0 3px #b070ff1f}.hero-terminal-card{background:linear-gradient(#fff1,#00000061);border:1px solid #b070ff57;border-radius:18px;min-height:420px;padding:2rem;position:relative;overflow:hidden;box-shadow:0 22px 70px #615cff2e,inset 0 1px #ffffff14}.hero-terminal-card:before{content:"";background:radial-gradient(circle at 78% 54%,#b070ff24,#0000 18rem);position:absolute;inset:0}.hero-window-dots{z-index:1;gap:.55rem;margin-bottom:2rem;display:flex;position:relative}.hero-window-dots i{border-radius:999px;width:.75rem;height:.75rem}.hero-window-dots i:first-child{background:#ff6352}.hero-window-dots i:nth-child(2){background:#ffcb3d}.hero-window-dots i:nth-child(3){background:#56d25a}.hero-terminal-card pre{color:#e0e0e094;white-space:pre-wrap;z-index:1;margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:clamp(1rem,1.3vw,1.32rem);line-height:1.55;position:relative}.hero-terminal-card pre:first-line{color:#62d84f}.hero-features{z-index:1;border-top:1px solid #ffffff14;grid-template-columns:repeat(4,1fr);gap:2rem;margin-top:1rem;padding:3rem 5rem;display:grid;position:relative}.hero-features article{align-items:flex-start;gap:1.2rem;display:flex}.hero-features b{color:#b070ff;font-size:2.1rem;line-height:1}.hero-features h3{margin:0 0 .45rem;font-size:1.05rem}.hero-features p{color:#e0e0e094;margin:0;line-height:1.55}@media (max-width:1100px){.hero-layout{grid-template-columns:1fr;padding-inline:2rem}.hero-nav{padding-inline:2rem}.hero-nav nav{display:none}.hero-features{grid-template-columns:1fr 1fr;padding-inline:2rem}}.status-badge{white-space:nowrap;border:1px solid #0000;border-radius:999px}.status-badge.untracked{color:#f7b645;background:#f59f0a24}.status-badge.staged{color:#48e080;background:#21c45d24}.status-badge.modified{color:#6a95f1;background:#2463eb24}.status-badge.clean{color:var(--muted-foreground);background:#27272a}.status-badge.unstaged{color:#f37272;background:#ef434324}.level-item em{color:#48e080;font-size:.75rem;font-style:normal;font-weight:600}.level-item.active em{color:#188c42}.level-group{flex-direction:column;gap:.25rem;margin-bottom:.9rem;display:flex}.level-group h2{color:var(--muted-foreground);letter-spacing:.08em;text-transform:uppercase;margin:.65rem 0 .35rem;padding:0 .75rem;font-size:.72rem;font-weight:700}.level-item.active{border-radius:4px}:root[data-theme=light],[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--background:#fff;--foreground:#09090b;--muted:#f4f4f5;--muted-foreground:#71717a;--border:#e4e4e7;--line:#dfdfe2;--accent:#18181b;--accent-foreground:#fafafa}[data-theme=light] .canvas-wrap,[data-theme=light] .xterm-container{filter:invert()hue-rotate(180deg)}.file-link{color:var(--foreground);text-align:left;-webkit-text-decoration:underline dotted var(--border);text-decoration:underline dotted var(--border);text-underline-offset:4px;padding:0}.file-link:hover{color:var(--muted-foreground)}.modal-backdrop{z-index:20;background:#00000094;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:var(--background);border:1px solid var(--border);color:var(--foreground);width:min(720px,100vw - 3rem);max-height:min(720px,100vh - 3rem);padding:1rem;overflow:auto}.modal header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;margin:-1rem -1rem 1rem;padding:1rem;display:flex}.modal h2{margin:0;font-size:1rem}.modal button,.modal input,.modal select{border:1px solid var(--border);color:var(--foreground);min-height:2.4rem;padding:.45rem .7rem}.modal input,.modal select{background:0 0}.file-preview{background:var(--muted);border:1px solid var(--border);white-space:pre-wrap;min-height:240px;margin:0;padding:1rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;line-height:1.7;overflow:auto}.settings-modal{flex-direction:column;gap:1rem;width:min(460px,100vw - 3rem);display:flex}.settings-modal label{flex-direction:column;gap:.45rem;display:flex}.settings-modal label>span{color:var(--muted-foreground);font-size:.85rem}.settings-modal .inline-setting{flex-direction:row;align-items:center}.settings-modal .inline-setting input{min-height:auto}.editor-modal{width:min(980px,100vw - 3rem);max-width:min(980px,100vw - 3rem);height:min(760px,100vh - 3rem)}.modal-actions{gap:.5rem;display:flex}.codemirror-host{border:1px solid var(--border);height:calc(100% - 4.5rem);overflow:hidden}.codemirror-host .cm-editor{height:100%}.codemirror-host .cm-scroller{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.canvas-wrap{position:relative}.canvas-menu{background:var(--background);border:1px solid var(--border);z-index:8;flex-direction:column;min-width:180px;padding:.35rem;display:flex;position:absolute;box-shadow:0 18px 50px #00000052}.canvas-menu button{color:var(--foreground);text-align:left;border-radius:4px;padding:.55rem .65rem}.canvas-menu button:hover{background:var(--muted)}.editor-statusbar{border:1px solid var(--border);color:var(--muted-foreground);border-top:0;justify-content:flex-end;align-items:center;gap:1rem;min-height:2rem;padding:0 .75rem;font-size:.78rem;display:flex}.editor-modal .codemirror-host{height:calc(100% - 6.5rem)}.hint-header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.hint-header button{border:1px solid var(--border);color:var(--foreground);border-radius:4px;min-height:2rem;padding:.25rem .6rem}.hint-header button:hover{background:var(--muted)}.challenge-panel dl{gap:.65rem;margin:1rem 0 0;display:grid}.challenge-panel dl div{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding-bottom:.65rem;display:flex}.challenge-panel dl div:last-child{border-bottom:0;padding-bottom:0}.challenge-panel dt{color:var(--muted-foreground)}.challenge-panel dd{margin:0;font-weight:700}.lesson-assist{border-bottom:1px solid var(--border);grid-template-columns:1fr 1fr;min-height:72px;display:grid}.assist-block{padding:.85rem 1.25rem}.assist-block+.assist-block{border-left:1px solid var(--border)}.assist-block p{margin:.55rem 0 0}.compact-list{margin-top:.65rem}.compact-list li{padding:.35rem 0}.inline-commands{flex-flow:wrap;gap:.5rem;display:flex}.inline-commands button{width:auto}.workbench{grid-template-rows:auto minmax(220px, 1fr) 6px var(--terminal-height,320px)}.title-row{align-items:center;gap:.75rem;display:flex}.difficulty{border:1px solid var(--border);border-radius:999px;align-items:center;gap:.2rem;padding:.18rem .5rem;display:inline-flex}.difficulty i{background:var(--border);border-radius:999px;width:.24rem;height:.55rem;display:block}.difficulty i:nth-child(2){height:.8rem}.difficulty i:nth-child(3){height:1.05rem}.difficulty-1 i:first-child,.difficulty-2 i:nth-child(-n+2),.difficulty-3 i{background:var(--success)}.difficulty b{color:var(--muted-foreground);margin-left:.25rem;font-size:.72rem;font-weight:600}.header-stats{color:var(--muted-foreground);align-items:center;gap:.65rem;margin-left:auto;font-size:.82rem;display:flex}.header-stats span{border:1px solid var(--border);border-radius:999px;padding:.28rem .55rem}.terminal-resizer{border-bottom:1px solid var(--border);cursor:row-resize;position:relative}.terminal-resizer:before{background:var(--border);content:"";width:52px;height:2px;position:absolute;top:2px;left:50%;transform:translate(-50%)}.modal{transform-origin:50%;border-radius:10px;animation:.14s ease-out modal-in}@keyframes modal-in{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.advance-toast{background:var(--background);border:1px solid var(--border);z-index:15;border-radius:10px;flex-direction:column;gap:.25rem;padding:.9rem 1rem;animation:.14s ease-out modal-in;display:flex;position:fixed;bottom:1rem;right:1rem;box-shadow:0 18px 50px #00000047}.advance-toast span{color:var(--muted-foreground);font-size:.85rem}.level-description-blocks{flex-direction:column;gap:.95rem;margin-top:.75rem;display:flex}.level-description-block{border-left:2px solid var(--border);padding-left:.75rem}.level-description-block span{color:var(--foreground);letter-spacing:.1em;margin-bottom:.35rem;font-size:.78rem;font-weight:900;display:block}.level-description-block p{color:var(--muted-foreground);margin:0;line-height:1.75}.level-description-block strong{color:var(--foreground);font-weight:800}.header-score-card{border:1px solid var(--border);border-radius:10px;justify-self:center;align-items:center;gap:.75rem;padding:.55rem .75rem;display:flex}.header-score-card span{color:var(--muted-foreground);font-size:.82rem}.cli-badge{border:1px solid var(--border);color:var(--muted-foreground);letter-spacing:.08em;border-radius:4px;padding:.45rem .55rem;font-size:.75rem;font-weight:900}.cli-badge.active{color:#48e080;border-color:#21c45d73;box-shadow:0 0 18px #21c45d47}.task-list,.activity-list{margin:1rem 0 0;padding:0;list-style:none}.task-list li{border-bottom:1px solid var(--border);color:var(--muted-foreground);grid-template-columns:auto 1fr;align-items:center;gap:.65rem;padding:.65rem 0;display:grid}.task-list li:last-child{border-bottom:0}.task-list i{border:1px solid var(--border);border-radius:999px;width:.75rem;height:.75rem;display:block}.task-list li.active i{background:#f59f0a;border-color:#f59f0a}.task-list li.done{color:var(--foreground)}.task-list li.done i{background:#21c45d;border-color:#21c45d}.activity-list li{border-bottom:1px solid var(--border);color:var(--muted-foreground);padding:.55rem 0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.78rem;line-height:1.6}.activity-list li:last-child{border-bottom:0}
