*{box-sizing:border-box}html,body{color:#eee;background:#111;height:100%;margin:0;font:16px system-ui,sans-serif}main{flex-direction:column;justify-content:center;align-items:center;gap:16px;height:100dvh;padding:16px;display:flex}main>*{flex-shrink:0}main>.stage{flex:1 1 0;place-items:center;width:100%;min-height:0;display:grid;container-type:size}.card{aspect-ratio:5/7;touch-action:none;-webkit-user-select:none;user-select:none;background:#fff;width:min(100cqw,71.4286cqh);position:relative;overflow:hidden}.slot{position:absolute;overflow:hidden}.slot img,.art{pointer-events:none;max-width:none;display:block;position:absolute}.art{width:100%;height:100%;inset:0}nav{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}button,.button{color:#fff;font:inherit;cursor:pointer;background:#ff2bd6;border:0;border-radius:999px;padding:12px 20px;text-decoration:none}button:disabled{opacity:.4}.sheet{background:#000e;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:16px;display:flex;position:fixed;inset:0}.sheet img{max-width:100%;max-height:calc(100dvh - 120px)}.error{color:#ff8a8a;margin:0}.slot.empty{background:#d9d4e4;place-items:center;display:grid}.hint{color:#888;align-self:center;font-size:14px}.outline{pointer-events:none;position:absolute}.outline.selected{outline-offset:-3px;outline:3px solid #ffd400}.outline.swapping{outline-offset:-3px;outline:3px dashed #2bf0ff}.warn{color:#fff;background:#d33;border-radius:6px;padding:2px 6px;font-size:11px;position:absolute;bottom:4px;left:4px}button[aria-pressed=true]{background:#7b4dff}.tabs button{background:#333}.tabs button.on{background:#ff2bd6}.card.empty{text-align:center;color:#aaa;background:#222;justify-content:center;align-items:center;margin:0;padding:16px;display:flex}.tiles{flex-shrink:0;gap:8px;max-width:100%;display:flex;overflow-x:auto}.tiles section{align-items:center;gap:8px;display:flex}.tiles h2{writing-mode:vertical-rl;margin:0;font-size:13px;font-weight:600;transform:rotate(180deg)}.tile{color:#111;background:#fff;border-radius:6px;outline:2px solid #0000;flex:none;width:56px;height:78px;padding:0;font-size:12px}.tile.on{outline-offset:2px;outline-color:#ff2bd6}.tile img{width:100%;height:100%;display:block}.sheet{justify-content:flex-start;overflow-y:auto}.previews{gap:12px;max-width:100%;display:flex}.previews img{object-fit:contain;flex:1;min-width:0;max-height:calc(100dvh - 240px)}.sheet nav{flex-wrap:wrap;justify-content:center}details{max-width:480px}details li{margin:6px 0}.text .warn{white-space:normal;text-shadow:none;font:11px system-ui,sans-serif}.text{white-space:pre;border:0;flex-direction:column;justify-content:center;margin:0;display:flex;position:absolute;overflow:visible}.text span{min-height:1lh;display:block}.text.editing{outline-offset:2px;outline:2px dashed #ffd400}.text-sheet{flex-direction:column;gap:8px;width:100%;max-width:600px;display:flex}.text-sheet textarea{color:inherit;resize:none;background:#000;border:1px solid #444;border-radius:10px;padding:8px;font:16px system-ui,sans-serif}.chips{flex-shrink:0;align-items:center;gap:8px;display:flex;overflow-x:auto}.chips button{background:#333;flex-shrink:0;padding:8px 14px}.chips button.on{background:#ff2bd6}.chips .swatch{border:2px solid #444;width:34px;height:34px;padding:0}.chips .swatch.on{border:3px solid #ffd400}.chips input[type=color]{background:0 0;border:0;flex-shrink:0;width:34px;height:34px;padding:0}.seg{border-radius:999px;flex-shrink:0;display:flex;overflow:hidden}.seg button{border-radius:0}
