:root{--bg: #302e2b;--surface: #262522;--surface-2: #21201d;--raised: #3c3a37;--raised-hover: #4b4845;--line: #3d3b38;--text: #ffffff;--text-2: #d6d5d3;--muted: #9b9a98;--green: #81b64c;--green-hover: #95c95e;--green-shadow: #537a32;--gold: #e6b34a;--red: #e5484d;--red-shadow: #9d2d31;--term-bg: #1a1917;--radius: 8px;--font: "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;--mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text-2);font-family:var(--font);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5{color:var(--text)}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0}button:disabled{opacity:.45;cursor:not-allowed}:focus-visible{outline:2px solid var(--green);outline-offset:2px}input{background:var(--surface-2);border:1px solid var(--line);border-radius:6px;padding:9px 12px;color:var(--text);transition:border-color .15s}input:focus{border-color:var(--green);outline:none}code,pre{font-family:var(--mono)}code{background:#ffffff12;padding:1px 6px;border-radius:4px;font-size:.88em;direction:ltr;unicode-bidi:isolate;color:var(--text)}.ltr-token{direction:ltr;unicode-bidi:isolate;font-family:var(--mono);font-size:.92em}.muted{color:var(--muted)}.small{font-size:12.5px}.pre{white-space:pre-wrap}.empty{color:var(--muted);text-align:center;padding:24px 8px}[dir=rtl] .flip-rtl{transform:scaleX(-1)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:6px;padding:9px 16px;font-weight:700;color:var(--text);transition:background .12s,transform .05s;white-space:nowrap}.btn.primary{background:var(--green);box-shadow:0 4px 0 var(--green-shadow)}.btn.primary:hover:not(:disabled){background:var(--green-hover)}.btn.primary:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 var(--green-shadow)}.btn.secondary{background:var(--raised);box-shadow:0 3px #2a2826}.btn.secondary:hover:not(:disabled){background:var(--raised-hover)}.btn.danger{background:var(--red);box-shadow:0 4px 0 var(--red-shadow)}.btn.ghost{color:var(--text-2);padding:6px 10px}.btn.ghost:hover:not(:disabled){background:#ffffff0f}.btn.danger-text{color:#f08a8d}.btn.sm{padding:6px 12px;font-size:13.5px}.btn.xl{width:100%;padding:14px 18px;font-size:18px;border-radius:8px}.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:6px;color:var(--text-2)}.icon-btn:hover{background:#ffffff14;color:var(--text)}.app{display:flex;flex-direction:column;min-height:100%}.topbar{display:flex;align-items:center;gap:18px;padding:10px 20px;background:var(--surface-2);border-bottom:1px solid #1a1917;position:sticky;top:0;z-index:20;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:10px;margin-inline-end:auto}.logo{width:38px;height:38px;border-radius:8px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:26px;line-height:1;box-shadow:0 3px 0 var(--green-shadow)}.brand h1{font-size:17px;margin:0;font-weight:700}.tagline{margin:0;color:var(--muted);font-size:12.5px}.xp{display:flex;align-items:center;gap:10px;min-width:220px;font-size:13px}.xp b{color:var(--text)}.xp-num{color:var(--muted)}.progress-line{flex:1;height:6px;background:#1a1917;border-radius:99px;overflow:hidden}.progress-line>span{display:block;height:100%;background:var(--green);border-radius:inherit;transition:width .4s}.progress-line.big{height:9px;margin:10px 0 16px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.seg{display:inline-flex;background:#1a1917;border-radius:6px;padding:3px;gap:2px}.seg button{padding:5px 11px;border-radius:4px;font-size:13px;color:var(--muted);font-weight:600}.seg button.sel{background:var(--raised);color:var(--text)}.banner.warn{background:#e6b34a1f;color:var(--gold);padding:7px 20px;font-size:13px}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,460px);gap:22px;padding:18px 22px;flex:1;max-width:1500px;width:100%;margin:0 auto;align-items:start}.play{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0}.sidebar{display:flex;flex-direction:column;gap:14px;min-width:0;position:sticky;top:76px}.board-col{width:100%;display:flex;justify-content:center}.board-stack{display:flex;flex-direction:column;gap:8px}.board-frame{position:relative;direction:ltr}.board-frame.lock-locked{filter:saturate(.85)}.player-card{display:flex;align-items:center;gap:10px;min-height:44px}.avatar{width:40px;height:40px;border-radius:4px;display:grid;place-items:center;flex:none}.avatar.ai{background:#4b4845;color:#e6e5e3}.avatar.me{background:#5d7b3c;color:#fff}.player-meta{flex:1;min-width:0}.player-name{font-weight:700;color:var(--text);display:flex;align-items:center;gap:8px;font-size:14.5px}.player-sub{color:var(--muted);font-weight:500;font-size:12.5px}.captured{font-size:16px;line-height:1;min-height:16px;letter-spacing:-3px;color:var(--text-2);display:flex;align-items:center;gap:0}.captured .adv{letter-spacing:0;font-size:12px;color:var(--muted);margin-inline-start:8px;font-weight:600}.cap-w{color:#f0efed}.cap-b{color:#b9b8b6}.clock{font-family:var(--mono);font-size:20px;font-weight:700;padding:4px 12px;border-radius:4px;background:#262421;color:#8d8c8a;min-width:96px;text-align:center}.clock.running{background:#fff;color:#262421}.clock.low.running{background:#fbe3e3;color:#b22e33}.thinking{display:inline-flex;gap:3px}.thinking i{width:5px;height:5px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite}.thinking i:nth-child(2){animation-delay:.2s}.thinking i:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.lock-bar{position:absolute;inset-inline:0;bottom:0;display:flex;gap:8px;align-items:center;justify-content:center;background:#1a1917e0;color:#fff;padding:9px 12px;font-weight:600;font-size:14px;border-radius:0 0 4px 4px;pointer-events:none}.status-line{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border-radius:6px;background:var(--surface);font-weight:600;font-size:14px;color:var(--text-2)}.status-line.s-open{color:var(--green)}.status-line.s-locked{color:var(--gold)}.status-line .check{color:var(--red)}.board-footer{display:flex;gap:8px;align-items:stretch}.board-footer .status-line{flex:1;min-width:0}.san-form{display:flex;gap:6px}.san-form input{width:118px}.board-footer .status-line{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.san-form input{font-family:var(--mono)}.control-bar{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;background:var(--surface);border-radius:var(--radius);padding:6px}.ctl{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:6px;color:var(--text-2);font-size:13.5px;font-weight:600}.ctl:hover:not(:disabled){background:var(--raised);color:var(--text)}.ctl.danger:hover:not(:disabled){color:#f08a8d}.side-card{background:var(--surface);border-radius:var(--radius);overflow:hidden}.tabs{display:flex;background:var(--surface-2)}.tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 4px 8px;color:var(--muted);font-size:12.5px;font-weight:600;border-bottom:3px solid transparent}.tabs button:hover{color:var(--text-2)}.tabs button.sel{color:var(--text);border-bottom-color:var(--green);background:var(--surface)}.tab-body{padding:16px;max-height:52vh;overflow:auto;overscroll-behavior:contain}.tab-body::-webkit-scrollbar{width:8px}.tab-body::-webkit-scrollbar-thumb{background:#45423f;border-radius:8px}.mission-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.chip{display:inline-flex;align-items:center;gap:5px;background:var(--raised);border-radius:4px;padding:2px 8px;font-size:12px;font-weight:600;color:var(--text-2)}.chip.xp{color:var(--green)}.diff{display:inline-flex;gap:3px;padding:0 4px}.diff i{width:7px;height:7px;border-radius:2px;background:#4b4845}.diff i.on{background:var(--gold)}.mission-title{margin:12px 0 2px;font-size:19px;line-height:1.35}.objective{margin:0 0 12px;color:var(--muted)}.steps{display:flex;gap:4px;background:var(--surface-2);padding:4px;border-radius:6px;margin-bottom:10px;overflow-x:auto}.steps button{flex:1;padding:6px 8px;border-radius:4px;font-size:12.5px;font-weight:600;color:var(--muted);white-space:nowrap}.steps button.seen{color:var(--text-2)}.steps button.sel{background:var(--raised);color:var(--text)}.step-body{background:var(--surface-2);border-radius:6px;padding:12px 14px}.step-body p{margin:4px 0}.step-body details{margin-top:8px}.step-body summary{cursor:pointer;color:var(--text-2);font-weight:600}.step-nav{display:flex;justify-content:space-between;margin-top:10px}.code{background:var(--term-bg);border-radius:6px;padding:10px 12px;overflow-x:auto;color:#b5e07f;margin:6px 0 10px;text-align:left}.code code{background:none;padding:0;color:inherit}.breakdown{width:100%;border-collapse:collapse}.breakdown td{border-bottom:1px solid var(--line);padding:7px 6px;vertical-align:top}.breakdown tr:last-child td{border-bottom:0}.breakdown td:first-child{white-space:nowrap;width:1%}.task{font-weight:600;color:var(--text)}.target{display:flex;align-items:center;gap:6px;color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.section-head h4{margin:0;font-size:14px}.objectives .progress-line{margin:8px 0;height:4px}.objectives ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}.objectives li{display:flex;gap:8px;align-items:flex-start;color:var(--text-2)}.objectives li .tick{flex:none;margin-top:3px;color:#6d6b68}.objectives li.ok{color:var(--text)}.objectives li.ok .tick{color:var(--green)}.hint-line{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 0}.hints{margin-top:14px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}.hint{display:flex;gap:10px;background:#e6b34a14;border-radius:6px;padding:8px 10px;width:100%}.hint-n{flex:none;width:20px;height:20px;border-radius:50%;background:var(--gold);color:#262421;font-weight:700;font-size:12px;display:grid;place-items:center}.reward{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#3f5a28,#2f3f22);border-radius:var(--radius);padding:14px 16px;color:#fff;animation:pop .35s ease-out}.reward>svg{color:var(--gold);flex:none}.reward-title{font-weight:700;font-size:16px}.reward-sub{font-size:13px;color:#d7e6c6}.reward-xp{margin-inline-start:auto;font-size:22px;font-weight:800;font-family:var(--mono);color:#c8f08f}.cta{color:var(--green);font-weight:700;text-align:center;margin:14px 0}@keyframes pop{0%{transform:scale(.96);opacity:0}to{transform:scale(1);opacity:1}}.review{margin-top:12px;background:var(--surface-2);border-radius:6px;padding:10px 14px}.review summary{cursor:pointer;color:var(--text);font-weight:600}.review h5{margin:10px 0 4px}.review ul{margin:0;padding-inline-start:18px}.chapter{background:var(--surface-2);border-inline-start:3px solid var(--green);border-radius:6px;padding:10px 12px;margin-bottom:12px}.chapter-top{display:flex;justify-content:space-between;font-size:12px;color:var(--green);font-weight:700}.chapter h4{margin:4px 0}.bi{display:flex;flex-direction:column;gap:3px}.bi-en{color:var(--muted);font-size:.94em;text-align:left}.bi-ar{text-align:right}span.bi{display:inline-flex}.moves-tab .game-info{color:var(--muted);font-size:13px;margin-bottom:8px}.moves{width:100%;border-collapse:collapse;font-family:var(--mono);font-size:13.5px}.moves tr:nth-child(odd){background:#ffffff08}.moves td{padding:5px 10px;color:var(--text-2)}.moves td.mn{color:var(--muted);width:44px}.moves td.cur{color:var(--text);font-weight:700}.moves td.cur:before{content:"";display:inline-block;width:3px;height:12px;background:var(--green);margin-inline-end:6px;vertical-align:middle}.terminal-card{background:var(--term-bg);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;min-height:280px}.terminal-bar{display:flex;align-items:center;gap:8px;padding:7px 10px;background:#22211e;font-family:var(--mono);font-size:12px;flex-wrap:nowrap;min-width:0}.term-title{color:var(--muted);margin-inline-end:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.term-chip{display:inline-flex;align-items:center;gap:4px;color:var(--gold);background:#e6b34a1a;padding:1px 8px;border-radius:4px;font-weight:600;white-space:nowrap;flex:none}.term-chip.target{flex:0 1 auto;min-width:0;max-width:55%;overflow:hidden}.term-chip.target .t-text{overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left}.term-btn{flex:none}.term-chip.target{color:#b5e07f;background:#81b64c1f}.term-btn{display:inline-grid;place-items:center;width:26px;height:24px;border-radius:4px;color:var(--muted)}.term-btn:hover{background:#ffffff14;color:var(--text)}.xterm-host{flex:1;padding:8px 10px;min-height:250px;text-align:left}.assistant-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.quick-actions{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px;margin-bottom:12px}.qa{display:flex;align-items:center;gap:7px;background:var(--raised);border-radius:6px;padding:8px 10px;font-size:13px;font-weight:600;color:var(--text-2);text-align:start}.qa:hover:not(:disabled){background:var(--raised-hover);color:var(--text)}.qa.sel{background:#3f5a28;color:#fff}.ask{display:flex;gap:6px}.ask input{flex:1}.msgs{display:flex;flex-direction:column;gap:8px;margin-top:12px}.msg{background:var(--surface-2);border-radius:6px;padding:10px 12px}.msg.ai{border-inline-start:3px solid var(--green)}.msg-q{color:var(--text);font-weight:700;font-size:13px;margin-bottom:4px}.msg p{margin:0}.switch{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;color:var(--text-2);-webkit-user-select:none;user-select:none}.switch input{position:absolute;opacity:0;pointer-events:none}.switch>span:first-of-type{width:36px;height:20px;border-radius:99px;background:#4b4845;position:relative;transition:background .15s;flex:none}.switch>span:first-of-type:after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:inset-inline-start .15s}.switch input:checked+span{background:var(--green)}.switch input:checked+span:after{inset-inline-start:19px}.switch input:focus-visible+span{outline:2px solid var(--green);outline-offset:2px}.switch.small{font-size:12.5px}.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat{background:var(--surface-2);border-radius:6px;padding:10px;display:flex;flex-direction:column;align-items:center}.stat-v{font-size:20px;font-weight:800;color:var(--text);font-family:var(--mono)}.stat-l{font-size:12px;color:var(--muted);text-align:center}.modules{list-style:none;padding:0;margin:0 0 14px;display:flex;flex-direction:column;gap:12px}.modules li{display:flex;flex-direction:column;gap:6px}.modules li.locked{opacity:.55}.mod-row{display:flex;align-items:center;gap:8px}.mod-icon{width:26px;height:26px;border-radius:5px;background:var(--raised);display:grid;place-items:center;color:var(--text-2)}.mod-name{flex:1;font-weight:600;color:var(--text)}.lesson-dots{display:flex;flex-wrap:wrap;gap:4px}.lesson-dots button{width:12px;height:12px;border-radius:3px;background:#45423f}.lesson-dots button.done{background:var(--green);cursor:pointer}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000009e;display:flex;align-items:center;justify-content:center;z-index:50;padding:16px;animation:fade .15s ease-out}@keyframes fade{0%{opacity:0}to{opacity:1}}.dialog{background:var(--surface);border-radius:10px;width:min(440px,100%);padding:18px 20px 20px;box-shadow:0 24px 60px #0000008c;animation:pop .18s ease-out}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.dialog-head h3{margin:0;font-size:18px}.dialog-msg{margin:4px 0 14px;color:var(--text-2)}.dialog input{width:100%;margin-bottom:16px;font-family:var(--mono)}.dialog-actions{display:flex;gap:10px;justify-content:flex-end}.dialog.result{text-align:center}.dialog.result .dialog-actions{justify-content:center;margin-top:10px}.result-title{font-size:26px;font-weight:800;margin:12px 0 2px;color:var(--text)}.result-title.win{color:var(--green)}.result-title.loss{color:#f08a8d}.newgame{background:var(--surface);border-radius:12px;width:min(620px,100%);max-height:94vh;overflow:auto;padding:22px 24px 24px;box-shadow:0 30px 80px #0009;animation:pop .2s ease-out}.ng-head{display:flex;align-items:center;justify-content:space-between}.ng-head h2{margin:0;font-size:24px}.ng-lead{color:var(--muted);margin:6px 0 16px}.ng-section{margin-bottom:18px}.ng-label{font-size:13px;font-weight:700;color:var(--muted);margin-bottom:8px}.mode-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:6px}.mode-row{display:flex;align-items:center;gap:12px;background:var(--raised);border-radius:8px;padding:10px 12px;text-align:start;border:2px solid transparent;transition:background .12s,border-color .12s}.mode-row:hover{background:var(--raised-hover)}.mode-row.sel{border-color:var(--green);background:#3a4a2c}.mode-icon{width:40px;height:40px;border-radius:8px;background:#00000040;display:grid;place-items:center;color:var(--text);flex:none}.mode-row.sel .mode-icon{background:var(--green)}.mode-text{display:flex;flex-direction:column;gap:1px;min-width:0}.mode-text b{color:var(--text);font-size:15px}.mode-text span{color:var(--muted);font-size:12.5px}.mode-row.sel .mode-text span{color:#cbd9bd}.path-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px;margin-bottom:10px}.path-tile{display:flex;align-items:center;gap:8px;background:var(--raised);border-radius:6px;padding:9px 10px;text-align:start;border:2px solid transparent;font-size:13.5px}.path-tile:hover:not(:disabled){background:var(--raised-hover)}.path-tile.sel{border-color:var(--green)}.path-icon{color:var(--text-2);display:grid;place-items:center}.path-name{flex:1;color:var(--text);font-weight:600}.path-count{color:var(--muted);font-size:12px;font-family:var(--mono)}.level-row{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.level{background:var(--raised);border-radius:6px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;border:2px solid transparent}.level:hover{background:var(--raised-hover)}.level.sel{border-color:var(--green)}.level-n{font-size:18px;font-weight:800;color:var(--text)}.level-l{font-size:12px;color:var(--muted)}.ng-split{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:start}.color-row{display:flex;gap:8px}.color-tile{width:82px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 6px;border-radius:8px;border:2px solid transparent;background:var(--raised);font-size:12.5px;font-weight:600}.color-tile .glyph{font-size:36px;line-height:1.1}.color-tile.w .glyph{color:#fff;-webkit-text-stroke:1.2px #1a1917}.color-tile.b .glyph{color:#1a1917;-webkit-text-stroke:1.2px #d6d5d3}.color-tile.sel{border-color:var(--green)}.ng-switches{display:flex;flex-direction:column;gap:8px;padding-top:26px}.ethics{display:flex;gap:8px;align-items:flex-start;color:var(--muted);background:var(--surface-2);border-radius:6px;padding:9px 12px;font-size:12.5px;margin:4px 0 16px}.ethics svg{flex:none;margin-top:2px}.ng-actions{display:flex;flex-direction:column;gap:10px}.welcome{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 16px;max-width:520px;margin:0 auto}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%);background:#fff;color:#262421;font-weight:600;padding:11px 18px;border-radius:8px;z-index:60;box-shadow:0 10px 30px #00000073;max-width:calc(100vw - 32px);border-inline-start:5px solid var(--green)}.toast.err{border-inline-start-color:var(--red)}.foot{display:flex;align-items:center;justify-content:center;gap:6px;padding:12px 16px 18px;color:#7c7a77;font-size:12px;text-align:center}.mission-title{margin:10px 0 12px}.task-card{background:var(--surface-2);border-radius:8px;padding:14px;border-inline-start:4px solid var(--green)}.task-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.task-head h4{margin:0;font-size:15px}.task-count{font-family:var(--mono);font-size:12.5px;color:var(--muted);background:var(--raised);border-radius:99px;padding:1px 9px}.task-text{margin:0 0 8px;color:var(--text);font-weight:600}.todo{list-style:none;padding:0;margin:12px 0 0;display:flex;flex-direction:column;gap:6px;counter-reset:none}.todo li{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border-radius:6px;background:#ffffff08;color:var(--text-2)}.todo-n{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:800;background:var(--raised);color:var(--text-2)}.todo-text{display:flex;flex-direction:column;gap:2px;padding-top:2px}.todo li.current{background:#81b64c24;color:var(--text);box-shadow:inset 0 0 0 1px #81b64c73}.todo li.current .todo-n{background:var(--green);color:#fff}.todo-now{font-size:11.5px;font-weight:700;color:var(--green)}.todo li.ok{color:var(--muted)}.todo li.ok .todo-text{text-decoration:line-through;text-decoration-color:#ffffff40}.todo li.ok .todo-n{background:var(--green-shadow);color:#fff}.task-foot{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 0;font-size:12px}.guide{margin-top:14px;border-radius:8px;background:var(--surface-2);overflow:hidden}.guide-toggle{width:100%;display:flex;align-items:center;gap:8px;padding:11px 14px;font-weight:700;color:var(--text)}.guide-toggle span{flex:1;text-align:start}.guide-toggle .chev{transition:transform .15s;color:var(--muted)}.guide.open .guide-toggle .chev{transform:rotate(180deg)}.guide-body{padding:0 14px 14px}.guide .steps,.guide .step-body{background:var(--surface)}.step-n{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#ffffff1a;font-size:11px;margin-inline-end:6px}.steps button.sel .step-n{background:var(--green);color:#fff}.next-sec{margin-top:8px}.observe{margin-top:10px}.observe summary{cursor:pointer;color:var(--text-2);font-weight:600}.terms{margin:10px 0 2px;background:#ffffff0a;border-radius:6px;padding:8px 10px}.terms-h{font-size:12px;font-weight:700;color:var(--muted);margin-bottom:6px}.terms dl{margin:0;display:flex;flex-direction:column;gap:4px}.term-row{display:flex;align-items:baseline;gap:10px}.term-row dt{flex:none}.term-row dt code{color:#f2cc78;background:#e6b34a1a}.term-row dd{margin:0;color:var(--text)}.answer-format{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:10px;padding:8px 10px;border-radius:6px;background:#81b64c1a;color:var(--text)}.af-h{flex:none;font-size:12px;font-weight:700;color:var(--green)}.step-strip{display:flex;align-items:center;gap:8px;width:100%;text-align:start;padding:8px 12px;background:#2b3a20;color:#e4f1d6;font-size:13.5px;border-bottom:1px solid #1a1917}.step-strip:hover{background:#324526}.step-strip-n{flex:none;font-family:var(--mono);font-weight:800;background:var(--green);color:#fff;border-radius:4px;padding:0 7px;font-size:12px}.step-strip-label{flex:none;font-weight:700;color:#b5e07f}.step-strip-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}@media (min-width: 1100px){.app{height:100vh}.layout{flex:1;min-height:0;overflow:hidden;align-items:stretch;padding:14px 20px;max-width:none;grid-template-columns:auto minmax(560px,1fr);gap:20px}.board-col{width:auto}.play{min-height:0;height:100%}.board-col{flex:1;min-height:0;overflow:hidden;align-items:flex-start}.sidebar{position:static;height:100%;min-height:0;gap:12px}.side-card{flex:1 1 0;min-height:0;display:flex;flex-direction:column}.tab-body{flex:1;min-height:0;max-height:none}.terminal-card{flex:0 0 42%;min-height:230px}.xterm-host{min-height:0}.hide-desktop{display:none}}@media (min-width: 1600px){.sidebar{flex-direction:row;gap:14px}.side-card{flex:1 1 46%}.terminal-card{flex:1 1 54%;min-height:0}}@media (max-width: 1100px){.layout{grid-template-columns:1fr;padding:14px 16px}.sidebar{position:static}.tab-body{max-height:none}}@media (max-width: 640px){.board-footer{flex-direction:column}.san-form input{flex:1;width:auto}.topbar{padding:8px 16px;gap:10px}.xp{order:3;width:100%;min-width:0}.tagline,.ctl span{display:none}.ng-split{grid-template-columns:1fr}.ng-switches{padding-top:0}.level-l{font-size:11px}.newgame{padding:18px 16px}}/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}
