:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#14171f;--surface:#1d2230;--border:#323a4d;--text:#e6e9f0;--muted:#9aa3b5;--c64-blue:#352879;--c64-light-blue:#b3abff;--accent:#8f82e0;--link:#a397ec;--accent-text:#0d1020;--surface-hover:#2a3144;--surface-active:#151925;--accent-hover:#a397ec;--accent-active:#7b6ed0;--heading:#a59ef0;--error:#ff6b6b;--gap:12px;--radius:8px;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);overflow:hidden}button{font:inherit}.app{flex-direction:column;height:100dvh;display:flex}.app-header{align-items:center;gap:var(--gap);background:var(--c64-blue);color:#fff;padding:8px 16px;display:flex}.app-title{color:var(--c64-light-blue);margin:0;display:flex}.app-tagline{color:#c9c4f5;margin:0;font-size:.9rem}.language-switcher{border:1px solid var(--c64-light-blue);border-radius:var(--radius);color:#fff;min-width:44px;min-height:36px;font:inherit;cursor:pointer;background:0 0;padding:0 10px;font-weight:700}.app-brand{align-items:center;gap:var(--gap);color:inherit;border-radius:var(--radius);text-decoration:none;display:flex;position:relative}.app-brand:focus-visible{outline:2px solid var(--c64-light-blue);outline-offset:4px}.workspace{gap:var(--gap);min-height:0;padding:var(--gap);flex:1;grid-template-columns:minmax(0,1fr) minmax(320px,max(40%,min(744px,56%)));display:grid}.side{gap:var(--gap);flex-direction:column;min-height:0;display:flex;overflow:auto}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;min-height:0;display:flex}.panel-title{color:var(--heading);border-bottom:1px solid var(--border);margin:0;padding:8px 12px;display:flex}.panel-body{flex:1;min-height:0;padding:12px;overflow:auto}.panel-variables{contain:size;flex:1;min-height:100px}.panel-run,.panel-screen{flex:none}.panel-screen .panel-body{overflow:hidden}.panel-run .panel-body,.panel-variables .panel-body{padding-top:8px;padding-bottom:8px}.placeholder{color:var(--muted);margin:0}.retro-text{line-height:0;display:inline-flex}.retro-text canvas{image-rendering:pixelated}.visually-hidden{clip:rect(0 0 0 0);white-space:pre;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.run-controls{gap:8px;margin-bottom:8px;display:flex}.run-controls button,.field select{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:44px;color:var(--text);font:inherit;cursor:pointer;padding:0 16px}.run-controls .button-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.run-controls button:disabled{opacity:.45;cursor:default}.field{flex-direction:column;gap:4px;max-width:360px;margin-top:12px;display:flex}.panel-screen .panel-body{padding:0}.screen-container{aspect-ratio:352/232;cursor:text;place-items:center;width:100%;display:grid;position:relative}.screen-canvas{image-rendering:pixelated;display:block}.screen-input{opacity:0;border:0;width:1px;height:1px;padding:0;font-size:16px;position:absolute;bottom:0;left:0}@media (orientation:portrait){.workspace{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}.side{grid-template-columns:minmax(0,1fr) min(560px,72%);grid-template-areas:"run screen""variables screen";display:grid;overflow:visible}.speed{flex-wrap:wrap}.screen-container{max-height:calc(100vh - 380px)}.panel-run{grid-area:run}.panel-variables{grid-area:variables}.panel-screen{grid-area:screen}}.panel-diagram .panel-body{padding:0;position:relative;overflow:hidden}.editor{flex-direction:column;height:100%;min-height:0;display:flex}.editor-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:4px;padding:8px;display:flex}.editor-toolbar button,.editor-toolbar select,.block-panel button,.insert-menu button{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:40px;min-height:40px;color:var(--text);font:inherit;cursor:pointer;padding:0 12px}.editor-toolbar button:disabled{opacity:.4;cursor:default}.toolbar-sep{background:var(--border);align-self:stretch;width:1px;margin:0}.zoom-value{text-align:center;min-width:3.5em;color:var(--muted);font-variant-numeric:tabular-nums}.clipboard-note{color:var(--muted);font-size:.85rem}.ghost{background:0 0!important;border-color:#0000!important}.block-panel{border-bottom:1px solid var(--border);background:var(--bg);max-height:45%;padding:8px 12px 12px;overflow:auto}.block-panel-header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.block-panel-fields{flex-direction:column;gap:10px;display:flex}.block-field{flex-direction:column;gap:4px;min-width:0;display:flex}.block-panel-header .kind-icon{flex:none;margin-right:6px}.block-panel-header strong{margin-right:auto}.block-panel-footer{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:8px 16px;margin-top:12px;padding-top:10px;display:flex}.block-panel-footer .breakpoint-field{flex:200px}.block-actions{gap:4px;margin-left:auto;display:flex}.block-panel-footer .done{min-height:40px;padding:0 20px}.block-panel-footer .done:only-child{margin-left:auto}.dialog-backdrop.block-dialog-backdrop{background:#00000080}.block-dialog{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);width:min(720px,100% - 32px);max-height:85%;animation:pop-in .18s var(--ease-out);outline:none;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 12px 40px #0006}.block-dialog .block-panel-footer{background:var(--bg);margin-bottom:-16px;padding-bottom:16px;position:sticky;bottom:-16px}:is(.block-dialog .block-panel,.block-dialog .block-panel:has(.sprite-editor),.block-dialog .block-panel:has(.list-table tr)){border-bottom:0;flex:1;min-height:0;max-height:none;padding:12px 16px 16px;scroll-padding-bottom:72px;overflow:auto}.block-field label,.block-field .field-label{color:var(--muted);font-size:.85rem}.shape-note{margin:0}.link-button,.block-panel .link-button,.inline-link{min-width:0;min-height:0;color:var(--link);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-size:.9rem}.block-field-input{align-items:center;gap:4px;display:flex}.block-field input,.block-field select,.list-value input{border:1px solid var(--border);background:var(--surface);min-width:0;min-height:40px;color:var(--text);font:inherit;border-radius:6px;flex:1;padding:0 10px;font-size:16px}.block-field input.code,.list-value input.code,.comment-field textarea,.sprite-text textarea,.affix,.field-error pre{font-family:ui-monospace,Menlo,Consolas,monospace}.block-field input[aria-invalid=true],.list-value input[aria-invalid=true]{border-color:var(--error)}.optional{font-size:.8rem}.block-help{color:var(--muted);flex:100%;font-size:.85rem}.block-help ul{margin:4px 0;padding-left:18px}.block-help li.current{color:var(--text);font-weight:600}.block-help code{font-family:ui-monospace,Menlo,Consolas,monospace}.block-help p{margin:4px 0 0}.field-error{color:var(--error);font-size:.85rem}.field-error pre{white-space:pre;margin:2px 0 0;font-size:.85rem;overflow-x:auto}.diagram-scroll{-webkit-overflow-scrolling:touch;flex:1;min-height:0;overflow:auto}.diagram{-webkit-tap-highlight-color:transparent;margin:0 auto;display:block}.diagram-scroll.editing:after{content:"";height:50vh;display:block}.edge{fill:none;stroke:var(--muted);stroke-width:1.5px}.arrow-head{fill:var(--muted)}.edge-label{fill:var(--muted);font-family:system-ui,sans-serif;font-size:12px}.node{cursor:pointer}.node .shape,.node .shape-line{stroke:var(--node-stroke,#3d3d5c);stroke-width:1.5px}.node .shape{fill:var(--node-fill,#fff)}.node-text{fill:var(--node-text,#1d2330);pointer-events:none;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px}.node-start,.node-end,.node-return{--node-fill:#d9d4ff;--node-stroke:#352879}.node-declare{--node-fill:#fff3c4;--node-stroke:#8a6d00}.node-assign{--node-fill:#fde1c8;--node-stroke:#9a5a1c}.node-input,.node-output{--node-fill:#cdf2d6;--node-stroke:#2f7a41}.node-if{--node-fill:#d6ecff;--node-stroke:#2a5d8f}.node-while,.node-doWhile,.node-for{--node-fill:#f3d6f0;--node-stroke:#7d3a75}.node-call{--node-fill:#e3e3e3;--node-stroke:#555}.node.selected .shape{stroke:var(--accent);stroke-width:4px}.node-button:focus-visible{outline:none}.node-button:focus-visible .shape{stroke-dasharray:4 3;stroke-width:3px}.node.has-error .shape{stroke:var(--error)}.error-badge circle{fill:var(--error)}.error-badge text{fill:#fff;font:700 13px system-ui,sans-serif}.plus{cursor:pointer}.plus-hit{fill:#0000}.plus-circle{fill:var(--surface);stroke:var(--muted);stroke-width:1.5px}.plus-sign{stroke:var(--muted);stroke-width:2px}.plus:hover .plus-circle,.plus.active .plus-circle,.plus:focus-visible .plus-circle{fill:var(--accent);stroke:var(--accent)}.plus:hover .plus-sign,.plus.active .plus-sign,.plus:focus-visible .plus-sign{stroke:var(--accent-text)}.plus:focus-visible .plus-circle{stroke:#fff;stroke-width:3px}.plus:focus-visible{outline:none}.insert-menu{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);z-index:5;width:min(860px,100% - 24px);max-height:calc(100% - 68px);padding:12px;position:absolute;top:56px;left:50%;overflow:auto;transform:translate(-50%);box-shadow:0 8px 28px #0000002e}.insert-menu-header{justify-content:space-between;align-items:center;display:flex}.menu-group h3{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:10px 0 6px;font-size:.8rem;font-weight:600}.menu-items{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:6px;display:grid}.insert-menu .menu-item{flex-direction:column;align-items:center;gap:4px;min-height:44px;padding:8px 6px;display:flex}.menu-preview{pointer-events:none;width:100%;height:36px}.menu-preview .node{cursor:inherit}.menu-label{font-size:.85rem}.insert-menu .menu-item.paste{background:var(--accent);border-color:var(--accent);width:100%;color:var(--accent-text);margin-top:8px}.program-bar{align-items:center;gap:6px;min-width:0;margin-left:auto;display:flex}.program-name{border:1px solid var(--c64-light-blue);color:#fff;width:14em;min-width:6em;min-height:36px;font:inherit;background:#ffffff1a;border-radius:6px;padding:0 10px;font-size:16px}.program-name::placeholder{color:#c9c4f5}.program-bar>button{border:1px solid var(--c64-light-blue);color:#fff;min-height:36px;font:inherit;cursor:pointer;background:0 0;border-radius:6px;padding:0 12px}.storage-note{color:#f4d58d;max-width:18em;font-size:.75rem}.file-error{background:var(--surface);max-width:min(640px,100% - 32px);color:var(--error);border:1px solid var(--error);border-radius:var(--radius);z-index:20;align-items:center;gap:8px;padding:10px 12px;display:flex;position:fixed;top:60px;left:50%;transform:translate(-50%);box-shadow:0 8px 28px #0000002e}.file-error button{color:var(--text);cursor:pointer;min-width:36px;min-height:36px;font-size:1.2rem}.dialog-backdrop{z-index:30;background:#00000059;place-items:center;display:grid;position:fixed;inset:0}.dialog{background:var(--surface);width:min(420px,100% - 32px);color:var(--text);border-radius:var(--radius);padding:16px;box-shadow:0 12px 40px #0000004d}.dialog h2{margin:0 0 8px;font-size:1.1rem}.dialog-buttons{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.dialog-buttons button{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:44px;color:var(--text);font:inherit;cursor:pointer;padding:0 16px}.dialog-buttons .button-primary,.block-panel-footer .button-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}@media (width<=1360px){.app-tagline{display:none}}.icon{flex:none}.icon .icon-plus{stroke:var(--accent)}button:disabled .icon .icon-plus{stroke:currentColor}button:has(>.icon){justify-content:center;align-items:center;gap:6px;display:inline-flex}.editor-toolbar .tool-button{min-width:44px;min-height:44px;padding:0}.run-controls button{min-width:44px}.language-icon{color:#c9c4f5;align-items:center;padding:0 6px 0 8px;display:inline-flex}.insert-menu .menu-item.paste{flex-direction:row;justify-content:center}@media (width<=1100px){.program-bar .button-label{display:none}.program-bar>button{min-width:44px;padding:0}}.run-controls{flex-wrap:wrap}.run-controls button{padding:0 12px}.speed{color:var(--muted);align-items:center;gap:8px;margin:4px 0 8px;font-size:.9rem;display:flex}.speed-label{flex:none;align-items:center;gap:4px;display:inline-flex}.speed input{min-width:80px;min-height:32px;accent-color:var(--accent);flex:1}.speed-value{text-align:right;font-variant-numeric:tabular-nums;min-width:6.5em}.run-error{color:var(--error);margin:0;font-weight:600}.node.current .shape{stroke:var(--accent);stroke-width:4px;filter:drop-shadow(0 0 6px #3528798c)}.node.runtime-error .shape{stroke:var(--error);stroke-width:4px}.breakpoint{cursor:pointer}.breakpoint-hit{fill:#0000}.breakpoint-dot{fill:#0000;stroke:#0000;stroke-width:1.5px}.node:hover .breakpoint-dot,.node.selected .breakpoint-dot,.breakpoint:focus-visible .breakpoint-dot{stroke:var(--error)}.breakpoint.on .breakpoint-dot{fill:var(--error);stroke:var(--error)}.breakpoint-condition{fill:#fff}.breakpoint:focus-visible{outline:none}.read-only-notice{color:#f4d58d;border-bottom:1px solid var(--border);background:#3a3015;margin:0;padding:8px 12px;font-size:.9rem}.checkbox{cursor:pointer;align-items:center;gap:8px;min-height:40px;display:flex;color:var(--text)!important;font-size:.95rem!important}.checkbox input{flex:none;width:22px;height:22px;min-height:0}.breakpoint-field{flex-basis:100%}.variables-frame{color:var(--muted);margin:0 0 6px;font-size:.85rem}.variables table{border-collapse:collapse;width:100%;font-size:.95rem}.variables th,.variables td{text-align:left;border-bottom:1px solid var(--border);padding:4px 8px}.variables thead th{color:var(--muted);font-size:.8rem;font-weight:600}.variables tbody th,.variables td{font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:400}.variables td.value{word-break:break-all}.variables tr.changed th,.variables tr.changed td{color:#1d2330;background:#ffe58a;font-weight:700}.no-value{color:var(--muted);font-family:system-ui,sans-serif;font-style:italic}.dialog-header{justify-content:space-between;align-items:center;display:flex}.dialog-header button{min-width:44px;min-height:44px;color:var(--text);cursor:pointer;font-size:1.4rem}.examples-dialog{width:min(1100px,92vw,100% - 32px);max-height:calc(100dvh - 48px);overflow:auto}.examples-dialog:not(.searching) .examples-level:last-of-type{min-height:calc(100dvh - 100px)}.examples-level h3{z-index:1;background:var(--surface);text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:6px 0;padding:6px 0;font-size:.8rem;font-weight:600;position:sticky;top:-16px}.examples-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:8px;display:grid}.example-item{text-align:left;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:44px;color:var(--text);font:inherit;cursor:pointer;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.example-item:hover,.example-item:focus-visible{border-color:var(--accent)}.example-text>span{color:var(--muted);font-size:.85rem}.editor{container-type:inline-size}.tool-button{position:relative}.tool-tip{z-index:40;background:var(--text);color:var(--bg);white-space:nowrap;pointer-events:none;border-radius:6px;padding:4px 8px;font-size:.8rem;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.plus.muted .plus-circle,.plus.muted .plus-sign{opacity:.28}.plus.muted:hover .plus-circle,.plus.muted:hover .plus-sign,.plus.muted:focus-visible .plus-circle,.plus.muted:focus-visible .plus-sign{opacity:1}.node.incomplete .shape{stroke:#8a8f9c;stroke-dasharray:5 3}.incomplete-badge circle{fill:#8a8f9c}.incomplete-badge text{fill:#fff;font:700 13px system-ui,sans-serif}.panel-run .panel-body{container-type:inline-size}@container (width<=340px){.run-controls{grid-template-columns:1fr 1fr;gap:6px;display:grid}.run-controls button{padding:0 6px;font-size:.9rem}}.empty-hint{text-align:center;max-width:320px;color:var(--muted);margin:8px auto 0;padding:0 16px}.menu-help{color:var(--muted);text-align:center;font-size:.75rem;line-height:1.25}.block-panel-header .help-toggle{color:var(--accent);margin-left:8px;margin-right:auto;font-size:.88rem}.block-help-text{color:var(--muted);margin:0 0 8px;font-size:.88rem}.block-help-text code,.cheat-sheet code{background:var(--bg);color:var(--text);border-radius:3px;padding:0 3px;font-family:ui-monospace,Menlo,Consolas,monospace}.cheat-sheet-button{border:1px solid var(--border);background:var(--surface);min-width:40px;min-height:40px;color:var(--accent);cursor:pointer;border-radius:6px;flex:none;font-weight:700}.cheat-sheet{width:min(800px,100% - 32px);max-height:85dvh;overflow:auto}.phone .cheat-sheet{z-index:40}.dialog-backdrop:has(>.cheat-sheet){z-index:40}@media (width<=699px){.cheat-sheet{border-radius:0;width:100%;height:100dvh;max-height:100dvh}}.cheat-sheet h3{color:var(--muted);margin:12px 0 4px;font-size:.85rem}.cheat-sheet ul{margin:0;padding-left:18px;font-size:.9rem}.cheat-sheet li{margin:2px 0}.cheat-sheet .example{color:var(--muted)}.game-controls{touch-action:none;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;gap:24px;margin-top:8px;display:flex}.game-arrows{grid-template-rows:repeat(2,52px);grid-template-columns:repeat(3,52px);gap:4px;display:grid}.game-arrows .up{grid-area:1/2}.game-arrows .left{grid-area:2/1}.game-arrows .down{grid-area:2/2}.game-arrows .right{grid-area:2/3}.game-controls button{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:52px;min-height:52px;color:var(--text);font:inherit;justify-content:center;align-items:center;display:inline-flex}.game-controls.has-letters{justify-content:space-between;gap:12px}.game-letters{grid-template-rows:repeat(2,52px);grid-auto-columns:52px;grid-auto-flow:column;gap:4px;display:grid}.game-letters .letter{font-size:1.25rem;font-weight:700}@media (height>=500px){.phone .game-controls.has-letters:has(.game-letters.many){flex-wrap:wrap;justify-content:center}.phone .game-letters.many{grid-template-rows:52px;justify-content:center;width:100%}}.game-controls .game-action{background:var(--accent);border-color:var(--accent);min-width:96px;min-height:72px;color:var(--accent-text);font-weight:700}.function-tabs{border-bottom:1px solid var(--border);gap:4px;padding:6px 8px 0;display:flex;overflow-x:auto}.function-tabs button{border:1px solid var(--border);border-radius:var(--radius) var(--radius) 0 0;background:var(--bg);min-height:40px;color:var(--muted);font:inherit;cursor:pointer;white-space:nowrap;border-bottom:0;padding:0 14px;font-family:ui-monospace,Menlo,Consolas,monospace}.function-tabs button.active{background:var(--surface);color:var(--text);font-weight:600}.function-tabs .add-function{min-width:44px;font-family:inherit}.node-button[data-start=true],.node-button[data-end=true]{cursor:pointer}.function-params{border:0;flex-basis:100%;margin:0;padding:0}.function-params legend{color:var(--muted);margin-bottom:4px;font-size:.85rem}.function-param{gap:6px;margin-bottom:6px;display:flex}.function-param input,.function-param select{border:1px solid var(--border);background:var(--surface);min-width:0;min-height:40px;color:var(--text);font:inherit;border-radius:6px;flex:1;padding:0 10px;font-size:16px}.function-param button,.function-params .add-param,.function-delete button{border:1px solid var(--border);background:var(--surface);min-width:40px;min-height:40px;color:var(--text);font:inherit;cursor:pointer;border-radius:6px}.function-delete{flex-basis:100%}.function-delete .danger,.confirm-delete .danger{background:var(--error);border-color:var(--error);color:#fff;padding:0 12px}.function-delete .danger-outline{color:var(--error);border-color:var(--error);align-items:center;gap:6px;padding:0 12px;display:inline-flex}.confirm-delete{color:var(--error);flex-wrap:wrap;align-items:center;gap:8px;display:flex}.confirm-delete button{padding:0 12px}.stack{flex-wrap:wrap;align-items:center;gap:2px;margin:0 0 6px;font-size:.85rem;display:flex}.stack button{min-height:32px;color:var(--accent);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;padding:0 8px;font-family:ui-monospace,Menlo,Consolas,monospace}.stack button[aria-current=true]{border-color:var(--accent);color:var(--text);font-weight:600}.stack .sep{color:var(--muted)}[hidden]{display:none!important}.mobile-menu{position:relative}.mobile-menu-button{border:1px solid var(--c64-light-blue);color:#fff;background:0 0;border-radius:6px;min-width:44px;min-height:44px}.mobile-menu-list{z-index:30;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;min-width:220px;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 8px 24px #00000040}.mobile-menu-list button{min-height:44px;color:var(--text);font:inherit;text-align:left;background:0 0;border:0;border-radius:6px;justify-content:flex-start;padding:0 12px}.mobile-menu-list button:hover,.mobile-menu-list button[aria-pressed=true]{background:var(--bg)}.mobile-menu-language{border-top:1px solid var(--border);border-bottom:1px solid var(--border);color:var(--muted);align-items:center;gap:4px;padding:0 0 0 12px;display:flex}.mobile-menu-language button{flex:1;justify-content:center}.mobile-menu-language button[aria-pressed=true]{color:var(--accent);font-weight:700}.phone .app-header{gap:8px;padding:6px 12px}.phone .app-tagline{display:none}.phone .program-bar{flex:1}.phone .program-name{flex:1;width:auto;min-width:0;min-height:44px}.phone .workspace{flex-direction:column;gap:0;padding:0;display:flex}.phone .workspace>.panel,.phone .side{flex:1;min-height:0}.phone .side{flex-direction:column;display:flex;overflow:visible}.phone .panel{border:0;border-radius:0;flex:1}.phone .panel-title{clip:rect(0 0 0 0);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.phone .panel-screen .panel-body{flex-direction:column;justify-content:center;display:flex}.phone .screen-container{aspect-ratio:auto;flex:1;min-height:0;max-height:none}.run-bar{background:var(--surface);border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:4px 8px;padding:6px 8px;display:flex}.run-bar .run-controls{flex-wrap:nowrap;gap:4px;margin:0}.run-controls.compact button{min-width:44px;padding:0}.run-controls.compact .button-label{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.speed-toggle{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:44px;color:var(--text);font:inherit;white-space:nowrap;margin-left:auto;padding:0 10px;font-size:.85rem}.run-bar .speed{flex-basis:100%;margin:0}.mobile-tabs{background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);display:flex}.mobile-tabs button{min-height:52px;color:var(--muted);font:inherit;background:0 0;border:0;flex-direction:column;flex:1;gap:2px;font-size:.8rem;position:relative}.mobile-tabs button[aria-selected=true]{color:var(--accent);box-shadow:inset 0 3px 0 var(--accent);font-weight:700}.tab-dot{background:#e5484d;border-radius:50%;width:9px;height:9px;position:absolute;top:8px;left:calc(50% + 10px)}@media (height<=499px){.phone .app-header{padding:2px 12px}.mobile-tabs button{flex-direction:row;min-height:44px}}.function-picker select{min-height:44px;font:inherit;flex:1;font-size:16px}.phone .function-picker button,.phone .editor-toolbar button,.phone .editor-toolbar select,.phone .block-panel button{min-width:44px;min-height:44px}.phone .block-panel{z-index:20;border-top:1px solid var(--border);max-height:60dvh;padding-bottom:calc(12px + env(safe-area-inset-bottom));border-radius:14px 14px 0 0;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -8px 24px #0003}.phone .editor-toolbar{flex-wrap:nowrap;gap:2px;padding:4px 6px;position:relative}.phone .editor-toolbar .tool-button{flex-direction:row;min-width:44px}.toolbar-more{z-index:25;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-wrap:wrap;align-items:center;gap:2px;max-width:calc(100% - 12px);padding:6px;display:flex;position:absolute;top:calc(100% + 4px);right:6px;box-shadow:0 8px 24px #0003}@media (height<=499px){.phone .panel-screen .panel-body{flex-direction:row;align-items:center;gap:12px}.phone .screen-container{align-self:stretch}.phone .game-controls{display:contents}.phone .game-arrows{order:-1}.phone .game-action{order:1}.phone .has-letters .game-letters{order:-1}.phone .has-letters .game-arrows{order:1}.phone .has-letters .game-action{order:2}.phone .block-panel{border-top:0;border-left:1px solid var(--border);border-radius:14px 0 0 14px;width:min(420px,50vw);max-height:none;top:0;left:auto;box-shadow:-8px 0 24px #0003}.phone .diagram-scroll.editing{padding-right:min(420px,50vw)}}.notation-switch{border:1px solid var(--border);background:var(--surface);min-height:40px;color:var(--text);font:inherit;border-radius:6px;margin-left:auto;padding:0 8px;font-size:.9rem}.phone .notation-switch{min-height:44px;font-size:16px}.toolbar-more .notation-switch{flex-basis:100%;margin-left:0}.block-preview{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--muted);flex:1;margin:0 8px;font-size:.85rem;overflow:hidden}.panel-header{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding-right:8px;display:flex}.panel-header .panel-title{border-bottom:0;flex:1}.panel-actions .notation-switch{min-height:32px}@media (width<=419px){.speed-toggle .speed-short{display:none}.run-bar .speed-toggle{min-width:44px;padding:0}}.about-dialog{flex-direction:column;width:min(900px,92vw,100% - 32px);max-height:calc(100dvh - 48px);line-height:1.45;display:flex;overflow:hidden}.about-tabs{border-bottom:1px solid var(--border);scrollbar-width:none;flex:none;gap:4px;display:flex;overflow-x:auto}.about-tabs [role=tab]{min-height:40px;color:var(--muted);font:inherit;white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;padding:0 14px;position:relative}.about-tabs [role=tab][aria-selected=true]{color:var(--text);border-bottom-color:var(--accent)}.about-panel{flex:1;min-height:0;padding:8px 2px;overflow:hidden auto}.about-dialog h3{color:var(--heading);margin:14px 0 4px;font-size:1rem}.about-dialog ul{margin:4px 0;padding-left:20px}.about-dialog li+li{margin-top:4px}.about-dialog a{color:var(--heading)}.about-signature{margin-top:14px}@media (pointer:fine){.panel-run .speed{margin:2px 0 4px}.panel-run .speed input{min-height:20px}}.panel-run{container:run/inline-size}.run-status-inline{text-overflow:ellipsis;white-space:nowrap;min-width:0;min-height:1.3em;color:var(--muted);margin:0;font-size:.85rem;display:none;overflow:hidden}.run-status-inline.error{color:var(--error);font-weight:600}.panel-run .panel-actions{flex:1;justify-content:flex-end;min-width:0;display:flex}@container run (width>=700px){.run-status-inline{display:block}.panel-run .panel-body{flex-wrap:wrap;align-items:center;gap:8px 16px;display:flex}.panel-run .run-controls{flex-wrap:nowrap;margin:0}.panel-run .speed{flex:1;min-width:160px;margin:0}.panel-run .speed>span:first-child{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.panel-run .speed input{min-width:60px}.panel-run .speed-value{white-space:nowrap;flex:none}.panel-run .run-status,.panel-run .run-error{display:none}}.screen-stage{display:contents}.screen-stage:fullscreen{flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;display:flex}.screen-stage:fullscreen{flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;display:flex}.screen-stage:fullscreen .screen-container{aspect-ratio:auto;max-height:none}.screen-stage:fullscreen .screen-container{aspect-ratio:auto;max-height:none}.fullscreen-bar{border:1px solid var(--border);border-radius:var(--radius);background:#0d1020d9;gap:8px;padding:8px;transition:opacity .3s;display:flex;position:absolute;bottom:16px;left:50%;transform:translate(-50%)}.fullscreen-bar.hidden{opacity:0;pointer-events:none}.fullscreen-bar button{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:44px;color:var(--text);font:inherit;cursor:pointer;padding:0 14px}.fullscreen-bar button:disabled{opacity:.45;cursor:default}.fullscreen-button{border:1px solid var(--border);background:var(--surface);min-width:36px;min-height:32px;color:var(--text);cursor:pointer;border-radius:6px}@media (pointer:coarse){.fullscreen-button{min-width:44px;min-height:44px}}:root{--ease-out:cubic-bezier(.2, .7, .3, 1)}@keyframes pop-in{0%{opacity:0;transform:scale(.96)}}@keyframes pop-out{to{opacity:0;transform:scale(.96)}}@keyframes fade-in{0%{opacity:0}}@keyframes fade-out{to{opacity:0}}@keyframes slide-up{0%{transform:translateY(100%)}}@keyframes slide-from-right{0%{transform:translate(100%)}}@keyframes tab-from-right{0%{opacity:0;transform:translate(32px)}}@keyframes tab-from-left{0%{opacity:0;transform:translate(-32px)}}@keyframes crt-on{0%{opacity:0;transform:scale(.7,.01)}40%{opacity:1;transform:scaleY(.02)}to{transform:none}}.dialog-backdrop{animation:fade-in .18s var(--ease-out)}.dialog,.insert-menu{animation:pop-in .18s var(--ease-out)}.dialog-backdrop.closing{animation:.15s ease-in forwards fade-out}.dialog-backdrop.closing .dialog,.insert-menu.closing{animation:.15s ease-in forwards pop-out}.phone .block-panel{animation:slide-up .22s var(--ease-out)}@media (height<=499px){.phone .block-panel{animation-name:slide-from-right}}.phone .panel.tab-from-right{animation:tab-from-right .2s var(--ease-out)}.phone .panel.tab-from-left{animation:tab-from-left .2s var(--ease-out)}.screen-stage:fullscreen .screen-canvas{animation:crt-on .28s var(--ease-out)}.screen-stage:fullscreen .screen-canvas{animation:crt-on .28s var(--ease-out)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}.node{transform-box:fill-box;transform-origin:50%}.current-outline{fill:none;stroke:var(--accent);stroke-width:3px;pointer-events:none;transform-box:fill-box;transform-origin:50%}.current-outline.paused{animation:1.5s ease-in-out infinite run-pulse}@keyframes run-pulse{50%{opacity:.35}}.run-bit{fill:var(--c64-light-blue);stroke:var(--accent);stroke-width:2px;pointer-events:none;opacity:0}.stack>span{animation:pop-in .18s var(--ease-out);display:inline-block}.variables.animated tr.changed td.value{position:relative}.variables.animated tr.changed td.value:after{content:"";background:var(--accent);opacity:0;pointer-events:none;animation:.6s ease-out value-flash;position:absolute;inset:0}@keyframes value-flash{0%{opacity:.7}}.examples-search{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);color:var(--muted);align-items:center;gap:8px;margin:8px 0 4px;padding:0 4px 0 10px;display:flex}.examples-search input{min-width:0;min-height:44px;color:var(--text);font:inherit;background:0 0;border:0;outline:none;flex:1;font-size:16px}.examples-search input::-webkit-search-cancel-button{display:none}.examples-search:focus-within{border-color:var(--accent)}.examples-search button{min-width:44px;min-height:44px;color:var(--muted);cursor:pointer}.example-item mark{background:var(--accent);color:var(--accent-text);border-radius:2px}.examples-none{margin:12px 0}.examples-dialog:focus{outline:none}.example-text{flex-direction:column;gap:4px;display:flex}.example-preview{aspect-ratio:328/208;background:var(--bg);border-radius:4px;justify-content:center;width:100%;margin-bottom:4px;display:flex;overflow:hidden}.example-thumbnail{align-self:center;width:100%;height:auto;display:block}.phone .example-item{flex-direction:row;align-items:flex-start;gap:10px}.phone .example-preview{flex:0 0 120px;width:120px;margin:0}.sprite-image-bg{fill:#000}.sprite-dot{fill:var(--c64-light-blue);shape-rendering:crispedges}.sprite-dot.empty{opacity:.35}.block-panel:has(.sprite-editor){max-height:80%}.sprite-editor{flex-wrap:wrap;align-items:flex-start;gap:.75rem;display:flex}.sprite-grid{aspect-ratio:1;background:var(--border);border:1px solid var(--border);touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair;grid-template-columns:repeat(16,1fr);gap:1px;width:16rem;max-width:100%;display:grid}.sprite-cell{background:var(--bg)}.sprite-cell.on{background:var(--text)}.sprite-side{flex-direction:column;gap:.5rem;display:flex}.sprite-tools{flex-wrap:wrap;gap:.25rem;max-width:10rem;display:flex}.sprite-tools button{min-width:2.75rem;min-height:2.75rem}.sprite-text{flex-direction:column;gap:.25rem;font-size:.85rem;display:flex}.sprite-text textarea[aria-invalid=true]{outline:2px solid var(--error,#c00)}.comment-link{fill:none;stroke:var(--muted);stroke-width:1px;stroke-dasharray:4 3}.comment-bracket{fill:none;stroke:var(--muted);stroke-width:1.5px}.comment-text{fill:var(--muted);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px}.comment-icon{cursor:pointer;-webkit-tap-highlight-color:transparent;outline:none}.comment-icon:focus-visible .comment-bubble{stroke:var(--accent);stroke-width:2.5px}.comment-hit{fill:#0000}.comment-bubble{fill:var(--surface);stroke:var(--muted);stroke-width:1.5px;stroke-linejoin:round}.comment-icon.open .comment-bubble{stroke:var(--accent)}.comment-popup rect{fill:var(--surface);stroke:var(--border)}.comment-popup .comment-text{fill:var(--text)}.block-field input{box-sizing:border-box;padding:8px 10px}.comment-field textarea,.sprite-text textarea{box-sizing:border-box;border:1px solid var(--border);background:var(--surface);width:100%;min-height:40px;max-height:calc(4lh + 18px);color:var(--text);resize:none;field-sizing:content;border-radius:6px;padding:8px 10px;font-size:16px;line-height:1.4;overflow-y:auto}.sprite-text textarea{field-sizing:fixed;width:22ch;max-height:none;line-height:1.1}.view-switch{border:1px solid var(--border);border-radius:6px;display:flex;overflow:hidden}.view-switch button{background:var(--surface);min-height:30px;color:var(--muted);font:inherit;border:0;border-radius:0;padding:0 12px;font-size:.9rem}.view-switch button[aria-pressed=true]{background:var(--accent);color:var(--accent-text);font-weight:600}.phone .view-switch button{min-height:44px}.panel-diagram .panel-header{flex-wrap:wrap}.panel-diagram .panel-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto;padding-block:4px;display:flex}.diagram-view{display:contents}.diagram-view[hidden]{display:none}.python-view{flex-direction:column;height:100%;min-height:0;display:flex}.python-toolbar{border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:8px;display:flex}.python-copy,.python-search{border:1px solid var(--border);background:var(--surface);min-height:40px;color:var(--text);font:inherit;border-radius:6px;align-items:center;gap:6px;padding:0 12px;font-size:.9rem;display:inline-flex}.phone .python-copy{min-height:44px}.python-status{color:var(--muted);font-size:.9rem}.python-code{min-height:0;color:var(--text);tab-size:4;flex:1;margin:0;padding:8px 0;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;line-height:1.5;overflow:auto}.python-line{display:flex}.python-line code{white-space:pre;font:inherit;padding-right:16px}.python-ln{text-align:right;color:var(--muted);-webkit-user-select:none;user-select:none;flex:0 0 3.5em;padding-right:12px}.py-keyword{color:#b3abff;font-weight:600}.py-builtin{color:#70a4b2}.py-string{color:#9ad284}.py-number{color:#b8c76f}.py-comment{color:#959595;font-style:italic}.python-line.has-block{cursor:pointer}.python-line.current{background:color-mix(in srgb, var(--accent) 28%, transparent);box-shadow:inset 3px 0 0 var(--accent)}.python-line.runtime-error{background:color-mix(in srgb, var(--error) 22%, transparent);box-shadow:inset 3px 0 0 var(--error)}.python-error{color:var(--error);font-style:normal;display:block}.python-ln{position:relative}.python-breakpoint{background:var(--error);border-radius:50%;width:10px;height:10px;margin-top:-5px;position:absolute;top:50%;left:4px}.about-button,.mobile-menu-button{position:relative}.news-dot{width:10px;height:10px;box-shadow:0 0 0 2px var(--c64-blue);background:#e5484d;border-radius:50%;position:absolute;top:-3px;right:-3px}.news-dot.inline{box-shadow:none;margin-left:8px;display:inline-block;position:static}.about-news .release-title{color:inherit;margin:8px 0 4px;font-size:1em}.about-version{color:var(--muted);font-size:.9rem}.about-shortcuts kbd{border:1px solid var(--border);background:var(--surface);border-radius:4px;padding:1px 6px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.85rem}.example-card{display:flex;position:relative}.example-card>.example-item{flex:1}.example-link{border:1px solid var(--border);min-width:36px;min-height:36px;color:var(--text);background:#14171fd9;border-radius:6px;justify-content:center;align-items:center;display:inline-flex;position:absolute;top:14px;right:16px}.example-link:hover,.example-link:focus-visible{border-color:var(--accent)}.phone .example-link{min-width:44px;min-height:44px;top:auto;bottom:8px;right:8px}.examples-notice:empty{display:none}.examples-notice{color:var(--accent);margin:0 0 8px}.run-stop:not(:disabled){border-color:var(--error);color:var(--error)}.fullscreen-bar .run-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.search-bar{border-bottom:1px solid var(--border);align-items:center;gap:6px;padding:6px 8px;display:flex}.search-bar input{border:1px solid var(--border);background:var(--bg);min-width:0;min-height:36px;color:var(--text);font:inherit;border-radius:6px;flex:1;padding:0 10px}.search-bar button{border:1px solid var(--border);background:var(--surface);min-width:36px;min-height:36px;color:var(--text);border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.search-bar button:disabled{opacity:.45}.phone .search-bar input,.phone .search-bar button{min-width:44px;min-height:44px;font-size:16px}.search-count{color:var(--muted);white-space:nowrap;font-size:.85rem}.node.search-hit .shape{stroke:#b8c76f;stroke-width:2px;stroke-dasharray:4 3}.node.search-current .shape{stroke:#eded77;stroke-width:4px;stroke-dasharray:none}.python-line.search-hit{background:#b8c76f24}.python-line.search-current{background:#eded774d;box-shadow:inset 3px 0 #eded77}.arg-pickers{flex-direction:column;gap:10px;width:100%;display:flex}.arg-picker{flex-direction:column;gap:4px;display:flex}.arg-picker-title{color:var(--muted);font-size:.85rem}.arg-picker-note{color:var(--muted);font-size:.8rem;font-style:italic}.color-picker,.number-picker,.shape-picker,.bool-toggle{flex-wrap:wrap;gap:4px;display:flex}.color-swatch{border:2px solid var(--border);border-radius:6px;width:44px;height:44px}.color-swatch[aria-pressed=true],.number-picker button[aria-pressed=true],.shape-picker button[aria-pressed=true],.bool-toggle button[aria-pressed=true]{outline:3px solid var(--accent);outline-offset:1px}.number-picker button,.bool-toggle button,.shape-picker button{border:1px solid var(--border);background:var(--surface);min-width:44px;min-height:44px;color:var(--text);font:inherit;border-radius:6px;padding:0 10px}.shape-picker button{flex-direction:column;align-items:center;gap:2px;padding:4px 6px;font-size:.75rem;display:inline-flex}.shape-icon{fill:var(--accent);background:var(--bg)}.color-chip{stroke:var(--node-stroke,#555);stroke-width:1px}.run-status{min-height:1.4em}.block-panel:has(.list-table tr){max-height:80%}.list-table{flex-direction:column;align-items:flex-start;gap:6px;display:flex}.list-table table{border-collapse:collapse;width:100%}.list-table td,.list-table th{vertical-align:top;padding:2px 4px}.list-table tr.dragging{background:var(--surface);outline:2px dashed var(--accent)}.list-grip span{min-height:36px;color:var(--muted);cursor:grab;touch-action:none;align-items:center;display:inline-flex}.list-index{min-width:2ch;font-family:var(--mono,monospace);color:var(--muted);text-align:right;font-weight:400;line-height:36px}.list-value{width:100%}.list-value input{box-sizing:border-box;width:100%;min-height:36px}.list-value .field-error{display:block}.list-actions{white-space:nowrap}.list-actions button{min-width:36px;min-height:36px}.list-bool,.list-add{border:1px solid var(--border);background:var(--surface);min-height:36px;color:var(--text);font:inherit;border-radius:6px;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.list-bool[aria-pressed=true]{outline:2px solid var(--accent)}.note-picker,.frequency-picker,.duration-picker{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.piano{grid-template-columns:repeat(7,36px);height:112px;display:grid;position:relative}.block-panel .piano .piano-key{border:1px solid var(--border);min-width:0;min-height:0;font:inherit;padding:0;font-size:.75rem}.block-panel .piano .piano-key.white{color:#14171f;background:#e6e9f0;border-radius:0 0 6px 6px;grid-row:1;justify-content:center;align-items:flex-end;padding-bottom:4px;display:flex}.block-panel .piano .piano-key.black{z-index:1;background:#14171f;border-color:#000;border-radius:0 0 4px 4px;width:26px;height:68px;position:absolute;top:0}.block-panel .piano .piano-key.black[data-key="1"]{left:23px}.block-panel .piano .piano-key.black[data-key="3"]{left:59px}.block-panel .piano .piano-key.black[data-key="6"]{left:131px}.block-panel .piano .piano-key.black[data-key="8"]{left:167px}.block-panel .piano .piano-key.black[data-key="10"]{left:203px}.block-panel .piano .piano-key[aria-pressed=true]{background:var(--accent);color:var(--bg,#14171f)}.octave-select select,.number-field input{border:1px solid var(--border);background:var(--surface);min-height:36px;color:var(--text);font:inherit;border-radius:6px;font-size:16px}.number-field input{width:6ch;padding:0 8px}.number-field input[aria-invalid=true]{border-color:var(--error)}.frequency-picker input[type=range]{flex:180px;min-height:36px}.play-tone{border:1px solid var(--border);background:var(--surface);min-height:36px;color:var(--text);font:inherit;border-radius:6px;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.function-tabs [aria-disabled=true],.function-picker select[aria-disabled=true]{opacity:.4;cursor:not-allowed}.variables td.value{width:60%;max-width:0}.variables tbody th,.variables td{overflow-wrap:anywhere}.value-toggle{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:0;gap:6px;padding:0;display:flex}.value-toggle .item-count{white-space:nowrap;text-overflow:ellipsis;min-width:0;max-width:100%;color:var(--accent);flex:none;overflow:hidden}.variables tr.changed .value-toggle .item-count{color:inherit}.value-short{white-space:nowrap;text-overflow:ellipsis;flex:1 1 0;min-width:0;overflow:hidden}.value-full{white-space:pre-wrap;margin-top:4px;display:block}.value-shape{margin-top:4px;display:block}.value-shape .shape-icon{fill:currentColor;background:var(--surface);border:1px solid var(--border)}.called-function{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.called-function+.called-function{margin-top:8px}.called-comment{color:var(--muted);white-space:pre-wrap;margin:0}.workspace.diagram-wide{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr)}.workspace.diagram-wide>.side{display:none}@media (prefers-reduced-motion:no-preference){.workspace.diagram-wide .panel-diagram{animation:fade-in .18s var(--ease-out)}}.wide-run{gap:4px;display:inline-flex}.wide-run button{border:1px solid var(--border);background:var(--surface);min-width:36px;min-height:32px;color:var(--text);border-radius:6px;padding:0 8px}.wide-run .run-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.link-button.inline-link{font-size:inherit;text-decoration:underline}:where(button,a.app-brand,.example-item){transition:background-color .12s ease-out,border-color .12s ease-out,transform .12s ease-out}:where(button):disabled{cursor:default}@media (hover:hover){:where(button,.example-item):not(:disabled,[aria-pressed=true],[aria-selected=true],.active):hover{background-color:var(--surface-hover);cursor:pointer}.ghost:not(:disabled):hover{background:var(--surface-hover)!important}.button-primary:not(:disabled):hover,.run-controls .button-primary:not(:disabled):hover{background-color:var(--accent-hover);border-color:var(--accent-hover)}a.app-brand:hover{background-color:#ffffff14}}:where(button,.example-item):not(:disabled):active{transform:translateY(1px)}:where(button):not(:disabled,.button-primary,[aria-pressed=true],[aria-selected=true]):active{background-color:var(--surface-active)}.button-primary:not(:disabled):active{background-color:var(--accent-active)}:where(button,[role=tab],.example-item,a):focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion:reduce){:where(button,a.app-brand,.example-item){transition:none}}.example-desc{display:block}.examples-levels{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.level-chip{border:1px solid var(--border);background:var(--surface);min-height:32px;color:var(--text);font:inherit;border-radius:999px;padding:0 12px;font-size:.85rem}.variable-options{border:1px solid var(--border);background:var(--surface);border-radius:6px;max-height:200px;margin:2px 0 0;padding:4px;list-style:none;overflow-y:auto}.variable-options li{cursor:pointer;border-radius:4px;padding:6px 8px}.variable-options li[aria-selected=true]{background:var(--surface-hover);outline:1px solid var(--accent)}@media (hover:hover){.variable-options li:hover{background:var(--surface-hover)}}.variable-type{color:var(--muted)}.variable-missing{color:var(--muted);margin:4px 0 0;font-size:.85rem}.command-help .help-group-title{color:var(--muted);margin:8px 0 2px;font-size:.8rem}.command-help .czech-name,.cheat-sheet .czech-name{color:var(--muted)}.field-hint{color:var(--muted);margin:4px 0 0;font-size:.8rem}.dialog-backdrop.block-dialog-backdrop.spotlit{background:0 0}.block-spotlight{box-shadow:0 0 0 3px var(--accent), 0 0 18px 4px #8f82e073, 0 0 0 200vmax #00000080;pointer-events:none;border-radius:10px;position:absolute}.spotlit .block-dialog{max-height:none;left:50%;transform:translate(-50%)}.field-hint.warning{color:#f0b45a}.expression-palette{margin-top:4px}.palette-toggle{font-size:.85rem}.palette-tabs{flex-wrap:wrap;gap:4px;margin:6px 0;display:flex}.palette-tabs [role=tab]{padding:4px 10px;font-size:.85rem}.palette-tabs [role=tab][aria-selected=true]{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.palette-keys{flex-direction:column;gap:6px;max-height:min(40dvh,280px);display:flex;overflow-y:auto}.palette-row,.palette-edit{flex-wrap:wrap;gap:6px;display:flex}.palette-edit{margin-top:6px}.palette-key{min-width:40px;min-height:40px;padding:4px 10px}.palette-row.palette-digits{grid-template-columns:repeat(3,48px);display:grid}.palette-delete{margin-left:auto}.position-picker{flex-direction:column;gap:4px;display:flex}.position-area{aspect-ratio:320/200;width:min(100%,320px);box-shadow:0 0 0 1px var(--border);cursor:crosshair;touch-action:manipulation;background:#20206b;position:relative}.position-area.chars{background-image:repeating-linear-gradient(90deg,#ffffff1f 0 1px,#0000 1px 2.5%),repeating-linear-gradient(#ffffff1f 0 1px,#0000 1px 4%)}.position-area:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.position-mark{pointer-events:none;background:#ffd84a;min-width:3px;min-height:3px;position:absolute;box-shadow:0 0 0 1px #000}.position-value{font-family:var(--mono,monospace);color:var(--muted);font-size:.85rem}.key-picker{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.key-capture.listening{border-color:var(--accent);color:var(--accent)}.screen-mode{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.screen-mode button{min-height:32px;padding:0 10px;font-size:.85rem}.screen-mode button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.screen-mode button[aria-disabled=true]{opacity:.55}.screen-mode-why{color:var(--muted);flex-basis:100%;font-size:.8rem}.panel-screen .panel-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.mobile-menu-screen{padding:4px 8px}.account{position:relative}.account-button{border:1px solid var(--c64-light-blue);color:#fff;max-width:220px;min-height:36px;font:inherit;cursor:pointer;background:0 0;border-radius:6px;align-items:center;gap:6px;padding:0 10px;display:inline-flex}.account-button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.account-menu{z-index:30;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;min-width:180px;padding:4px;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 8px 28px #00000040}.account-menu button,.account-compact button,.account-compact-login{text-align:left;justify-content:flex-start}.account-menu button[aria-disabled=true],.account-compact button[aria-disabled=true]{opacity:.55;cursor:default}.account-compact{flex-direction:column;gap:4px;display:flex}.account-email{color:var(--muted);align-items:center;gap:6px;display:inline-flex}.login-dialog,.account-dialog{width:min(480px,100% - 32px);max-height:calc(100dvh - 32px);overflow:auto}.account-dialog h3{margin:16px 0 4px;font-size:1rem}.account-delete{flex-wrap:wrap;gap:8px;display:flex}.account-delete input{min-height:40px;font-size:16px}.login-dialog form{flex-direction:column;gap:8px;display:flex}.login-dialog input{min-height:44px;font-size:16px}.login-note{color:var(--muted);font-size:.85rem}.my-programs{width:min(560px,100% - 32px);max-height:calc(100dvh - 48px);overflow:auto}.my-programs-list{flex-direction:column;gap:4px;margin:8px 0;padding:0;list-style:none;display:flex}.my-programs-list li{align-items:center;gap:4px;display:flex}.my-programs-open{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;text-align:left;flex-direction:column;flex:1;align-items:flex-start;min-height:44px;padding:6px 10px;display:flex}.my-programs-date{color:var(--muted);font-size:.8rem}.my-programs-rename{flex:1;gap:6px;display:flex}.my-programs-rename input{flex:1;min-height:40px;font-size:16px}.my-programs-confirm{border:1px solid var(--border);border-radius:var(--radius);margin:8px 0;padding:8px 12px}.privacy-policy h4{margin:14px 0 2px}.privacy-policy p{margin:4px 0}.share-result{border:1px solid var(--accent);border-radius:var(--radius);margin:8px 0;padding:8px 12px}.share-result input{width:100%;min-height:40px;font-size:16px}.my-shares ul{margin:4px 0;padding:0;list-style:none}.my-shares li{justify-content:space-between;align-items:center;gap:8px;display:flex}.my-shares h3{margin:12px 0 4px;font-size:1rem}.rename-variable{flex-direction:column;gap:4px;margin-top:6px;display:flex}.rename-row{flex-wrap:wrap;gap:6px;display:flex}.rename-row input{flex:1;min-width:8em;min-height:40px;font-size:16px}.function-tabs-list{display:contents}
