/* 舞台样式（v2.39.0）：从 style.css 会议室舞台部分原样复制，给克苏鲁线索板（coc.html + stage-core.js）用。
   会议室以后改用 stage-core.js 时，可以让 index.html 也加载这个文件并删掉 style.css 里的同一段。 */
.mr-stage{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:18/9;background:#3a3a52;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.mr-stage.is-gm{touch-action:none}
.mr-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.mr-stage-empty{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:rgba(255,255,255,.55);font-size:18px;font-weight:700}
.mr-item{position:absolute;box-sizing:border-box}
.mr-item img{display:block;width:100%;height:auto;pointer-events:none}
/* 白色描边（v2.8.0）：沿图片的透明边缘描一圈白边，八个方向的投影叠加 */
.mr-item.has-outline img{filter:drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(1.4px 1.4px 0 #fff) drop-shadow(-1.4px -1.4px 0 #fff)}
.mr-stage.is-gm .mr-item{cursor:grab}
.mr-stage.is-gm .mr-item.is-locked{cursor:default}
.mr-item.is-selected{outline:3px solid #2a7be0;outline-offset:0}
.mr-item.is-selected.is-locked{outline-style:dashed}
.mr-stage-bar{position:absolute;left:8px;top:8px;z-index:500;display:flex;align-items:center;gap:2px;max-width:calc(100% - 16px);padding:4px 4px 4px 10px;border-radius:5px;background:rgba(40,40,52,.9);color:#fff}
.mr-stage-bar-name{min-width:0;margin-right:6px;overflow:hidden;font-size:13px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.mr-tool:disabled{opacity:.3;cursor:default}
.mr-tool:disabled:hover{background:transparent}
.mr-stage-tip{position:absolute;left:50%;bottom:10px;z-index:500;margin:0;padding:4px 12px;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;font-size:13px;font-weight:700;white-space:nowrap;transform:translateX(-50%);pointer-events:none}
.mr-stage.is-scene-adjust{cursor:move;outline:3px solid #2a7be0;outline-offset:-3px}
.mr-stage.is-scene-adjust .mr-item{pointer-events:none;opacity:.55}
.mr-scene{transition:none}

.mr-tool{width:28px;height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:#fff;cursor:pointer}
.mr-tool:hover{background:rgba(255,255,255,.18)}
.mr-tool::before{content:"";display:block;width:18px;height:18px;margin:auto;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.mr-tool.is-on{color:#7fb3ff}
.mr-tool-lock{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1.5v12h-13V10zm2.5 0h5V7a2.5 2.5 0 0 0-5 0z'/%3E%3C/svg%3E")}
.mr-tool-flip{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2h2v20h-2zM9 6v12L2 18zM15 6l7 12h-7zm2 4.8V16h3z'/%3E%3C/svg%3E")}
.mr-tool-outline{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Ccircle cx='12' cy='7.5' r='4'/%3E%3Cpath d='M4 21.5c0-4.6 3.6-7.5 8-7.5s8 2.9 8 7.5z'/%3E%3C/svg%3E")}
.mr-tool-up{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l8 9h-5v9H9v-9H4z'/%3E%3C/svg%3E")}
.mr-tool-down{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21l-8-9h5V3h6v9h5z'/%3E%3C/svg%3E")}
.mr-tool-copy{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h12v14h-3V5H8zM4 7h11v15H4zm2.5 2.5v10h6v-10z'/%3E%3C/svg%3E")}
.mr-tool-del{color:#ff4b55;--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zM6 10.5v3h12v-3z'/%3E%3C/svg%3E")}
.mr-item-resize{position:absolute;z-index:2;width:16px;height:16px;box-sizing:border-box;border:2px solid #fff;border-radius:3px;background:#2a7be0;box-shadow:0 0 0 1px rgba(0,0,0,.3)}
/* 实际可点区域比方块大一圈，容易抓到 */
.mr-item-resize::before{content:"";position:absolute;inset:-12px}
.mr-resize-nw{left:-8px;top:-8px;cursor:nwse-resize}
.mr-resize-ne{right:-8px;top:-8px;cursor:nesw-resize}
.mr-resize-sw{left:-8px;bottom:-8px;cursor:nesw-resize}
.mr-resize-se{right:-8px;bottom:-8px;cursor:nwse-resize}
@media (hover:none){.mr-item-resize{width:22px;height:22px}.mr-resize-nw,.mr-resize-sw{left:-11px}.mr-resize-ne,.mr-resize-se{right:-11px}.mr-resize-nw,.mr-resize-ne{top:-11px}.mr-resize-sw,.mr-resize-se{bottom:-11px}}
