:root{--bg:#1b1426;--panel:#241a35;--panel2:#2d2142;--ink:#f1e9ff;--dim:#a99bc4;--acc:#b79cff;--hot:#ff9d3c;--bad:#ff6b6b;--ok:#6be08f;--pix:"Silkscreen","VT323",ui-monospace,"SF Mono",Menlo,Consolas,monospace}*{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--ink);overscroll-behavior:none;margin:0;font:18px/1.25 VT323,ui-monospace,SF Mono,Menlo,Consolas,monospace}.app{height:100vh;grid-template:"top top top"52px"left work right"1fr"bar bar bar"26px/200px 1fr 340px;height:100dvh;display:grid}.top{background:var(--panel);border-bottom:3px solid #0d0814;grid-area:top;align-items:center;gap:6px;padding:0 10px;display:flex;overflow-x:auto}.left{background:var(--panel);border-right:3px solid #0d0814;grid-area:left;overflow-y:auto}.work{grid-area:work;min-width:0;position:relative;overflow:hidden}.right{background:var(--panel);border-left:3px solid #0d0814;grid-area:right;overflow-y:auto}.right[hidden]{display:none}.app:has(.right[hidden]){grid-template-columns:200px 1fr 0}.status{color:var(--dim);white-space:nowrap;background:#0d0814;grid-area:bar;justify-content:space-between;gap:12px;padding:3px 12px;font-size:15px;display:flex;overflow:hidden}.tabs{background:var(--panel);border-top:3px solid #0d0814;grid-area:tabs;gap:6px;padding:6px 8px;display:none}.status .warn{color:var(--hot)}.logo{font-family:var(--pix);color:var(--hot);letter-spacing:1px;margin-right:6px;font-size:16px}.grow{flex:1}.sep{background:#0d0814;width:2px;height:24px;margin:0 4px}button,select,input,textarea{font:inherit;color:var(--ink)}.tool{font-family:var(--pix);background:var(--panel2);cursor:pointer;white-space:nowrap;border:2px solid #0d0814;padding:5px 9px;font-size:11px;box-shadow:2px 2px #0d0814}.tool:hover:not(:disabled){background:#3d2d5a}.tool:active:not(:disabled){transform:translate(2px,2px);box-shadow:0 0 #0d0814}.tool:disabled{opacity:.4;cursor:default}.tool.on{background:var(--acc);color:#1b1426}.tool.primary{background:var(--hot);color:#1b1426;font-weight:700}.tool.danger{color:var(--bad)}button:focus-visible{outline-offset:1px;outline:3px solid #ffb000}input:focus-visible{outline-offset:1px;outline:3px solid #ffb000}select:focus-visible{outline-offset:1px;outline:3px solid #ffb000}textarea:focus-visible{outline-offset:1px;outline:3px solid #ffb000}[tabindex]:focus-visible{outline-offset:1px;outline:3px solid #ffb000}input[type=text],input[type=number],input[type=search],select,textarea{background:#150f20;border:2px solid #0d0814;width:100%;padding:4px 6px}input.title{width:220px;font-weight:700}.top select{width:auto}.strip-tools{background:var(--panel);z-index:1;gap:4px;padding:8px;display:flex;position:sticky;top:0}.strip-tools .tool{padding:4px 8px}.cards{flex-direction:column;gap:8px;padding:0 8px 12px;display:flex}.card-item{text-align:left;cursor:pointer;background:0 0;border:3px solid #0000;padding:3px}.card-item.active{border-color:var(--hot);background:var(--panel2)}.card-name{text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:15px;display:block;overflow:hidden}.thumb{pointer-events:none;background:#fbf3dd;width:164px;height:123px;position:relative;overflow:hidden}.thumb-stage{transform-origin:0 0;box-shadow:none;position:absolute;top:0;left:0;transform:scale(.205)}.work-edit{justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.stage-wrap{flex:none;position:relative}.work-edit .sy-stage,.thumb .sy-stage{transform-origin:0 0}.sy-stage.edit{-webkit-user-select:none;user-select:none;touch-action:none;position:absolute;top:0;left:0}.sy-stage.edit .sy-moving,.thumb .sy-moving,.tile-pic .sy-moving,.paint-ghost .sy-moving{animation:none}.ed-obj{cursor:move}.ed-obj.sy-btn{pointer-events:auto}.ed-overlap{outline-offset:-3px;background:#ff6b6b2e;outline:3px dashed #ff6b6b}.ed-overflow{outline-offset:-3px;outline:3px dotted #ff9d3c}.ed-moves:after{content:"↻";color:#ff9d3c;text-shadow:1px 1px #0d0814;font:700 18px ui-monospace,monospace;position:absolute;top:0;right:2px}.ed-hidden{opacity:.4;outline:2px dashed #7a6a99}.ed-sel{outline:2px solid var(--hot);outline-offset:1px;pointer-events:none;position:absolute}.ed-handle{background:var(--hot);pointer-events:auto;border:2px solid #0d0814;width:14px;height:14px;position:absolute}.ed-handle.nw{cursor:nwse-resize;top:-8px;left:-8px}.ed-handle.ne{cursor:nesw-resize;top:-8px;right:-8px}.ed-handle.sw{cursor:nesw-resize;bottom:-8px;left:-8px}.ed-handle.se{cursor:nwse-resize;bottom:-8px;right:-8px}.app.is-playing{visibility:hidden}.play-overlay{z-index:100;background:#1b1426;position:fixed;top:0;bottom:0;left:0;right:0}.play-host{position:absolute;top:0;bottom:0;left:0;right:0}.play-controls{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));z-index:101;opacity:.35;gap:6px;transition:opacity .2s;display:flex;position:fixed}.play-controls:hover,.play-controls:focus-within{opacity:1}.play-hint{left:50%;bottom:max(14px,env(safe-area-inset-bottom));z-index:101;font-family:var(--pix);color:#f1e9ff;pointer-events:none;background:#0d0814d9;border:2px solid #0d0814;padding:6px 10px;font-size:11px;transition:opacity .6s;position:fixed;transform:translate(-50%)}.play-hint.gone{opacity:0}.inspect{padding:10px 12px 40px}.inspect section{border-bottom:2px solid #0d0814;margin-bottom:10px;padding-bottom:10px}h3{font-family:var(--pix);color:var(--acc);text-transform:uppercase;letter-spacing:1px;margin:10px 0 6px;font-size:12px}.field{margin:6px 0;display:block}.field>span{color:var(--dim);margin-bottom:2px;font-size:15px;display:block}.grid2{grid-template-columns:1fr 1fr;gap:8px;display:grid}.grid4{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.check{align-items:center;gap:6px;margin:6px 0;display:flex}.check input{width:auto}.row{flex-wrap:wrap;gap:4px;margin:8px 0;display:flex}.hint{color:var(--dim);margin:6px 0}.action{background:var(--panel2);border:2px solid #0d0814;align-items:flex-start;gap:6px;margin:6px 0;padding:6px;display:flex}.action>:first-child{flex:1;min-width:0}.arow{flex-wrap:wrap;align-items:center;gap:4px;margin:2px 0;display:flex}.arow select,.arow input{flex:90px;width:auto;max-width:100%}.row-tools{flex-direction:column;gap:2px;display:flex}.mini{cursor:pointer;background:#150f20;border:2px solid #0d0814;padding:1px 6px;font-size:12px}.mini:disabled{opacity:.3}.branch{border-left:3px solid var(--acc);margin-top:4px;margin-left:12px;padding-left:8px}.tag{color:var(--acc);text-transform:uppercase;font-size:11px}.add-picker{border-style:dashed;width:100%;margin-top:4px}.issues{margin:0;padding:0;list-style:none}.issues .link{text-align:left;cursor:pointer;color:var(--ink);background:0 0;border:0;width:100%;padding:3px 0}.issues .error .link{color:var(--bad)}.issues .warning .link{color:var(--hot)}.issues .info .link{color:var(--dim)}.work-map{flex-direction:column;padding:10px 16px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.map-scroll{background:#150f20;border:3px solid #0d0814;flex:1;overflow:auto}.node{cursor:pointer}.node rect{fill:#3d2d5a;stroke:#b79cff;stroke-width:3px}.node text{fill:#f1e9ff;font:16px VT323,ui-monospace,Menlo,monospace}.node .sub{fill:#a99bc4;font-size:14px}.node.bad rect{fill:#4a1d29;stroke:#ff6b6b}.node.dead rect{stroke:#ff9d3c}.node.cur rect{stroke-width:5px}.node:focus-visible rect{stroke:#ffb000;stroke-width:5px}.map-scroll path.edge{transition:opacity .12s}.map-scroll svg.focusing path.edge{opacity:.12}.map-scroll svg.focusing path.edge.hot{opacity:1;stroke:#ff9d3c;stroke-width:3px}.sy-stage.edit.sy-haunted{animation:none}.empty-hint{text-align:center;color:#6b5a8a;pointer-events:none;flex-direction:column;justify-content:center;align-items:center;font-size:22px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.mascot{image-rendering:pixelated;display:block}.modal .mascot.ghost{float:right;width:96px;height:96px;margin:-4px 0 8px 14px}.empty-hint .mascot.candle{width:120px;height:120px;margin-bottom:8px}.empty-hint p{margin:2px 0}.empty-hint .big{font-family:var(--pix);margin-bottom:8px;font-size:18px}.modal{background:var(--panel);color:var(--ink);border:4px solid #0d0814;max-width:min(520px,100vw - 24px);padding:18px 22px;font-size:19px;box-shadow:6px 6px #0d0814}.modal::backdrop{background:#0a0514bf}.modal h2{font-family:var(--pix);color:var(--hot);margin:0 0 12px;font-size:15px;line-height:1.4}.modal a{color:var(--acc);word-break:break-all}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.steps{padding-left:22px}.steps li{margin:8px 0}kbd{font-family:var(--pix);background:var(--panel2);border:2px solid #0d0814;padding:1px 5px;font-size:11px}@media (pointer:coarse){.ed-handle{width:28px;height:28px}.ed-handle.nw{top:-14px;left:-14px}.ed-handle.ne{top:-14px;right:-14px}.ed-handle.sw{bottom:-14px;left:-14px}.ed-handle.se{bottom:-14px;right:-14px}.tool,.mini{min-height:36px}}@media (max-width:900px){.app{grid-template:"top""work"minmax(0,1fr)"tabs""panel"minmax(0,36%)"bar"24px/1fr}.app:has(.right[hidden]){grid-template-columns:1fr}.tabs{display:flex}.left,.right{border:0;grid-area:panel}.app[data-tab=cards] .right,.app[data-tab=inspect] .left,.app.playing .left,.app.playing .right,.app.playing .tabs{display:none}.app.playing{grid-template-rows:auto minmax(0,1fr) 24px;grid-template-areas:"top""work""bar"}.top{gap:4px;min-height:52px;padding:6px 8px}.logo{display:none}input.title{width:130px}.strip-tools{padding:6px 8px 2px;position:static}.cards{flex-direction:row;padding:4px 8px 8px;overflow-x:auto}.card-item{flex:none}.status{font-size:14px}.status span:last-child{display:none}.work-map{padding:6px 8px}}@media (min-width:901px){.app{grid-template-rows:auto 1fr 26px}.top{flex-wrap:wrap;row-gap:7px;min-height:52px;padding:7px 10px;overflow-x:visible}}@media (min-width:901px) and (max-width:1700px){.top select{width:150px}}@media (min-width:901px) and (max-width:1599px){.top .tool .lbl{display:none}}@media (min-width:901px) and (max-width:1480px){.logo{display:none}input.title{width:180px}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.modal select{margin-top:2px}.links{margin:4px 0 10px;padding-left:20px}.impact{color:var(--hot)}.modal .field>span{font-size:16px}.modal.wide{width:100%;max-width:min(980px,100vw - 24px)}.gallery{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin:12px 0;display:grid}.tile{background:var(--panel2);border:3px solid #0d0814;flex-direction:column;gap:6px;padding:10px;display:flex;box-shadow:4px 4px #0d0814}.tile h3{margin:4px 0 0;font-size:11px;line-height:1.5}.tile .meta{color:var(--dim);margin:0;font-size:16px}.tile .blurb{flex:1;margin:0;font-size:17px}.tile-pic{aspect-ratio:4/3;background:#fbf3dd;border:2px solid #0d0814;width:100%;position:relative;overflow:hidden}.tile-pic .thumb{width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}.tile-pic .thumb-stage{transform:scale(var(--k,.3))}.tile-pic.haunted .thumb-stage{background-color:#e7e2cc}.tile.loading .tile-pic{background:#2d2142}.tile-actions{flex-wrap:wrap;gap:6px;display:flex}.tile-actions .tool{flex:1}.mine{border-top:2px solid #0d0814;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding-top:10px;display:flex}.tool.stacks{background:#2f6b52}.tool.stacks:hover{background:#3f8a6a}.modal{max-height:calc(100dvh - 24px);overflow:auto}@media (max-width:600px){.modal.wide{padding:12px 14px}.gallery{grid-template-columns:1fr;gap:10px}.tile{grid-template-columns:44% 1fr;align-items:start;gap:4px 10px;padding:8px;display:grid}.tile-pic{grid-row:1/span 2}.tile h3{font-size:10px}.tile .blurb{display:none}.tile-actions{grid-column:1/-1}}.gallery-bar{align-items:center;gap:12px;margin-top:10px;display:flex}.gallery-search{-webkit-appearance:none;appearance:none;flex:1;min-width:0;padding:6px 10px;font-size:20px}.gallery-search::placeholder{color:var(--dim)}.gallery-search::-webkit-search-cancel-button{filter:invert()}.gallery-status{white-space:nowrap;margin:0}.gallery .tile[hidden]{display:none}.tile .why{color:var(--hot);margin:0;font-size:16px}.gallery-empty{text-align:center;padding:24px 0}.gallery-empty[hidden]{display:none}@media (max-width:600px){.gallery-bar{flex-direction:column;align-items:stretch;gap:4px}}.modal.paint{max-width:min(860px,100vw - 16px)}.paint-sizes,.paint-tools{flex-wrap:wrap;gap:6px;margin:8px 0;display:flex}.paint-tools .tool[aria-pressed=true],.paint-sizes .tool[aria-checked=true]{background:var(--acc);color:#1b1426}.paint-brush{width:auto}.paint-palette{flex-wrap:wrap;gap:4px;margin:8px 0;display:flex}.swatch{cursor:pointer;border:2px solid #0d0814;width:26px;height:26px;padding:0}.swatch[aria-checked=true]{outline-offset:1px;outline:3px solid #ffb000}.paint-colour-row{color:var(--dim);align-items:center;gap:8px;display:flex}.paint-custom{background:0 0;border:2px solid #0d0814;width:44px;height:30px;padding:0}.paint-wrap{justify-content:center;margin:10px 0;display:flex}.paint-stage{background-color:#d9d2c0;background-image:linear-gradient(45deg,#ece6d6 25%,#0000 25% 75%,#ece6d6 75%),linear-gradient(45deg,#ece6d6 25%,#0000 25% 75%,#ece6d6 75%);background-position:0 0,8px 8px;background-size:16px 16px;border:3px solid #0d0814;flex:none;position:relative;box-shadow:4px 4px #0d0814}.paint-onion{opacity:.35;pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.paint-onion .paint-ghost{transform-origin:0 0;box-shadow:none;position:absolute;top:0;left:0}.paint-canvas{image-rendering:pixelated;touch-action:none;cursor:crosshair;display:block;position:relative}.paint-canvas:focus-visible{outline-offset:3px;outline:3px solid #ffb000}.paint-status{color:var(--dim);text-align:center;min-height:20px;margin:4px 0;font-size:16px}.paint-alt{width:100%}@media (pointer:coarse){.swatch{width:34px;height:34px}}.paint-animation{background:var(--panel2);border:2px solid #0d0814;margin:6px 0;padding:4px 10px}.paint-animation summary{cursor:pointer;font-family:var(--pix);color:var(--acc);padding:4px 0;font-size:11px}.paint-anim-tools{flex-wrap:wrap;gap:6px;margin:6px 0;display:flex}.paint-anim-tools .tool[aria-pressed=true]{background:var(--acc);color:#1b1426}.paint-speed{width:auto}.paint-anim-body{align-items:flex-start;gap:12px;display:flex}.paint-frames{flex:1;gap:6px;padding:4px 2px 8px;display:flex;overflow-x:auto}.paint-frame{cursor:pointer;color:var(--dim);background:#150f20;border:2px solid #0d0814;flex-direction:column;flex:none;align-items:center;gap:2px;padding:3px;font-size:13px;display:flex}.paint-frame.on{border-color:var(--hot);color:var(--ink)}.paint-thumb{object-fit:contain;width:48px;height:48px;image-rendering:pixelated;background:repeating-conic-gradient(#ece6d6 0 25%,#d9d2c0 0 50%) 0 0/8px 8px}.paint-preview-box{color:var(--dim);flex-direction:column;flex:none;align-items:center;gap:2px;font-size:13px;display:flex}.paint-preview{image-rendering:pixelated;background:repeating-conic-gradient(#ece6d6 0 25%,#d9d2c0 0 50%) 0 0/8px 8px;border:2px solid #0d0814;max-width:96px;max-height:96px}
