:root{--bg:#eeeee8;--ink:#26302d;--terminal:#172026;--green:#a4e6bd;--gold:#edc886;--red:#c9654f;--mono:ui-monospace,'DejaVu Sans Mono',monospace}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px Arial,Helvetica,sans-serif}main{width:min(100%,1012px);margin:38px auto 24px;padding:0 30px}header{margin-bottom:26px}h1{font-size:40px;letter-spacing:-1.7px;margin:0 0 10px;line-height:1.1}code{font-family:var(--mono);font-size:.92em}header p{margin:0;color:#59655e;font-size:16px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #deab4d;outline-offset:4px}.terminal{background:var(--terminal);color:#edf3ef;border-radius:8px 8px 0 0;position:relative;z-index:2}.terminal-top{height:36px;border-bottom:1px solid #354047;display:flex;align-items:center;gap:15px;padding:0 22px;color:#a7b0b1;font:12px var(--mono)}.lights{display:flex;gap:7px}.lights i{width:6px;height:6px;background:#68777d;border-radius:50%}.shell-name{margin-left:auto;color:#728181}#stage{position:relative;height:216px;font:24px var(--mono);line-height:1.5}.command{position:absolute;left:26px;top:28px;white-space:pre;display:flex;align-items:center;height:44px}.prompt{color:#7b8f8c;margin-right:20px}.program{color:#fff}.code-button{height:44px;min-height:44px;border:0;position:relative;background:none;border-radius:0;padding:0;font:inherit;line-height:1.5;transition:background .15s}.code-button:hover{background:#ffffff0d}.value{color:var(--green)}.wild{color:var(--gold)}.code-button.value{background:#355a4933}.code-button.value:hover{background:#355a4977}.code-button[aria-pressed=true]{box-shadow:inset 0 -3px currentColor}.quote-mark{color:#eaf4eb}#editable{display:inline-flex;align-items:center}#moving{position:absolute;inset:0;pointer-events:none}.piece{position:absolute;top:0;left:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;padding:3px 0;border-radius:3px;transition:transform .65s cubic-bezier(.2,.65,.2,1);will-change:transform}.origin{color:var(--green);background:#355a4944}.pattern{color:var(--gold)}.protected{box-shadow:inset 0 -2px currentColor}.no-match{box-shadow:inset 0 -2px #ed9882}.matched{background:#9bb9a414}.transport{display:flex;align-items:center;gap:8px;padding:0 22px 16px}button.run{height:42px;border:0;border-radius:4px;background:#b9e8c5;color:#172b20;font-weight:bold;min-width:118px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 16px;font-size:14px}.run svg{width:15px;height:15px;fill:currentColor}.step{height:44px;width:44px;display:grid;place-items:center;border:1px solid #53635f;border-radius:4px;background:none;color:#c4d2c8}.step:hover{background:#ffffff0d}.step svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}#dots{display:flex;gap:7px;margin-left:auto}#dots i{width:6px;height:6px;border:1px solid #9cb8a7;border-radius:50%}#dots i.on{background:var(--green);border-color:var(--green)}.receive{padding:16px 24px 20px;background:#dde3d9;position:relative;z-index:1}h2{font-size:13px;font-weight:normal;color:#4d6053;margin:0 0 12px}#slots{display:flex;align-items:stretch;gap:8px;min-height:44px;flex-wrap:wrap}.slot{border:1px solid #879b88;border-radius:3px;min-height:42px;padding:10px 12px;font:14px/1.4 var(--mono);background:#f3f6ee;overflow-wrap:anywhere;max-width:100%}.slot.placeholder{border-style:dashed;background:transparent;width:120px;opacity:.55}.slot.failed{border-color:#c27964;background:#f6ece4}.slot.receiving{color:transparent}.world{position:relative;display:grid;grid-template-columns:1fr 36px 1fr;gap:0 18px;padding:24px 24px 13px;border-bottom:1px solid #c7cfc3}.folder-head{height:34px;display:flex;align-items:center;gap:9px;font:17px var(--mono);min-width:0}.folder-head>svg{width:25px;height:22px;fill:#cedaca;stroke:#758d78;stroke-width:1.2;flex-shrink:0}.folder-head .pencil{width:13px;height:14px;fill:none;stroke:#7d8f7d;margin-left:-5px}.folder-head input{width:100%;min-width:0;border:0;border-bottom:1px solid #9cac99;padding:6px 0;background:transparent;font:inherit;color:var(--ink);border-radius:0;height:42px}.folder-head input:focus{border-bottom-color:#354e39;outline-offset:1px}.copy-arrow{width:30px;height:20px;align-self:start;margin-top:55px;fill:none;stroke:#8ba08a;stroke-width:1.5}.folder ul{list-style:none;padding:0;margin:12px 0 6px;font:13px/1.4 var(--mono)}.file{display:flex;align-items:center;gap:8px;padding:3px 0;min-height:27px;overflow-wrap:anywhere}.file svg{width:16px;height:20px;stroke:#7d927c;fill:#f7f8f1;stroke-width:1;flex-shrink:0}.file.copied{color:#356140}.file.copied svg{fill:#d4e6ca;stroke:#6b946b}.file.unrelated{color:#a45236}.file.unrelated svg{fill:#efd8b2;stroke:#ac7956}.file.private{color:#a45236}.empty{color:#91a18e;padding:5px 0;font-size:12px}.neighbors{grid-column:1/-1;display:flex;align-items:center;gap:20px;min-height:27px;margin-top:5px;color:#6c7c68;font:11px var(--mono)}.neighbor{display:flex;align-items:center;gap:5px}.neighbor svg{width:12px;height:14px;stroke:currentColor;fill:none;stroke-width:1.2;flex-shrink:0}#result{font-size:15px;line-height:1.4;min-height:43px;padding:13px 24px 0;margin:0;color:#435b46}#result.error{color:#98503b}footer{max-width:700px;padding:20px 24px 0}footer p{font-size:14px;line-height:1.5;margin:0 0 14px;color:#53614f}footer small{font-size:11px;color:#7a8575}.file-flight{position:fixed;z-index:8;pointer-events:none;font:13px var(--mono);background:#edf4e7;border:1px solid #8ba382;padding:5px 7px;color:#345139;border-radius:2px}.invalid{border-bottom-color:#b65c48!important}@media(min-width:900px){.world{grid-template-columns:1fr 66px 1fr}.copy-arrow{justify-self:center}#result{font-size:16px}}
@media(max-width:600px){main{margin:22px auto 15px;padding:0 18px}header{margin-bottom:19px}h1{font-size:29px;letter-spacing:-1.05px;margin-bottom:8px}header p{font-size:13px;line-height:1.4;max-width:310px}.terminal-top{height:31px;padding:0 14px;font-size:10px}#stage{height:157px;font-size:15px}.command{left:14px;top:21px}.prompt{margin-right:10px}.transport{padding:0 14px 13px;gap:7px}button.run{height:42px;min-width:107px;padding:0 13px;gap:15px}.step{height:44px;width:44px}.receive{padding:13px 14px 14px}h2{font-size:11px;margin-bottom:9px}#slots{gap:6px;min-height:36px}.slot{min-height:36px;font-size:11px;padding:8px;line-height:1.4}.slot.placeholder{width:82px}.world{padding:17px 10px 9px;gap:0 10px;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}.folder-head{font-size:12px;gap:6px;height:30px}.folder-head>svg{width:21px;height:18px}.folder-head input{height:36px}.folder-head .pencil{width:10px;display:none}.folder ul{font-size:10px;margin:9px 0 5px}.file{gap:5px;min-height:25px}.file svg{width:13px;height:17px}.copy-arrow{width:20px;margin-top:46px}.neighbors{font-size:9px;gap:12px;margin-top:2px;flex-wrap:wrap;min-height:24px}.neighbor{gap:4px}.neighbor svg{width:10px;height:12px}#result{font-size:12px;line-height:1.45;padding:11px 10px 0;min-height:43px}footer{padding:13px 10px 0}footer p{font-size:12px;line-height:1.5;margin-bottom:9px}footer small{font-size:9px}.file-flight{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:0s!important;animation-duration:0s!important}.piece{will-change:auto}}

.piece{outline:1.5px solid transparent;outline-offset:3px}
#moving.cut .piece{outline-color:#86ad93}
#moving.cut .piece.no-match{outline-color:#ed9882}
#moving.cutting .piece{animation:boxed .45s .4s both}
@keyframes boxed{from{outline-color:transparent}}
.value-space{background:#ed988249;outline:1px solid #ed9882;outline-offset:-1px}
.protected .value-space{background:#a4e6bd33;outline-color:#a4e6bd}
.split-links,.fan-links{position:absolute;inset:0;overflow:visible;fill:none;pointer-events:none}
.split-links{stroke:#ed9882;stroke-width:1.5}
.cut-bridge{stroke-dasharray:2 2;opacity:.85}
.cut-mark{stroke-width:2.5;animation:cut .65s ease-out both;transform-box:fill-box;transform-origin:center}
.fan-links{stroke:#86ad93;stroke-width:1.2;opacity:.8}
@keyframes cut{from{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}
@media (prefers-reduced-motion:reduce){#moving.cutting .piece,.cut-mark{animation:none}}

@media(max-width:600px){#moving.fanout{font-size:14px}}
