.bmg-game.cg-game{max-width:none}.bmg-stage{aspect-ratio:16/9;isolation:isolate;-webkit-user-select:none;user-select:none;background:#f3c9a8;width:100%;font-family:inherit;position:relative;overflow:hidden}.bmg-world{transform-origin:0 0;width:1600px;height:900px;transform:translate(var(--bmg-ox,0px), var(--bmg-oy,0px)) scale(var(--bmg-k,1));position:absolute;top:0;left:0}.bmg-cam{transform-origin:0 0;will-change:transform;width:1600px;height:900px;position:absolute;top:0;left:0}.bmg-world img,.bmg-stage img{max-width:none}.bmg-bg{width:1600px;height:900px;position:absolute;top:0;left:0}.bmg-spr{transform-origin:50% 100%;pointer-events:none;background-repeat:no-repeat;display:block;position:absolute}.bmg-spr.is-guard,.bmg-spr.is-cat{filter:drop-shadow(0 6px 3px #3c1e0a38)}.bmg-spr.is-held{animation:.18s linear infinite alternate bmg-shake}.bmg-spr.is-front{filter:drop-shadow(0 0 10px #fde047)}.bmg-tag{color:#1f2937;white-space:nowrap;pointer-events:none;background:#fffffff5;border:2px solid #3b2f22;border-radius:999px;padding:1px 10px;font-size:19px;font-weight:900;line-height:1.2;position:absolute;transform:translate(-50%,-100%);box-shadow:0 2px 2px #1e140a40}.bmg-tag.is-chosen{background:#fde047;border-color:#b45309}.bmg-tag.is-guard{background:#dbeafe;border-color:#1e3a8a}.bmg-fx{z-index:1900;pointer-events:none;display:block;position:absolute}.bmg-fx.is-sweat{animation:.9s ease-in-out infinite bmg-float}.bmg-duck{pointer-events:none;transform-origin:50% 100%;width:68px;height:auto;display:block;position:absolute}.bmg-duck.is-squash{transform:scale(1.15,.55)}.bmg-slipper{pointer-events:none;width:60px;height:auto;display:block;position:absolute}.bmg-remove{color:#991b1b;background:#fee2e2}.bmg-bubble{color:#111827;text-align:center;white-space:normal;pointer-events:none;background:#fff;border:3px solid #1f2937;border-radius:20px;width:-webkit-max-content;width:max-content;max-width:460px;padding:10px 18px;font-size:22px;font-weight:900;line-height:1.2;animation:.28s cubic-bezier(.2,1.6,.4,1) both bmg-pop;position:absolute;transform:translate(-50%,-100%);box-shadow:0 4px #0000002e}.bmg-bubble:after{content:"";background:#fff;border-bottom:3px solid #1f2937;border-right:3px solid #1f2937;width:20px;height:20px;margin-left:-10px;position:absolute;bottom:-13px;left:50%;transform:rotate(45deg)}.bmg-bubble.is-guard,.bmg-bubble.is-guard:after{background:#e0f2fe}.bmg-bubble.is-cat{background:#fef3c7;font-size:21px}.bmg-bubble.is-small{opacity:.95;border-width:2px;border-radius:14px;max-width:300px;padding:5px 11px;font-size:17px;font-weight:800}.bmg-bubble.is-small:after{border-width:2px;width:13px;height:13px;margin-left:-6px;bottom:-9px}.bmg-bubble.is-cat:after{background:#fef3c7}.bmg-scene-row{flex-wrap:wrap;position:relative}.bmg-scene-current{align-items:center;gap:.45em;display:inline-flex}.bmg-scene-current .bmg-scene-thumb{width:64px;height:36px}.bmg-scene-thumb{object-fit:cover;border-radius:8px;width:160px;max-width:none;height:90px;display:block}.bmg-scene-thumb.is-random{background:#e0f2fe;justify-content:center;align-items:center;display:flex;overflow:hidden}.bmg-scene-thumb.is-random .rnd-ico{flex:none}.bmg-scene-thumb.is-random img{object-fit:contain;width:100%;max-width:none;height:100%}.bmg-scene-grid{box-sizing:border-box;color:#1f2937;background:#f8fafc;border-radius:12px;grid-column:1/-1;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;width:100%;max-height:260px;margin-top:6px;padding:26px 6px 6px;display:grid;position:relative;overflow-y:auto}.bmg-scene-close{cursor:pointer;background:0 0;border:0;min-width:28px;min-height:28px;font-size:16px;position:absolute;top:2px;right:6px}.bmg-scene-card{font:inherit;cursor:pointer;background:#fff;border:2px solid #0000;border-radius:10px;flex-direction:column;align-items:stretch;gap:4px;padding:5px;font-size:.85em;font-weight:700;display:flex}.bmg-scene-card .bmg-scene-thumb{aspect-ratio:16/9;width:100%;height:auto}.bmg-scene-card[aria-selected=true]{background:#dcfce7;border-color:#16a34a}.bmg-form-thumb{object-fit:cover;border:1px solid #cbd5e1;border-radius:8px;width:96px;max-width:none;height:54px;display:block}.bmg-form-thumb.is-random{background:#e0f2fe;justify-content:center;align-items:center;display:flex;overflow:hidden}.bmg-form-thumb.is-random img{object-fit:contain;width:100%;max-width:none;height:100%}.bmg-confetti{z-index:1050;pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.bmg-confetti i{width:calc(var(--b1-k,1) * 12px);height:calc(var(--b1-k,1) * 18px);border-radius:2px;animation:linear infinite bmg-fall;display:block;position:absolute;top:-4%}.bmg-hud{z-index:1100;gap:calc(var(--b1-k,1) * 10px);align-items:stretch;display:flex;position:absolute;bottom:2%;right:1.2%}.bmg-sq{box-sizing:border-box;width:calc(var(--b1-k,1) * 76px);height:calc(var(--b1-k,1) * 76px);color:#1f2937;min-width:48px;min-height:48px;font:inherit;background:#fffffff2;border:3px solid #1f2937;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:4px;line-height:1.05;display:flex;box-shadow:0 4px #00000038}.bmg-sq b{font-size:calc(var(--b1-k,1) * 22px);white-space:nowrap;font-weight:900}.bmg-sq small{font-size:calc(var(--b1-k,1) * 12px);white-space:nowrap;font-weight:800}.bmg-sq svg{width:calc(var(--b1-k,1) * 28px);height:calc(var(--b1-k,1) * 28px);min-width:18px;min-height:18px}button.bmg-sq{cursor:pointer}.bmg-sq.is-stop{color:#fff;background:#ef4444}.bmg-sq.is-go{color:#fff;background:#16a34a}.bmg-chips{z-index:1100;gap:calc(var(--b1-k,1) * 8px);flex-wrap:wrap;display:flex;position:absolute;top:1.6%}.bmg-chips.is-left{left:1%}.bmg-chips.is-right{justify-content:flex-end;max-width:62%;top:9%;right:1%}.bmg-chip{color:#1f2937;font:inherit;font-size:calc(var(--b1-k,1) * 17px);cursor:default;background:#ffffffed;border:0;border-radius:999px;padding:.3em .9em;font-weight:800;box-shadow:0 2px 4px #0003}button.bmg-chip{cursor:pointer;min-height:32px}.bmg-chip.is-picked{color:#b91c1c}.bmg-chip.is-go{color:#fff;background:#16a34a}.bmg-chip.is-stop{color:#fff;background:#ef4444}.bmg-warn{z-index:1100;background:#fff;border-radius:.6em;margin:0;padding:.5em 1em;font-weight:800;position:absolute;top:45%;left:50%;transform:translate(-50%)}.bmg-board-title{color:#fde047;text-align:center;margin:0 0 .3em;font-size:1.5em;font-weight:900}.bmg-board-pair{justify-content:center;align-items:flex-end;gap:1em;display:flex}.bmg-still{background-position:0 0;background-repeat:no-repeat;display:block}.bmg-board-score{text-align:center;margin:.4em 0 0;font-weight:800}@keyframes bmg-shake{0%{margin-left:-5px}to{margin-left:5px}}@keyframes bmg-float{0%,to{opacity:.85;margin-top:0}50%{opacity:1;margin-top:-18px}}@keyframes bmg-pop{0%{opacity:0;transform:translate(-50%,-100%)scale(.4)}to{opacity:1;transform:translate(-50%,-100%)scale(1)}}@keyframes bmg-fall{0%{top:-4%;transform:rotate(0)}to{top:104%;transform:rotate(720deg)}}@media (prefers-reduced-motion:reduce){.bmg-bubble,.bmg-fx,.bmg-spr.is-held,.bmg-confetti i{animation:none}}
