#ui{pointer-events:none;z-index:2;color:#3b2a20;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;font:600 18px system-ui,sans-serif;position:fixed;inset:0}#ui>*{pointer-events:auto}#ui [hidden]{display:none!important}.btn{touch-action:none;cursor:pointer;background:#fffaf0;border:3px solid #3b2a20;border-radius:18px;flex:none;justify-content:center;align-items:center;width:72px;height:72px;margin:0;padding:0;display:inline-flex;position:relative;box-shadow:0 4px #3b2a2055}.btn:active{transform:translateY(2px);box-shadow:0 2px #3b2a2055}.btn.on{background:#f4d35e}.btn.off{filter:grayscale();opacity:.5}.tray{padding:8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));touch-action:none;background:linear-gradient(#1d2a1f00,#1d2a1fcc);align-items:flex-end;gap:10px;display:flex;position:fixed;bottom:0;left:0;right:0}.tabs{flex:none;grid-template-columns:72px 72px;gap:8px;display:grid}.tab.on{background:#f4d35e;border-color:#c9a227}.cards{touch-action:none;scrollbar-width:none;gap:10px;padding:4px 2px 6px;display:flex;overflow:auto hidden}.cards::-webkit-scrollbar{display:none}.card{box-sizing:border-box;touch-action:none;cursor:grab;width:150px;height:152px;color:inherit;font:inherit;background:#fffaf0;border:3px solid #3b2a20;border-radius:18px;flex-direction:column;flex:none;align-items:center;gap:4px;margin:0;padding:6px;display:flex;box-shadow:0 4px #3b2a2055}.card .pic.main{width:96px;height:80px}.card.lacking{background:#e6e0d6}.card.lacking .pic.main{filter:grayscale();opacity:.55}.pic{object-fit:contain;pointer-events:none;display:block}.pic:not([src]){visibility:hidden}.pic.small{width:34px;height:30px}.pic.face{width:44px;height:44px}.pic.portrait{width:96px;height:96px}.pic.small-portrait{width:72px;height:64px}.needs{flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;display:flex}.need{background:#fffa;border-radius:10px;display:inline-flex}.card .need .pic.face{width:30px;height:30px}.card .need .pic.small{width:30px;height:28px}.card .res{width:28px;height:28px}.card .needs{gap:3px}.missing{outline:3px solid #ff3b3b;animation:1s ease-in-out infinite pulse}.nudge .missing,.needs.nudge .missing{animation:.25s ease-in-out 6 pulse}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.22)}}.res{box-sizing:border-box;border:2px solid #3b2a20;border-radius:6px;flex:none;justify-content:flex-end;align-items:flex-end;width:30px;height:30px;display:inline-flex}.res b{color:#fff;text-shadow:0 0 3px #000,0 0 2px #000;padding:0 2px 1px 0;font:800 17px/1 system-ui,sans-serif}.res.filling{background-image:linear-gradient(to top, transparent var(--got,0%), #ffffffb0 var(--got,0%))}.ring{pointer-events:none;margin:auto;position:absolute;inset:0}.ring-back{fill:none;stroke:#00000030;stroke-width:4px}.ring-fill{fill:none;stroke:#3ddc55;stroke-width:4px;stroke-linecap:round}.queue{top:max(8px, env(safe-area-inset-top));touch-action:none;gap:8px;display:flex;position:fixed;left:8px;right:96px;overflow:hidden}.order{box-sizing:border-box;background:#fffaf0e0;border:3px solid #3b2a20;border-radius:50%;flex:none;width:72px;height:72px;position:relative}.order .ring{width:66px;height:66px}.order-pic{width:50px;height:50px;position:absolute;inset:8px}.order.lifted{z-index:1;box-shadow:0 6px 12px #0006}.corner{top:max(8px, env(safe-area-inset-top));right:max(8px, env(safe-area-inset-right));flex-direction:column;gap:8px;display:flex;position:fixed}.ghost-bar{z-index:3;gap:14px;display:flex;position:fixed;top:0;left:0}.ghost-bar .tick{background:#d9f7d2}.ghost-bar .cross{background:#ffe0e0}.ghost-bar.nudge .tick{animation:.4s ease-in-out shake}@keyframes shake{0%,to{translate:0}25%{translate:-8px}75%{translate:8px}}.inspect{box-sizing:border-box;z-index:4;background:#fffaf0;border:3px solid #3b2a20;border-radius:20px;flex-direction:column;gap:10px;width:min(340px,100% - 100px);max-height:calc(100% - 282px);padding:10px;display:flex;position:fixed;top:92px;right:92px;overflow-y:auto;box-shadow:0 6px 16px #0005}.inspect .head{align-items:center;gap:10px;display:flex}.inspect .head .close{margin-left:auto}.inspect .name{font-size:20px}.inspect .facts,.inspect .faces,.inspect .acts,.inspect .tier{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.inspect .acts{gap:14px}.with-ring{flex:none;width:96px;height:96px;position:relative}.with-ring .pic{width:76px;height:76px;position:absolute;inset:10px}.doing{align-items:center;gap:4px;display:inline-flex}.demolish .ring{width:64px;height:64px}.demolish .ring-fill{stroke:#c1272d}.demolish.holding .ring-fill{animation:1s linear forwards fill}@keyframes fill{to{stroke-dashoffset:0}}@media (max-height:560px){.tray{padding-top:4px;padding-bottom:max(4px, env(safe-area-inset-bottom));gap:8px}.tabs{grid-template-columns:64px 64px;gap:6px}.tab{border-radius:14px;width:64px;height:64px}.tab .icon{width:38px;height:38px}.cards{padding:2px 2px 4px}.card{gap:2px;width:132px;height:134px;padding:4px}.card .pic.main{width:76px;height:60px}.inspect{gap:8px;width:min(320px,100% - 100px);max-height:calc(100% - 16px);padding:8px;top:8px}.inspect>.head{order:0}.inspect>.acts,.inspect>.tier{order:1}.inspect>.faces,.inspect>.facts,.inspect>.needs{order:2}.inspect .pic.portrait,.with-ring{width:64px;height:64px}.with-ring .pic{width:52px;height:52px;inset:6px}.with-ring .ring{width:64px;height:64px}.inspect .pic.small-portrait{width:56px;height:48px}}
