.mechanics-shortcut{display:flex;gap:10px;margin-bottom:15px}.rules-toolbar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:18px}.rules-import-bar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:20px}.rules-import-bar select{width:140px}.rules-import-bar .file-label{margin:0;max-width:250px}.rules-import-bar input{max-width:220px}.mechanics-scene-grid{display:grid;grid-template-columns:minmax(350px,1.4fr) minmax(290px,1fr);gap:20px;align-items:start}.rules-table-grid{display:grid;grid-template-columns:230px 1fr;gap:20px;align-items:start}.rules-table-grid>.panel:last-child{max-width:850px}.mechanics-scene-grid .sectionbar select{max-width:60%}.hotspot-editor{position:relative;aspect-ratio:16/9;overflow:hidden;background:#11141e;border:1px solid #625176;border-radius:10px}.hotspot-editor.portrait{aspect-ratio:9/16;max-width:350px;margin:auto}.hotspot-editor>img,.hotspot-editor>video,.hotspot-editor>.media-placeholder{width:100%;height:100%;object-fit:contain;display:block}.hotspot{position:absolute;transform:translate(-50%,-50%);min-width:0;border:1px solid #d5b2ff;background:#312043bd;color:#fff;border-radius:8px;font-size:11px;line-height:1.5;padding:3px;cursor:pointer;overflow:hidden}.hotspot.selected{border:2px solid #e9d5ff;box-shadow:0 0 0 3px #b985ff33}.hotspot-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}.coordinate-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 12px}.condition-row{display:grid;grid-template-columns:1fr 1fr 65px 80px 40px;gap:7px;margin:12px 0}.condition-row input,.condition-row select{min-width:0;font-size:12px}.config-code{font:12px ui-monospace,monospace;min-height:120px}.config-cover{width:100%;max-height:220px;object-fit:contain;display:block}.panel .check input[type="checkbox"]{width:auto}.teams-top{display:grid;grid-template-columns:1fr 1fr;gap:20px}.team-assets{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}.team-assets article{border:1px solid var(--line);border-radius:9px;padding:15px;min-width:0}.team-assets h3{overflow-wrap:anywhere;font-size:13px}.team-assets small{font-size:10px;color:#aaa}.team-assets img{height:120px;width:100%;object-fit:contain;margin:15px 0}.team-assets article>div{margin-top:14px}.team-members .check{font-size:12px;overflow-wrap:anywhere}.team-members .avatar{flex-shrink:0}#rules-error{line-height:1.7;font-size:12px;margin-bottom:15px}.node-list .node-item{width:100%}.deletable-config-row{display:flex;align-items:center;gap:5px}.deletable-config-row>.node-item{flex:1;min-width:0;word-break:break-word}.deletable-config-row>button:last-child{flex:0 0 auto;padding:7px}.deletable-hotspot-row{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;padding:3px}.config-delete-note{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;background:#201d29;border:1px solid var(--line);border-radius:9px;margin:15px 0;color:#b1a6bd;font-size:11px}.config-json-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.config-json-heading label{margin:15px 0 8px}.config-json-entries{border:1px solid #39303f;border-radius:8px;margin:8px 0;padding:4px 10px}.config-json-entries>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:7px 0}.config-json-entries>div:last-child{border-bottom:0}.config-json-entries code{font-size:10px;overflow-wrap:anywhere;min-width:0}.config-json-entries button{flex-shrink:0}@media(max-width:1100px){.mechanics-scene-grid{grid-template-columns:1fr}.rules-table-grid{grid-template-columns:190px 1fr}.team-assets{grid-template-columns:1fr 1fr}}@media(max-width:760px){.rules-table-grid,.teams-top{grid-template-columns:1fr}.condition-row{grid-template-columns:1fr 1fr}.condition-row button{grid-column:2}.team-assets{grid-template-columns:1fr}.rules-toolbar .chips{gap:0}.rules-import-bar>span{width:100%}.mechanics-scene-grid{grid-template-columns:1fr}.coordinate-grid{gap:10px}.config-delete-note{align-items:start;flex-direction:column}}

.workspace-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px;padding:12px;background:var(--panel,#14171f);border:1px solid #2c3040;border-radius:12px}.workspace-tabs .chip{min-width:140px;padding:12px 20px}.workspace-tabs .active{background:#c2ef76;color:#10140d}

.info-field{border:1px solid #493952;border-radius:10px;padding:18px;margin:16px 0}.info-field label{display:block;margin:10px 0}.info-field input,.info-field select{width:100%}

.player-window-actions{display:flex;align-items:center;gap:10px}.player-window-actions button{white-space:nowrap}#game-frame:fullscreen{width:100vw!important;height:100dvh!important;max-height:none!important;border:0;border-radius:0;background:#000}dialog.wide-player.player-immersive{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;padding:0;overflow:hidden;display:flex;flex-direction:column}.player-immersive>.modal-head{margin:0;padding:8px 16px;flex:0 0 auto}.player-immersive>#game-frame{flex:1;min-height:0;width:100%;height:100%;border-radius:0}

.storyline-page{padding:clamp(16px,3vw,40px);min-height:100vh}.storyline-page>h1{font-family:serif;color:#dfc88b;letter-spacing:.2em}.storyline-page>p{color:#b8b4a8}.story-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0}.story-toolbar span{margin-right:auto;color:#a9a69a;font-size:13px}.story-toolbar button{margin:0;padding:7px 13px;font-size:12px}.story-viewport{overflow:auto;max-width:100%;height:clamp(340px,65vh,760px);border:1px solid #655a3a;border-radius:12px;background:radial-gradient(ellipse at 30% 20%,#3c3434,#171c1c 65%);overscroll-behavior:contain;scrollbar-color:#a38e56 #1b2020;scrollbar-width:auto}.story-canvas{position:relative;transform-origin:0 0}.story-lines{position:absolute;inset:0;overflow:visible;pointer-events:none}.story-lines path{fill:none;stroke:#c7ad6c;stroke-width:2}.story-lines path.locked{stroke:#737a7b;stroke-dasharray:5 5}.story-lines text{fill:#d9c897;font-size:12px;paint-order:stroke;stroke:#171c1c;stroke-width:4px;stroke-linejoin:round}.story-card{position:absolute;width:220px;height:166px;padding:0;margin:0;display:flex;flex-direction:column;gap:0;overflow:hidden;border:1px solid #b99e5c;border-radius:5px;background:#181c19;box-shadow:0 8px 25px #0004;color:#e9ddb9;cursor:pointer;text-align:center}.story-card:hover:not(:disabled){border-color:#f3d688;box-shadow:0 0 20px #b99e5c55}.story-card.locked{border-color:#515b5b;background:#222728;color:#879191;opacity:1;cursor:default}.story-picture{height:112px;width:100%;overflow:hidden;display:grid;place-items:center;font-size:36px}.story-picture img,.story-picture video{width:100%;height:112px;max-height:none;object-fit:cover;display:block;border-radius:0;pointer-events:none}.story-card strong{font:17px serif;display:block;padding:6px 8px 2px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-card small{font-size:10px;color:#aaa48d}.story-viewer{position:fixed;inset:3%;z-index:100;background:#111714f5;border:1px solid #b99e5c;border-radius:12px;padding:20px;overflow:auto;box-shadow:0 0 0 100vmax #000b}.story-viewer video{width:100%;height:70vh;max-height:70vh;object-fit:contain;background:#000}.story-viewer h2{font-size:20px;color:#dfc88b}#game.storyline-view{max-width:none;padding:0}.story-canvas>p{padding:40px;color:#c5c0af}

.choice-settings{margin-top:14px;padding:12px;border:1px solid #3b3b4c;border-radius:9px}.choice-settings summary{cursor:pointer;font-size:13px;color:#d3beff}.choice-settings h4{font-size:12px;margin:16px 0 8px}.choice-rule-row{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0;align-items:center}.choice-rule-row select{flex:1;min-width:100px}.choice-rule-row input{width:80px;min-width:65px}.choice-rule-row span{font-size:11px;color:#bca5db}.choice-settings .row{flex-wrap:wrap}.choice-settings button{white-space:normal}
.vc-project{display:flex;gap:16px;align-items:center;margin:18px 0;color:#8f8b9d;font-size:12px}.vc-project select{max-width:240px}.vc-project #vc-save{margin-left:auto;color:#b8d78a}.vc-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px}.vc-workspace{border:1px solid #353344;border-radius:14px;overflow:hidden;min-width:0}.vc-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px;background:#20202b;border-bottom:1px solid #343344}.vc-toolbar button{padding:7px 10px}.vc-spacer{flex:1}.vc-viewport{position:relative;overflow:hidden;height:72vh;min-height:520px;background-color:#101118;background-image:radial-gradient(#454151 1px,transparent 1px);background-size:22px 22px;touch-action:none;cursor:grab}.vc-world{position:absolute;inset:0;transform-origin:0 0;will-change:transform}.vc-node{position:absolute;width:280px;border:1px solid #4a425f;border-radius:12px;background:#1d1d28;box-shadow:0 12px 24px #0005;color:#e9e5f2;cursor:default;z-index:2}.vc-node.selected{border-color:#c6ed73;box-shadow:0 0 0 2px #c6ed7320,0 15px 35px #0005}.vc-node-head{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #34313e;cursor:move;user-select:none}.vc-node-head strong{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:145px}.vc-type{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:#7861aa;color:#fff}.vc-type.image{background:#487a6c}.vc-type.video{background:#77613d}.vc-status{margin-left:auto;font-size:10px;color:#a8a1b5}.vc-text{white-space:pre-wrap;padding:18px;margin:0;height:150px;overflow:auto;font-size:13px;color:#c9c2d4;line-height:1.7}.vc-empty-media{height:150px;display:grid;place-items:center;color:#7c778c;font-size:12px;background:linear-gradient(145deg,#262434,#171820)}.vc-node .vc-media{width:100%;height:150px;object-fit:contain;background:#090a10;display:block}.vc-node-bottom{display:flex;padding:9px;gap:8px;align-items:center}.vc-node-bottom span{font-size:10px;color:#90869d;overflow:hidden;max-width:190px}.vc-node-bottom button{margin-left:auto}.vc-port{position:absolute!important;top:90px;width:18px!important;height:24px;padding:0!important;border:0!important;background:#15151f!important;color:#b8e377!important;cursor:crosshair;z-index:3;margin:0!important}.vc-out{right:-10px}.vc-in{left:-10px}.vc-wires{position:absolute;left:0;top:0;overflow:visible;pointer-events:none;z-index:1}.vc-wires path{fill:none;stroke:#be9be8;stroke-width:2}.vc-wires path.image-wire{stroke:#a9db96}.vc-wires #vc-preview-line{stroke:#c6ed73;stroke-dasharray:5 4}.vc-hint{position:absolute;bottom:12px;left:15px;font-size:11px;color:#827c94;pointer-events:none}.vc-welcome{position:absolute;inset:20% 12%;text-align:center;pointer-events:none}.vc-welcome button{pointer-events:auto}.vc-welcome>span,.vc-empty-inspector>span{color:#b4a2d1;letter-spacing:3px;font-size:10px}.vc-welcome h2{font-size:30px;margin:20px 0}.vc-welcome p{font-size:13px;line-height:2;color:#9690a7}.vc-inspector{padding:18px;background:#1a1b24;border:1px solid #353344;border-radius:14px;max-height:calc(72vh + 60px);overflow:auto}.vc-inspector-top{display:flex;align-items:center;justify-content:space-between}.vc-inspector-top span{font-size:10px;color:#9c83c3;letter-spacing:2px}.vc-inspector label{font-size:12px}.vc-inspector h4{margin-top:20px;font-size:13px}.vc-params{display:grid;grid-template-columns:1fr 1fr;gap:10px}.vc-edge-row{display:flex;gap:6px;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #33303e;font-size:12px}.vc-inspector .primary{margin-top:20px}.vc-connect{margin-bottom:12px}.vc-empty-inspector p,.vc-empty-inspector li{color:#9790a7;font-size:13px;line-height:2}.vc-group{position:absolute;border:1px dashed #a68ace66;border-radius:15px;background:#9c77c008;pointer-events:none}.vc-group>span{position:absolute;top:8px;left:12px;color:#aa92c9;font-size:11px}#vc-select-box{position:absolute;border:1px solid #c6ed73;background:#c6ed7322;pointer-events:none;z-index:10}@media(max-width:1100px){.vc-layout{grid-template-columns:minmax(0,1fr)}.vc-inspector{max-height:none}.vc-viewport{height:65vh}.vc-project{flex-wrap:wrap}}

.vc-node.vc-video-node{width:540px}.vc-video-node .vc-media,.vc-video-node .vc-empty-media{height:260px}.vc-video-node .vc-node-head strong{max-width:330px}.vc-inline-mode{grid-template-columns:minmax(0,1fr)}.vc-inline-mode>.vc-inspector{display:none}.vc-inline-settings{padding:15px;border-top:1px solid #3d374b;cursor:default}.vc-inline-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#b7a6ce}.vc-upload-ref{cursor:pointer;padding:6px 10px;background:#302a3d;border-radius:7px;margin:0!important;font-size:12px}.vc-upload-ref input{display:none}.vc-ref-strip{display:flex;gap:10px;overflow-x:auto;padding:12px 0;min-height:70px}.vc-ref-strip>p{font-size:12px;color:#9990aa}.vc-ref-thumb{position:relative;flex:0 0 100px;max-width:100px}.vc-ref-thumb img,.vc-ref-thumb>span{width:100px;height:72px;object-fit:cover;display:grid;place-items:center;border-radius:7px;background:#302b3c}.vc-ref-thumb b{position:absolute;top:3px;left:3px;padding:2px 4px;background:#15131ddd;border-radius:4px;font-size:10px}.vc-ref-thumb button{position:absolute;right:2px;top:2px;padding:0 4px;background:#15131ddd;color:white}.vc-ref-thumb small{display:block;font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:4px 0;color:#aaa0b9}.vc-ref-thumb select{padding:3px;font-size:10px;width:100%}.vc-inline-settings textarea{width:100%;font-size:13px;line-height:1.8;background:#15151e;resize:vertical}.vc-inline-settings label{font-size:11px}.vc-inline-params{display:grid;grid-template-columns:1fr 1.5fr .7fr .7fr;gap:8px}.vc-inline-params select{font-size:11px;padding:8px 5px;width:100%}.vc-inline-actions{display:flex;align-items:center;gap:10px;margin:12px 0}.vc-inline-actions span{color:#a0b98a;font-size:11px}.vc-inline-actions .primary{margin-left:auto}.vc-inline-settings details{padding:10px 0;font-size:12px}.vc-inline-settings .row{flex-wrap:wrap}.vc-inline-settings .form-help{font-size:10px;line-height:1.7}.vc-inline-settings select{max-width:100%}.vc-inline-settings .danger{font-size:12px}.vc-video-node .vc-node-bottom span{max-width:420px}

.vc-node-bottom [data-canvas="delete"]{margin-left:0;color:#eba5aa;border-color:#74454d;flex-shrink:0}.vc-video-node .vc-node-bottom>span{margin-right:auto}.vc-video-node .vc-node-bottom [data-canvas="select"]{margin-left:0}
.ui-layout-tabs{display:flex;gap:10px;padding:12px;background:#1b1b26;border:1px solid #363344;border-radius:12px;margin-bottom:20px}.ui-layout-tabs button{padding:12px 24px}.ui-layout-top{display:flex;align-items:center;gap:20px;margin:20px 0;font-size:12px;color:#aaa1bb}.ui-layout-top select{max-width:260px}.ui-layout-grid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px}.ui-layout-grid>section:first-child{max-height:85vh;overflow:auto}.ui-layout-grid h3{margin-top:25px}.layout-stage{height:600px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 35% 25%,#43555b,#17282a 45%,#0e131c 90%);border:1px solid #73613e;border-radius:12px}.layout-scene{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9ea9a1;pointer-events:none}.layout-scene span{letter-spacing:4px;font-size:10px}.layout-scene h2{font:30px serif;color:#d3bd85}.layout-scene p{font-size:12px}.layout-widget{position:absolute;padding:7px;background:#171c19df;border:1px dashed #bda968;border-radius:6px;cursor:move;color:#eadbaf;touch-action:none;user-select:none}.layout-widget.selected{border:2px solid #c7ef73;box-shadow:0 0 0 3px #c7ef7320;z-index:4}.layout-widget small{display:block;font-size:9px;color:#bcaa77}.layout-widget button{pointer-events:none;font:14px serif;color:#eadbaf;background:#283127;border:1px solid #746442;border-radius:3px;padding:8px;margin:4px}.layout-widget p{margin:8px;font-size:13px}.layout-widget[data-layout-widget="choices"] button{width:45%}.layout-widget[data-layout-widget="menuPanel"] button{display:block;width:95%;font-size:13px;padding:6px}.layout-menu-row{display:flex;gap:6px;align-items:center;padding:7px;border-bottom:1px solid #373242}.layout-menu-row span{flex:1;font-size:12px}.layout-stage[data-phase="playing"] [data-layout-widget="choices"],.layout-stage[data-phase="playing"] [data-layout-widget="text"],.layout-stage[data-phase="playing"] [data-layout-widget="hud"],.layout-stage[data-phase="playing"] [data-layout-widget="panel"]{visibility:hidden}.layout-stage[data-phase="playing"]:after{content:'视频播放中 · 剧情文字与选项隐藏';position:absolute;bottom:8px;left:15px;color:#d0c4a3;font-size:11px;pointer-events:none}#layout-save-status{font-size:12px;color:#b5d79e;margin:20px 0}@media(max-width:1100px){.ui-layout-grid{grid-template-columns:1fr}.ui-layout-grid>section:first-child{max-height:none}.layout-stage{height:500px}.ui-layout-top{flex-wrap:wrap}}

/* Canvas focus mode keeps the same workspace and node-local controls across renders. */
.vc-fullscreen{position:fixed;inset:0;z-index:1500;background:#101118;padding:8px;display:flex;box-sizing:border-box;gap:0}
.vc-fullscreen .vc-workspace{display:flex;flex-direction:column;flex:1;min-height:0;border-radius:10px}
.vc-fullscreen .vc-viewport{flex:1;height:auto;min-height:0}
.vc-fullscreen .vc-toolbar{flex:0 0 auto}
.vc-fullscreen-open{overflow:hidden}
.vc-node.vc-expanded-node{width:440px}
.vc-expanded-node .vc-node-head strong{max-width:260px}
.vc-image-settings{max-height:560px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
.vc-image-settings .vc-inspector-top{margin-bottom:12px}
.vc-image-settings input,.vc-image-settings textarea,.vc-image-settings select{box-sizing:border-box;max-width:100%}
.vc-image-settings .row{display:flex;gap:8px;flex-wrap:wrap}
.vc-image-settings .row input{flex:1;min-width:120px}
.vc-image-settings .primary{margin:14px 0}
.vc-fullscreen .vc-image-settings{max-height:min(560px,60vh)}
body.vc-fullscreen-open #modal{z-index:1600}
@media(max-width:600px){.vc-fullscreen{padding:0}.vc-fullscreen .vc-toolbar{gap:4px;padding:6px}.vc-fullscreen .vc-toolbar button{font-size:11px;padding:6px}}
.vc-node.selected{z-index:5}

.vc-wires path.vc-wire-hit{stroke:transparent;stroke-width:18;pointer-events:stroke;cursor:pointer;fill:none}
.vc-wires path.vc-wire-selected{stroke:#f4d16e;stroke-width:4;filter:drop-shadow(0 0 4px #f4d16e77)}
.vc-wire-hit:focus{outline:none;stroke:#f4d16e66!important}
.vc-node-bottom [data-canvas="duplicate"]{margin-left:0;flex:0 0 auto}
.vc-expanded-node .vc-node-bottom>span{margin-right:auto}
.vc-node-bottom button{white-space:nowrap}

.vc-port::after{content:"";position:absolute;inset:-6px;}
.vc-port.vc-port-target{outline:2px solid #b8e377;outline-offset:3px;}
