:root{--world-background:#e5dfd0;--world-ink:#35443e;color:#273850;font-synthesis:none;-webkit-font-smoothing:antialiased;background:#eef2f5;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;font-weight:400}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:#40536c;background:#fff;border:1px solid #dce3eb;border-radius:7px;min-height:36px;padding:8px 12px}button:hover{background:#edf3ff;border-color:#a6bce7}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline-offset:3px;outline:3px solid #4c7ded}[hidden]{display:none!important}.workspace{max-width:1040px;margin:auto;padding:12px 24px 14px}.masthead{align-items:center;gap:24px;min-height:32px;display:flex}.lock-icon{vertical-align:middle;color:var(--muted,#586980);display:inline-flex}.forge-heading h1 .lock-icon{margin-left:12px}#locked-puzzle .lock-icon,#locked-forge .lock-icon,#locked-world .lock-icon{margin-right:12px}.section-navigation{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px;margin-left:auto;display:flex}.section-navigation button{background:0 0;border-color:#0000;min-height:28px;padding:4px 12px}.section-navigation button[aria-current=page]{color:#285cc4;background:#e2eaf6}.forge-heading{margin:28px 0 24px}.forge-heading h1:focus{outline:none}.forge-heading p{color:#65778d}.collection-list{min-width:0}.collection-subheading{margin:24px 0 12px;font-size:16px;font-weight:600}.level-list-scroll{background:#fff;border:1px solid #dce3eb;border-radius:8px;width:100%;overflow-x:auto}.level-list-table{border-collapse:collapse;text-align:left;width:100%}.level-list-table thead{color:#708198;background:#f5f7fa;font-size:12px}.level-list-table th,.level-list-table td{padding:16px 20px}.level-list-table tbody th,.level-list-table tbody td{border-top:1px solid #e5ebf2}.level-list-table tbody th{font-weight:400}.level-list-table h2{margin:0;font-size:16px;font-weight:600;line-height:1.5}.level-list-table .level-list-completion{text-align:center;vertical-align:middle;width:16px;padding:16px 8px}.level-completed{color:#27804a;font-size:16px;font-weight:700;display:inline-block}.level-list-table p{color:#65778d;margin:5px 0 0;font-size:13px;line-height:1.5}.level-list-table .forge-error{color:#a63838}.level-list-number{color:#708198;font-variant-numeric:tabular-nums;width:60px}.level-list-author{color:#65778d;min-width:72px;font-size:13px}.level-list-table .level-list-score{text-align:center;font-variant-numeric:tabular-nums;width:1%;min-width:78px;padding:12px 10px}.level-list-table:has(.level-list-score) tbody th[scope=row]{min-width:220px}.level-list-actions{gap:6px;display:flex}.level-list-table .level-list-action-cell{width:1%}.playable-level{cursor:pointer}.playable-level:hover,.playable-level:focus-within{background:#f4f8ff}.level-list-table h2 a{color:inherit;text-decoration:none}.level-list-table h2 a:hover{color:#285cc4}@media (width<=640px){.masthead{gap:8px}.section-navigation button{padding:4px 7px}.level-list-table th,.level-list-table td{padding:12px 10px}.level-list-table h2,.level-list-table p,.level-list-author{overflow-wrap:anywhere}.level-list-actions{flex-direction:column;align-items:flex-start}}.forge-error{color:#a63838;overflow-wrap:anywhere}.forge-empty{color:#65778d;padding:32px 0}.forge-play-controls{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px;display:flex}#forge-change-notice{color:#855b1a;align-items:center;gap:12px;display:flex}.level-heading{justify-content:space-between;align-items:center;gap:24px;margin:8px 0;display:flex}h1{letter-spacing:-1px;margin:3px 0 0;font-size:30px;font-weight:600;line-height:1.2}.level-objective{color:#415975;margin:6px 0 4px;font-size:18px;font-weight:500;line-height:1.45}.board-card{background:#fff;border:1px solid #d9e1ea;border-radius:12px;overflow:hidden;box-shadow:0 8px 32px #293c5510}.board-toolbar{justify-content:flex-end;align-items:center;gap:12px;min-height:56px;padding:9px 16px;display:flex}.actions{align-items:center;gap:8px;display:flex}.quiet{border-color:#0000;font-size:12px}.drag-trace-download{white-space:normal;text-align:left;color:#624a12;background:#fff5d6;border:1px solid #c99c31;align-items:center;gap:6px;width:360px;min-width:0;max-width:100%;margin-right:auto;padding:3px 12px;font-size:12px;font-weight:600;line-height:14px;display:inline-flex;box-shadow:0 1px 2px #59420b1a}.drag-trace-download svg{flex-shrink:0}.drag-trace-download:hover{color:#493509;background:#ffecae;border-color:#a97813}.drag-trace-download:active{background:#ffe391;box-shadow:inset 0 1px 2px #59420b26}.cost-summary{z-index:1;pointer-events:none;white-space:nowrap;color:#273850;font-variant-numeric:tabular-nums;flex-direction:column;justify-content:center;align-items:flex-end;gap:8px;height:13.7931%;font-size:12px;font-weight:500;display:flex;position:absolute;bottom:0;right:2.5%}.cost-summary strong{font-weight:600}.cost-summary:has(#circuit-score:not([hidden])){gap:3px}#canvas-viewport{touch-action:auto;overscroll-behavior-x:contain;overscroll-behavior-y:auto;border-top:1px solid #e6ecf2;border-bottom:1px solid #e6ecf2;max-height:736px;position:relative;overflow:auto}#canvas-host{aspect-ratio:960/696;background:#f9fbfd;width:100%;min-width:768px;position:relative}canvas{touch-action:none;-webkit-user-select:none;user-select:none;outline:none;width:100%;height:100%;display:block}canvas:focus-visible{outline-offset:-3px;outline:2px solid #7da0e8}kbd{font:inherit;color:#8290a0;background:#f8fafc;border:1px solid #dbe2e9;border-radius:4px;padding:1px 4px;font-size:10px}.dev-panel{color:#6a7a8d;background:#f5f7fa;border:1px solid #dce3eb;border-radius:7px;padding:10px 14px;font-size:11px}.dev-panel summary{cursor:pointer;letter-spacing:.3px}.tuning-grid{flex-wrap:wrap;gap:18px;margin-top:14px;display:flex}.tuning-grid label{grid-template-columns:130px 90px 30px;align-items:center;gap:6px;display:grid}.tuning-grid input{accent-color:#356de8;width:90px}@media (width<=850px){.workspace{padding:16px}.level-heading{margin:25px 0 18px}.level-objective{max-width:none;font-size:16px}h1{font-size:25px}}@media (width<=520px){.level-heading{display:block}.level-objective{max-width:none;margin-top:4px}.actions{gap:2px}.actions button{padding:7px;font-size:11px}.workspace{padding:12px}}.drag-tooltip{pointer-events:none;z-index:20;color:#41639a;background:#ffffffef;border:1px solid #d5e0f2;border-radius:7px;max-width:280px;padding:8px 11px;font-size:11px;line-height:1.4;box-shadow:0 3px 16px #27385015}.drag-tooltip[data-error=true]{color:#b24b4b;border-color:#e8c6c6}.compute{color:#fff;background:#356de8;border-color:#356de8;min-width:86px}.compute:hover{color:#fff;background:#285dd0}.completion-banner{background:#edf8f2;border-bottom:1px solid #d4e9de;justify-content:center;align-items:center;gap:16px;padding:12px 16px;display:flex}.completion-banner p{color:#237c69;margin:0;font-size:14px;font-weight:500}@media (width<=700px){.actions{flex-wrap:wrap;justify-content:flex-end}.board-toolbar{height:64px}.actions button{min-height:40px}}.fixed-slot{transform:translate(-50%,-50%) scale(var(--fixed-slot-scale,1));transform-origin:50%;z-index:2;width:38px;height:28px;position:absolute}.fixed-slot input{box-sizing:border-box;color:#215d66;text-align:center;touch-action:manipulation;background:#ffffffa6;border:1px solid #a6c8cd;border-radius:5px;width:100%;height:100%;padding:2px;font:12px Arial,sans-serif}.fixed-slot.editing{z-index:5;transform:translate(-50%,-50%)}.fixed-slot.editing input{background:#fff;outline:2px solid #356de8;width:180px;max-width:40vw;position:relative;left:50%;transform:translate(-50%)}.fixed-fill{visibility:hidden;color:#407580;cursor:pointer;background:0 0;border:0;border-radius:5px;place-items:center;width:28px;height:28px;min-height:28px;padding:4px;display:grid;position:absolute;top:50%;left:calc(50% + min(90px,20vw) + 4px);transform:translateY(-50%)}.fixed-slot.editing .fixed-fill{visibility:visible}.fixed-fill svg{width:20px;height:20px}.fixed-fill:hover{background:#e5f2f4}.fixed-fill:focus-visible{outline-offset:2px;outline:2px solid #356de8}.fixed-slot input:disabled{opacity:1;color:#215d66;cursor:default}.fixed-slot:has(input:disabled){pointer-events:none}.fixed-slot input[aria-invalid=true]{border-color:#c44747}.visual-review{align-items:center;gap:10px;margin-right:auto;display:flex}.visual-review label{color:#526a80;align-items:center;gap:8px;font-size:12px;display:flex}.visual-review select{font:inherit;color:#273850;background:#fff;border:1px solid #c2d2df;border-radius:6px;padding:8px 12px}[data-action=fast-forward][aria-pressed=true]{color:#fff;background:#356de8}@media (width<=850px){.board-toolbar:has(.visual-review){flex-wrap:wrap;gap:8px;height:auto;min-height:64px}.visual-review label{gap:0;font-size:0}.visual-review select{padding:8px;font-size:12px}}.workspace-strip{background:#fbfcfe;border-top:1px solid #e6ecf2;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 20px;padding:8px 16px;display:flex}.summary-label{color:#65778d;font-size:11px}.summary-clock{background:#eef3f7;border:1px solid #b6c6d6;border-radius:50%;width:52px;height:52px;display:block;position:relative}.summary-clock span{font-variant-numeric:tabular-nums;font-size:11px;position:absolute;transform:translate(-50%,-50%)}.expected .summary-clock{color:#237c69;background:#f2f8f5;border-color:#c3dace}.workspace-navigation{flex-direction:column;align-items:flex-end;gap:4px;margin-left:auto;display:flex}.navigation-buttons{align-items:center;gap:6px;display:flex}#canvas-host{overflow:hidden}@media (width<=650px){.workspace-strip{gap:8px;padding:8px}}.puzzle-examples{background:#fbfcfe;border-top:1px solid #e6ecf2;flex-wrap:wrap;justify-content:center;gap:20px 56px;padding:16px 20px;display:flex}.puzzle-example{align-items:center;gap:18px;display:flex}.example-value{flex-direction:column;align-items:center;gap:6px;display:flex}.example-arrow{color:#8c9caf;padding-top:18px}.blue-board-accessibility button.connection-marker{color:#536d88;pointer-events:auto;cursor:pointer;background:0 0;border:0;border-radius:50%;width:32px;height:32px;font-size:22px;font-weight:600}.blue-board-accessibility button.connection-marker:hover,.blue-board-accessibility button.connection-marker:focus-visible{color:#356de8;border-color:#356de8;outline:2px solid #c1d3fc}.blue-board-accessibility button.connection-marker:disabled{pointer-events:none;opacity:.6}@media (pointer:coarse){.blue-board-accessibility button.connection-marker{width:44px;height:44px}}.forge-editor{gap:20px;max-width:800px;margin:0 auto;display:grid}.forge-editor fieldset{background:#fff;border:1px solid #dce3eb;border-radius:10px;min-width:0;margin:0;padding:20px}.forge-editor legend{padding:0 6px;font-weight:650}.forge-required{color:#708198;margin-left:8px;font-size:10px;font-weight:500}.forge-field{flex:1;gap:7px;min-width:0;margin-bottom:16px;display:grid}.forge-field>span{color:#53667e;font-size:13px}.forge-field input,.forge-field textarea,.forge-test-table input{width:100%;font:inherit;color:inherit;background:#fbfcfe;border:1px solid #c9d4e2;border-radius:6px;padding:10px 12px}.forge-field textarea{resize:vertical;min-height:80px}.forge-field input::placeholder,.forge-field textarea::placeholder,.forge-test-table input::placeholder{color:#8895a6;opacity:1}.forge-field input:focus-visible,.forge-field textarea:focus-visible,.forge-test-table input:focus-visible,.forge-test-scroll:focus-visible{outline-offset:2px;outline:2px solid #4c7ded}.forge-test-table input.forge-vector{font-family:ui-monospace,monospace;font-size:13px}.forge-test-scroll{border:1px solid #dce3eb;border-radius:8px;max-width:100%;margin:16px 0;overflow-x:auto}.forge-test-table{border-collapse:separate;border-spacing:0;text-align:left;width:100%;font-size:13px}.forge-test-table th,.forge-test-table td{min-width:230px;padding:10px}.forge-test-table thead{background:#f4f7fb}.forge-test-table tbody td,.forge-test-table tbody th{border-top:1px solid #e5ebf2}.forge-test-table .forge-output-start{border-left:2px solid #d5e0ef}.forge-test-table .forge-test-number{white-space:nowrap;color:#607188;width:70px;min-width:70px}.forge-test-number button{margin-left:4px}.forge-column-group{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.forge-column-group button{background:#fff;min-height:30px;padding:4px 8px;font-size:12px}.forge-column-label{align-items:center;gap:6px;display:flex}.forge-column-label input{background:#fff;min-width:0;font-weight:600}.forge-column-label button,.forge-test-number button{color:#708198;background:0 0;border-color:#0000;flex-shrink:0;width:28px;min-height:28px;padding:0;font-size:18px}.forge-column-label button:hover:enabled,.forge-test-number button:hover:enabled{color:#273850;background:#e6edf6}.forge-test-table .forge-no-inputs{color:#708198;font-weight:400}.forge-operations>label:not(.forge-field){align-items:center;gap:6px;margin:0 16px 20px 0;display:inline-flex}.forge-operations .forge-field{max-width:200px;margin-bottom:0}.forge-editor fieldset fieldset{background:#f8fafc;margin:16px 0}.forge-editor-actions,.forge-list-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.forge-list-actions{margin:16px 0}.forge-help{color:#708198;margin:0;font-size:12px;line-height:1.6}.forge-editor .forge-error button{margin-left:12px}.terminal-rail{overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#b8c9d9 transparent;position:absolute;top:0;overflow:hidden auto}.terminal-rail[data-side=inputs]{direction:rtl}.terminal-rail:focus-visible{outline-offset:-2px;outline:2px solid #4c7ded}.terminal-rail-hint{pointer-events:none;color:#687c91;font-size:10px;position:absolute;top:4px;left:8px}.terminal-rail-hint[data-side=outputs]{left:auto;right:8px}.puzzle-example{flex-wrap:wrap;justify-content:center;max-width:100%}.puzzle-example .example-value{min-width:80px;max-width:144px}.puzzle-example .summary-label{overflow-wrap:anywhere;text-align:center;max-width:100%}.forge-editor-notice{color:#855b1a;flex-wrap:wrap;align-items:center;gap:12px;max-width:800px;margin:0 auto 20px;display:flex}.forge-original-actions{color:#607188;max-width:800px;margin:20px auto 0}.forge-original-actions summary{cursor:pointer}.forge-original-actions p{margin:12px 0}.forge-save-area:empty,.forge-save-status:empty{display:none}.forge-save-area{line-height:1.7}.forge-save-area>button{margin:6px}.forge-save-status{margin:0}.forge-save-destination{overflow-wrap:anywhere;padding:10px 0;font:12px ui-monospace,monospace}.forge-draft{border-style:dashed}.forge-draft .forge-help{margin-bottom:14px}.forge-field select{width:100%;font:inherit;color:inherit;background:#fbfcfe;border:1px solid #c9d4e2;border-radius:6px;padding:10px 12px}.depth-wire-layer{pointer-events:none;position:absolute;inset:0;overflow:hidden}.depth-wire-badge{color:#42726d;font-variant-numeric:tabular-nums;background:#f9fbfde8;border-radius:5px;align-items:center;gap:5px;padding:2px 5px;font-size:11px;font-weight:600;line-height:14px;display:flex;position:absolute;transform:translate(-50%,-50%)}#circuit-depth{color:#42726d;white-space:normal;text-align:right;max-width:240px}.numeric-hint{color:#65778d;margin:8px 0 0;font-size:12px;line-height:1.6}.value-label-layer{pointer-events:none;position:absolute;inset:0;overflow:hidden}.value-label-leaders{width:100%;height:100%;position:absolute;inset:0}.value-label-leaders line{stroke:#a5b6c5;stroke-width:1px}.gate-value-label{white-space:pre-line;overflow-wrap:anywhere;color:#375877;font-variant-numeric:tabular-nums;background:#f9fcffed;width:max-content;max-width:180px;padding:3px 5px;font-size:11px;line-height:1.5;position:absolute}.value-label-layer[data-previous=true] .gate-value-label{color:#86682e;background:#fffaf0ed}.value-hover-box{z-index:20;pointer-events:none;white-space:pre;color:#375877;background:#fffffff2;border:1px solid #d5e0f2;border-radius:7px;width:max-content;padding:5px 8px;font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;position:absolute;box-shadow:0 3px 16px #27385015}.value-hover-box[data-previous=true]{color:#86682e;background:#fffaf0f2;border-color:#ecdcb8}.group-toolbar{background:#fbfcfe;border-top:1px solid #e1e8f0;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 16px;display:flex}.group-toolbar button{padding:6px 10px;font-size:12px}.group-count{color:#61748b;margin:0 8px;font-size:12px}.circuit-dialog{color:#273850;border:1px solid #b6c6d6;border-radius:12px;width:min(620px,90vw);max-height:85vh;padding:24px;overflow:auto}.circuit-dialog::backdrop{background:#20344b55}.circuit-dialog label{flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;font-size:13px;display:flex}.circuit-dialog input:not([type=checkbox]){border:1px solid #b6c6d6;border-radius:6px;flex:1;min-width:120px;padding:8px}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:18px;display:flex}.dialog-actions:empty{display:none}dialog>button.dialog-close{float:right;z-index:1;background-color:inherit;width:32px;height:32px;min-height:0;color:inherit;border:0;border-radius:50%;margin:-12px -12px 4px 8px;padding:0;font-size:24px;line-height:1;position:sticky;top:0}dialog>button.dialog-close:hover{box-shadow:inset 0 0 0 16px #20344b14}.library-entry{border-top:1px solid #e1e8f0;padding:12px 0}.library-entry h3{margin:4px 0}.library-entry button{margin:4px;font-size:12px}.save-point-form{align-items:center;gap:10px;display:flex}.save-point-form label{flex:1}.circuit-thumbnail{width:180px;height:90px;display:block}.component-layer{pointer-events:none;z-index:3;position:absolute;inset:0}.custom-gate{box-sizing:border-box;transform-origin:50%;background:#fbfdffcc;border:1px dashed #a4b8d1;border-radius:10px;position:absolute}.custom-gate[data-selected=true]{background:#eef3ff;border-color:#356de8}.custom-gate[data-invalid=true]{background:#fff1f1;border-color:#b43737}.custom-gate[data-active=true]{border-color:#356de8;box-shadow:0 0 0 4px #356de822}.custom-gate button{pointer-events:auto;padding:3px 6px;font-size:10px}.custom-gate .component-title{text-overflow:ellipsis;white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;width:calc(100% - 16px);height:16px;min-height:0;padding:0 2px;font-size:9px;font-weight:500;line-height:16px;position:absolute;top:5px;left:8px;overflow:hidden}.component-port-label{white-space:nowrap;text-overflow:ellipsis;max-width:94px;font-size:11px;position:absolute;overflow:hidden}.component-port-label.input{left:8px}.component-port-label.output{text-align:right;right:8px}.component-open{position:absolute;bottom:7px;right:7px}.component-values{white-space:pre-wrap;overflow-wrap:anywhere;color:#35608a;background:#f5f9fddd;width:240px;padding:5px;font-size:11px;position:absolute;top:calc(100% + 34px);left:-10px}.custom-gate[data-previous=true] .component-values{color:#93682e}.is-component-open .terminal-rail,.is-component-open .puzzle-examples{display:none}.component-create.circuit-dialog{background:0 0;border:0;border-radius:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;position:fixed;inset:0;overflow:hidden}.component-create::backdrop{background:#e9f0f52b}.component-create>h2{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.component-create-drawing{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.creation-outline{fill:none;stroke:#356de8;stroke-width:1.5px;stroke-dasharray:6 5}.creation-port,.creation-pin{pointer-events:auto;outline:none}.creation-port-hit{fill:#0000}.creation-port-dot{fill:#fff;stroke:#356de8;stroke-width:2px}.creation-port-leader{fill:none;stroke:#356de8;stroke-width:1.5px;opacity:0}.creation-port-target{fill:#356de822;stroke:#356de8;stroke-width:2px;opacity:0}.creation-port:hover .creation-port-leader,.creation-port:focus .creation-port-leader{opacity:1}:is(.creation-port,.creation-pin):is(:hover,:focus) .creation-port-dot{fill:#356de8}.component-create-name,.component-create-footer{z-index:1;position:absolute;transform:translate(-50%)}.component-create-name{width:280px}.component-create .component-create-name input{box-sizing:border-box;width:100%;min-width:0;font:inherit;background:#fff;padding:10px 14px;font-size:16px;font-weight:600;line-height:1.4;box-shadow:0 3px 15px #243b5320}.component-create-footer{background:#f8fbff;border-radius:10px;justify-items:center;gap:8px 12px;width:max-content;max-width:min(560px,90vw);padding:8px;display:grid;box-shadow:0 3px 15px #243b5318}.component-create-footer .forge-error:empty{display:none}.component-create-footer .dialog-actions{margin:0}.component-create-footer .forge-error{max-width:360px;margin:0}.component-create-footer .forge-error:not(:empty){margin:0 0 8px}.component-create-footer .primary{color:#fff;background:#356de8;border-color:#356de8}.is-creating-component .depth-wire-layer,.is-creating-component .value-label-layer,.is-creating-component .connection-marker{visibility:hidden}.creation-port.input,.creation-pin{cursor:crosshair;touch-action:none}.creation-port-leader,.creation-port-target{pointer-events:none}.creation-port.input .creation-port-leader{opacity:.6}.creation-port.active .creation-port-leader,.creation-port.active .creation-port-target{opacity:1}:is(.creation-port,.creation-pin).active .creation-port-dot{fill:#356de8}:is(.creation-port,.creation-pin).available .creation-port-dot{stroke-width:3px;fill:#356de830}:is(.new-input,.new-output) .creation-port-dot{stroke-dasharray:3 2}.creation-port-plus{fill:none;stroke:#356de8;stroke-width:1.5px;stroke-linecap:round;pointer-events:none}.creation-pin:is(:hover,:focus,.active) .creation-port-plus{stroke:#fff}.creation-socket,.creation-result{pointer-events:none;fill:#0000;stroke:#0000;cursor:crosshair;outline:none}:is(.creation-socket,.creation-result).available{pointer-events:all;fill:#356de815;stroke:#356de866;stroke-width:1.5px}:is(.creation-socket,.creation-result):is(.hovered,:focus){fill:#356de830;stroke:#356de8;stroke-width:2px}.creation-wire-preview{pointer-events:none;fill:none;stroke:#356de8;stroke-width:2.5px}.creation-port.input:hover .creation-port-leader,.creation-port.input:focus .creation-port-leader{opacity:1}.creation-output{pointer-events:none}.creation-output-stub{fill:none;stroke:#8fa6c4;stroke-width:2px}.component-miniature{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.miniature-wire{fill:none;stroke:#819bbf;stroke-width:1.3px}.miniature-wire.boundary{stroke:#97acc8}.miniature-stub{fill:none;stroke:#819bbf;stroke-width:3px}.miniature-body{fill:#fff;stroke:#7396c9;stroke-width:3px}.miniature-body.fixed{fill:#d7ecee;stroke:#4d9daa}.miniature-symbol{fill:#356de8;font-family:system-ui,sans-serif;font-size:36px;font-weight:600}.component-port-label{background:#fbfdffe8;border-radius:3px}.component-create.circuit-dialog{pointer-events:none;z-index:20}.component-create-name,.component-create-footer{pointer-events:auto}.is-creating-component .component-layer{display:none}.is-creating-component .puzzle-examples,.is-creating-component .terminal-rail{visibility:hidden}.creation-port-leader{pointer-events:stroke}.is-editing-component-circuit .component-create-drawing *{pointer-events:none!important}.creation-port-leader:focus{stroke-width:3px;outline:none;opacity:1!important}.creation-output-hit{fill:none;stroke:#0000;stroke-width:12px;pointer-events:stroke;cursor:pointer;outline:none}.creation-output:focus-within .creation-output-stub{stroke:#356de8;stroke-width:3px}.online-account{margin-left:12px}.online-controls{flex-wrap:wrap;flex:1;align-items:center;gap:10px;margin:0;font-size:13px;display:flex}.online-controls span{color:var(--muted,#586980)}.online-dialog{color:#203655;background:#fff;border:1px solid #c5d4e5;border-radius:14px;width:min(560px,100vw - 32px);max-height:calc(100vh - 48px);padding:24px;box-shadow:0 18px 65px #18334c30}.online-dialog::backdrop{background:#13284055}.online-dialog h2{margin:0 0 12px;font-size:21px}.online-dialog p{font-size:14px;line-height:1.5}.online-dialog form{flex-wrap:wrap;gap:12px;margin:18px 0;display:flex}.online-dialog label{gap:6px;width:100%;font-size:14px;display:grid}.online-dialog input:not([type=checkbox]){width:100%;color:inherit;font:inherit;border:1px solid #9bafc8;border-radius:6px;padding:10px}.online-dialog input[type=checkbox]{width:20px;height:20px}.online-dialog button{padding:8px 12px}.online-dialog-body>button{margin:4px 8px 12px 0}.online-dialog [hidden],.online-controls [hidden]{display:none}.online-view-toggle{gap:6px;margin-bottom:12px;display:flex}.online-view-toggle button[aria-pressed=true]{color:#fff;background:#356de8;border-color:#356de8}.online-dialog [role=status]{width:100%}.online-profile{width:min(460px,100vw - 32px)}.online-profile form{margin:16px 0}.online-name-row{align-items:flex-end;gap:8px;width:100%;display:flex}.online-name-row>label{flex:1;min-width:0}.online-name-row>button{flex-shrink:0;min-height:40px}.online-dialog label.online-checkbox{align-items:center;gap:8px;display:flex}.online-checkbox input[type=checkbox]{flex-shrink:0;margin:0}.online-profile input[aria-invalid=true]{border-color:#a54040}.online-profile #online-name-feedback{margin:0}.online-profile .online-storage-note{color:#627064;margin:0;font-size:13px}.online-standings{border-collapse:collapse;width:100%;margin:16px 0;font-size:14px}.online-standings th,.online-standings td{text-align:left;border-bottom:1px solid #e0e8f0;padding:10px 7px}.online-standings .is-yours{background:#edf5ff}.online-histogram{margin:16px 0 0}.online-histogram figcaption{margin-bottom:4px;font-size:14px;font-weight:600}.online-histogram svg{width:100%;height:auto;display:block}.online-histogram text{fill:#536d88;font-size:11px}.online-histogram text.you{fill:#203655;font-weight:600}.online-histogram .grid{stroke:#e0e8f0;stroke-width:1px}.online-histogram .leader{stroke:#203655;stroke-width:1px}.online-histogram .bar{fill:#7fa3ee}.online-histogram .bar.is-yours{fill:#356de8}.board-toolbar:has(.online-controls){flex-wrap:wrap;gap:10px;height:auto;min-height:56px}.online-controls span:empty{display:none}.section-navigation .section-icon{color:var(--muted,#586980);white-space:nowrap;border-radius:6px;padding:6px 10px;font-size:13px;text-decoration:none}.section-navigation .section-icon:hover,.section-navigation .section-icon[aria-current=page]{color:var(--blue,#285cc4);background:#eaf1ff}.forge-heading:has(>.ranking-info) h1{vertical-align:middle;display:inline}.ranking-info{vertical-align:middle;color:#657060;background:0 0;border-color:#a5ad9f;border-radius:50%;width:24px;height:24px;min-height:24px;margin-left:10px;padding:0;font:600 16px/1 Georgia,serif}.ranking-info:hover{color:#35443e;background:#fff5;border-color:#657060}#overall-leaderboard>[role=status]:empty{display:none}.overall-results{margin-bottom:16px;overflow-x:auto}.overall-results .online-standings{width:100%}.online-friends{background:#fff;border:1px solid #e0e8f0;border-radius:10px;margin:0 0 20px;padding:16px;font-size:14px}.online-friends h2{margin:0 0 8px;font-size:17px}.online-friends p{margin:0 0 8px}.online-friends form{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.online-friends label{gap:4px;display:grid}.online-friends input{font:inherit;text-transform:uppercase;border:1px solid #9bafc8;border-radius:6px;padding:8px}.online-friends [role=status]:empty,.online-friends [hidden]{display:none}.online-friends [role=status]{margin-top:8px}.online-standings .online-unfollow{vertical-align:middle;color:#708198;background:0 0;border-color:#0000;min-width:24px;height:24px;margin:-4px 0 -4px 4px;padding:2px}.online-standings .online-unfollow:hover:enabled{color:#273850;background:#e6edf6}.online-unfollow svg{width:16px;height:16px}.online-friend-id button{margin-left:4px}.play-workspace{max-width:none;padding:8px 16px 12px}.play-workspace h1{font-size:23px;line-height:1.15}.play-workspace .level-objective{margin:4px 0 0;font-size:15px}.play-workspace .board-toolbar{min-height:46px;padding:6px 12px}.play-workspace .workspace-strip{padding:5px 12px}.play-workspace .workspace-navigation{flex-direction:row;align-items:center;gap:12px}.play-workspace .group-toolbar{padding:5px 12px}.play-workspace .forge-play-controls{margin-bottom:6px}.explorable-play #canvas-viewport{max-height:none}.explorable-play .cost-summary{height:96px;right:20px}@media (width<=700px){.play-workspace{padding:8px}.play-workspace .workspace-navigation{flex-wrap:wrap;gap:6px}}.play-workspace .workspace-tools{background:#fbfcfe;border-top:1px solid #e6ecf2;flex-wrap:wrap;align-items:center;display:flex}.play-workspace .workspace-tools .group-toolbar{border:0;flex:1}.play-workspace .workspace-tools .workspace-strip{border:0;margin-left:auto}.play-workspace h1:focus{outline:none}.level-title-row{align-items:center;gap:9px;display:flex}.level-name-row{align-items:baseline;gap:8px;display:flex}.level-information-button{color:#536653;background:0 0;border:0;flex-shrink:0;padding:0 3px;font-size:20px;line-height:1.2}.level-information{box-sizing:border-box;color:#35453d;background:#fffbed;border:1px solid #bdb79f;border-radius:8px;width:min(480px,100vw - 32px);max-height:calc(100svh - 32px);padding:26px;overflow:auto;box-shadow:0 12px 40px #253d3026}.level-information::backdrop{background:#23352d66}.level-information h2{overflow-wrap:anywhere;margin:0 0 16px;font-size:25px;font-weight:400;line-height:1.25}.level-information h2:focus{outline:none}.level-information p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 24px;line-height:1.6}.level-information-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.level-information-footer nav:not([hidden]){align-items:center;gap:10px;display:flex}.level-information-footer>button{margin-left:auto}.level-information button{color:#35453d;background:#f4f0df;border-color:#bdb79f;min-height:38px}.level-information button:disabled{opacity:.35}.level-completed{color:#237c69;font-size:22px;font-weight:700}.play-workspace .board-toolbar{flex-wrap:wrap;justify-content:space-between;gap:6px 12px;display:flex}.workspace-controls{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.play-workspace .workspace-strip{background:0 0;border:0;padding:0}.play-workspace .actions{flex-wrap:wrap;gap:6px;margin-left:auto}.play-workspace .online-controls{flex:initial;gap:8px}.play-workspace .online-controls>span:not(:empty){max-width:260px}.play-workspace .group-toolbar{flex-wrap:wrap}.play-workspace .completion-banner{background:0 0;border:0;gap:0;padding:0}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;overflow:hidden;margin:-1px!important;padding:0!important;position:absolute!important}.icon-button{justify-content:center;align-items:center;min-width:34px;height:34px;padding:6px;display:inline-flex}.icon-button svg{pointer-events:none;flex-shrink:0}.group-toolbar .icon-button{padding:6px}[data-tooltip]{-webkit-touch-callout:none}.tooltip{z-index:1000;box-sizing:border-box;color:#fffbed;pointer-events:none;background:#35443e;border-radius:5px;align-items:center;gap:7px;max-width:min(320px,100vw - 16px);padding:5px 9px;font-size:12px;line-height:1.35;display:flex;position:fixed;box-shadow:0 3px 12px #24375233}.tooltip kbd{white-space:nowrap;border:1px solid #fffbed88;border-radius:4px;flex-shrink:0;padding:1px 5px;font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace}.play-dialog{max-width:460px;color:var(--ink);border:1px solid #d5dfeb;border-radius:10px;padding:22px}.play-dialog::backdrop{background:#15263d44}.play-dialog h2{margin-top:0}.play-dialog p{line-height:1.5}.play-dialog.controls-dialog{max-width:min(580px,100vw - 32px);max-height:85vh;overflow:auto}.key-bindings h3{margin:20px 0 4px;font-size:15px}.key-bindings>p{margin:0 0 8px}.key-bindings table{border-collapse:collapse;width:100%}.key-bindings th,.key-bindings td{text-align:left;vertical-align:middle;border-bottom:1px solid #edf1f5;padding:3px 6px 3px 0}.key-bindings thead th{color:var(--muted,#586980);font-size:12px;font-weight:600}.key-bindings tbody th{font-weight:400}.key-bindings td{white-space:nowrap}.key-slot{background:#f8fafc;min-width:72px;min-height:30px;padding:3px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.key-slot[data-recording]{color:#2c55b5;background:#edf3ff;border-color:#4c7ded;font-family:inherit;font-style:italic}.key-clear{min-width:26px;min-height:26px;color:var(--muted,#586980);background:0 0;border-color:#0000;margin-left:3px;padding:0 6px}.key-fixed td{color:var(--muted,#586980);padding-left:11px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.key-reset{margin-top:10px}.key-bindings-status{color:#2c55b5;min-height:1.5em;margin:0 0 6px}#canvas-viewport{position:relative}.workspace-hint{pointer-events:auto;background:#eef4ff;border:1px solid #c8d8f1;border-radius:7px;align-items:center;gap:10px;min-width:0;padding:3px 4px 3px 12px;font-size:12px;display:flex}.workspace-hint span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.workspace-hint button{flex-shrink:0;min-height:26px;padding:2px 10px}.board-toolbar:has(.group-toolbar:not([hidden])) .workspace-hint{display:none}.play-workspace .forge-play-controls:has(#forge-change-notice[hidden]){display:none}.play-workspace .group-toolbar{pointer-events:auto;background:0 0;border:0;min-width:0;padding:0}.dot-pairs{z-index:2;width:64px;height:24px;transform:translate(-50%,-50%) scale(var(--dot-pairs-scale,1));transform-origin:50%;justify-content:center;gap:8px;display:flex;position:absolute}.dot-pairs button{color:#356de8;touch-action:manipulation;background:0 0;border:0;border-radius:4px;place-items:center;width:24px;height:24px;min-height:0;padding:4px;display:grid}.dot-pairs button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px}.dot-pairs button:hover:not(:disabled){background:#e5edff}.dot-pairs button:disabled{opacity:.25}.dot-pairs:focus-within{z-index:5;transform:translate(-50%,-50%) scale(max(1,var(--dot-pairs-scale,1)))}.level-list-table tr[data-locked=true]{color:#788594;background:#f4f6f8}.level-list-table tr[data-locked=true] h2:before{content:"○ "}#locked-world .lock-icon svg,#locked-puzzle .lock-icon svg,#locked-forge .lock-icon svg{width:48px;height:48px}body:has(.play-workspace,.forge-workspace){background:var(--world-background);min-height:100svh;color:var(--world-ink);background-image:repeating-linear-gradient(0deg,#0000 0 39px,#998b7010 39px 40px)}.play-workspace .level-heading{display:block}.play-workspace #level-title{color:var(--world-ink);letter-spacing:0;margin:0 0 4px;font-family:inherit;font-size:18px;font-weight:700;line-height:1.45}.play-workspace .level-objective{color:#46554b}.play-workspace .numeric-hint{color:#627064}.forge-workspace .section-navigation .section-icon,.forge-workspace .section-navigation button{color:#53634f}.forge-workspace .section-navigation a:hover,.forge-workspace .section-navigation button:hover{color:var(--world-ink);background:#f5efdf;border-color:#0000}:is(.play-workspace,.forge-workspace) .masthead :focus-visible{outline-color:#a95738}.play-workspace .level-heading .level-completed{color:#367747;font-size:18px;line-height:1.45}.play-workspace>.forge-play-controls{color:#46554b}.play-workspace #forge-change-notice{color:#87542e}.play-workspace .board-card{color:#273850;border-color:#b7ad94;box-shadow:0 4px #c4baa5,0 10px 22px #594c3518}.forge-workspace{min-height:100svh}.forge-workspace .forge-heading h1{color:var(--world-ink);letter-spacing:-.3px;font-family:Georgia,serif;font-weight:600}.forge-workspace .forge-heading p{color:#627064}.forge-workspace .collection-list{background:#fffbed;border:1px solid #b7ad94;border-radius:10px;padding:20px;box-shadow:0 4px #c4baa5,0 10px 22px #594c3518}.forge-workspace .collection-list:has(>.level-list-scroll){padding:0}.forge-workspace .collection-list>.level-list-scroll{border:0}.forge-workspace .level-list-table thead{background:#eee9d8}:is(.play-workspace,.forge-workspace){--ink:#35443e;--muted:#627064}.forge-workspace .level-list-scroll{background:#fffbed}.forge-workspace .level-list-table :is(th,td){border-color:#ded7c4}.forge-workspace .level-list-table :is(p,.level-list-number,.level-list-author),.forge-workspace .level-list-table thead{color:#65705f}.forge-workspace .level-list-table tr[data-locked=true]{color:#73796c;background:#eeeadd}.forge-workspace .playable-level:hover,.forge-workspace .playable-level:focus-within{background:#f1ead4}.forge-workspace .level-list-table h2 a:hover{color:#995032}.play-workspace .board-card{background:#fffbed}.play-workspace .workspace-tools{background:#faf5e8;border-color:#ded7c4}:is(.play-workspace,.forge-workspace) :is(.board-toolbar,.masthead,.level-list-actions) button,.play-workspace .play-topbar a.icon-button{color:#40503f;background:#fffbed;border-color:#c7bea7}:is(.play-workspace,.forge-workspace) :is(.board-toolbar,.masthead,.level-list-actions) button:hover,.play-workspace .play-topbar a.icon-button:hover{background:#eee8d5;border-color:#9caa90}.play-workspace .board-toolbar button.compute,.play-workspace .board-toolbar [data-action=fast-forward]{color:#fffbed;background:#456851;border-color:#456851}.play-workspace .board-toolbar :is(button.compute,[data-action=fast-forward]):hover{background:#36563f}.play-workspace .board-toolbar [data-action=fast-forward][aria-pressed=true]{background:#2c4534;border-color:#2c4534;box-shadow:inset 0 2px 4px #0006}:is(.play-workspace,.forge-workspace) :is(button,a,summary):focus-visible{outline-color:#a95738}.section-navigation .section-icon{border-radius:50%;justify-content:center;align-items:center;width:42px;height:42px;padding:8px;display:inline-flex;position:relative}.section-icon>svg{width:26px;height:26px}:is(.play-workspace,.forge-workspace) .section-navigation .section-icon[aria-current=page]{color:#995032;background:#f5efdf}:is(.play-workspace,.forge-workspace) .masthead{flex-wrap:wrap;gap:8px 12px}.forge-workspace .masthead{align-items:flex-start;margin:20px 0 24px}.forge-workspace .masthead .forge-heading{flex:180px;min-width:0;margin:0}.forge-workspace .masthead .forge-heading p{margin-bottom:0}.masthead .section-navigation{flex:0 auto}.play-workspace .level-title-row{align-items:baseline}.play-workspace .level-objective{margin:0;font-size:18px;line-height:1.45}.play-workspace .level-name-row .level-completed{flex-shrink:0}body:has(.play-workspace){overflow:hidden}.play-workspace{flex-direction:column;max-width:none;height:100dvh;margin:0;padding:0;display:flex;position:fixed;inset:0}.play-workspace .board-card{max-width:none;min-height:0;box-shadow:none;border:0;border-radius:0;flex-direction:column;flex:1;display:flex}.play-workspace #canvas-viewport{border:0;flex:1;min-height:0;max-height:none;overflow:hidden}.explorable-play #canvas-host{aspect-ratio:auto;min-width:0;height:100%}.tutorial-play #canvas-viewport{overflow:auto}.tutorial-play #canvas-host{max-width:1040px;margin-inline:auto}.play-topbar{z-index:26;pointer-events:none;flex-wrap:wrap;align-items:flex-start;gap:6px;padding:6px 12px;display:flex;position:absolute;top:0;left:0;right:0}.play-topbar :is(button,a,input,select,label){pointer-events:auto}.play-workspace .play-topbar .board-toolbar{background:0 0;flex:1 1 0;min-width:0;height:auto;min-height:0;padding:0}.play-topbar{--top-control-height:36px}@media (width<=700px){.play-topbar{--top-control-height:40px}}.play-topbar .icon-button{width:var(--top-control-height);min-width:0;height:var(--top-control-height);min-height:var(--top-control-height);border-style:solid;border-width:1px;border-radius:7px;flex:none;margin:0;padding:0}.play-topbar .icon-button>svg{width:20px;height:20px}.play-topbar .forge-play-controls{margin:0}.play-topbar .actions :is(.masthead,.section-navigation){display:contents}.workspace-controls [data-action=clear]{order:1}.workspace-controls [data-action=delete]{order:2}.level-panel{background:#faf5e8;border-top:1px solid #ded7c4;flex:none;grid-template-columns:auto minmax(0,1fr) auto;display:grid}.puzzle-feedback{padding:4px max(16px, env(safe-area-inset-right)) 4px 8px;color:var(--muted);text-align:right;grid-area:1/3;align-self:end;font-size:12px;line-height:24px}.puzzle-feedback a{color:inherit;text-underline-offset:2px;text-decoration:underline;display:inline-block}.puzzle-feedback a:hover{color:var(--ink)}.save-warning{color:#654717;background:#fff1cf;border-top:1px solid #c2a263;flex-wrap:wrap;flex:none;align-items:center;gap:6px 16px;padding:8px 16px;font-size:13px;line-height:1.4;display:flex}.save-warning[hidden]{display:none}.save-warning-contact{flex-wrap:wrap;align-items:center;gap:4px 10px;min-width:0;display:flex}.save-warning a{color:inherit;text-decoration:underline}.level-panel-body{grid-area:1/2;max-height:40vh;display:grid;overflow:auto}.level-panel-body>[role=tabpanel]{grid-area:1/1;min-width:0}.level-panel-body>[data-active=false]{visibility:hidden}.level-panel-header{border-right:1px solid #ded7c4;flex-direction:column;grid-area:1/1;padding:8px 0;display:flex}.level-panel-tabs{flex-direction:column;display:flex}.level-panel-tabs [role=tab]{color:#627064;text-align:left;background:0 0;border:0;border-right:2px solid #0000;border-radius:0;min-height:32px;padding:4px 16px;font-size:13px}.level-panel-tabs [role=tab]:hover{background:#eee8d5}.level-panel-tabs [role=tab][aria-selected=true]{color:var(--world-ink);border-right-color:#456851;font-weight:600}.level-panel[data-collapsed=true] .level-panel-body{display:none}.level-panel[data-collapsed=true] .level-panel-header{border-right:0;flex-direction:row;grid-column:1/3;padding:0 12px}.level-panel[data-collapsed=true] .level-panel-tabs{flex-direction:row}.level-panel[data-collapsed=true] [role=tab][aria-selected=true]{border-right-color:#0000;font-weight:400}@media (width<=700px){.level-panel{grid-template-columns:minmax(0,1fr) auto}.level-panel .level-panel-header{border-right:0;flex-direction:row;justify-content:flex-start;align-items:center;padding:0}.level-panel .level-panel-tabs{flex-direction:row}.level-panel .level-panel-body{grid-area:2/1/auto/-1}.level-panel[data-collapsed=true] .level-panel-header{grid-column:1;padding:0}.puzzle-feedback{grid-area:1/2;align-self:center;line-height:18px}.puzzle-feedback span{display:block}.puzzle-feedback a{line-height:24px}}.developer-bar{background:#f3eddd;border-top:1px solid #ded7c4;flex-wrap:wrap;flex:none;align-items:center;gap:6px 8px;padding:4px 12px;display:flex}.developer-bar:empty{display:none}.developer-bar .drag-trace-download{width:auto;min-height:26px;margin:0;padding:2px 10px}.developer-bar .dev-panel{padding:4px 10px;position:relative}.developer-bar .dev-panel[open] .tuning-grid{z-index:30;white-space:normal;background:#f5f7fa;border:1px solid #dce3eb;border-radius:7px;width:max-content;margin:0;padding:12px 14px;position:absolute;bottom:calc(100% + 4px);left:0}.play-workspace .level-panel .level-heading{margin:0;padding:10px 16px 12px}.play-workspace .level-panel .puzzle-examples{background:0 0;border:0;padding:10px 16px 12px}.phone-controls-toggle{display:none}@media (width<=600px),(width<=900px) and (height<=500px){.play-workspace #canvas-viewport{flex-direction:column;display:flex}.explorable-play #canvas-host{flex:1;height:auto;min-height:0}.play-topbar{background:#f8f2e3;flex:none;order:-1;padding:4px 8px;position:static}.play-topbar .board-toolbar{justify-content:flex-start;gap:4px;max-height:38svh;overflow:auto}.play-topbar :is(.workspace-controls,.actions){display:contents}.play-topbar .phone-controls-toggle{order:100;display:inline-flex}.play-topbar .workspace-hint,.board-toolbar:not([data-phone-expanded=true]) .icon-button:not(.phone-controls-toggle):not([data-icon=zoomIn]):not([data-icon=zoomOut]):not([data-icon=fit]):not([data-action=compute]):not([data-action=stop]):not([data-action=advance]),.board-toolbar:not([data-phone-expanded=true]) .group-toolbar{display:none}.play-workspace .level-panel .level-heading,.play-workspace .level-panel .puzzle-examples{padding:8px 12px}.play-workspace #level-title{font-size:18px}.level-panel-body{max-height:30svh}.explorable-play .cost-summary{flex-flow:wrap;place-content:center flex-end;gap:2px 10px;height:18px;font-size:10px;bottom:0;left:8px;right:8px}.cost-summary:has(#circuit-score:not([hidden])){gap:2px 10px}}.worlds-workspace{--pcb:#e5dfd0;--pcb-surface:#faf6e9;--copper:#a95738;--silk:#35443e;max-width:none;min-height:100svh;color:var(--silk);background:var(--pcb);background-image:repeating-linear-gradient(0deg,#0000 0 39px,#998b7010 39px 40px);align-content:center;padding:24px 40px 30px;display:grid;position:relative;overflow:hidden}.world-selector{text-align:center;touch-action:pan-y;width:100%;max-width:1440px;margin:0 auto}.world-selector-host{min-width:0}.world-selector:focus{outline:none}.world-stage{height:460px;position:relative}.world-islands{position:absolute;inset:0}.world-island,.world-island:hover{width:clamp(300px,32vw,420px);color:var(--silk);transform:translateX(calc(-50% + var(--offset) * min(35vw,450px))) scale(.74);transform-origin:50% 118px;background:0 0;border:0;border-radius:0;padding:0;transition:transform .3s;position:absolute;top:75px;left:50%}.world-island[data-selected=true]{z-index:2;transform:translate(-50%)scale(1)}.world-node-frame{background:var(--pcb-surface);border:2px solid #b7ad94;border-radius:12px;flex-direction:column;justify-content:center;height:236px;padding:38px 20px 28px;display:flex;position:relative;box-shadow:0 6px #c4baa5,0 12px 18px #594c3520}.world-island[data-selected=true] .world-node-frame{background:#fffbed;border:3px solid #7b8970}.world-island[data-selected=true] .world-node-reference{background:var(--copper);color:#fffaf0;padding:3px 6px}.world-island[data-selected=true]:hover .world-node-frame{border-color:var(--copper)}.world-island[data-selected=true]:hover .world-title{text-underline-offset:6px;text-decoration:underline}.world-island:not([data-selected=true]) .world-node-frame{opacity:.85}.world-node-reference{color:var(--copper);font:12px ui-monospace,monospace;position:absolute;top:28px;left:12px}.world-circuit{z-index:1;width:100%;height:160px;display:block;position:relative;overflow:visible}.preview-holes{fill:#8e94856b}.preview-wires{fill:none;stroke-linejoin:round;stroke-linecap:round}.preview-wires [data-signal=input]{--insulation:#287b83}.preview-wires [data-signal=fixed]{--insulation:#816593}.preview-wires [data-signal=computed]{--insulation:#b56748}.preview-wires .jumper-edge{stroke:#4c4d42;stroke-width:6px}.preview-wires .jumper-insulation{stroke:var(--insulation);stroke-width:4px}.preview-wires .jumper-shine{stroke:#fff5d4;stroke-width:.8px;opacity:.65;transform:translateY(-1px)}.preview-socket{fill:#303d38;stroke:#96988a;stroke-width:2px}.preview-sleeve{fill:#414d48;stroke:#26372f;stroke-width:1px}.preview-pin{fill:none;stroke:#92988a;stroke-width:4px;stroke-linecap:round}.preview-case-shadow{fill:#b9b5a3;stroke:#b9b5a3;stroke-width:2px}.preview-body{fill:#e8e8d8;stroke:#546458;stroke-width:2px}.preview-body.mul{fill:#dce5dc}.preview-body.sub{fill:#eee3ce}.preview-body.fixed{stroke:#816593;fill:#ded4e5}.preview-body.input{fill:#f0d57b;stroke:#8e793a}.preview-value-label{fill:#fff7e5;stroke:#bfb09a;stroke-width:1px}.preview-adjustment{fill:#8c8a92;stroke:#655e72;stroke-width:1px}.preview-adjustment-slot{stroke:#ece4d2;stroke-width:1px}.preview-case-screw{fill:#9a9e8d}.preview-symbol{fill:var(--silk);text-anchor:middle;dominant-baseline:middle;font:20px ui-monospace,monospace}.preview-symbol.fixed-constant{font-size:13px}.world-island:focus-visible{outline:2px solid var(--silk);outline-offset:8px}.world-locked-placeholder{cursor:default}.world-neighbor-name{color:#5f685d;font:16px/1.3 ui-monospace,monospace;display:block;position:absolute;top:252px;left:0;right:0}.world-island[data-selected=true] .world-neighbor-name{visibility:hidden}.world-island .lock-icon{color:#4f5f51;z-index:3;background:#f6f0df;border:2px solid #89937e;border-radius:9px;padding:10px;position:absolute;top:118px;left:50%;transform:translate(-50%,-50%)}.world-island .lock-icon svg{width:48px;height:48px}.world-caption{padding-top:26px;display:block;position:relative}.world-title{color:var(--silk);background:#faf2d9;border:1px solid #d8ccb0;margin:0 0 10px;padding:10px 12px;font:600 clamp(20px,2.3vw,28px)/1.25 Georgia,serif;display:block;transform:rotate(-1deg);box-shadow:1px 3px #b4a68b55}.world-progress{color:#65705f;font:12px ui-monospace,monospace;display:block}.world-controls{justify-content:center;align-items:center;gap:22px;margin-top:26px;display:flex}.world-arrow,.world-arrow:hover{color:var(--silk);background:#f7f1e2;border:1px solid #b7ad94;border-radius:6px;padding:0 14px;font-size:24px;box-shadow:0 2px #b7ad94}.world-dots{gap:14px;display:flex}.world-dots button{background:0 0;border:0;place-items:center;width:24px;min-height:24px;padding:0;display:grid}.world-dots button:after{content:"";border:2px solid #8e9b7c;border-radius:50%;width:8px;height:8px}.world-dots button[aria-current=true]:after{background:var(--copper);border-color:var(--copper)}@media (width<=600px){.worlds-workspace{padding:16px 12px 24px}.world-stage{height:460px}.world-island{width:290px;transform:translateX(calc(-50% + var(--offset) * 86vw)) scale(.74);top:75px}.world-island[data-selected=true]{transform:translate(-50%)}.world-neighbor-name{font-size:14px}}@media (prefers-reduced-motion:reduce){.world-island{transition:none}}.world-power-rails{pointer-events:none;position:absolute;inset:0}.world-power-rails svg{width:100%;height:100%}.world-power-rails path{fill:none;stroke-width:2px}.world-power-rails text{stroke:none;font:14px monospace}.world-power-rails .rail-positive{stroke:#bd685b;fill:#a95242}.world-power-rails .rail-negative{stroke:#508892;fill:#407c86}.world-power-rails text.rail-positive,.world-power-rails text.rail-negative{stroke:none}.world-completion-led{background:#a8ac99;border:2px solid #777e69;border-radius:50%;width:12px;height:12px;position:absolute;top:30px;right:16px;box-shadow:0 1px 2px #473d3240}.world-completion-led[data-complete=true]{background:#448347;border-color:#37633b}.world-completion-led:after{content:"";opacity:.65;background:#ffffef;border-radius:50%;width:3px;height:3px;position:absolute;top:1px;left:2px}
