:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#14161e;--surface:#1d2029;--raised:#282c38;--line:#363b4b;--text:#ebecf2;--muted:#9aa0b4;--accent:#7c86ff;--accent-bg:#4f5bd5;--heart:#ff5d7a;--warn:#ffcf6b;--nav-h:60px;background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{height:100dvh;margin:0;overflow:hidden}button,select,input{font:inherit;color:inherit}button{cursor:pointer}.sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.spacer{flex:1}.muted{color:var(--muted)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.ico{fill:none;stroke:currentColor;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:22px;height:22px}.ico.sm{width:18px;height:18px}.ico.xl{stroke-width:1.4px;width:44px;height:44px}.ico .dot{fill:currentColor;stroke:none}#app{height:100%;padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);flex-direction:column;max-width:560px;margin:0 auto;display:flex}.page{flex-direction:column;flex:1;min-height:0;display:flex}.page[hidden]{display:none}#tabbar{height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line);flex:none;display:flex}#tabbar button{color:var(--muted);background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;font-size:11.5px;font-weight:500;display:flex;position:relative}#tabbar button .ico{transition:transform .15s}#tabbar button[aria-selected=true]{color:var(--text)}#tabbar button[aria-selected=true]:before{content:"";z-index:-1;background:#4f5bd544;border-radius:15px;width:56px;height:30px;position:absolute;top:7px}#tabbar button{z-index:0}#tabbar button[aria-selected=true] .ico{color:var(--accent)}#tab-favourites[aria-selected=true] .ico{fill:var(--heart);stroke:var(--heart)}.badge{background:var(--heart);color:#fff;text-align:center;border-radius:9px;min-width:17px;height:17px;padding:0 4px;font-size:10.5px;font-weight:700;line-height:17px;position:absolute;top:6px;left:calc(50% + 6px)}.badge[hidden]{display:none}.btn{background:var(--raised);border:1px solid var(--line);-webkit-user-select:none;user-select:none;border-radius:18px;align-items:center;gap:6px;height:36px;padding:0 14px;font-size:14px;font-weight:500;display:inline-flex}.btn.primary{background:var(--accent-bg);border-color:var(--accent)}.btn.ghost{background:0 0}.btn:disabled{opacity:.4;cursor:default}.icon-btn{width:38px;height:38px;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;display:grid}.icon-btn:disabled{opacity:.3;cursor:default}.icon-btn:active:not(:disabled){background:var(--raised)}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.chip{border:1px solid var(--line);-webkit-user-select:none;user-select:none;touch-action:none;background:#1d2029d9;border-radius:16px;height:32px;padding:0 12px;font-size:13px}.topbar{flex:none;align-items:center;gap:2px;height:52px;padding:0 8px;display:flex}.source-pick{align-items:center;display:flex;position:relative}.source-pick select{appearance:none;background:var(--raised);border:1px solid var(--line);text-overflow:ellipsis;border-radius:18px;min-width:0;max-width:44vw;height:36px;padding:0 30px 0 12px;font-size:14px;font-weight:600}.source-pick .ico{pointer-events:none;color:var(--muted);position:absolute;right:10px}.topbar .btn.primary{margin-left:6px}#stage{background:#2a2d3a;border-radius:16px;flex:1;min-height:clamp(230px,44dvh,310px);margin:0 8px;position:relative;overflow:hidden}#preview{touch-action:none;width:100%;height:100%;display:block}.stage-tools{flex-direction:column;gap:6px;display:flex;position:absolute;top:8px;right:8px}.tool{border:1px solid var(--line);width:46px;min-height:40px;color:var(--text);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1d2029cc;border-radius:12px;place-items:center;padding:4px 0;display:grid}.tool span{color:var(--muted);text-transform:uppercase;letter-spacing:.02em;font-size:9.5px;font-weight:600}.tool[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}#overlay[aria-pressed=true],#masks[aria-pressed=false]{border-color:var(--line);color:var(--text)}#overlay[aria-pressed=false]{color:var(--muted)}#fav[aria-pressed=true]{color:var(--heart);border-color:var(--heart)}#fav[aria-pressed=true] .ico{fill:var(--heart)}#fav.pop .ico{animation:.3s ease-out pop}@keyframes pop{50%{transform:scale(1.35)}}#before{position:absolute;bottom:8px;left:8px}#before:active{background:var(--accent-bg)}#sheet{min-height:150px;max-height:52dvh;padding:10px 12px var(--end-gap);overscroll-behavior:contain;flex-direction:column;flex:0 auto;gap:8px;display:flex;overflow-y:auto}.carousel{scroll-snap-type:x proximity;scrollbar-width:none;gap:8px;margin:0 -12px;padding:2px 12px 4px;display:flex;overflow-x:auto}.carousel::-webkit-scrollbar{display:none}.recipe{scroll-snap-align:start;background:var(--surface);border:1.5px solid #0000;border-radius:14px;flex-direction:column;flex:none;align-items:center;gap:4px;width:84px;padding:6px 4px 7px;font-size:12px;font-weight:500;display:flex}.recipe[aria-checked=true]{border-color:var(--accent);background:#4f5bd52e}.recipe canvas{width:32px;height:64px}.recipe span{text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:100%;min-height:2.5em;font-size:11.5px;line-height:1.25;display:-webkit-box;overflow:hidden}canvas.px{image-rendering:pixelated}#recipe-controls{flex-direction:column;gap:6px;display:flex}#recipe-controls.disabled{opacity:.35;pointer-events:none}.slider{color:var(--muted);align-items:center;gap:10px;font-size:13px;display:flex}.slider span{width:62px}.slider input{accent-color:var(--accent);flex:1;height:28px}.slider output{text-align:right;font-variant-numeric:tabular-nums;width:3.2ch;color:var(--text)}.swatches{gap:6px;display:flex}.swatch{border:1.5px solid var(--line);background:var(--surface);border-radius:16px;gap:0;height:32px;padding:4px;display:flex}.swatch i{width:12px;height:22px;display:block}.swatch i:first-child{border-radius:11px 0 0 11px;width:14px}.swatch i:last-child{border-radius:0 11px 11px 0;width:14px}.swatch[aria-checked=true]{border-color:var(--text)}#palette-name{color:var(--muted);text-transform:capitalize;font-size:12.5px}#more{border-top:1px solid var(--line)}#more summary{height:38px;color:var(--muted);cursor:pointer;justify-content:space-between;align-items:center;font-size:13px;list-style:none;display:flex}#more summary::-webkit-details-marker{display:none}#more[open] summary .ico{transform:rotate(180deg)}.more-body{flex-direction:column;gap:10px;padding-bottom:4px;display:flex}.field{color:var(--muted);align-items:center;gap:6px;font-size:13px;display:flex}.field input,.field select{background:var(--raised);height:34px;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:0 8px}.field input{width:9ch}.switch{align-items:center;gap:10px;font-size:14px;display:flex}.switch input{width:20px;height:20px;accent-color:var(--accent)}.switch small{color:var(--muted);font-size:12px;display:block}#status{color:var(--muted);overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:11px}#warnings{color:var(--warn);margin:0;padding-left:18px;font-size:12.5px}#warnings:empty{display:none}[hidden]{display:none!important}.page-head{flex:none;padding:14px 14px 8px}.page-head h1{margin:0;font-size:22px}.head-row{justify-content:space-between;align-items:center;gap:10px;display:flex}#char-search{border:1px solid var(--line);background:var(--surface);width:100%;height:38px;color:var(--text);border-radius:12px;margin-top:8px;padding:0 12px;font-size:14px}.char-list{overscroll-behavior:contain;min-height:0;padding:2px 0 var(--end-gap);flex:1;overflow-y:auto}.char-list section{margin-bottom:12px}.char-list h2{align-items:baseline;gap:6px;margin:0 14px 6px;font-size:15px;display:flex}.char-list h2 small{color:var(--muted);font-size:12px;font-weight:500}.char-row{scroll-snap-type:x proximity;scrollbar-width:none;gap:8px;padding:0 14px 4px;display:flex;overflow-x:auto}.char-row .card{scroll-snap-align:start;flex:none;width:112px}.char-row .card .art{height:96px}.char-row .card .art canvas{width:82px;height:77px}.char-row .card .meta{padding:6px 8px 8px}.char-row .card b{white-space:nowrap;text-overflow:ellipsis;font-size:12.5px;overflow:hidden}.char-list .none{text-align:center;color:var(--muted);padding:24px}.page-head p{color:var(--muted);margin:2px 0 0;font-size:13px}.chips{scrollbar-width:none;gap:6px;margin-top:8px;display:flex;overflow-x:auto}.chips button{border:1px solid var(--line);background:var(--surface);white-space:nowrap;border-radius:16px;height:32px;padding:0 14px;font-size:13px}.chips button[aria-checked=true]{background:var(--accent-bg);border-color:var(--accent)}.grid{min-height:0;padding:6px 12px var(--end-gap);overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:max-content;align-content:start;gap:10px;display:grid;overflow-y:auto}.card{text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:16px;flex-direction:column;min-height:max-content;padding:0;display:flex;position:relative;overflow:hidden}.card .art{background:radial-gradient(circle at 50% 40%,#343a52,#22252f);place-items:center;height:120px;display:grid}.card .art canvas,.card .art img{width:102px;height:96px;image-rendering:pixelated}.card .meta{padding:8px 10px 10px}.card b{font-size:14px;display:block}.card small{color:var(--muted);margin-top:2px;font-size:12px;display:block}.card .tag{color:var(--muted);text-transform:capitalize;background:#14161ecc;border-radius:8px;padding:2px 7px;font-size:10.5px;position:absolute;top:8px;left:8px}.card:active{transform:scale(.98)}.card .remove{width:32px;height:32px;color:var(--text);background:#14161ecc;border:0;border-radius:50%;place-items:center;display:grid;position:absolute;top:6px;right:6px}.card .remove .ico{width:16px;height:16px}.empty{text-align:center;color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:4px;padding:24px;display:flex}.empty[hidden]{display:none}.empty p{margin:0}.empty p:first-of-type{color:var(--text);margin-top:8px;font-size:16px;font-weight:600}.empty .btn{margin-top:14px}#toast{left:50%;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);color:#14161e;opacity:0;pointer-events:none;white-space:nowrap;background:#f0f1f7;border-radius:18px;padding:9px 16px;font-size:13.5px;font-weight:500;transition:opacity .2s,transform .2s;position:fixed;transform:translate(-50%,20px)}#toast.show{opacity:1;transform:translate(-50%)}.history{border:1px solid var(--line);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1d2029cc;border-radius:18px;display:flex;position:absolute;bottom:8px;right:8px}.history button{width:44px;height:36px;color:var(--text);background:0 0;border:0;place-items:center;display:grid}.history button+button{border-left:1px solid var(--line)}.history button:disabled{opacity:.3;cursor:default}.seg{background:var(--surface);border:1px solid var(--line);border-radius:12px;gap:2px;padding:3px;display:flex}.seg button{height:32px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:9px;flex:1;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-size:13.5px;font-weight:600;display:inline-flex}.seg button[aria-selected=true],.seg button[aria-checked=true]{background:var(--raised);color:var(--text);box-shadow:0 1px 2px #0006}.seg.small button{height:28px;font-size:12.5px}#recipe-panel{flex-direction:column;gap:8px;display:flex}#recipe-panel[hidden],#draw-panel[hidden]{display:none}#draw-panel{flex-direction:column;gap:10px;display:flex}.toolset{flex:1;gap:6px;display:flex}.toolset button{background:var(--surface);color:var(--muted);border:1.5px solid #0000;border-radius:12px;flex-direction:column;flex:1;align-items:center;gap:2px;padding:7px 0 6px;font-size:11.5px;font-weight:500;display:flex}.toolset button[aria-checked=true]{border-color:var(--accent);color:var(--text);background:#4f5bd52e}.toolset button[aria-checked=true] .ico{color:var(--accent)}.colors{flex-wrap:nowrap;gap:10px}.current-color{border:2px solid var(--text);cursor:pointer;border-radius:12px;flex:none;width:44px;height:44px;position:relative;overflow:hidden}.current-color input{cursor:pointer;border:0;width:calc(100% + 16px);height:calc(100% + 16px);padding:0;position:absolute;inset:-8px}.color-swatches{scrollbar-width:none;gap:6px;padding:2px;display:flex;overflow-x:auto}.color-swatches button{border:1px solid #fff3;border-radius:8px;flex:none;width:30px;height:30px}.color-swatches button[aria-pressed=true]{outline:2px solid var(--text);outline-offset:1px}.hint{color:var(--muted);font-size:12px}.hint .mouse{display:none}@media (pointer:fine){.hint .mouse{display:inline}.hint .touch{display:none}}#stage.drawing:after{content:"";box-shadow:inset 0 0 0 2px var(--accent);pointer-events:none;border-radius:16px;position:absolute;inset:0}#stage.drawing #preview{cursor:crosshair}.sheet-dialog{width:100%;max-width:560px;max-height:90dvh;padding:8px 16px calc(16px + env(safe-area-inset-bottom));background:var(--surface);color:var(--text);border:0;border-radius:20px 20px 0 0;flex-direction:column;gap:10px;margin:0 auto;display:none;position:fixed;inset:auto 0 0}.sheet-dialog[open]{animation:.2s ease-out sheet-in;display:flex}.sheet-dialog::backdrop{background:#000a}@keyframes sheet-in{0%{opacity:0;transform:translateY(40px)}}.grab{background:var(--line);border-radius:2px;align-self:center;width:36px;height:4px;margin-bottom:4px}.export-head{align-items:center;gap:14px;padding:4px 2px 6px;display:flex}.export-head canvas{background:radial-gradient(circle at 50% 40%,#343a52,#22252f);border-radius:10px;flex:none;width:68px;height:64px;padding:0}.export-head h2{margin:0;font-size:18px}.export-head p{margin:2px 0 0;font-size:13px}.option{text-align:left;border:1px solid var(--line);background:var(--raised);border-radius:16px;align-items:center;gap:14px;width:100%;padding:12px 14px;display:flex}.option:active{transform:scale(.99)}.option b{font-size:15px;display:block}.option small{color:var(--muted);margin-top:2px;font-size:12.5px;line-height:1.35;display:block}.option small[hidden]{display:none}.option-ico{width:44px;height:44px;color:var(--accent);background:#4f5bd544;border-radius:12px;flex:none;place-items:center;display:grid}.option-ico.mc{color:#7fd36b;background:#3c8a3f40}.btn.wide{justify-content:center;width:100%;height:44px}.label-chips{flex-wrap:wrap;gap:6px;display:flex}.label-chips[hidden],#draw-colors[hidden],#area-help[hidden]{display:none}.label-chips button{border:1.5px solid var(--line);background:var(--surface);white-space:nowrap;border-radius:15px;align-items:center;gap:6px;height:30px;padding:0 10px 0 7px;font-size:12.5px;display:inline-flex}.label-chips button i{border-radius:4px;flex:none;width:14px;height:14px;box-shadow:inset 0 0 0 1px #0004}.label-chips button[aria-checked=true]{border-color:var(--text);background:var(--raised);font-weight:600}#area-help{margin:0}.link{color:var(--accent);font:inherit;background:0 0;border:0;padding:0;font-weight:600;text-decoration:underline}#warnings li.action{margin-left:-18px;list-style:none}#mix-panel{flex-direction:column;gap:8px;display:flex}#mix-panel[hidden]{display:none}#char-panel{flex-direction:column;gap:8px;display:flex}.mix-from-row{display:flex}.mix-from-row .seg{flex:none}.recipe .thumb{place-items:center;width:32px;height:64px;display:grid}.chips.tight{margin-top:0}.chips button[aria-selected=true]{background:var(--accent-bg);border-color:var(--accent)}.chips button.dot:after{content:"";background:var(--heart);vertical-align:middle;border-radius:50%;width:6px;height:6px;margin-left:6px;display:inline-block}.seg.mode button{padding:0 6px}.tool span#anim-name{text-overflow:ellipsis;max-width:44px;overflow:hidden}#anim-menu{z-index:2;border:1px solid var(--line);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1d2029f2;border-radius:12px;flex-direction:column;gap:2px;padding:4px;display:flex;position:absolute;top:0;right:48px}#anim-menu[hidden]{display:none}#anim-menu button{text-align:left;background:0 0;border:0;border-radius:8px;height:34px;padding:0 16px;font-size:14px}#anim-menu button[aria-checked=true]{background:var(--accent-bg)}.stage-tools{position:absolute}.page-head .actions{margin-top:10px}.option-ico.my{color:#f2c25a;background:#d9a03a33}#tab-myskin .badge{background:var(--accent-bg)}#tabbar button span{white-space:nowrap}.area-lock{align-items:center;gap:8px;min-width:0;display:flex}.area-lock .hint{flex:none}.area-lock .chips{flex:1;min-width:0;margin-top:0}.area-lock .chips button{height:30px;padding:0 12px}:root{--end-gap:28px}#sheet,.grid,.char-list{-webkit-mask-image:linear-gradient(#000 calc(100% - 18px),#0000);mask-image:linear-gradient(#000 calc(100% - 18px),#0000)}@media (max-height:720px){.stage-tools{gap:4px;top:6px;right:6px}.tool{min-height:36px;padding:2px 0}.tool span{display:none}.history{bottom:6px;right:58px}}.option-ico.pro{color:#f2c14e;background:#e0a92a33}.pro-btn{color:#f2c14e;border-color:#f2c14e66}.pro-btn .ico,.option-ico.pro .ico{fill:currentColor}#age-sheet h2,#exit-sheet h2{margin:6px 0 0;font-size:19px}#age-sheet p{margin:0}#age-year{border:1px solid var(--line);background:var(--raised);height:44px;color:var(--text);border-radius:12px;padding:0 12px;font-size:15px}.pro-offers{flex-direction:column;gap:8px;display:flex}.pro-offers .option b{justify-content:space-between;gap:8px;display:flex}.pro-offers .best{color:#1b1405;background:#f2c14e;border-radius:8px;padding:1px 7px;font-size:11px;font-weight:700}.pro-foot{margin:2px 2px 0}#exit-ad:empty{display:none}#exit-ad .ad-slot{height:132px}.locked{position:relative}.locked:after{content:"";pointer-events:none;background:#f2c14e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231b1405' d='M4 8l4 3.5L12 5l4 6.5L20 8l-1.6 10H5.6z'/%3E%3C/svg%3E") 50%/11px no-repeat;border-radius:50%;width:16px;height:16px;position:absolute;top:4px;right:4px;box-shadow:0 1px 3px #0008}.card.locked:after{background-size:14px;width:22px;height:22px;top:8px;right:8px}.ad-slot{border-radius:16px;grid-column:1/-1;min-height:132px;overflow:hidden}.ad-slot.native{height:132px}.char-list .ad-slot{margin:0 14px 12px}.getapp{color:#fff;background:#3c8a3f;flex:none;justify-content:center;align-items:center;gap:8px;height:36px;padding:0 12px;font-size:13px;font-weight:600;text-decoration:none;display:flex}.pro-offers .option>span{flex:1;min-width:0}.pro-offers .option:disabled{opacity:.6}.ad-slot.native.empty{display:none}
