@font-face{font-family:Space Grotesk;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/space-grotesk-vietnamese-400-normal-B7xT_GF5.woff2)format("woff2"),url(/assets/space-grotesk-vietnamese-400-normal-BIWiOVfw.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Space Grotesk;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/space-grotesk-latin-ext-400-normal-CfP_5XZW.woff2)format("woff2"),url(/assets/space-grotesk-latin-ext-400-normal-DRPE3kg4.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Space Grotesk;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/space-grotesk-latin-400-normal-CJ-V5oYT.woff2)format("woff2"),url(/assets/space-grotesk-latin-400-normal-BnQMeOim.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Space Grotesk;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/space-grotesk-vietnamese-500-normal-BmEvtly_.woff2)format("woff2"),url(/assets/space-grotesk-vietnamese-500-normal-BTqKIpxg.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Space Grotesk;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/space-grotesk-latin-ext-500-normal-DUe3BAxM.woff2)format("woff2"),url(/assets/space-grotesk-latin-ext-500-normal-3dgZTiw9.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Space Grotesk;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/space-grotesk-latin-500-normal-lFbtlQH6.woff2)format("woff2"),url(/assets/space-grotesk-latin-500-normal-CNSSEhBt.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Space Grotesk;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/space-grotesk-vietnamese-700-normal-DMty7AZE.woff2)format("woff2"),url(/assets/space-grotesk-vietnamese-700-normal-Duxec5Rn.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Space Grotesk;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/space-grotesk-latin-ext-700-normal-BQnZhY3m.woff2)format("woff2"),url(/assets/space-grotesk-latin-ext-700-normal-HVCqSBdx.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Space Grotesk;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/space-grotesk-latin-700-normal-RjhwGPKo.woff2)format("woff2"),url(/assets/space-grotesk-latin-700-normal-CwsQ-cCU.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--checker:conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0);--bg:#f4f5f8;--surface:#fff;--surface-2:#f8f8fb;--hover:#f3f1fd;--line:#e6e7ec;--line-strong:#d6d7df;--ink:#20212a;--ink-2:#4d4f5c;--muted:#80828f;--accent:#7257e8;--accent-hover:#6248d3;--accent-soft:#efebff;--accent-ink:#5640c7;--danger:#d9435a;--danger-soft:#fdecef;--ok:#3fae78;--warn:#d98a1c;--stage:#eceef3;--shadow:0 1px 2px #1d1b2b0d, 0 4px 14px #1d1b2b0f;--shadow-lg:0 20px 60px #1d1b2b33;--radius:8px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#15161d;--surface:#1e1f28;--surface-2:#24252f;--hover:#2b2840;--line:#2f303c;--line-strong:#3d3e4c;--ink:#ecedf3;--ink-2:#c5c6d2;--muted:#8f91a0;--accent:#8c76f2;--accent-hover:#9d8af5;--accent-soft:#2e2850;--accent-ink:#c2b6ff;--danger:#f06478;--danger-soft:#3a2029;--stage:#121319;--shadow:0 1px 2px #0006, 0 4px 14px #0004;--shadow-lg:0 20px 60px #000a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box;scrollbar-width:thin}html,body,#root{height:100%;margin:0}html,body{overscroll-behavior:none;overflow:hidden}body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;font-family:Space Grotesk,system-ui,sans-serif;font-size:15px;line-height:1.5;position:fixed;inset:0}a{text-decoration:none}.studio{background:var(--bg);height:100%;color:var(--ink);flex-direction:column;font-size:13px;line-height:1.4;display:flex;overflow:hidden}.studio h1,.studio h2,.studio h3{letter-spacing:-.02em;margin:0;font-weight:700;line-height:1.15}.studio a{color:inherit}.studio a:hover{text-decoration:none}.studio button{font:inherit;color:inherit}.studio ::selection{background:var(--accent);color:#fff}.studio :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.studio input:focus-visible{outline:none}.studio kbd{font-family:inherit}.toast{z-index:2000;background:var(--ink);color:var(--bg);box-shadow:var(--shadow-lg);white-space:nowrap;text-overflow:ellipsis;border:0;border-radius:999px;max-width:calc(100vw - 32px);padding:9px 16px;font-size:13px;animation:.16s pop;position:fixed;bottom:54px;left:50%;overflow:hidden;translate:-50%}.primary-button,.ghost-button,.danger-button{border-radius:var(--radius);cursor:pointer;white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:7px;height:36px;padding:0 14px;font-weight:700;text-decoration:none;transition:background .12s,border-color .12s,transform .12s;display:inline-flex}.primary-button{background:var(--accent);box-shadow:0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);color:#fff!important}.primary-button:hover:not(:disabled){background:var(--accent-hover)}.ghost-button{background:var(--surface);border-color:var(--line);color:var(--ink-2)}.ghost-button:hover:not(:disabled){background:var(--surface-2);border-color:var(--line-strong)}.danger-button{background:var(--danger);color:#fff!important}.danger-button:hover{filter:brightness(1.08)}.primary-button:active:not(:disabled),.ghost-button:active:not(:disabled){transform:translateY(1px)}.primary-button:disabled,.ghost-button:disabled{opacity:.5;cursor:not-allowed}.large{height:42px;padding:0 18px}.wide-button{width:100%;height:42px;margin-top:22px}.icon-button{width:34px;height:34px;color:var(--ink-2);border-radius:var(--radius);cursor:pointer;background:0 0;border:1px solid #0000;flex:none;place-items:center;padding:0;transition:background .12s,color .12s;display:inline-grid}.icon-button.small{border-radius:6px;width:28px;height:28px}.icon-button:hover:not(:disabled){background:var(--hover);color:var(--accent-ink)}.icon-button.active{background:var(--accent-soft);color:var(--accent-ink)}.icon-button.danger:hover:not(:disabled){background:var(--danger-soft);color:var(--danger)}.icon-button:disabled{opacity:.35;cursor:not-allowed}.chip-button{border:1px solid var(--line);background:var(--surface);height:28px;color:var(--ink-2);cursor:pointer;white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:0 10px;font-size:12px;display:inline-flex}.chip-button:hover:not(:disabled){border-color:var(--line-strong);background:var(--surface-2)}.chip-button.active{background:var(--accent-soft);border-color:color-mix(in srgb, var(--accent) 45%, transparent);color:var(--accent-ink)}.chip-button:disabled{opacity:.45;cursor:not-allowed}.segmented{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);gap:2px;padding:3px;display:inline-flex}.segmented button{height:30px;color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:6px;align-items:center;gap:7px;padding:0 12px;font-size:12px;display:inline-flex}.segmented button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow);font-weight:700}.segmented.small button{height:24px;padding:0 9px;font-size:11.5px}.topbar{background:var(--surface);border-bottom:1px solid var(--line);z-index:5;flex:none;align-items:center;gap:6px;height:56px;padding:0 max(14px,50% - 866px);display:flex;position:relative}.brand-link{border-radius:8px;align-items:center;text-decoration:none;display:flex}.brand{align-items:center;gap:9px;display:inline-flex}.brand-mark{width:38px;height:32px;display:block;position:relative}.brand-frame{width:100%;height:100%;position:absolute;inset:0}.brand-frame.f1{opacity:0}.brand:hover .brand-frame.f0{animation:.4s step-end infinite hero-hide}.brand:hover .brand-frame.f1{animation:.4s step-end infinite hero-show}@media (prefers-reduced-motion:reduce){.brand:hover .brand-frame.f0,.brand:hover .brand-frame.f1{animation:none}}.brand-name{white-space:nowrap;letter-spacing:-.03em;color:var(--ink);font-size:17px;font-weight:700}.brand-name span{color:var(--muted);font-weight:400}.back-link{background:0 0;border-color:#0000;height:32px;margin-left:4px;padding:0 10px 0 6px;font-weight:500}.top-divider{background:var(--line);flex:none;width:1px;height:22px;margin:0 6px}.top-spacer{flex:1}.name-input{width:220px;min-width:60px;height:34px;color:var(--ink);font:inherit;text-overflow:ellipsis;background:0 0;border:1px solid #0000;border-radius:7px;padding:0 9px;font-size:14px;font-weight:700}.name-input:hover{border-color:var(--line)}.name-input:focus{border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent)}.save-state{color:var(--muted);white-space:nowrap;align-items:center;gap:6px;font-size:12px;display:inline-flex}.save-state i{background:var(--ok);border-radius:50%;width:7px;height:7px}.save-state.saving i{background:var(--warn);animation:.9s ease-in-out infinite pulse}.save-state.error{color:var(--danger)}.save-state.error i{background:var(--danger)}@keyframes pulse{50%{opacity:.35}}.panel-toggle{display:none}.editor{flex-direction:column;height:100%;min-height:0;display:flex}.workbench{border-inline:1px solid var(--line);flex:1;width:100%;max-width:1760px;min-height:0;margin:0 auto;display:flex;position:relative}.tool-rail{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;flex:none;align-items:center;gap:3px;width:56px;padding:10px 0;display:flex;overflow-y:auto}.tool-slot{flex-direction:column;align-items:center;display:flex}.rail-separator{background:var(--line);width:26px;height:1px;margin:6px 0 9px}.tool-button{width:40px;height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;place-items:center;transition:background .12s,color .12s;display:grid;position:relative}.tool-button:hover{background:var(--hover);color:var(--accent-ink)}.tool-button.selected{background:var(--accent);color:#fff;box-shadow:0 3px 10px color-mix(in srgb, var(--accent) 35%, transparent)}.tool-button kbd{opacity:.6;font-size:8.5px;line-height:1;position:absolute;bottom:1px;right:2px}.canvas-area{background:var(--stage);flex-direction:column;flex:1;min-width:0;display:flex}.canvas-toolbar{background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:7px 14px;display:flex}.tool-options,.view-options{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tool-name{white-space:nowrap;margin-right:4px;font-weight:700}.tool-meta{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.stepper{border:1px solid var(--line);height:28px;color:var(--muted);border-radius:999px;align-items:center;gap:4px;padding:0 3px 0 10px;font-size:12px;display:inline-flex}.stepper b{text-align:center;min-width:34px;color:var(--ink);font-variant-numeric:tabular-nums;font-weight:700}.stepper button{background:var(--surface-2);cursor:pointer;width:22px;height:22px;color:var(--ink-2);border:0;border-radius:50%;place-items:center;display:grid}.stepper button:hover:not(:disabled){background:var(--hover);color:var(--accent-ink)}.stepper button:disabled{opacity:.35}.size-chip{font-variant-numeric:tabular-nums}.zoom-group{align-items:center;gap:2px;display:inline-flex}.zoom-value{cursor:pointer;font-variant-numeric:tabular-nums;min-width:56px;height:28px;color:var(--ink-2);background:0 0;border:0;border-radius:6px;font-weight:700}.zoom-value:hover{background:var(--hover)}.stage-wrap{flex:1;min-height:160px;position:relative}.canvas-stage{background-color:var(--stage);position:absolute;inset:0;overflow:hidden}.art-canvas{touch-action:none;-webkit-user-select:none;user-select:none;display:block}.picker-loupe{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;z-index:3;will-change:transform;border-radius:999px;align-items:center;gap:6px;padding:4px 8px 4px 4px;font-size:11px;font-weight:700;display:flex;position:absolute;top:0;left:0}.picker-loupe[hidden]{display:none}.picker-loupe-swatch{background:linear-gradient(var(--loupe-color), var(--loupe-color)), var(--checker) 0 0 / 8px 8px;border-radius:50%;width:20px;height:20px;box-shadow:inset 0 0 0 1px #0000002e}.picker-loupe.empty .picker-loupe-hex{color:var(--muted)}.stage-hint{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--muted);white-space:nowrap;pointer-events:none;text-overflow:ellipsis;border-radius:999px;max-width:calc(100% - 24px);padding:6px 13px;font-size:12px;position:absolute;bottom:12px;left:50%;overflow:hidden;transform:translate(-50%)}.hint-dot{background:var(--accent);border-radius:50%;width:6px;height:6px;margin:0 7px 1px 0;display:inline-block}.reference-transform{outline:1.5px dashed var(--accent);background:color-mix(in srgb, var(--accent) 6%, transparent);cursor:move;touch-action:none;position:absolute}.reference-transform.cropping{outline:2px solid var(--accent);cursor:grab;background:0 0;box-shadow:0 0 0 1px #fff}.reference-full{outline:1px dashed color-mix(in srgb, var(--accent) 70%, transparent);pointer-events:none;position:absolute}.reference-resize{background:var(--accent);touch-action:none;border:2px solid #fff;border-radius:4px;width:14px;height:14px;position:absolute;box-shadow:0 1px 3px #0005}.reference-resize:before{content:"";position:absolute;inset:-9px}.cropping .reference-resize{border-color:var(--accent);background:#fff}.reference-transform.compact .reference-resize.n,.reference-transform.compact .reference-resize.s,.reference-transform.compact .reference-resize.e,.reference-transform.compact .reference-resize.w{display:none}.reference-resize.n,.reference-resize.s{cursor:ns-resize;left:calc(50% - 7px)}.reference-resize.e,.reference-resize.w{cursor:ew-resize;top:calc(50% - 7px)}.reference-resize.n,.reference-resize.nw,.reference-resize.ne{top:-7px}.reference-resize.s,.reference-resize.sw,.reference-resize.se{bottom:-7px}.reference-resize.w,.reference-resize.nw,.reference-resize.sw{left:-7px}.reference-resize.e,.reference-resize.ne,.reference-resize.se{right:-7px}.reference-resize.nw,.reference-resize.se{cursor:nwse-resize}.reference-resize.ne,.reference-resize.sw{cursor:nesw-resize}.selection-transform{outline:1px solid color-mix(in srgb, var(--accent) 80%, transparent);pointer-events:none;transform-origin:50%;position:absolute}.selection-transform>*{pointer-events:auto}.selection-transform.compact .reference-resize.n,.selection-transform.compact .reference-resize.s,.selection-transform.compact .reference-resize.e,.selection-transform.compact .reference-resize.w{display:none}.selection-transform.compact .reference-resize.nw,.selection-transform.compact .reference-resize.ne{top:-16px}.selection-transform.compact .reference-resize.sw,.selection-transform.compact .reference-resize.se{bottom:-16px}.selection-transform.compact .reference-resize.nw,.selection-transform.compact .reference-resize.sw{left:-16px}.selection-transform.compact .reference-resize.ne,.selection-transform.compact .reference-resize.se{right:-16px}.selection-rotate{border:2px solid var(--accent);cursor:grab;touch-action:none;background:#fff;border-radius:50%;width:14px;height:14px;position:absolute;top:-34px;left:calc(50% - 7px);box-shadow:0 1px 3px #0005}.selection-rotate:before{content:"";position:absolute;inset:-10px}.selection-rotate:after{content:"";background:var(--accent);pointer-events:none;width:1.5px;height:20px;margin-left:-.75px;position:absolute;top:100%;left:50%}.selection-transform.compact .selection-rotate{top:-44px}.selection-transform.compact .selection-rotate:after{height:30px}@media (pointer:coarse){.selection-rotate{width:22px;height:22px;top:-44px;left:calc(50% - 11px)}.selection-rotate:after{height:22px}.selection-transform.compact .selection-rotate{top:-56px}.selection-transform.compact .selection-rotate:after{height:34px}.selection-transform.compact .reference-resize.nw,.selection-transform.compact .reference-resize.ne{top:-22px}.selection-transform.compact .reference-resize.sw,.selection-transform.compact .reference-resize.se{bottom:-22px}.selection-transform.compact .reference-resize.nw,.selection-transform.compact .reference-resize.sw{left:-22px}.selection-transform.compact .reference-resize.ne,.selection-transform.compact .reference-resize.se{right:-22px}.reference-resize{border-radius:6px;width:20px;height:20px}.reference-resize.n,.reference-resize.s{left:calc(50% - 10px)}.reference-resize.e,.reference-resize.w{top:calc(50% - 10px)}.reference-resize.n,.reference-resize.nw,.reference-resize.ne{top:-10px}.reference-resize.s,.reference-resize.sw,.reference-resize.se{bottom:-10px}.reference-resize.w,.reference-resize.nw,.reference-resize.sw{left:-10px}.reference-resize.e,.reference-resize.ne,.reference-resize.se{right:-10px}}.reference-toolbar{background:var(--surface);border:1px solid var(--line);max-width:calc(100% - 24px);box-shadow:var(--shadow);z-index:2;border-radius:10px;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;padding:4px;display:flex;position:absolute;top:12px;left:50%;transform:translate(-50%)}.reference-toolbar .segmented{padding:2px}.reference-toolbar-sep{background:var(--line);width:1px;height:18px;margin:0 2px}.reference-tool,.reference-done{white-space:nowrap;cursor:pointer;border:0;border-radius:6px;align-items:center;gap:6px;height:28px;padding:0 10px;font-size:12px;display:inline-flex}.reference-tool{color:var(--ink-2);background:0 0}.reference-tool:hover{background:var(--hover);color:var(--ink)}.reference-done{background:var(--accent);font-weight:700;color:#fff!important}.reference-done:hover{background:var(--accent-hover)}.timeline{background:var(--surface);border-top:1px solid var(--line);flex:none}.timeline-bar{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:6px 12px;display:flex}.timeline-group{align-items:center;gap:4px;display:flex}.play-button{background:var(--accent);cursor:pointer;border:0;border-radius:50%;place-items:center;width:30px;height:30px;margin-right:4px;display:grid;color:#fff!important}.play-button:disabled{opacity:.35;cursor:not-allowed}.play-button.playing{background:var(--ink);color:var(--bg)!important}.frame-counter{text-align:center;font-variant-numeric:tabular-nums;min-width:48px;color:var(--ink-2);font-size:12px;font-weight:700}.fps-field{color:var(--muted);align-items:center;gap:5px;margin:0 8px 0 6px;font-size:12px;display:inline-flex}.fps-field input{border:1px solid var(--line);background:var(--surface);width:48px;height:28px;color:var(--ink);font:inherit;text-align:center;border-radius:6px}.fps-field input:focus{border-color:var(--accent)}.frame-list{align-items:center;gap:6px;padding:8px 12px 10px;display:flex;overflow-x:auto}.frame-cell{border:1.5px solid var(--line);background:var(--surface-2);cursor:pointer;border-radius:8px;flex:none;place-items:center;width:58px;height:58px;padding:0;display:grid;position:relative}.frame-cell:hover{border-color:var(--line-strong)}.frame-cell.active{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent)}.frame-cell.dragging{opacity:.4}.frame-cell.drop-before:before,.frame-cell.drop-after:after{content:"";background:var(--accent);pointer-events:none;border-radius:2px;width:3px;position:absolute;top:4px;bottom:4px}.frame-cell.drop-before:before{left:-5px}.frame-cell.drop-after:after{right:-5px}.frame-number{color:var(--muted);z-index:1;font-size:10px;font-weight:700;position:absolute;top:2px;left:4px}.frame-art{place-items:center;width:40px;height:40px;display:grid}.thumb-canvas{max-width:100%;max-height:100%;image-rendering:pixelated;background-color:#fff;background-image:conic-gradient(#e9e9ef 25%, transparent 0 50%, #e9e9ef 0 75%, transparent 0);background-size:8px 8px;display:block}[data-theme=dark] .thumb-canvas{background-color:#2a2b35;background-image:conic-gradient(#33343f 25%, transparent 0 50%, #33343f 0 75%, transparent 0)}.add-frame{border:1.5px dashed var(--line-strong);width:58px;height:58px;color:var(--muted);cursor:pointer;background:0 0;border-radius:8px;flex:none;place-content:center;justify-items:center;gap:2px;font-size:11px;display:grid}.add-frame:hover:not(:disabled){border-color:var(--accent);color:var(--accent-ink)}.add-frame:disabled{opacity:.4;cursor:not-allowed}.inspector{background:var(--surface);border-left:1px solid var(--line);flex:none;width:280px;overflow:hidden auto}.panel-section{border-bottom:1px solid var(--line);padding:14px 16px 16px}.subheading{letter-spacing:.06em;text-transform:uppercase;min-height:28px;color:var(--muted);justify-content:space-between;align-items:center;margin:12px 0 8px;font-size:11px;font-weight:700;display:flex}.panel-section>.subheading:first-child{margin-top:0}.subheading small{letter-spacing:0;background:var(--surface-2);border:1px solid var(--line);border-radius:99px;margin-left:4px;padding:0 6px;font-size:11px}.subheading-actions{gap:2px;display:flex}.panel-note{color:var(--muted);margin:8px 0 0;font-size:11.5px}.color-pair{flex-direction:column;align-items:flex-start;gap:10px;display:flex}.color-stack{flex:none;width:62px;height:58px;position:relative}.color-chip{border:2px solid var(--surface);width:40px;height:40px;box-shadow:0 0 0 1px var(--line-strong), var(--shadow);cursor:pointer;border-radius:9px;position:absolute;overflow:hidden}.color-chip,.cp-preview,.cp-alpha .cp-knob{background-size:auto,8px 8px}.color-chip{padding:0;transition:transform .12s,box-shadow .12s}.color-chip:hover{transform:scale(1.06)}.color-chip[aria-expanded=true]{box-shadow:0 0 0 2px var(--accent), var(--shadow)}.color-popover{z-index:1000;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lg);transform-origin:0 0;border-radius:12px;gap:12px;padding:12px;display:grid;position:fixed}.color-popover.is-open{animation:.16s cubic-bezier(.2,.9,.3,1) both picker-in}.color-popover.is-closing{pointer-events:none;animation:.12s ease-in both picker-out}@keyframes picker-in{0%{opacity:0;transform:translateY(-6px)scale(.94)}}@keyframes picker-out{to{opacity:0;transform:translateY(-6px)scale(.94)}}.cp-area,.cp-hue{cursor:crosshair;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:8px;position:relative}.cp-area{background-image:linear-gradient(#0000,#000),linear-gradient(90deg,#fff,#0000);height:140px}.cp-hue{background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);border-radius:7px;height:14px}.cp-alpha{cursor:crosshair;touch-action:none;-webkit-user-select:none;user-select:none;background-image:linear-gradient(to right, transparent, var(--cp-color)), var(--checker);background-size:auto,8px 8px;border-radius:7px;height:14px;position:relative}.cp-knob{pointer-events:none;border:2px solid #fff;border-radius:50%;width:16px;height:16px;margin:-8px 0 0 -8px;position:absolute;box-shadow:0 0 0 1px #0006,0 2px 6px #0004}.cp-hue .cp-knob{top:50%}.cp-row{align-items:center;gap:10px;display:flex}.cp-row .hex-field{flex:1;min-width:0}.cp-preview{width:34px;height:34px;box-shadow:0 0 0 1px var(--line-strong);border-radius:8px;flex:none}.primary-chip{z-index:1;top:0;left:0}.secondary-chip{bottom:0;right:0}.swap-button{width:18px;height:18px;color:var(--muted);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute;bottom:-2px;left:0}.swap-button:hover{color:var(--accent-ink)}.color-fields{justify-items:start;gap:6px;min-width:0;max-width:100%;display:grid}.color-fields .hex-field{width:fit-content;max-width:100%}.hex-field{border:1px solid var(--line);height:34px;color:var(--muted);background:var(--surface);border-radius:7px;align-items:center;gap:4px;padding:0 10px;display:flex}.hex-field:focus-within{border-color:var(--accent)}.hex-field.invalid{border-color:var(--danger)}.hex-field input{field-sizing:content;width:fit-content;min-width:1ch;max-width:100%;color:var(--ink);font:inherit;font-variant-numeric:tabular-nums;text-transform:uppercase;background:0 0;border:0;flex:none}.hex-action{width:22px;height:22px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:5px;flex:none;place-items:center;padding:0;display:grid}.hex-action:hover{background:var(--hover);color:var(--accent-ink)}.hex-field input+.hex-action{margin-left:4px}.swatch-grid{grid-template-columns:repeat(8,1fr);gap:5px;display:grid}.swatch{aspect-ratio:1;cursor:pointer;border:1px solid #0000001a;border-radius:5px;place-items:center;width:100%;padding:0;transition:transform .1s;display:grid;position:relative}.swatch:hover{z-index:1;transform:scale(1.12)}.swatch.is-secondary:before{content:"";border:1.5px dashed var(--muted);border-radius:7px;position:absolute;inset:-3px}.swatch.is-primary:after{content:"";border:2px solid var(--accent);border-radius:7px;position:absolute;inset:-3px}.swatch-grid.editing .swatch{color:#fff;filter:saturate(.6)}.swatch-grid.editing .swatch svg{filter:drop-shadow(0 0 1.5px #000)}.layer-list{gap:2px;max-height:260px;margin:0 -6px;display:grid;overflow-y:auto}.layer-row{cursor:pointer;border:1px solid #0000;border-radius:7px;align-items:center;gap:8px;height:42px;padding:0 8px 0 4px;display:flex}.layer-row:hover{background:var(--surface-2)}.layer-row.selected{background:var(--accent-soft);border-color:color-mix(in srgb, var(--accent) 30%, transparent)}.layer-row.dragging{opacity:.4}.layer-row.drop-target{border-color:var(--accent);background:var(--accent-soft)}.layer-row.hidden-layer .layer-thumb,.layer-row.hidden-layer .layer-name{opacity:.45}.layer-thumb{border:1px solid var(--line);background:var(--surface-2);border-radius:5px;flex:none;place-items:center;width:32px;height:32px;display:grid;overflow:hidden}.layer-name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-weight:500;overflow:hidden}.layer-opacity{color:var(--muted);font-size:11px}.layer-rename{border:1px solid var(--accent);min-width:0;height:28px;font:inherit;background:var(--surface);color:var(--ink);border-radius:5px;flex:1;padding:0 6px}.range-row{color:var(--muted);align-items:center;gap:10px;margin:12px 0 4px;font-size:12px;display:flex}.range-row input{min-width:40px;accent-color:var(--accent);flex:1}.range-row b{text-align:right;min-width:36px;color:var(--ink-2);font-variant-numeric:tabular-nums;font-weight:700}.action-row{border-top:1px dashed var(--line);justify-content:space-between;margin-top:8px;padding-top:8px;display:flex}.dashed-button{border:1.5px dashed var(--line-strong);border-radius:var(--radius);width:100%;height:38px;color:var(--ink-2);cursor:pointer;background:0 0;justify-content:center;align-items:center;gap:8px;display:flex}.dashed-button:hover{border-color:var(--accent);color:var(--accent-ink);background:var(--hover)}.reference-row{align-items:center;gap:10px;display:flex}.reference-row img{object-fit:cover;border:1px solid var(--line);border-radius:6px;flex:none;width:48px;height:48px}.reference-buttons{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.panel-section .segmented{width:100%;margin-top:8px}.panel-section .segmented button{flex:1;justify-content:center}.inspector-shade{display:none}.statusbar{background:var(--surface);border-top:1px solid var(--line);height:28px;color:var(--muted);flex:none;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:0 max(14px,50% - 866px);font-size:11.5px;display:grid}.status-left{align-items:center;gap:14px;display:flex}.status-coord{font-variant-numeric:tabular-nums;white-space:pre;color:var(--ink-2);min-width:82px}.status-color{text-transform:uppercase;align-items:center;gap:6px;display:inline-flex}.status-color i{border:1px solid #0003;border-radius:3px;width:11px;height:11px}.status-center{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.modal-shade{z-index:50;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#15131f66;place-items:center;padding:16px;animation:.12s fade-in;display:grid;position:fixed;inset:0}.dialog{background:var(--surface);border:1px solid var(--line);width:min(460px,100%);max-height:calc(100vh - 32px);box-shadow:var(--shadow-lg);border-radius:14px;padding:26px;animation:.16s pop;position:relative;overflow-y:auto}.dialog-wide{width:min(760px,100%)}@keyframes fade-in{0%{opacity:0}}@keyframes pop{0%{opacity:0;transform:translateY(6px)scale(.98)}}.dialog h2{padding-right:30px;font-size:20px;font-weight:700}.dialog-subtitle{color:var(--muted);margin:6px 0 4px}.dialog-close{position:absolute;top:14px;right:14px}.dialog-text{color:var(--ink-2);margin:12px 0 0}.dialog-text.small{color:var(--muted);margin:0;font-size:12px}.dialog-warning{background:color-mix(in srgb, var(--warn) 14%, transparent);color:var(--ink-2);border-radius:7px;margin:14px 0 0;padding:9px 12px;font-size:12px}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:24px;display:flex}.field-label{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:20px 0 8px;font-size:11px;font-weight:700;display:block}.text-input{border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--surface);width:100%;height:40px;color:var(--ink);font:inherit;padding:0 12px;font-size:14px}.text-input:focus,.size-inputs label:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent)}.size-presets{grid-template-columns:repeat(4,1fr);gap:7px;display:grid}.size-preset{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);cursor:pointer;height:64px;color:var(--ink-2);place-content:center;justify-items:center;gap:6px;display:grid}.size-preset strong{font-variant-numeric:tabular-nums;font-size:12px;font-weight:700}.preset-shape{opacity:.5;border:1.5px solid;border-radius:3px;max-width:30px;height:18px}.size-preset:hover{border-color:var(--line-strong);background:var(--surface-2)}.size-preset.chosen{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink);box-shadow:0 0 0 1px var(--accent)}.custom-row{color:var(--muted);justify-content:space-between;align-items:center;gap:10px;margin-top:12px;display:flex}.size-inputs{color:var(--muted);align-items:center;gap:8px;display:flex}.size-inputs label{border:1px solid var(--line-strong);background:var(--surface);border-radius:7px;align-items:center;gap:6px;width:92px;height:36px;padding:0 10px;display:flex}.size-inputs label span{font-size:11px;font-weight:700}.size-inputs input{width:100%;min-width:0;color:var(--ink);font:inherit;font-variant-numeric:tabular-nums;background:0 0;border:0}.bg-dot{border:1px solid var(--line-strong);border-radius:4px;width:14px;height:14px}.bg-transparent{background:conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0) 0 0 / 7px 7px}.bg-white{background:#fff}.anchor-row{align-items:center;gap:16px;display:flex}.anchor-grid{flex:none;grid-template-columns:repeat(3,26px);gap:4px;display:grid}.anchor-grid button{border:1px solid var(--line-strong);background:var(--surface-2);cursor:pointer;border-radius:5px;width:26px;height:26px}.anchor-grid button.active{background:var(--accent);border-color:var(--accent)}.format-list{gap:6px;display:grid}.format-option{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);cursor:pointer;text-align:left;justify-content:space-between;align-items:baseline;gap:10px;padding:12px 14px;display:flex}.format-option span{color:var(--muted);font-size:12px}.format-option:hover:not(:disabled){border-color:var(--line-strong)}.format-option.chosen{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent)}.format-option:disabled{opacity:.45;cursor:not-allowed}.export-size{color:var(--muted);margin:18px 0 0}.export-size b{color:var(--ink);font-variant-numeric:tabular-nums}.shortcut-columns{grid-template-columns:repeat(2,1fr);gap:8px 28px;margin:18px 0;display:grid}.shortcut-columns h3{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:10px 0 6px;font-size:11px}.shortcut-row{border-bottom:1px dashed var(--line);justify-content:space-between;align-items:center;gap:10px;padding:5px 0;display:flex}.shortcut-row kbd{border:1px solid var(--line-strong);background:var(--surface-2);text-align:center;border-bottom-width:2px;border-radius:5px;min-width:22px;margin-left:4px;padding:2px 6px;font-size:11px;display:inline-block}.home{flex-direction:column;height:100%;display:flex;position:relative;overflow-y:auto}.home-theme-toggle{z-index:10;position:fixed;top:12px;right:calc(50% + min(1080px,100% - 48px)/-2)}.home-lang-toggle{z-index:10;position:fixed;top:12px;right:calc(50% + min(1080px,100% - 48px)/-2 + 44px)}.lang-toggle{align-items:center;gap:2px;height:32px;display:inline-flex}.lang-toggle button{color:var(--muted);font:inherit;letter-spacing:.06em;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:4px 6px;font-size:11px;font-weight:700}.lang-toggle button:hover{color:var(--ink)}.lang-toggle button.active{color:var(--ink);background:var(--line)}.home-content{width:min(1080px,100% - 48px);margin:auto;padding:48px 0}.hero{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:48px;padding-bottom:48px;display:grid}.eyebrow{letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:12px;font-size:11px;font-weight:700}.hero h1{letter-spacing:-.04em;font-size:clamp(40px,5.4vw,60px);font-weight:700;line-height:1}.hero h1 span{color:var(--accent)}.hero-copy>p{color:var(--ink-2);max-width:480px;margin:18px 0 0;font-size:16px;line-height:1.55}.hero-actions{flex-wrap:wrap;gap:10px;margin-top:28px;display:flex}.hero-points{color:var(--muted);flex-wrap:wrap;gap:8px 18px;margin:22px 0 0;padding:0;font-size:13px;list-style:none;display:flex}.hero-points li{align-items:center;gap:6px;display:inline-flex}.hero-points svg{color:var(--ok)}.hero-continue{border:1px solid var(--line);background:var(--surface);border-radius:12px;align-items:center;gap:12px;max-width:100%;margin-top:22px;padding:8px 14px 8px 8px;text-decoration:none;transition:border-color .15s,box-shadow .15s;display:inline-flex}.hero-continue:hover{border-color:var(--line-strong);box-shadow:var(--shadow)}.hero-continue img{object-fit:contain;width:40px;height:40px;image-rendering:pixelated;background:var(--surface-2);border-radius:6px;flex:none}.hero-continue span{min-width:0;display:grid}.hero-continue small{color:var(--muted);font-size:11px}.hero-continue strong{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}.hero-continue>svg{color:var(--muted);flex:none}.hero-art{place-items:center;display:grid}.hero-window{background:var(--surface);border:1px solid var(--line);width:min(100%,470px);box-shadow:var(--shadow-lg);color:var(--muted);border-radius:14px;flex-direction:column;font-size:10px;display:flex;overflow:hidden;transform:perspective(1400px)rotateY(-7deg)rotateX(3deg)}.hero-topbar{border-bottom:1px solid var(--line);align-items:center;gap:8px;height:34px;padding:0 10px;display:flex}.hero-topbar .brand-mark{width:24px;height:20px}.hero-name{border-left:1px solid var(--line);color:var(--ink);padding-left:8px;font-size:11px;font-weight:700}.hero-saved{align-items:center;gap:4px;display:inline-flex}.hero-saved i{background:var(--ok);border-radius:50%;width:5px;height:5px}.hero-top-icons{gap:8px;margin-left:auto;padding-right:4px;display:inline-flex}.hero-export{background:var(--accent);color:#fff;border-radius:6px;align-items:center;gap:4px;height:22px;padding:0 9px;font-weight:700;display:inline-flex}.hero-workbench{min-height:0;display:flex}.hero-rail{border-right:1px solid var(--line);flex-direction:column;flex:none;align-items:center;gap:2px;width:34px;padding:7px 0;display:flex}.hero-tool{border-radius:6px;place-items:center;width:24px;height:24px;display:grid}.hero-tool.sep{margin-top:9px;position:relative}.hero-tool.sep:before{content:"";background:var(--line);height:1px;position:absolute;top:-6px;left:5px;right:5px}.hero-tool.selected{background:var(--accent);color:#fff;box-shadow:0 2px 6px color-mix(in srgb, var(--accent) 35%, transparent)}.hero-center{flex-direction:column;flex:1;min-width:0;display:flex}.hero-toolbar{border-bottom:1px solid var(--line);align-items:center;gap:5px;height:28px;padding:0 8px;display:flex}.hero-toolbar strong{color:var(--ink);margin-right:2px;font-weight:700}.hero-chip,.hero-zoom{border:1px solid var(--line);background:var(--surface-2);border-radius:5px;align-items:center;gap:3px;height:17px;padding:0 5px;display:inline-flex}.hero-zoom{font-variant-numeric:tabular-nums;margin-left:auto}.hero-stage{background:var(--stage);flex:1;place-items:center;padding:16px;display:grid}.hero-canvas{aspect-ratio:1;background:var(--checker) 0 0 / calc(100% / 6) calc(100% / 6);width:100%;max-width:168px;box-shadow:var(--shadow);position:relative}.hero-sprite{width:100%;height:100%;position:absolute;inset:0}.hero-cursor{outline:1.5px solid #fff;width:8.33333%;height:8.33333%;position:absolute;top:50%;left:41.6667%;box-shadow:0 0 0 2.5px #2b2340}.hero-timeline{border-top:1px solid var(--line);align-items:center;gap:6px;padding:7px 8px;display:flex}.hero-play{background:var(--accent);color:#fff;border-radius:50%;place-items:center;width:20px;height:20px;display:grid}.hero-frame{border:1.5px solid var(--line);background:var(--surface-2);border-radius:5px;width:30px;height:30px;padding:3px;position:relative}.hero-frame svg{width:100%;height:100%;display:block}.hero-frame b{font-size:7px;font-weight:700;position:absolute;bottom:0;right:2px}.hero-add{border:1.5px dashed var(--line-strong);border-radius:5px;place-items:center;width:30px;height:30px;display:grid}.hero-fps{margin-left:auto}.hero-inspector{border-left:1px solid var(--line);flex:none;width:128px;padding:10px}.hero-colors{font-variant-numeric:tabular-nums;align-items:flex-end;height:30px;padding-left:38px;display:flex;position:relative}.hero-colors em{color:var(--ink-2);font-style:normal}.hero-primary,.hero-secondary{border:2px solid var(--surface);width:22px;height:22px;box-shadow:0 0 0 1px var(--line-strong);border-radius:5px;position:absolute}.hero-primary{z-index:1;background:var(--accent);top:0;left:0}.hero-secondary{background:#f4cc75;top:8px;left:10px}.hero-label{letter-spacing:.06em;text-transform:uppercase;margin:12px 0 6px;font-size:8px;font-weight:700}.hero-swatches{grid-template-columns:repeat(4,1fr);gap:4px;display:grid}.hero-swatches i{aspect-ratio:1;border:1px solid #0000001a;border-radius:4px;position:relative}.hero-swatches i.primary:after{content:"";border:1.5px solid var(--accent);border-radius:6px;position:absolute;inset:-3px}.hero-layer{height:24px;color:var(--ink-2);border-radius:5px;align-items:center;gap:5px;padding:0 5px;display:flex}.hero-layer.selected{background:var(--accent-soft);color:var(--accent-ink);font-weight:700}.hero-layer-thumb{border:1px solid var(--line);background:var(--checker) 0 0 / 50% 50%;border-radius:3px;width:16px;height:16px}.hero-layer-thumb svg{width:100%;height:100%;display:block}.hero-statusbar{border-top:1px solid var(--line);font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;height:22px;padding:0 10px;font-size:9px;display:flex}.hero-sprite.f0{animation:1s step-end infinite hero-hide}.hero-sprite.f1{animation:1s step-end infinite hero-show}.hero-frame.f0{animation:1s step-end infinite hero-frame-off}.hero-frame.f1{animation:1s step-end infinite hero-frame-on}@keyframes hero-show{0%{opacity:0}50%{opacity:1}}@keyframes hero-hide{0%{opacity:1}50%{opacity:0}}@keyframes hero-frame-on{0%{border-color:var(--line)}50%{border-color:var(--accent)}}@keyframes hero-frame-off{0%{border-color:var(--accent)}50%{border-color:var(--line)}}.recent-section{padding-top:40px}.section-title-row{align-items:baseline;gap:10px;margin-bottom:16px;display:flex}.section-title-row h2{font-size:18px;font-weight:700}.section-title-row span{color:var(--muted)}.project-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;display:grid}.project-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;transition:transform .15s,box-shadow .15s,border-color .15s;position:relative;overflow:hidden}.project-card:hover,.project-card:focus-within{box-shadow:var(--shadow);border-color:var(--line-strong);transform:translateY(-2px)}.project-card.skeleton{background:linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) 0 0 / 200% 100%;height:236px;animation:1.2s linear infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.project-open{text-decoration:none;display:block}.art-preview{background:var(--surface-2);place-items:center;height:180px;padding:18px;display:grid}.art-preview img{object-fit:contain;width:auto;max-width:100%;height:100%;max-height:100%;image-rendering:pixelated;box-shadow:var(--shadow);background-color:#fff;background-image:conic-gradient(#ececf1 25%, transparent 0 50%, #ececf1 0 75%, transparent 0);background-size:12px 12px}.project-info{border-top:1px solid var(--line);padding:12px 14px 14px}.project-info h3{white-space:nowrap;text-overflow:ellipsis;padding-right:4px;font-size:14px;font-weight:700;overflow:hidden}.project-info span{color:var(--muted);margin-top:3px;font-size:12px;display:block}.project-actions{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);opacity:0;border-radius:8px;gap:2px;padding:2px;transition:opacity .12s;display:flex;position:absolute;top:8px;right:8px}.project-card:hover .project-actions,.project-card:focus-within .project-actions{opacity:1}@media (hover:none){.project-actions{opacity:1}}.empty-projects{border:1.5px dashed var(--line-strong);background:var(--surface);border-radius:12px;justify-content:center;align-items:center;gap:28px;min-height:220px;padding:28px;display:flex}.empty-projects h3{margin-bottom:4px;font-size:16px}.empty-projects p{color:var(--muted);max-width:340px;margin:0 0 14px}.empty-art{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;flex:none;width:104px;height:104px;position:relative;overflow:hidden}.pixel-sun{background:#f4cc75;width:18px;height:18px;position:absolute;top:20px;right:22px;box-shadow:0 -5px #f4cc75,0 5px #f4cc75,5px 0 #f4cc75,-5px 0 #f4cc75}.pixel-mountain{background:var(--accent);clip-path:polygon(0 100%,50% 0,100% 100%);width:36px;height:28px;position:absolute;bottom:24px;left:16px}.pixel-ground{background:#8fc6a2;height:14px;position:absolute;bottom:12px;left:0;right:0}.home-footer-note{text-align:center;color:var(--muted);margin:32px 0 0;font-size:12px}.home-credit{margin-top:8px}.home-credit a{color:inherit;text-decoration:underline}.drop-overlay{z-index:40;border:2px dashed var(--accent);background:color-mix(in srgb, var(--bg) 85%, transparent);color:var(--accent-ink);pointer-events:none;border-radius:16px;place-items:center;font-size:18px;font-weight:700;display:grid;position:fixed;inset:12px}.studio-loading{height:100%;color:var(--muted);text-align:center;place-content:center;justify-items:center;gap:10px;padding:24px;display:grid}.studio-loading h2{color:var(--ink);font-size:22px}.studio-loading p{margin:0 0 8px}@media (width<=1100px){.inspector{width:252px}.statusbar{grid-template-columns:1fr auto}}@media (width<=900px){.panel-toggle{display:inline-grid}.inspector{z-index:20;width:min(300px,88vw);box-shadow:var(--shadow-lg);transition:transform .2s;position:absolute;top:0;bottom:0;right:0;transform:translate(105%)}.inspector.open{transform:none}.inspector-shade{z-index:15;background:0 0;display:block;position:absolute;inset:56px 0 0}.save-state{display:none}.hero{grid-template-columns:minmax(0,1fr);gap:36px}.hero-window{width:min(100%,460px)}}@media (width<=680px){.topbar{gap:2px;padding:0 8px}.back-link span,.primary-button span,.timeline .chip-label,.editor .brand-link,.top-divider{display:none}.back-link{margin-left:0;padding:0 6px}.name-input{flex:1;width:auto}.topbar>.primary-button{width:36px;padding:0}.tool-rail{width:48px}.tool-button{width:36px;height:36px}.tool-button kbd{display:none}.canvas-toolbar{padding:6px 8px}.size-chip,.tool-name,.statusbar,.stage-hint{display:none}.timeline-bar{padding:6px 8px}.fps-field{margin:0 4px}.home-content{width:calc(100% - 28px);padding:32px 0}.home-theme-toggle{right:14px}.home-lang-toggle{right:58px}.hero{padding-bottom:32px}.hero h1{font-size:38px}.hero-copy>p{font-size:15px}.hero-actions>*{flex:160px;height:48px}.hero-continue{display:flex}.hero-art{display:none}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.art-preview{height:130px;padding:12px}.empty-projects{text-align:center;flex-direction:column}.size-presets{grid-template-columns:repeat(4,1fr);gap:5px}.custom-row{flex-direction:column;align-items:flex-start}.dialog{padding:20px}.shortcut-columns{grid-template-columns:1fr}}.context-menu{z-index:60;background:var(--surface);border:1px solid var(--line);min-width:200px;box-shadow:var(--shadow-lg);border-radius:10px;padding:5px;font-family:Space Grotesk,system-ui,sans-serif;animation:.1s menu-in;position:fixed}.context-menu button{width:100%;height:30px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:8px;padding:0 10px 0 6px;font-size:13px;display:flex}.context-menu button:hover:not(:disabled),.context-menu button:focus-visible{background:var(--hover);outline:none}.context-menu button:disabled{color:var(--muted);opacity:.55;cursor:default}.context-menu button.danger:not(:disabled){color:var(--danger)}.context-menu button.danger:hover:not(:disabled),.context-menu button.danger:focus-visible{background:var(--danger-soft)}.context-icon{width:16px;color:var(--muted);place-items:center;display:grid}.context-menu button.danger .context-icon{color:inherit}.context-label{white-space:nowrap;flex:1}.context-menu kbd{color:var(--muted);font-family:inherit;font-size:11px}.context-separator{background:var(--line);height:1px;margin:4px 6px}@keyframes menu-in{0%{opacity:0;transform:scale(.97)}}@media (prefers-reduced-motion:reduce){.context-menu,.hero-sprite.f0,.hero-sprite.f1,.hero-frame.f0,.hero-frame.f1{animation:none}.hero-sprite.f1{opacity:0}.hero-frame.f0{border-color:var(--accent)}.hero-window{transform:none}}.dialog.pm-dialog{flex-direction:column;width:min(940px,100%);height:min(660px,100vh - 32px);padding:22px;display:flex;overflow:hidden}.pm-layout{flex:1;grid-template-columns:290px minmax(0,1fr);gap:16px;min-height:0;margin-top:16px;display:grid}.pm-side{flex-direction:column;gap:10px;min-height:0;display:flex}.pm-search{color:var(--muted);display:block;position:relative}.pm-search svg{pointer-events:none;position:absolute;top:50%;left:11px;transform:translateY(-50%)}.pm-search .text-input{height:36px;padding-left:33px}.pm-side-actions{gap:6px;display:flex}.pm-side-actions>button{flex:1;height:34px;padding:0 10px}.pm-side-foot{justify-content:flex-end;display:flex}.pm-list{flex:1;align-content:start;gap:2px;min-height:0;margin:0 -6px;padding:2px 6px 6px;display:grid;overflow-y:auto}.pm-group-label{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);align-items:center;gap:6px;margin:12px 4px 4px;font-size:11px;font-weight:700;display:flex}.pm-note{color:var(--muted);margin:6px 4px;font-size:12px}.pm-item{border-radius:var(--radius);color:var(--ink);text-align:left;font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name count""strip strip";align-items:center;gap:6px 8px;padding:8px 10px;display:grid}.pm-item:hover{background:var(--surface-2)}.pm-item.selected{background:var(--accent-soft);border-color:color-mix(in srgb, var(--accent) 35%, transparent)}.pm-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.pm-item-name{white-space:nowrap;text-overflow:ellipsis;grid-area:name;font-size:13px;font-weight:700;overflow:hidden}.pm-item-count{color:var(--muted);font-variant-numeric:tabular-nums;grid-area:count;font-size:11px}.pm-strip{background-size:100% 100%,8px 8px;border-radius:4px;grid-area:strip;height:14px;box-shadow:inset 0 0 0 1px #0000001a}.pm-strip.empty{background:repeating-linear-gradient(135deg, transparent 0 5px, var(--line) 5px 6px);box-shadow:inset 0 0 0 1px var(--line-strong)}.pm-detail{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;flex-direction:column;gap:10px;min-width:0;min-height:0;padding:16px;display:flex}.pm-head{align-items:center;gap:10px;display:flex}.pm-name{min-width:0;color:var(--ink);font:inherit;background:0 0;border:1px solid #0000;border-radius:6px;flex:1;margin:0 0 0 -8px;padding:4px 8px;font-size:18px;font-weight:700}.pm-name.static{white-space:nowrap;text-overflow:ellipsis;border:0;margin:0;padding:5px 0;overflow:hidden}input.pm-name:hover{border-color:var(--line-strong)}input.pm-name:focus{border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);outline:none}.pm-badge{background:var(--surface);border:1px solid var(--line);height:24px;color:var(--ink-2);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:0 9px;font-size:12px;font-weight:700;display:inline-flex}.pm-save{color:var(--muted);white-space:nowrap;font-size:12px}.pm-save.error{color:var(--danger)}.pm-meta{color:var(--muted);margin:-6px 0 0;font-size:12px}.pm-grid{flex:1;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));align-content:start;gap:10px;min-height:0;margin:0 -8px;padding:8px;display:grid;overflow-y:auto}.pm-editor{display:contents}.pm-tools{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.pm-tools-sep{background:var(--line);width:1px;height:20px}.pm-sel-count{color:var(--muted);font-size:12px}.pm-swatch{touch-action:none;-webkit-user-select:none;user-select:none}.pm-swatch.selected .color-chip.pm-chip{outline:2px solid var(--accent);outline-offset:2px}.pm-swatch.dragging{z-index:2;opacity:.8;cursor:grabbing}.pm-swatch.dragging .color-chip.pm-chip{pointer-events:none;transition:none}.pm-swatch.drop:before{content:"";border:2px dashed var(--accent);pointer-events:none;border-radius:11px;position:absolute;inset:-4px}.pm-swatch,.pm-add,.pm-static{aspect-ratio:1;position:relative}.pm-static{background-size:auto,8px 8px;border-radius:8px;box-shadow:inset 0 0 0 1px #0000001a}.pm-swatch .color-chip.pm-chip{border-radius:8px;width:100%;height:100%;inset:0}.pm-swatch .color-chip.pm-chip:hover{transform:scale(1.04)}.pm-swatch .color-chip.pm-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.pm-remove{z-index:1;border:1px solid var(--line-strong);background:var(--surface);width:20px;height:20px;color:var(--ink-2);cursor:pointer;opacity:0;border-radius:50%;place-items:center;padding:0;transition:opacity .12s,transform .12s,background .12s;display:grid;position:absolute;top:-6px;right:-6px;transform:scale(.8)}.pm-swatch:hover .pm-remove,.pm-swatch:focus-within .pm-remove{opacity:1;transform:none}.pm-remove:hover{background:var(--danger);border-color:var(--danger);color:#fff}@media (hover:none){.pm-remove{opacity:1;transform:none}}.pm-add{border:1.5px dashed var(--line-strong);color:var(--muted);cursor:pointer;background:0 0;border-radius:8px;place-items:center;padding:0;transition:border-color .12s,background .12s,color .12s;display:grid}.pm-add:hover,.pm-add:focus-visible{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink);outline:none}.pm-add i{background-size:auto,6px 6px;border-radius:3px;width:10px;height:10px;position:absolute;bottom:5px;right:5px;box-shadow:0 0 0 1px #0003}.pm-actions{border-top:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:8px;padding-top:12px;display:flex}.pm-spacer{flex:1}.pm-empty{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;padding:24px;display:flex}.pm-empty-icon{background:var(--accent-soft);width:56px;height:56px;color:var(--accent-ink);border-radius:16px;place-items:center;display:grid}.pm-empty h3{margin:14px 0 6px;font-size:17px}.pm-empty p{max-width:320px;color:var(--muted);margin:0;font-size:13px}.pm-empty-actions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px;display:flex}@media (width<=680px){.dialog.pm-dialog{height:calc(100vh - 32px);padding:18px}.pm-layout{grid-template-rows:minmax(150px,36%) minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px}.pm-detail{padding:12px}.pm-grid{grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:8px}.pm-actions>.primary-button,.pm-actions>.ghost-button{padding:0 10px}}.pp-trigger{border-radius:var(--radius);min-width:0;max-width:70%;height:28px;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;background:0 0;border:1px solid #0000;align-items:center;gap:6px;margin-left:-8px;padding:0 8px;display:inline-flex}.pp-trigger:hover,.pp-trigger[aria-expanded=true]{background:var(--surface-2);border-color:var(--line);color:var(--ink)}.pp-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.pp-label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.pp-dirty{background:var(--accent);border-radius:50%;flex:none;width:7px;height:7px}.palette-popover{z-index:1000;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lg);transform-origin:0 0;letter-spacing:0;text-transform:none;color:var(--ink);border-radius:12px;flex-direction:column;gap:8px;padding:10px;font-size:13px;font-weight:400;display:flex;position:fixed}.palette-popover.is-open{animation:.16s cubic-bezier(.2,.9,.3,1) both picker-in}.pp-list{flex:1;align-content:start;gap:2px;min-height:0;max-height:320px;display:grid;overflow-y:auto}.pp-item{border-radius:var(--radius);color:var(--ink);text-align:left;font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px;padding:7px 9px;display:grid}.pp-item:hover{background:var(--surface-2)}.pp-item.active{background:var(--accent-soft);border-color:color-mix(in srgb, var(--accent) 35%, transparent)}.pp-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.pp-item-name{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden}.pp-item-count{color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.pp-item .pm-strip{grid-column:1/-1}.pp-footer{border-top:1px solid var(--line);gap:2px;padding-top:8px;display:grid}.pp-action{border-radius:var(--radius);color:var(--ink);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:7px 9px;display:flex}.pp-action:hover,.pp-action:focus-visible{background:var(--surface-2);outline:none}.pp-name-form{grid-template-columns:1fr auto auto;gap:6px;display:grid}.pp-name-form .text-input{grid-column:1/-1}.dialog.pfi-dialog{flex-direction:column;width:min(900px,100%);max-height:calc(100vh - 32px);padding:22px;display:flex;overflow:hidden}.pfi-sources{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.pfi-body{flex:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;min-height:0;margin-top:14px;display:grid}.pfi-preview,.pfi-side{flex-direction:column;gap:10px;min-height:0;display:flex}.pfi-preview{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface-2);justify-content:center;align-items:center;min-height:260px;padding:12px}.pfi-canvas{max-width:100%;max-height:380px;image-rendering:pixelated;object-fit:contain;background:repeating-conic-gradient(#8882 0 25%, transparent 0 50%) 0 0 / 12px 12px}.pfi-drop{border:2px dashed var(--line-strong);border-radius:var(--radius);width:100%;height:100%;min-height:220px;color:var(--muted);cursor:pointer;background:0 0;flex-direction:column;justify-content:center;align-items:center;gap:6px;display:flex}.pfi-drop.dragging,.pfi-drop:hover{border-color:var(--accent);color:var(--accent-ink)}.pfi-controls{flex-direction:column;gap:10px;display:flex}.pfi-controls .range-row{margin:0}.pfi-row{flex-wrap:wrap;gap:8px;display:flex}.pfi-check{color:var(--ink-2);align-items:center;gap:8px;font-size:12px;display:inline-flex}.pfi-result-head{color:var(--muted);justify-content:space-between;align-items:center;font-size:12px;display:flex}.pfi-spinner{border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;width:14px;height:14px;animation:.7s linear infinite pfi-spin}@keyframes pfi-spin{to{transform:rotate(360deg)}}.pfi-grid{border:1px solid var(--line);border-radius:var(--radius);grid-template-columns:repeat(auto-fill,minmax(30px,1fr));gap:6px;min-height:90px;margin:0}.pfi-swatch{aspect-ratio:1;cursor:pointer;background-size:auto,8px 8px;border:0;border-radius:6px;padding:0;position:relative;box-shadow:inset 0 0 0 1px #0000001a}.pfi-swatch.off{opacity:.3}.pfi-swatch.off:after{content:"";background:linear-gradient(to top right, transparent calc(50% - 1px), var(--ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));position:absolute;inset:0}.pfi-swatch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.pfi-save{flex-wrap:wrap;gap:8px;display:flex}.pfi-save .text-input{flex:100%}@media (width<=680px){.pfi-body{grid-template-columns:minmax(0,1fr);overflow-y:auto}}.pm-layout{position:relative}.pm-drop{z-index:5;border:2px dashed var(--accent);border-radius:var(--radius);background:color-mix(in srgb, var(--bg) 88%, transparent);color:var(--accent-ink);pointer-events:none;justify-content:center;align-items:center;gap:10px;font-size:16px;font-weight:700;display:flex;position:absolute;inset:0}.panel-section.drop-active{outline:2px dashed var(--accent);outline-offset:-4px;background:color-mix(in srgb, var(--accent) 8%, transparent)}.dialog.pi-dialog{flex-direction:column;width:min(620px,100%);max-height:calc(100vh - 32px);display:flex;overflow:hidden}.pi-list{flex-direction:column;flex:1;gap:10px;min-height:0;margin-top:16px;display:flex;overflow-y:auto}.pi-item{border:1px solid var(--line);border-radius:var(--radius);flex-direction:column;align-items:flex-start;gap:8px;padding:12px;display:flex}.pi-item.failed{border-color:var(--danger);background:var(--danger-soft)}.pi-file{color:var(--muted);align-items:center;gap:6px;max-width:100%;font-size:12px;display:flex}.pi-file span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pi-row{align-items:center;gap:10px;width:100%;display:flex}.pi-row .text-input{flex:1;min-width:0}.pi-count{color:var(--muted);white-space:nowrap;font-size:12px}.pi-swatches{flex-wrap:wrap;gap:2px;max-height:96px;display:flex;overflow-y:auto}.pi-swatches i{border-radius:3px;width:16px;height:16px;box-shadow:inset 0 0 0 1px #0002}.pi-error,.pi-warning{margin:0;font-size:12px}.pi-error{color:var(--danger)}.pi-warning{color:var(--warn)}.preview-toggle{color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;display:inline-flex}.preview-caret{transition:transform .12s;display:inline-block}.preview-caret.open{transform:rotate(90deg)}.preview-box{border:1px solid var(--line);background:var(--surface-2);border-radius:6px;justify-content:center;max-height:320px;display:flex;overflow:auto}.preview-stage{flex:none;position:relative}.preview-stage.navigable{cursor:grab;touch-action:none}.preview-stage.navigable:active{cursor:grabbing}.preview-viewport{box-sizing:border-box;border:2px solid var(--accent,#ff4fa3);pointer-events:none;position:absolute;box-shadow:0 0 0 1px #0009,0 0 0 9999px #00000040}.preview-stage{overflow:hidden}.preview-stage.bg-checker{background-color:#fff;background-image:conic-gradient(#c9c9c9 25%, #fff 0 50%, #c9c9c9 0 75%, #fff 0);background-size:16px 16px}.preview-stage.bg-light{background:#f4f4f4}.preview-stage.bg-dark{background:#1b1b22}.preview-world{position:absolute;top:0;left:0}.preview-world+.preview-canvas{position:relative}.preview-canvas{image-rendering:pixelated;flex:none;display:block}.preview-play{border:1px solid var(--line);background:var(--surface-2);width:100%;color:inherit;font:inherit;cursor:pointer;border-radius:6px;margin-top:6px;padding:5px 8px;font-size:12px}.preview-play[aria-pressed=true]{border-color:var(--accent,currentColor)}.preview-head-end{align-items:center;gap:4px;display:inline-flex}.preview-dock{width:22px;height:22px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;padding:0}.preview-dock:hover{background:var(--hover)}.preview-float{z-index:4;background:var(--surface);border:1px solid var(--line);min-width:160px;box-shadow:var(--shadow);border-radius:8px;flex-direction:column;display:flex;position:absolute;overflow:hidden}.preview-float-head{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);cursor:move;touch-action:none;-webkit-user-select:none;user-select:none;border-bottom:1px solid var(--line);align-items:center;gap:4px;padding:4px 8px;font-size:11px;font-weight:700;display:flex}.preview-float-head .preview-dock{margin-left:auto}.preview-float-body{flex:1;min-height:0;padding:8px;overflow:auto}.preview-float .preview-box{max-height:none}.preview-resize{cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg, transparent 50%, var(--muted) 50%, var(--muted) 60%, transparent 60%, transparent 70%, var(--muted) 70%, var(--muted) 80%, transparent 80%);width:16px;height:16px;position:absolute;bottom:0;right:0}.preview-corner{z-index:4;background:var(--surface);border:1px solid var(--line);width:min(200px,50%);max-height:70%;box-shadow:var(--shadow);border-radius:8px;flex-direction:column;gap:6px;padding:6px;display:flex;position:absolute;bottom:8px;right:8px;overflow:auto}.preview-corner:not(.open){width:auto;padding:4px 8px}.preview-corner .preview-box{max-height:140px}.tool-rail,.frame-list,.inspector,.layer-list,.dialog,.home,.pm-list,.pm-grid,.pp-list,.pfi-body,.pi-list,.pi-swatches,.preview-box,.preview-float-body{overscroll-behavior:contain}.tooltip{z-index:2000;background:var(--ink);max-width:260px;color:var(--surface);box-shadow:var(--shadow);pointer-events:none;opacity:0;border-radius:6px;padding:6px 10px;font-size:12px;font-weight:500;line-height:1.35;transition:opacity .12s,transform .12s;position:fixed;transform:translateY(3px)}.tooltip.below{transform:translateY(-3px)}.tooltip.show{opacity:1;transform:none}@media (prefers-reduced-motion:reduce){.tooltip{transition:none}}
