1046 lines
28 KiB
CSS
1046 lines
28 KiB
CSS
/* CSS split file; preserve manifest load order. */
|
|
@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&family=M+PLUS+Rounded+1c:wght@400;500;700&family=Yomogi&display=swap");
|
|
|
|
:root {
|
|
--bg: #f7f5ec;
|
|
--panel: rgba(255,251,245,0.90);
|
|
--ink: #2a241d;
|
|
--muted: #756a5e;
|
|
--line: rgba(84, 68, 48, 0.18);
|
|
--accent: #9ce84b;
|
|
--accent-2: #f5a8b7;
|
|
--danger: #b64545;
|
|
--shadow: 0 18px 50px rgba(64, 48, 32, 0.14);
|
|
--radius: 18px;
|
|
--bubble-font: "Yomogi", "Zen Maru Gothic", "M PLUS Rounded 1c", ui-rounded, sans-serif;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
|
|
background:
|
|
radial-gradient(circle at 12% 0%, rgba(168, 228, 113, 0.28), transparent 33%),
|
|
radial-gradient(circle at 88% 8%, rgba(255, 222, 147, 0.24), transparent 28%),
|
|
radial-gradient(circle at 82% 90%, rgba(126, 181, 120, 0.16), transparent 34%),
|
|
linear-gradient(180deg, #dff0ff 0%, #edf8ff 12%, #f9f6eb 46%, var(--bg) 100%);
|
|
color: var(--ink);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
button {
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
.loading-panel {
|
|
width: min(420px, 92vw);
|
|
padding: 24px 22px;
|
|
border-radius: 24px;
|
|
border: 1px solid rgba(84, 68, 48, 0.16);
|
|
background: rgba(255, 252, 246, 0.92);
|
|
box-shadow: 0 18px 48px rgba(64, 48, 32, 0.16);
|
|
text-align: center;
|
|
}
|
|
|
|
#app {
|
|
width: min(1480px, 100vw);
|
|
margin: 0 auto;
|
|
padding: 18px;
|
|
position: relative;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.top-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: nowrap;
|
|
min-width: 0;
|
|
}
|
|
|
|
.room-link {
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
background: rgba(255,255,255,0.86);
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-size: clamp(24px, 3.4vw, 42px);
|
|
letter-spacing: 0.03em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
.speed-select-native { display: none; }
|
|
.speed-menu { position: relative; display: inline-block; }
|
|
.speed-menu-btn { min-width: 92px; text-align: center; white-space: nowrap; }
|
|
|
|
.top-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex: 0 0 auto;
|
|
flex-wrap: nowrap;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn, .tool {
|
|
border: 1px solid var(--line);
|
|
background: rgba(255,255,255,0.76);
|
|
border-radius: 999px;
|
|
padding: 8px 11px;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 14px rgba(80,60,40,0.06);
|
|
transition: transform 130ms ease, background 130ms ease, border-color 130ms ease;
|
|
user-select: none;
|
|
}
|
|
|
|
.btn:hover, .tool:hover { transform: translateY(-1px); background: #fff; }
|
|
.btn:active, .tool:active { transform: translateY(1px); }
|
|
|
|
.btn.primary {
|
|
background: linear-gradient(180deg, #a9ef5d, #8bdc3f);
|
|
border-color: rgba(89, 128, 47, 0.28);
|
|
}
|
|
|
|
.btn.danger {
|
|
color: #7a2828;
|
|
}
|
|
|
|
.layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(520px, 1fr) 380px;
|
|
gap: 16px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.stage-wrap {
|
|
position: relative;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.46), rgba(246, 240, 228, 0.56));
|
|
border: 1px solid rgba(84, 68, 48, 0.12);
|
|
border-radius: calc(var(--radius) + 8px);
|
|
overflow: hidden;
|
|
box-shadow: 0 16px 42px rgba(42, 45, 80, 0.12), inset 0 0 0 1px rgba(255,255,255,0.24);
|
|
min-height: var(--field-min-height, 620px);
|
|
}
|
|
|
|
#gameCanvas {
|
|
width: 100%;
|
|
height: var(--field-height, calc(100vh - 140px));
|
|
min-height: var(--field-min-height, 620px);
|
|
display: block;
|
|
cursor: crosshair;
|
|
background: linear-gradient(180deg, #cfe3d3, #d9d0ad);
|
|
}
|
|
|
|
.field-dialog {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 30;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 18px;
|
|
background: rgba(34, 29, 22, 0.38);
|
|
backdrop-filter: blur(3px);
|
|
}
|
|
.field-dialog.hidden { display: none; }
|
|
.field-dialog-panel {
|
|
width: min(440px, 100%);
|
|
max-height: calc(100vh - 36px);
|
|
overflow: auto;
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
background: rgba(255, 252, 245, 0.96);
|
|
border: 1px solid rgba(84,68,48,0.16);
|
|
box-shadow: 0 18px 46px rgba(40, 32, 24, 0.22);
|
|
}
|
|
.field-dialog-panel h2 {
|
|
margin: 0 0 12px;
|
|
font-size: 17px;
|
|
}
|
|
.field-choice-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px;
|
|
}
|
|
.field-choice {
|
|
min-height: 74px;
|
|
border: 1px solid rgba(84,68,48,0.16);
|
|
border-radius: 12px;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(241,235,221,0.72));
|
|
cursor: pointer;
|
|
color: var(--ink);
|
|
}
|
|
.field-choice:hover { border-color: rgba(112,178,66,0.45); }
|
|
.field-choice.active,
|
|
.field-choice[aria-pressed="true"] {
|
|
border-color: rgba(112,178,66,0.72);
|
|
box-shadow: 0 0 0 2px rgba(112,178,66,0.18), inset 0 0 0 1px rgba(255,255,255,0.64);
|
|
background: linear-gradient(180deg, rgba(248,255,240,0.96), rgba(231,246,210,0.82));
|
|
}
|
|
.field-choice strong, .field-choice span { display: block; }
|
|
.field-choice strong { font-size: 15px; }
|
|
.field-choice span { margin-top: 4px; color: var(--muted); font-size: 12px; }
|
|
.field-dialog-lead {
|
|
margin: -4px 0 12px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
.field-dialog-section-title {
|
|
margin: 12px 0 7px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: rgba(75,62,43,0.78);
|
|
}
|
|
.reset-dialog-panel { width: min(760px, 100%); }
|
|
.reset-preset-choice-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
.reset-preset-choice-grid .field-choice { min-height: 66px; padding: 7px 5px; }
|
|
.field-dialog-actions {
|
|
margin-top: 12px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
.archive-reset-dialog-panel {
|
|
width: min(420px, 100%);
|
|
}
|
|
.archive-reset-actions {
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
.archive-reset-actions .btn {
|
|
min-width: 132px;
|
|
}
|
|
|
|
.ecology-dialog-panel {
|
|
width: min(760px, 100%);
|
|
max-height: calc(100vh - 36px);
|
|
overflow-y: auto;
|
|
overscroll-behavior: auto;
|
|
}
|
|
.ecology-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px;
|
|
}
|
|
.ecology-card {
|
|
display: grid;
|
|
grid-template-columns: 72px minmax(0, 1fr);
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 10px;
|
|
border-radius: 14px;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(243,237,225,0.76));
|
|
border: 1px solid rgba(84,68,48,0.12);
|
|
}
|
|
.ecology-card img {
|
|
width: 72px;
|
|
height: 72px;
|
|
object-fit: contain;
|
|
filter: drop-shadow(0 8px 18px rgba(56, 44, 32, 0.10));
|
|
}
|
|
.ecology-card strong {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
font-size: 15px;
|
|
}
|
|
.ecology-card p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.40;
|
|
}
|
|
|
|
.toast {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 22px;
|
|
transform: translateX(-50%);
|
|
background: rgba(42,36,29,0.86);
|
|
color: white;
|
|
padding: 10px 16px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
pointer-events: none;
|
|
opacity: 1;
|
|
transition: opacity 200ms ease, transform 200ms ease;
|
|
}
|
|
.toast.hidden { opacity: 0; transform: translateX(-50%) translateY(8px); }
|
|
|
|
.panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
height: calc(100vh - 120px);
|
|
max-height: calc(100vh - 120px);
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding-right: 3px;
|
|
}
|
|
|
|
.card {
|
|
position: relative;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 14px;
|
|
box-shadow: 0 10px 30px rgba(64, 48, 32, 0.08);
|
|
backdrop-filter: blur(10px);
|
|
position: relative;
|
|
}
|
|
|
|
.card h2 {
|
|
margin: 0 0 12px;
|
|
font-size: 17px;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.tool-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0,1fr));
|
|
gap: 6px;
|
|
}
|
|
|
|
.tool {
|
|
--tool-main-icon-size: 28px;
|
|
--tool-icon-zoom: 1.05;
|
|
--tool-watermark-size: 0px;
|
|
border-radius: 12px;
|
|
display: grid;
|
|
grid-template-columns: 31px minmax(0,1fr);
|
|
align-items: center;
|
|
justify-items: stretch;
|
|
gap: 2px;
|
|
padding: 3px 3px 3px 2px;
|
|
min-height: 47px;
|
|
font-size: 11.4px;
|
|
line-height: 1.06;
|
|
letter-spacing: -0.015em;
|
|
text-align: left;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background-repeat: no-repeat;
|
|
background-position: left 3px center, center;
|
|
background-size: var(--tool-main-icon-size) var(--tool-main-icon-size), cover;
|
|
}
|
|
.tool::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 3px;
|
|
top: 50%;
|
|
width: var(--tool-main-icon-size);
|
|
height: var(--tool-main-icon-size);
|
|
transform: translateY(-50%) scale(var(--tool-icon-zoom, 1));
|
|
transform-origin: center;
|
|
background: var(--tool-icon) center / contain no-repeat;
|
|
opacity: 0.98;
|
|
z-index: 1;
|
|
filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12));
|
|
}
|
|
.tool::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: none;
|
|
display: none;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
.tool-label {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: block;
|
|
grid-column: 2;
|
|
align-self: center;
|
|
justify-self: start;
|
|
max-width: 100%;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
font-size: 11.4px;
|
|
line-height: 1.08;
|
|
font-weight: 700;
|
|
max-width: 5.35em;
|
|
word-break: normal;
|
|
overflow-wrap: anywhere;
|
|
text-shadow: 0 1px 0 rgba(255,255,255,0.62);
|
|
}
|
|
|
|
.tool.tool-has-canvas-icon { --tool-icon: none; grid-template-columns: 31px minmax(0,1fr); min-height: 47px; padding-top: 4px; }
|
|
|
|
.tool.tool-has-canvas-icon::before,
|
|
.tool.tool-has-canvas-icon::after { background: none !important; }
|
|
.tool-sprite-preview {
|
|
position: absolute;
|
|
left: 1px;
|
|
top: 50%;
|
|
width: 30px;
|
|
height: 30px;
|
|
transform: translateY(-50%);
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12));
|
|
}
|
|
.tool[data-tool="giant_drug"] .tool-sprite-preview { width: 39px; height: 39px; left: -4px; }
|
|
.tool[data-tool="dwarf_drug"] .tool-sprite-preview,
|
|
.tool[data-tool="oshibyo"] .tool-sprite-preview { width: 22px; height: 22px; left: 5px; }
|
|
.tool.tool-has-physics-icon .tool-physics-preview { width: 31px; height: 31px; left: 0; filter: drop-shadow(0 1px 2px rgba(52,40,26,0.16)); }
|
|
.tool[data-tool="poke"], .tool[data-tool="water_hose"] { --tool-icon-zoom: 0.92; }
|
|
|
|
.signboard-editor {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 42;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 18px;
|
|
background: rgba(34, 29, 22, 0.34);
|
|
backdrop-filter: blur(3px);
|
|
}
|
|
.signboard-editor.hidden { display: none; }
|
|
.signboard-editor-panel {
|
|
width: min(220px, calc(100vw - 28px));
|
|
border-radius: 12px;
|
|
padding: 14px;
|
|
background: linear-gradient(180deg, rgba(255,253,247,0.98), rgba(245,237,221,0.96));
|
|
border: 1px solid rgba(94, 70, 42, 0.20);
|
|
box-shadow: 0 22px 60px rgba(36, 28, 20, 0.28), inset 0 1px 0 rgba(255,255,255,0.72);
|
|
max-height: calc(100dvh - 36px);
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.signboard-editor-titlebar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin: 0 0 10px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid rgba(94, 70, 42, 0.13);
|
|
}
|
|
.signboard-editor-titlebar h2 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
letter-spacing: .03em;
|
|
}
|
|
.signboard-editor-close {
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(84,68,48,0.16);
|
|
background: rgba(255,255,255,0.72);
|
|
color: var(--ink);
|
|
font-size: 19px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
.signboard-editor-close:hover { background: rgba(255,248,232,0.96); }
|
|
#signboardEditorText {
|
|
width: 7.4em;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
display: block;
|
|
margin: 0 auto;
|
|
resize: none;
|
|
min-height: 88px;
|
|
max-height: 88px;
|
|
overflow: hidden;
|
|
white-space: pre;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(84,68,48,0.18);
|
|
background: rgba(255,255,255,0.84);
|
|
padding: 10px 11px;
|
|
color: var(--ink);
|
|
font: 15px/1.55 ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
|
|
letter-spacing: 0.03em;
|
|
outline: none;
|
|
}
|
|
#signboardEditorText:focus {
|
|
border-color: rgba(112,178,66,0.54);
|
|
box-shadow: 0 0 0 3px rgba(112,178,66,0.14);
|
|
}
|
|
.signboard-editor-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2px 8px;
|
|
justify-content: space-between;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
margin: 6px 2px 0;
|
|
}
|
|
.signboard-editor-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.robot-cleaner-editor-panel { width: min(300px, calc(100vw - 28px)); }
|
|
.robot-cleaner-editor-help {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
margin: 0 2px 10px;
|
|
}
|
|
.robot-cleaner-targets {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin: 8px 0 2px;
|
|
}
|
|
.robot-cleaner-targets label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
border-radius: 10px;
|
|
background: rgba(255,255,255,0.58);
|
|
border: 1px solid rgba(84,68,48,0.11);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
.robot-cleaner-targets input { accent-color: #70b242; }
|
|
|
|
/* v16.07.08: right menu fixed quick tabs */
|
|
.panel-quick-tabs {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 12;
|
|
display: grid;
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
gap: 6px;
|
|
padding: 8px 4px 9px;
|
|
margin: -2px 0 2px;
|
|
background: linear-gradient(180deg, rgba(244, 250, 247, 0.96), rgba(244, 250, 247, 0.78));
|
|
border-bottom: 1px solid rgba(102, 169, 215, 0.34);
|
|
box-shadow: 0 8px 16px rgba(79, 103, 121, 0.10);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
.panel-quick-tabs button {
|
|
min-width: 0;
|
|
border: 1px solid rgba(102, 169, 215, 0.34);
|
|
border-radius: 999px;
|
|
padding: 7px 5px;
|
|
background: rgba(255,255,255,0.76);
|
|
color: var(--ink);
|
|
font-size: 11px;
|
|
line-height: 1.1;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
box-shadow: 0 3px 9px rgba(68, 92, 110, 0.08);
|
|
}
|
|
.panel-quick-tabs button:hover,
|
|
.panel-quick-tabs button.active {
|
|
background: #efffde;
|
|
border-color: rgba(103,178,44,0.46);
|
|
}
|
|
|
|
.rotator-editor {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 43;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 18px;
|
|
background: rgba(34, 29, 22, 0.34);
|
|
backdrop-filter: blur(3px);
|
|
}
|
|
.rotator-editor.hidden { display: none; }
|
|
.rotator-editor-panel {
|
|
width: min(620px, calc(100vw - 28px));
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
background: linear-gradient(180deg, rgba(255,253,247,0.98), rgba(245,237,221,0.97));
|
|
border: 1px solid rgba(94, 70, 42, 0.20);
|
|
box-shadow: 0 22px 60px rgba(36, 28, 20, 0.28), inset 0 1px 0 rgba(255,255,255,0.72);
|
|
max-height: calc(100dvh - 36px);
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.rotator-editor-titlebar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid rgba(94, 70, 42, 0.13);
|
|
}
|
|
.rotator-editor-titlebar h2 { margin: 0; font-size: 16px; letter-spacing: .03em; }
|
|
.rotator-editor-close {
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(84,68,48,0.16);
|
|
background: rgba(255,255,255,0.72);
|
|
color: var(--ink);
|
|
font-size: 19px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
.rotator-editor-close:hover { background: rgba(255,248,232,0.96); }
|
|
.rotator-editor-controls {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.rotator-editor-controls label {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr 72px auto;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
color: var(--ink);
|
|
}
|
|
.rotator-editor-controls input[type="number"] {
|
|
width: 72px;
|
|
box-sizing: border-box;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(84,68,48,0.18);
|
|
background: rgba(255,255,255,0.84);
|
|
padding: 4px 6px;
|
|
}
|
|
|
|
|
|
.pressure-numeric-control[hidden] { display: none; }
|
|
.pressure-numeric-control {
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: 10px 10px 8px;
|
|
border-radius: 11px;
|
|
border: 1px solid rgba(84,68,48,0.13);
|
|
background: rgba(255,255,255,0.58);
|
|
}
|
|
.pressure-value-slider {
|
|
width: calc(100% - 14px);
|
|
height: 34px;
|
|
margin: 0 7px;
|
|
padding: 0;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background: transparent;
|
|
}
|
|
.pressure-value-slider::-webkit-slider-runnable-track {
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
background: rgba(67,158,218,0.78);
|
|
box-shadow: inset 0 1px 2px rgba(43,55,66,0.16);
|
|
}
|
|
.pressure-value-slider::-webkit-slider-thumb {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-top: -7px;
|
|
border-radius: 50%;
|
|
border: 2px solid rgba(42,121,172,0.88);
|
|
background: #fafdff;
|
|
box-shadow: 0 2px 6px rgba(42,78,104,0.24);
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
cursor: grab;
|
|
}
|
|
.pressure-value-slider::-moz-range-track {
|
|
height: 6px;
|
|
border: 0;
|
|
border-radius: 999px;
|
|
background: rgba(67,158,218,0.78);
|
|
box-shadow: inset 0 1px 2px rgba(43,55,66,0.16);
|
|
}
|
|
.pressure-value-slider::-moz-range-thumb {
|
|
width: 17px;
|
|
height: 17px;
|
|
border-radius: 50%;
|
|
border: 2px solid rgba(42,121,172,0.88);
|
|
background: #fafdff;
|
|
box-shadow: 0 2px 6px rgba(42,78,104,0.24);
|
|
cursor: grab;
|
|
}
|
|
.pressure-value-slider:focus-visible::-webkit-slider-thumb {
|
|
outline: 3px solid rgba(73,157,216,0.30);
|
|
outline-offset: 2px;
|
|
}
|
|
.pressure-value-slider:focus-visible::-moz-range-thumb {
|
|
outline: 3px solid rgba(73,157,216,0.30);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.pressure-time-control[hidden] { display: none; }
|
|
.pressure-spatial-control[hidden] { display: none; }
|
|
.pressure-time-control {
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: 10px 10px 8px;
|
|
border-radius: 11px;
|
|
border: 1px solid rgba(84,68,48,0.13);
|
|
background: rgba(255,255,255,0.58);
|
|
}
|
|
.pressure-time-summary {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
color: var(--ink);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
.pressure-time-summary output {
|
|
display: inline-block;
|
|
min-width: 42px;
|
|
text-align: center;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.pressure-time-range {
|
|
position: relative;
|
|
height: 34px;
|
|
margin: 0 7px;
|
|
}
|
|
.pressure-time-track {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 14px;
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
background: rgba(94,112,128,0.22);
|
|
box-shadow: inset 0 1px 2px rgba(43,55,66,0.16);
|
|
}
|
|
.pressure-time-thumb {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 34px;
|
|
margin: 0;
|
|
padding: 0;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background: transparent;
|
|
pointer-events: none;
|
|
}
|
|
.pressure-time-thumb::-webkit-slider-runnable-track {
|
|
height: 6px;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
.pressure-time-thumb::-webkit-slider-thumb {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-top: -7px;
|
|
border-radius: 50%;
|
|
border: 2px solid rgba(42,121,172,0.88);
|
|
background: #fafdff;
|
|
box-shadow: 0 2px 6px rgba(42,78,104,0.24);
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
pointer-events: auto;
|
|
cursor: grab;
|
|
}
|
|
.pressure-time-thumb::-moz-range-track {
|
|
height: 6px;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
.pressure-time-thumb::-moz-range-thumb {
|
|
width: 17px;
|
|
height: 17px;
|
|
border-radius: 50%;
|
|
border: 2px solid rgba(42,121,172,0.88);
|
|
background: #fafdff;
|
|
box-shadow: 0 2px 6px rgba(42,78,104,0.24);
|
|
pointer-events: auto;
|
|
cursor: grab;
|
|
}
|
|
.pressure-time-thumb:focus-visible::-webkit-slider-thumb {
|
|
outline: 3px solid rgba(73,157,216,0.30);
|
|
outline-offset: 2px;
|
|
}
|
|
.pressure-time-thumb:focus-visible::-moz-range-thumb {
|
|
outline: 3px solid rgba(73,157,216,0.30);
|
|
outline-offset: 2px;
|
|
}
|
|
.pressure-time-thumb-start { z-index: 2; }
|
|
.pressure-time-thumb-end { z-index: 3; }
|
|
.pressure-time-range[data-wraps="1"] .pressure-time-thumb-start { z-index: 4; }
|
|
.signal-channel-label {
|
|
font-size: 13px;
|
|
color: var(--ink);
|
|
font-weight: 700;
|
|
}
|
|
.signal-channel-picker {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(44px, 1fr));
|
|
gap: 7px;
|
|
}
|
|
.signal-channel-picker button {
|
|
min-height: 38px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(84,68,48,0.18);
|
|
background: rgba(255,255,255,0.78);
|
|
color: var(--ink);
|
|
font: 700 14px ui-rounded, sans-serif;
|
|
cursor: pointer;
|
|
}
|
|
.signal-channel-picker button:hover { background: rgba(255,248,232,0.98); }
|
|
.signal-channel-picker button.active {
|
|
background: rgba(78,179,224,0.22);
|
|
border-color: rgba(42,133,184,0.58);
|
|
box-shadow: inset 0 0 0 1px rgba(42,133,184,0.18);
|
|
}
|
|
.rotator-editor-tools {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.rotator-editor-tools button {
|
|
border: 1px solid rgba(84,68,48,0.16);
|
|
background: rgba(255,255,255,0.74);
|
|
color: var(--ink);
|
|
border-radius: 999px;
|
|
padding: 5px 10px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
.rotator-editor-tools button.active {
|
|
background: rgba(137, 101, 198, 0.18);
|
|
border-color: rgba(112, 80, 170, 0.38);
|
|
font-weight: 700;
|
|
}
|
|
#rotatorCanvas,
|
|
#reciprocatorCanvas {
|
|
width: 100%;
|
|
height: min(58vh, 360px);
|
|
display: block;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(84,68,48,0.20);
|
|
background: #f7f3ea;
|
|
touch-action: none;
|
|
cursor: crosshair;
|
|
}
|
|
.rotator-editor-hint {
|
|
margin: 7px 2px 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.rotator-editor-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
@media (max-width: 560px) {
|
|
.rotator-editor {
|
|
place-items: start center;
|
|
padding: 8px;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.rotator-editor-panel {
|
|
width: calc(100vw - 16px);
|
|
max-height: calc(100dvh - 16px);
|
|
padding: 10px;
|
|
}
|
|
.rotator-editor-controls label { grid-template-columns: 1fr; align-items: stretch; }
|
|
.rotator-editor-tools { max-height: 22vh; overflow-y: auto; padding-right: 2px; }
|
|
#rotatorCanvas, #reciprocatorCanvas { height: min(44vh, 270px); }
|
|
}
|
|
|
|
.fan-editor-panel { width: min(430px, calc(100vw - 28px)); }
|
|
.fan-editor-help {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
margin: 0 2px 10px;
|
|
}
|
|
.fan-editor-controls label {
|
|
grid-template-columns: 56px 1fr 72px auto;
|
|
}
|
|
.fan-editor-controls .fan-editor-check {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
border-radius: 10px;
|
|
background: rgba(255,255,255,0.58);
|
|
border: 1px solid rgba(84,68,48,0.11);
|
|
}
|
|
.fan-editor-controls input[type="checkbox"] { accent-color: #70aee8; }
|
|
@media (max-width: 560px) {
|
|
.fan-editor-controls label { grid-template-columns: 1fr; align-items: stretch; }
|
|
.fan-editor-panel { width: calc(100vw - 16px); }
|
|
}
|
|
|
|
/* v39.15.130: only in-game overlay windows scroll when they exceed the viewport.
|
|
Right-panel cards and tool categories intentionally keep the older stable layout. */
|
|
.field-dialog,
|
|
.signboard-editor,
|
|
.rotator-editor {
|
|
overflow: auto;
|
|
overscroll-behavior: contain;
|
|
-webkit-overflow-scrolling: touch;
|
|
align-items: flex-start;
|
|
justify-items: center;
|
|
box-sizing: border-box;
|
|
padding: 12px;
|
|
}
|
|
|
|
.field-dialog-panel,
|
|
.signboard-editor-panel,
|
|
.rotator-editor-panel {
|
|
max-height: calc(100dvh - 24px);
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
overscroll-behavior: contain;
|
|
-webkit-overflow-scrolling: touch;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.save-confirm-dialog { z-index: 36; }
|
|
.save-confirm-panel { width: min(390px, 100%); }
|
|
.save-confirm-message { margin-bottom: 8px; color: var(--ink); font-size: 14px; }
|
|
|
|
/* Logic-board editor */
|
|
.circuit-board-editor{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:18px;background:rgba(18,22,27,.58);backdrop-filter:blur(3px)}
|
|
.circuit-board-editor.hidden{display:none}
|
|
.circuit-board-panel{width:min(980px,96vw);max-height:92vh;overflow:hidden;background:rgba(250,249,244,.98);color:#2e3531;border:1px solid rgba(44,74,57,.35);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.35);display:flex;flex-direction:column}
|
|
.circuit-board-titlebar{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:linear-gradient(135deg,#235b3a,#347b50);color:white}
|
|
.circuit-board-titlebar h2{margin:0;font-size:1.18rem}
|
|
.circuit-board-titlebar button{border:0;background:transparent;color:white;font-size:1.7rem;line-height:1;cursor:pointer}
|
|
.circuit-board-help{margin:12px 18px 6px;font-size:.88rem;color:#536059}
|
|
.circuit-board-layout{display:grid;grid-template-columns:minmax(280px,42%) minmax(360px,58%);gap:14px;padding:10px 18px;min-height:0;flex:1}
|
|
.circuit-board-preview{align-self:start;background:#17231c;border-radius:14px;padding:10px;min-height:250px;position:sticky;top:0}
|
|
.circuit-board-preview svg{width:100%;height:auto;display:block}
|
|
.circuit-preview-lines path{fill:none;stroke:#d7b84d;stroke-width:2.4}
|
|
.circuit-preview-gates rect{fill:#26352d;stroke:#d9e9dd;stroke-width:1.3}.circuit-preview-gates text{fill:#f4f7f2;text-anchor:middle;font:700 11px sans-serif}
|
|
.circuit-preview-pins circle{fill:#73c8ff;stroke:#f4f1d6;stroke-width:1.2}.circuit-preview-pins circle:nth-of-type(n+4){fill:#ff9a60}.circuit-preview-pins text{fill:#eef4ef;font:700 11px sans-serif}
|
|
.circuit-board-scroll{overflow:auto;padding-right:4px}.circuit-board-scroll section{margin:0 0 14px;padding:12px;border:1px solid rgba(45,83,60,.18);border-radius:12px;background:white}.circuit-board-scroll h3{margin:0 0 10px;font-size:.94rem}
|
|
.circuit-port-row,.circuit-gate-row,.circuit-output-row{display:grid;grid-template-columns:minmax(72px,1fr) auto auto auto;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid rgba(0,0,0,.07)}
|
|
.circuit-port-row:last-child,.circuit-gate-row:last-child,.circuit-output-row:last-child{border-bottom:0}.circuit-port-row label,.circuit-gate-row label{display:flex;align-items:center;gap:4px;font-size:.8rem}
|
|
.circuit-board-panel select,.circuit-board-panel button{font:inherit}.circuit-board-panel select{padding:5px 7px;border:1px solid rgba(37,77,53,.27);border-radius:7px;background:white}
|
|
.circuit-gate-actions{display:flex;gap:7px;margin-bottom:8px}.circuit-gate-actions button,.circuit-gate-row button,.circuit-board-actions button{padding:7px 12px;border:1px solid rgba(38,82,54,.26);border-radius:9px;background:#f1f5f1;cursor:pointer}.circuit-gate-row button{padding:4px 9px;color:#a13f3f}
|
|
.circuit-empty{margin:6px 0;color:#7a837d;font-size:.84rem}.circuit-output-row{grid-template-columns:50px 1fr}.circuit-board-actions{display:flex;justify-content:flex-end;gap:9px;padding:12px 18px 16px;border-top:1px solid rgba(0,0,0,.09)}.circuit-board-actions .primary{background:#2e754b;color:white;border-color:#245f3d}
|
|
@media(max-width:760px){.circuit-board-layout{grid-template-columns:1fr}.circuit-board-preview{position:relative;min-height:180px}.circuit-port-row,.circuit-gate-row{grid-template-columns:1fr 1fr}.circuit-gate-row button{justify-self:end}.circuit-board-panel{max-height:96vh}}
|
|
|
|
/* Grid circuit editor reuses the mechanical editor shell and toolbar. */
|
|
.circuit-grid-panel { width: min(930px, calc(100vw - 28px)); }
|
|
.circuit-grid-tools { max-height: none; overflow: visible; }
|
|
.circuit-grid-canvas-wrap {
|
|
max-width: 100%;
|
|
max-height: min(62vh, 560px);
|
|
overflow: auto;
|
|
padding: 6px;
|
|
border-radius: 12px;
|
|
background: rgba(20,35,27,0.35);
|
|
}
|
|
#circuitGridCanvas {
|
|
width: auto;
|
|
height: auto;
|
|
max-width: none;
|
|
display: block;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(84,68,48,0.20);
|
|
background: #14231b;
|
|
touch-action: none;
|
|
cursor: crosshair;
|
|
}
|
|
.circuit-grid-hint { line-height: 1.55; }
|
|
@media (max-width: 560px) {
|
|
.circuit-grid-panel { width: calc(100vw - 16px); }
|
|
.circuit-grid-tools { max-height: 20vh; overflow-y: auto; }
|
|
.circuit-grid-canvas-wrap { max-height: min(48vh, 360px); }
|
|
#circuitGridCanvas { max-width: none; }
|
|
}
|
|
|
|
/* v39.16.69: circuit terminal count controls and detector numeric range inputs. */
|
|
.circuit-port-count-controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin: 0 0 10px;
|
|
}
|
|
.circuit-port-count-controls label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 7px 9px;
|
|
border: 1px solid rgba(84,68,48,0.14);
|
|
border-radius: 10px;
|
|
background: rgba(255,255,255,0.56);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
.circuit-port-count-controls button {
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 0;
|
|
border: 1px solid rgba(38,82,54,.26);
|
|
border-radius: 8px;
|
|
background: #f1f5f1;
|
|
cursor: pointer;
|
|
}
|
|
.circuit-port-count-controls input {
|
|
width: 54px;
|
|
min-height: 30px;
|
|
padding: 3px 6px;
|
|
border: 1px solid rgba(37,77,53,.27);
|
|
border-radius: 7px;
|
|
background: white;
|
|
text-align: center;
|
|
font: inherit;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.pressure-number-inputs {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
.pressure-number-inputs label {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(72px, 1fr);
|
|
align-items: center;
|
|
gap: 7px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
.pressure-number-inputs input {
|
|
width: 100%;
|
|
min-width: 0;
|
|
padding: 6px 8px;
|
|
border: 1px solid rgba(42,121,172,0.28);
|
|
border-radius: 8px;
|
|
background: rgba(255,255,255,0.92);
|
|
color: var(--ink);
|
|
font: inherit;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
@media (max-width: 560px) {
|
|
.circuit-port-count-controls { display: grid; grid-template-columns: 1fr; }
|
|
.circuit-port-count-controls label { justify-content: space-between; }
|
|
}
|
|
|
|
/* v39.16.70: resizable circuit board and movable junctions. */
|
|
.circuit-port-count-controls label:nth-child(-n+2){background:rgba(236,246,239,.82)}
|