:root{--bg:#1d1b36;--ink:#f4f1ff;--muted:#a9a4cf;--glow:#8d99ae}*{box-sizing:border-box}body{background:radial-gradient(circle at 50% 30%, #3b3470, var(--bg) 70%);min-height:100vh;color:var(--ink);margin:0;font:16px/1.3 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.room{text-align:center;max-width:760px;margin:0 auto;padding:18px 16px 40px}h1{margin:4px 0 0;font-size:36px}h2{margin:22px 0 8px;font-size:20px}.sub,.count{color:var(--muted);margin:2px 0 0}.packs{flex-wrap:wrap;justify-content:center;gap:8px;margin:8px 0 4px;display:flex}.packs button{font:inherit;color:#fff;cursor:pointer;border:3px solid var(--p1);background:#ffffff14;border-radius:20px;padding:6px 16px;font-weight:700}.packs button.on{background:var(--p1);box-shadow:0 0 14px var(--p1)}.stage{height:560px;position:relative}.pack{width:170px;height:250px;font:inherit;color:#fff;cursor:pointer;background:linear-gradient(160deg, var(--p1,#7e57c2), var(--p2,#4527a0));clip-path:polygon(0 4%,6% 0,12% 4%,18% 0,24% 4%,30% 0,36% 4%,42% 0,48% 4%,54% 0,60% 4%,66% 0,72% 4%,78% 0,84% 4%,90% 0,96% 4%,100% 0,100% 100%,0 100%);border:4px solid #1a0f3c;border-radius:14px;flex-direction:column;justify-content:space-between;align-items:center;margin-left:-85px;padding:22px 8px;transition:transform .15s;display:flex;position:absolute;bottom:0;left:50%;box-shadow:0 8px 18px #0006}.pack:hover{transform:scale(1.05)rotate(-1deg)}.pack .crown{font-size:62px}.pack .label{letter-spacing:1px;text-shadow:0 3px #1a0f3c;font-size:26px;font-weight:800}.pack .tap{color:#3a2a00;background:#ffca28;border-radius:20px;padding:4px 16px;font-weight:800}.pack.shake{animation:.8s linear shake}.pack.gone{opacity:0;pointer-events:none;transition:transform .25s,opacity .25s;transform:scale(1.4)}@keyframes shake{0%,to{transform:rotate(0)scale(1)}10%{transform:rotate(-7deg)scale(1.05)}20%{transform:rotate(7deg)scale(1.05)}30%{transform:rotate(-9deg)scale(1.08)}40%{transform:rotate(9deg)scale(1.08)}50%{transform:rotate(-10deg)scale(1.1)}60%{transform:rotate(10deg)scale(1.1)}75%{transform:rotate(-5deg)scale(1.15)}90%{transform:rotate(4deg)scale(1.2)}}.reveal{border:4px solid var(--glow);width:260px;box-shadow:0 0 30px var(--glow), inset 0 0 24px #ffffff1a;background:#ffffff14;border-radius:18px;margin:0 auto;padding:18px 10px 14px;animation:.5s cubic-bezier(.2,1.6,.4,1) pop;position:absolute;inset:10px 0 auto}.reveal[hidden]{display:none}.reveal .pic svg{width:170px;height:170px;margin:0 auto 4px;display:block}.reveal .name{font-size:28px;font-weight:800}.reveal .chance{color:var(--muted);min-height:1.3em;font-weight:700}@keyframes pop{0%{opacity:0;transform:scale(.2)rotate(-12deg)}to{opacity:1;transform:scale(1)rotate(0)}}.shelf{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.shelf li{border:3px solid var(--glow);background:#ffffff12;border-radius:12px;padding:8px 4px}.shelf li .pic svg{width:64px;height:64px;margin:0 auto;display:block}.shelf li .n{font-size:13px;font-weight:700}.shelf li .x{color:var(--muted);font-size:12px}.shelf li.unknown{border-color:#4a4570}.shelf li.unknown .pic{filter:grayscale()brightness(0);opacity:.5}.modes{justify-content:center;gap:8px;margin:10px 0 2px;display:flex}.modes button{font:inherit;color:#fff;cursor:pointer;background:#ffffff14;border:3px solid #8e86d8;border-radius:12px;padding:8px 20px;font-weight:800}.modes button.on{background:#6a5fd0;box-shadow:0 0 14px #6a5fd0}[hidden]{display:none!important}.muted{color:var(--muted);font-size:14px;font-weight:400}.board{touch-action:none;-webkit-user-select:none;user-select:none;background:radial-gradient(circle at 50% 40%,#ffffff1a,#0000 70%),#0a081e73;border:4px dashed #ffffff47;border-radius:18px;height:430px;margin-top:10px;position:relative;overflow:hidden}.item{cursor:grab;touch-action:none;border-radius:12px;width:110px;height:110px;position:absolute}.item .pic svg{pointer-events:none;filter:drop-shadow(0 4px 4px #00000059);width:100%;height:100%;display:block}.item.held{cursor:grabbing;transform:scale(1.08)rotate(-3deg)}.item.sel{outline-offset:2px;outline:3px dashed #ffca28}.item .take-off{cursor:pointer;width:26px;height:26px;font:inherit;color:#fff;background:#e53935;border:2px solid #fff;border-radius:50%;padding:0;font-size:13px;font-weight:800;display:none;position:absolute;top:-8px;right:-8px}.item:hover .take-off,.item.sel .take-off{display:block}.trash{color:#ffb4ac;background:#ff50501f;border:3px dashed #ff8a80;border-radius:14px;align-items:center;gap:6px;padding:4px 14px;font-size:22px;font-weight:700;transition:transform .12s,background .12s;display:flex}.trash span{font-size:13px}.trash.over{background:#ff50508c;transform:scale(1.12)}.tools{color:var(--muted);justify-content:space-between;align-items:center;margin-top:8px;display:flex}.tools button{font:inherit;color:#fff;cursor:pointer;background:#ffffff14;border:3px solid #ff8a80;border-radius:12px;padding:6px 16px;font-weight:700}.tray{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px;display:grid}.tray-item{font:inherit;color:var(--ink);cursor:pointer;border:3px solid var(--glow);background:#ffffff12;border-radius:12px;padding:8px 4px}.tray-item:hover{background:#ffffff29}.tray-item .pic svg{width:60px;height:60px;margin:0 auto;display:block}.tray-item .n{font-size:12px;font-weight:700}.scenes{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin-top:8px;display:flex}.scenes-label{color:var(--muted);margin-right:4px;font-weight:700}.scenes button{font:inherit;color:#fff;cursor:pointer;background:#ffffff14;border:2px solid #8e86d8;border-radius:16px;padding:4px 12px;font-size:14px;font-weight:700}.scenes button.on{background:#6a5fd0;box-shadow:0 0 10px #6a5fd0}.scene{pointer-events:none;position:absolute;inset:0}.scene svg{width:100%;height:100%;display:block}.texttools{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:12px;display:flex}.texttools input{font:inherit;color:#fff;background:#00000040;border:3px solid #8e86d8;border-radius:12px;width:min(340px,100%);padding:6px 12px}.texttools button:not(.sw){font:inherit;color:#fff;cursor:pointer;background:#ffffff14;border:2px solid #8e86d8;border-radius:14px;padding:5px 12px;font-size:14px;font-weight:700}.texttools button.on:not(.sw){background:#6a5fd0;box-shadow:0 0 10px #6a5fd0}#text-add{background:#43a047!important;border-color:#a5d6a7!important}.sizes{gap:4px;display:inline-flex}.colors{gap:6px;display:inline-flex}.sw{cursor:pointer;background:var(--c);border:3px solid #ffffff40;border-radius:50%;width:26px;height:26px;padding:0}.sw.on{box-shadow:0 0 8px var(--c);border-color:#fff}.item.text{width:auto;min-width:30px;max-width:330px;height:auto;padding:2px 6px}.item.text span{text-align:center;color:var(--tc);word-break:break-word;pointer-events:none;font-weight:800;line-height:1.15;font-size:calc(var(--fs,26px) * var(--sc,1));text-shadow:-2px -2px #14101c,2px -2px #14101c,-2px 2px #14101c,2px 2px #14101c,0 3px 5px #0006;display:block}.item.text.size-S{--fs:16px}.item.text.size-M{--fs:26px}.item.text.size-L{--fs:44px}.item.text.bubble{background:var(--tc);border:3px solid #14101c;border-radius:18px;margin-bottom:14px;padding:8px 14px}.item.text.bubble span{color:#14101c;text-shadow:none}.item.text.bubble:before{content:"";border:10px solid #0000;border-top:16px solid #14101c;border-bottom:0;position:absolute;bottom:-19px;left:16px}.item.text.bubble:after{content:"";border:7px solid #0000;border-top:12px solid var(--tc);border-bottom:0;position:absolute;bottom:-12px;left:19px}.sizebar{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:12px;display:flex}.sizebar button{width:32px;height:32px;font:inherit;color:#fff;cursor:pointer;background:#ffffff14;border:2px solid #8e86d8;border-radius:50%;padding:0;font-size:20px;font-weight:800;line-height:1}.sizebar button:disabled{opacity:.4;cursor:default}.sizebar input[type=range]{accent-color:#8e86d8;width:min(220px,50vw)}.sizebar #size-label,.sizebar #turn-label{text-align:left;min-width:120px;color:var(--muted);font-weight:700}.item .resize{cursor:nwse-resize;background:#ffca28;border:2px solid #14101c;border-radius:50%;width:18px;height:18px;display:none;position:absolute;bottom:-8px;right:-8px}.item.sel .resize{display:block}.item .rotate-h{cursor:grab;background:#7ee0ff;border:2px solid #14101c;border-radius:50%;width:16px;height:16px;margin-left:-8px;display:none;position:absolute;top:-28px;left:50%}.item .rotate-h:after{content:"";background:#7ee0ff;width:2px;height:10px;margin-left:-1px;position:absolute;top:100%;left:50%}.item.sel .rotate-h{display:block}
