.jig{-webkit-user-select:none;user-select:none;flex-direction:column;gap:8px;width:100%;display:flex}.jig-bar{color:var(--lk-fg,#2b2140);flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;display:flex}.jig-count{flex:1}.jig-rot{gap:4px;display:inline-flex}.jig-bar button{color:#5a3a1c;min-width:40px;min-height:40px;font:inherit;cursor:pointer;background:#fff8ee;border:1px solid #d9c3a3;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:0 10px;font-weight:700;display:inline-flex}.jig-bar button:disabled{opacity:.4;cursor:default}.jig-bar button[aria-pressed=true]{background:#f3d9a8}.jig-bar button:focus-visible{outline-offset:2px;outline:3px solid #8e4fd6}.jig-host{justify-content:center;width:100%;display:flex;position:relative}.jig-table{touch-action:none;border-radius:16px;max-width:100%;position:relative;overflow:hidden;box-shadow:inset 0 0 0 2px #a07444,0 6px 18px #0002}.jig-svg{width:100%;height:100%;display:block}.jig-tray{fill:#00000010;stroke:#7a5530;stroke-opacity:.35;stroke-width:.01px;stroke-dasharray:.05 .04}.jig-piece{cursor:grab;outline:none}.jig-piece:active{cursor:grabbing}.jig-piece.is-placed{cursor:default}.jig-piece.is-sel:not(.is-placed)>g>path:last-child{stroke:#8e4fd6;stroke-opacity:.95;stroke-width:.018px}.jig-piece:focus-visible>g>path:last-child{stroke:#8e4fd6;stroke-opacity:1;stroke-width:.022px}.jig-ref-img{cursor:pointer;border:3px solid #fff;border-radius:10px;width:min(34%,220px);position:absolute;top:10px;right:10px;box-shadow:0 6px 20px #0005}.jig-ref-img.is-round{aspect-ratio:1;object-fit:cover;border-radius:50%}.jig-done-svg{opacity:0;transform-box:fill-box;transform-origin:50%;animation:.45s cubic-bezier(.3,1.6,.5,1) forwards jig-pop}.jig-done{color:#2b2140;background:#fff;border-radius:999px;width:max-content;margin:auto;padding:8px 18px;font-weight:800;animation:.4s cubic-bezier(.3,1.6,.5,1) jig-pop;position:absolute;inset:auto 0 14px;box-shadow:0 6px 20px #0004}@keyframes jig-pop{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}.jig-help{color:var(--lk-muted,#6b6280);margin:0;font-size:12px}.jig-loading{color:var(--lk-muted,#6b6280);justify-content:center;align-items:center;gap:8px;padding:40px;display:flex}@media (prefers-reduced-motion:reduce){.jig-piece,.jig-piece *,.jig-stage{transition:none!important}.jig-done-svg{opacity:1;animation:none}.jig-done{animation:none}.jig-snap-flash{display:none}}.jig-full-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;color:inherit;background:#f3e6cf;border:0;margin:0;padding:0;position:fixed;inset:0}.jig-full-dialog::backdrop{background:#0008}.jig-full{z-index:300;background:#f3e6cf;flex-direction:column;gap:8px;padding:12px;display:flex;position:fixed;inset:0;overflow:hidden}.jig-full .jig-host{flex:1;align-items:center}.jig-launch{color:#5a3a1c;width:100%;font:inherit;cursor:pointer;background:#fff8ec;border:2px dashed #c79a5e;border-radius:16px;flex-direction:column;align-items:center;gap:10px;padding:18px;display:flex}.jig-launch img{aspect-ratio:4/3;object-fit:cover;border-radius:12px;width:min(60%,200px);box-shadow:0 4px 14px #0003}.jig-launch img.is-round{aspect-ratio:1;border-radius:50%;width:min(50%,160px)}.jig-launch span{color:#fff8ec;background:#6b4423;border-radius:14px;align-items:center;gap:8px;padding:10px 18px;font-size:16px;font-weight:800;display:inline-flex}.jig-launch small{opacity:.75;font-size:12px}.jig-launch:focus-visible{outline-offset:3px;outline:3px solid #8e4fd6}.jig-placeholder{text-align:center;opacity:.7;padding:24px;font-size:13px}.jig-snap-flash{opacity:0;pointer-events:none;animation:.6s ease-out .15s jig-flash}@keyframes jig-flash{0%{opacity:0}30%{opacity:.9}to{opacity:0}}.jig-glow{opacity:0;animation:1.6s ease-in-out .3s forwards jig-glow}@keyframes jig-glow{0%{opacity:0}35%{opacity:1}70%{opacity:.55}to{opacity:.85}}.jig-lock-pop{transform-box:fill-box;transform-origin:50%;opacity:0;animation:.5s cubic-bezier(.3,1.6,.5,1) .5s forwards jig-lockpop;transform:scale(.3)}@keyframes jig-lockpop{to{opacity:1;transform:scale(1)}}
