:root { --ink: #e7ecf3; --muted: #9bacbe; --card: #1a1f2b; --line: #2b3342; --accent: #5cc8ff; --accent-strong: #7ad6ff; --danger: #ff7b72; --editor-bg: #0d121b; --editor-ink: #dce6f4; } * { box-sizing: border-box; } body { margin: 0; color: var(--ink); font-family: "Segoe UI", "Trebuchet MS", sans-serif; background: linear-gradient(160deg, #0f1115 0%, #141a24 100%); } #root { min-height: 100dvh; } .page-shell { width: min(960px, 93vw); margin: 24px auto; display: grid; gap: 0.7rem; } .header-card, .workspace-card { border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); } .header-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; } .header-copy { min-width: 0; } .workspace-card { padding: 12px; } .eyebrow { margin: 0; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: #9ec8f0; font-weight: 700; } h1 { margin: 0.2rem 0 0; font-size: 24px; } h2 { margin: 0 0 0.45rem; font-size: 16px; } .lede { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; } .header-map-editor-btn { position: relative; min-width: 168px; padding: 12px 18px; border: 1px solid rgba(110, 255, 173, 0.48); border-radius: 12px; background: linear-gradient(135deg, rgba(33, 146, 86, 0.92) 0%, rgba(24, 108, 123, 0.92) 100%); color: #f3fff8; font-size: 0.98rem; font-weight: 700; box-shadow: 0 0 0 1px rgba(161, 255, 206, 0.14), 0 0 18px rgba(52, 211, 153, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12); overflow: hidden; isolation: isolate; animation: headerWorldshaperStudioGlow 3.8s ease-in-out infinite; } .header-map-editor-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 35%, transparent 62%); transform: translateX(-140%); animation: headerWorldshaperStudioShine 3.6s ease-in-out infinite; pointer-events: none; z-index: 0; } .header-map-editor-btn-label { position: relative; z-index: 1; } .header-map-editor-btn:not(:disabled):hover { background: linear-gradient(135deg, rgba(38, 163, 96, 0.96) 0%, rgba(27, 122, 139, 0.96) 100%); box-shadow: 0 0 0 1px rgba(186, 255, 220, 0.2), 0 0 24px rgba(52, 211, 153, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16); } .header-map-editor-btn:disabled { opacity: 0.58; box-shadow: none; } @keyframes headerWorldshaperStudioGlow { 0%, 100% { box-shadow: 0 0 0 1px rgba(161, 255, 206, 0.14), 0 0 18px rgba(52, 211, 153, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12); } 50% { box-shadow: 0 0 0 1px rgba(196, 255, 228, 0.18), 0 0 26px rgba(52, 211, 153, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.16); } } @keyframes headerWorldshaperStudioShine { 0%, 14% { transform: translateX(-140%); } 38%, 100% { transform: translateX(160%); } } .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.55rem; } .toolbar-error { margin: 0 0 0 auto; color: var(--danger); font-size: 13px; } .top-nav-tabs { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; display: grid; gap: 8px; background: var(--card); } .nav-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .nav-cluster-title { margin: 0; min-width: 88px; color: #b8cced; font-weight: 400; font-size: 13px; } .nav-tab-row { display: flex; flex-wrap: wrap; gap: 8px; } .nav-pill { border: 1px solid #364154; background: #1d2432; color: #e8f2ff; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 400; } .nav-pill.is-active { border-color: #2e7bb6; background: #17466a; } label { font-weight: 400; font-size: 13px; } select, button, textarea { font: inherit; } input { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #0d121b; color: var(--ink); } select, button { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #1d2432; color: var(--ink); font-size: 13px; } button { border-color: #364154; background: #1d2432; color: var(--ink); font-weight: 400; cursor: pointer; } button:disabled { cursor: not-allowed; opacity: 0.6; } button:not(:disabled):hover { background: #263149; } button.primary { border-color: #2e7bb6; background: #17466a; } button.primary.save-dirty { border-color: #8fdcff; background: #1b5f8f; box-shadow: 0 0 0 1px rgba(143, 220, 255, 0.45), 0 0 14px rgba(143, 220, 255, 0.55); } button.primary.save-dirty:not(:disabled):hover { background: #2474ac; box-shadow: 0 0 0 1px rgba(143, 220, 255, 0.6), 0 0 18px rgba(143, 220, 255, 0.7); } button.success { border-color: #2d7d46; background: #184f2c; } button.danger { border-color: #8b2f3c; background: #5a1f29; } button.success:not(:disabled):hover { background: #20623a; } button.danger:not(:disabled):hover { background: #763040; } .json-editor { width: 100%; min-height: 30dvh; border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: #0b1424; color: var(--editor-ink); font-family: "Consolas", "Courier New", monospace; font-size: 0.89rem; line-height: 1.5; } .status-row { margin-top: 0.5rem; display: grid; gap: 0.25rem; } .status-text { margin: 0; color: var(--muted); } .status-error { margin: 0; color: var(--danger); } .validation-list { margin: 0; padding-left: 1.1rem; color: var(--danger); display: grid; gap: 0.2rem; } .structured-layout { display: grid; grid-template-columns: 230px 1fr; gap: 0.6rem; margin-bottom: 0.6rem; } .record-list-panel, .record-editor-panel { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--card); } .records-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; } .record-actions { margin-left: auto; display: flex; gap: 6px; } .record-list-tools { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 8px; } .record-list-search { width: 100%; min-width: 0; } .record-filter-dropdown { position: relative; display: flex; gap: 6px; align-items: stretch; } .record-filter-toggle { height: 100%; min-height: 36px; white-space: nowrap; } .record-filter-clear { min-height: 36px; padding: 6px 10px; font-size: 12px; } .record-filter-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 12; min-width: 220px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #141c2b; padding: 6px; display: grid; gap: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); } .record-filter-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #9db4d8; margin: 2px 2px 0; } .record-filter-divider { height: 1px; background: #2a3448; margin: 4px 0; } .record-rule-builder { display: grid; gap: 4px; } .record-rule-builder select, .record-rule-builder input { width: 100%; min-width: 0; } .record-rule-add-btn { justify-self: start; padding: 5px 9px; font-size: 12px; } .record-suggestion-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; } .record-suggestion-chip { padding: 3px 7px; border-radius: 999px; font-size: 11px; background: #17233a; border-color: #2f4266; } .active-rule-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; } .active-rule-chip { padding: 4px 8px; border-radius: 999px; font-size: 11px; border-color: #39608f; background: #163454; } .edit-page-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .edit-tab { border: 1px solid #364154; background: #1d2432; color: #dce9ff; font-size: 13px; font-weight: 400; } .edit-tab.is-active { border-color: #2e7bb6; background: #17466a; } .record-list { display: grid; gap: 6px; max-height: 38dvh; overflow: auto; } .record-row { position: relative; padding-left: 20px; text-align: left; font-weight: 400; font-size: 13px; border-color: var(--line); background: #1d2432; color: var(--ink); } .record-row-with-thumb { display: inline-flex; align-items: center; gap: 8px; } .faction-record-label { font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75); } .sprite-thumb { image-rendering: pixelated; border: 1px solid #3a465b; border-radius: 4px; background: #0d121b; } .sprite-thumb-list { width: 28px; height: 28px; flex: 0 0 28px; } .sprite-thumb-info { width: 56px; height: 56px; } .sprite-thumb-empty { display: inline-block; } .sprite-preview-field { margin-top: 2px; } .npc-sprite-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; } .npc-sprite-search { margin-bottom: 6px; } .sprite-picker-header { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #2e426c; border-radius: 8px; background: #111d38; cursor: pointer; user-select: none; margin-bottom: 4px; } .sprite-picker-header:hover { background: #172745; } .sprite-picker-header-label { font-size: 12px; color: #9bb5e3; flex-shrink: 0; } .sprite-picker-header-preview { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; } .sprite-picker-header-id { font-size: 12px; color: #d6e7ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sprite-picker-header-chevron { font-size: 10px; color: #6b8fc5; flex-shrink: 0; margin-left: auto; } .npc-sprite-card { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid #364154; background: #1d2432; } .npc-sprite-card.is-active { border-color: #2e7bb6; background: #17466a; box-shadow: 0 0 0 1px rgba(122, 214, 255, 0.4); } .npc-sprite-card-label { font-size: 12px; line-height: 1.2; color: var(--ink); } .sprite-data-editor { display: grid; gap: 10px; margin-top: 4px; justify-items: center; } .sprite-data-card { border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: #141a25; display: grid; gap: 8px; justify-items: center; text-align: center; } .sprite-data-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .sprite-data-head h4 { margin: 0; font-size: 13px; font-weight: 400; } .sprite-palette-list, .sprite-rows-list { display: grid; gap: 6px; } .sprite-paint-swatches { display: flex; flex-wrap: wrap; gap: 6px; } .sprite-tool-row { display: flex; gap: 6px; } .faction-color-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; } .faction-color-row input[type="color"] { width: 44px; height: 34px; padding: 2px; } .sprite-brush { display: none; } .sprite-paint-swatches { display: none; } .sprite-color-current { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid #364154; border-radius: 8px; background: #1d2432; margin-bottom: 4px; } .sprite-color-current-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; } .sprite-color-current-swatch { width: 48px; height: 48px; border: 2px solid #5a6f88; border-radius: 6px; background: #0d121b; } .sprite-color-current-swatch.is-transparent { border-color: #000000; background: transparent; } .sprite-color-current-value { font-family: "Consolas", "Courier New", monospace; font-size: 14px; font-weight: 600; color: var(--accent-strong); } .sprite-painter-grid { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #0d121b; overflow: auto; max-width: 100%; user-select: none; justify-content: center; } .sprite-cell { width: 30px; height: 30px; min-width: 30px; min-height: 30px; padding: 0; border: 1px solid #2f394c; border-radius: 2px; background-color: var(--paint-color, transparent); background-image: linear-gradient(var(--paint-color, transparent), var(--paint-color, transparent)); } .sprite-cell.is-transparent { border-color: #000000; background-color: transparent; background-image: linear-gradient(var(--cell-bg, #c0c0c0), var(--cell-bg, #c0c0c0)), linear-gradient(var(--paint-color, transparent), var(--paint-color, transparent)); background-size: 40px 40px, 100% 100%; background-position: 0 0, 0 0; } .sprite-palette-row, .sprite-row-editor { display: grid; grid-template-columns: 56px 1fr auto; gap: 6px; align-items: center; } .sprite-row-index { color: var(--muted); font-size: 12px; text-align: right; padding-right: 2px; } .record-row.has-pending::before { content: ""; position: absolute; left: 6px; top: 50%; width: 10px; height: 10px; border-radius: 999px; transform: translateY(-50%); background: #37cb69; box-shadow: 0 0 0 1px #102018, 0 0 8px rgba(55, 203, 105, 0.55); } .record-row.is-active { border-color: #2e7bb6; background: #17466a; } .fields-grid { display: grid; gap: 8px; } .color-palette-grid5 { display: grid; grid-template-columns: repeat(5, 45px); grid-auto-rows: 45px; gap: 4px; margin: 8px 0 12px; } .color-pixel-btn { width: 45px; height: 45px; border: 1px solid rgba(255, 255, 255, 0.16); padding: 0; margin: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); cursor: pointer; position: relative; } .color-pixel-btn.is-transparent { border-color: #000000; box-shadow: inset 0 0 0 1px #000000; } .color-pixel-spacer { width: 45px; height: 45px; display: block; } .color-pixel-btn.is-active { outline: 2px solid #8fcaff; outline-offset: 1px; } .color-pixel-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 8px; line-height: 1; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8); pointer-events: none; } .color-palette-editor { max-width: 340px; } .field-row { display: grid; gap: 4px; } .condition-key-mapping { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; } .condition-key-column { min-width: 220px; display: grid; gap: 4px; } .muted { margin: 0; color: var(--muted); font-size: 0.92rem; } .raw-heading { margin-top: 0.35rem; } .dialogue-editor { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; } .dialogue-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.4rem; } .dialogue-editor-head h3 { margin: 0; font-size: 16px; font-weight: 400; } .dialogue-actions { display: flex; gap: 8px; flex-wrap: wrap; } .dialogue-layout { display: grid; grid-template-columns: 260px 1fr; gap: 8px; } .dialogue-node-list { display: grid; gap: 6px; max-height: 30dvh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 8px; } .dialogue-node-fields { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 8px; } .mini-editor { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; } .mini-editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; } .mini-editor-head h4 { margin: 0; font-size: 13px; font-weight: 400; } .flow-add-buttons { display: flex; flex-wrap: wrap; gap: 6px; } .flow-step { border: 1px solid var(--line); border-radius: 9px; background: var(--card); padding: 8px; margin-bottom: 6px; } .flow-step.collapsed { background: var(--card); } .flow-step.drop-target { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 109, 91, 0.18); } .flow-step-collapsed { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.65rem; } .flow-summary, .flow-next-preview { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.88rem; } .flow-next-preview { margin: 0 0 0 auto; text-align: right; max-width: min(46%, 420px); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.85; } .flow-step-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 6px; } .flow-step-toggle { cursor: pointer; } .flow-step-actions { display: flex; gap: 6px; } .flow-expanded-actions { justify-content: flex-end; margin-bottom: 0; } .flow-step-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 6px; } .mini-row { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)) auto auto auto; gap: 0.35rem; align-items: center; margin-bottom: 0.35rem; } .inline-check { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.9rem; } .condition-composite { display: grid; grid-template-columns: 1fr 80px; gap: 0.3rem; } .dialogue-sim { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 8px; } .dialogue-sim-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 6px; } .dialogue-sim-head h3 { margin: 0; font-size: 1rem; } .sandbox-row { display: grid; grid-template-columns: auto auto auto auto auto minmax(80px, 110px); gap: 6px; align-items: center; margin-bottom: 6px; } .sim-box { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 8px; display: grid; gap: 6px; } .sim-node { margin: 0; color: var(--muted); font-size: 0.9rem; } .sim-text { margin: 0; white-space: pre-wrap; } .sim-choices { display: grid; gap: 0.35rem; } .sim-choices button { text-align: left; } @media (max-width: 720px) { .page-shell { width: 96vw; margin: 1rem auto; } .workspace-card, .header-card { border-radius: 10px; } .header-card { align-items: flex-start; flex-direction: column; } .header-map-editor-btn { min-width: 0; width: 100%; } .json-editor { min-height: 28dvh; } .structured-layout { grid-template-columns: 1fr; } .record-list { max-height: 26dvh; } .dialogue-layout { grid-template-columns: 1fr; } .dialogue-node-list { max-height: 24dvh; } .sandbox-row { grid-template-columns: auto auto; } .mini-row { grid-template-columns: 1fr; } .flow-step-grid { grid-template-columns: 1fr; } } /* ========================================================= Map Editor Panels ========================================================= */ .map-layout-panel { display: flex; flex-direction: column; gap: 16px; } .map-rows-field { display: flex; flex-direction: column; gap: 4px; } .map-rows-field > label { font-size: 13px; font-weight: 600; color: #c8d9ff; } .map-rows-textarea { font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.4; background: #0a1020; color: #c8deff; border: 1px solid #2e426c; border-radius: 8px; padding: 10px 12px; resize: vertical; min-height: 280px; white-space: pre; overflow: auto; width: 100%; tab-size: 1; } .map-rows-textarea:focus { outline: none; border-color: #6fc2ff; } .map-preview-panel { .map-modal-backdrop { position: fixed; inset: 0; background: rgba(4, 8, 20, 0.82); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(2px); } .map-modal { display: flex; flex-direction: column; width: min(96vw, 1280px); height: min(92vh, 900px); background: #0d1528; border: 1px solid #3a5080; border-radius: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7); overflow: hidden; } .map-modal-titlebar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: linear-gradient(90deg, #152240 0%, #0f1c38 100%); border-bottom: 1px solid #2d4270; flex-shrink: 0; } .map-modal-title { font-size: 14px; color: #dce8ff; } .map-modal-meta { display: flex; gap: 12px; font-size: 12px; margin-left: auto; } .map-modal-close { border: 1px solid #3d5080; border-radius: 6px; background: #1a2e55; color: #d0deff; font-size: 18px; line-height: 1; padding: 2px 8px; cursor: pointer; margin-left: 8px; flex-shrink: 0; } .map-modal-close:hover { background: #8b0000; border-color: #c0392b; color: #fff; } .map-modal-viewport { flex: 1; max-height: none !important; min-height: 0 !important; border-radius: 0 !important; border-left: none !important; border-right: none !important; border-bottom: none !important; } .map-preview-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px; background: #0d1528; border: 1px solid #2b3a5c; border-radius: 8px; } .map-legend-entry { display: flex; align-items: center; gap: 5px; } .map-legend-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.15); flex-shrink: 0; } .map-legend-label { font-size: 11px; color: #a8bde8; } .map-preview-viewport { overflow: auto; max-height: 62vh; min-height: 200px; border: 1px solid #2e426c; border-radius: 8px; background: #060a14; cursor: crosshair; user-select: none; } .map-preview-viewport canvas { display: block; }