Double-clicking a knob opens an inline text input for precise value entry. Enter confirms, Escape cancels, blur auto-commits. Value is clamped to the knob's min/max range. Styled to match the synth theme. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
569 lines
21 KiB
CSS
569 lines
21 KiB
CSS
/* ===== Reset & Base ===== */
|
|
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
:root {
|
|
--bg: #08080f;
|
|
--panel: #0e0e1a;
|
|
--surface: #14142a;
|
|
--surface2: #1a1a35;
|
|
--border: #252545;
|
|
--text: #c8cce0;
|
|
--text2: #6668a0;
|
|
--accent: #00e5ff;
|
|
--accent2: #ff6644;
|
|
--green: #44ff88;
|
|
--yellow: #ffcc00;
|
|
--purple: #aa55ff;
|
|
--red: #ff4466;
|
|
--wire-audio: #00e5ff;
|
|
--wire-control: #ff6644;
|
|
--wire-trigger: #ffcc00;
|
|
--knob-track: #333;
|
|
--knob-fill: #00e5ff;
|
|
--module-w: 180;
|
|
--port-r: 6;
|
|
}
|
|
|
|
html, body, #root {
|
|
width: 100%; height: 100%; overflow: hidden;
|
|
background: var(--bg); color: var(--text);
|
|
font-family: 'Inter', 'SF Pro', -apple-system, system-ui, sans-serif;
|
|
font-size: 12px;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* ===== Layout ===== */
|
|
.app { display: flex; flex-direction: column; height: 100vh; }
|
|
|
|
.toolbar {
|
|
height: 40px; background: var(--panel); border-bottom: 1px solid var(--border);
|
|
display: flex; align-items: center; padding: 0 12px; gap: 8px; flex-shrink: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.toolbar-title {
|
|
font-weight: 700; font-size: 14px; color: var(--accent);
|
|
letter-spacing: 1px; text-transform: uppercase; margin-right: 16px;
|
|
}
|
|
|
|
.toolbar-btn {
|
|
padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px;
|
|
background: var(--surface); color: var(--text2); cursor: pointer;
|
|
font-size: 11px; font-weight: 500; transition: all 0.15s;
|
|
font-family: inherit;
|
|
}
|
|
.toolbar-btn:hover { border-color: var(--accent); color: var(--text); }
|
|
.toolbar-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
|
|
.toolbar-btn.danger { border-color: var(--red); color: var(--red); }
|
|
.toolbar-btn.danger:hover { background: var(--red); color: #000; }
|
|
|
|
.toolbar-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
|
|
|
|
.toolbar-group { display: flex; gap: 4px; align-items: center; }
|
|
|
|
.toolbar-label { color: var(--text2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
|
|
|
|
.main-area { flex: 1; position: relative; overflow: hidden; }
|
|
|
|
/* ===== Node Canvas ===== */
|
|
.node-canvas {
|
|
position: absolute; inset: 0; cursor: grab;
|
|
}
|
|
.node-canvas.grabbing { cursor: grabbing; }
|
|
.node-canvas.connecting { cursor: crosshair; }
|
|
|
|
.wires-svg {
|
|
position: absolute; inset: 0; pointer-events: none; z-index: 3;
|
|
overflow: visible;
|
|
}
|
|
.wires-svg path {
|
|
fill: none; stroke-width: 2.5; stroke-linecap: round;
|
|
pointer-events: stroke; cursor: pointer;
|
|
filter: drop-shadow(0 0 3px rgba(0,229,255,0.3));
|
|
}
|
|
.wires-svg path.audio { stroke: var(--wire-audio); opacity: 0.8; }
|
|
.wires-svg path.control { stroke: var(--wire-control); opacity: 0.8; }
|
|
.wires-svg path.trigger { stroke: var(--wire-trigger); opacity: 0.8; }
|
|
.wires-svg path.temp { stroke-dasharray: 6 4; opacity: 0.5; filter: none; }
|
|
.wires-svg path:hover { stroke-width: 4; opacity: 1; filter: drop-shadow(0 0 6px rgba(0,229,255,0.6)); }
|
|
|
|
/* ===== Modules ===== */
|
|
.module {
|
|
position: absolute; width: 180px; min-width: 180px;
|
|
background: var(--surface); border: 1px solid var(--border);
|
|
border-radius: 8px; user-select: none; z-index: 2;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
|
|
transition: box-shadow 0.15s;
|
|
}
|
|
.module.selected { border-color: var(--accent); box-shadow: 0 0 20px rgba(0,229,255,0.15); }
|
|
.module:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.5); }
|
|
|
|
.module-header {
|
|
display: flex; align-items: center; gap: 6px;
|
|
padding: 6px 10px; border-bottom: 1px solid var(--border);
|
|
cursor: grab; border-radius: 8px 8px 0 0;
|
|
background: var(--surface2);
|
|
}
|
|
.module-header .type-icon { font-size: 14px; }
|
|
.module-header .type-name {
|
|
font-size: 11px; font-weight: 600; text-transform: uppercase;
|
|
letter-spacing: 0.5px; color: var(--text);
|
|
flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
}
|
|
.module-header .close-btn {
|
|
width: 18px; height: 18px; border: none; background: transparent;
|
|
color: var(--text2); cursor: pointer; font-size: 12px; border-radius: 3px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
.module-header .close-btn:hover { background: var(--red); color: #fff; }
|
|
|
|
.module-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
|
|
|
|
/* Ports */
|
|
.port-row {
|
|
display: flex; align-items: center; gap: 6px;
|
|
position: relative; height: 20px;
|
|
}
|
|
.port-row.input { flex-direction: row; }
|
|
.port-row.output { flex-direction: row-reverse; }
|
|
|
|
.port-dot {
|
|
width: 12px; height: 12px; border-radius: 50%;
|
|
border: 2px solid var(--border); background: var(--surface);
|
|
cursor: pointer; flex-shrink: 0; transition: all 0.15s;
|
|
position: relative; z-index: 5;
|
|
}
|
|
.port-dot.audio { border-color: var(--wire-audio); }
|
|
.port-dot.control { border-color: var(--wire-control); }
|
|
.port-dot.trigger { border-color: var(--wire-trigger); }
|
|
.port-dot:hover { transform: scale(1.3); }
|
|
.port-dot.connected { background: currentColor; }
|
|
.port-dot.audio.connected { background: var(--wire-audio); }
|
|
.port-dot.control.connected { background: var(--wire-control); }
|
|
.port-dot.trigger.connected { background: var(--wire-trigger); }
|
|
.port-dot.compatible { animation: pulse-port 0.6s infinite alternate; }
|
|
|
|
@keyframes pulse-port {
|
|
from { box-shadow: 0 0 2px currentColor; }
|
|
to { box-shadow: 0 0 8px currentColor; }
|
|
}
|
|
|
|
.port-label {
|
|
font-size: 10px; color: var(--text2); text-transform: uppercase;
|
|
letter-spacing: 0.3px; white-space: nowrap;
|
|
}
|
|
|
|
/* Knobs */
|
|
.param-row {
|
|
display: flex; align-items: center; gap: 6px;
|
|
}
|
|
.param-label {
|
|
font-size: 10px; color: var(--text2); width: 48px;
|
|
text-transform: uppercase; letter-spacing: 0.3px; flex-shrink: 0;
|
|
}
|
|
|
|
.knob-container { position: relative; width: 32px; height: 32px; flex-shrink: 0; }
|
|
.knob-svg { width: 32px; height: 32px; cursor: pointer; }
|
|
.knob-track { fill: none; stroke: var(--knob-track); stroke-width: 3; stroke-linecap: round; }
|
|
.knob-fill { fill: none; stroke-width: 3; stroke-linecap: round; }
|
|
.knob-dot { fill: var(--text); }
|
|
|
|
.knob-editing { display: flex; align-items: center; justify-content: center; }
|
|
.knob-input {
|
|
width: 48px; height: 22px; padding: 0 4px;
|
|
background: var(--bg); border: 1px solid var(--accent); border-radius: 3px;
|
|
color: var(--accent); font-size: 11px; font-family: 'JetBrains Mono', monospace;
|
|
text-align: center; outline: none;
|
|
}
|
|
.knob-input:focus { box-shadow: 0 0 6px rgba(0,229,255,0.3); }
|
|
|
|
.param-value {
|
|
font-size: 10px; color: var(--accent); font-family: 'JetBrains Mono', monospace;
|
|
min-width: 40px; text-align: right;
|
|
}
|
|
|
|
/* Select param */
|
|
.param-select {
|
|
flex: 1; background: var(--bg); border: 1px solid var(--border);
|
|
border-radius: 3px; padding: 2px 4px; color: var(--text);
|
|
font-size: 10px; font-family: inherit; cursor: pointer;
|
|
}
|
|
.param-select:focus { outline: none; border-color: var(--accent); }
|
|
|
|
/* Scope canvas */
|
|
.scope-canvas {
|
|
width: 100%; height: 60px; border-radius: 4px;
|
|
background: #050510; border: 1px solid var(--border);
|
|
}
|
|
|
|
/* ===== Module Palette (sidebar) ===== */
|
|
.palette {
|
|
position: absolute; left: 8px; top: 8px; z-index: 20;
|
|
background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
|
|
padding: 8px; display: flex; flex-direction: column; gap: 4px;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
|
|
max-height: calc(100% - 16px); overflow-y: auto;
|
|
}
|
|
.palette-title {
|
|
font-size: 9px; font-weight: 700; color: var(--text2);
|
|
text-transform: uppercase; letter-spacing: 1px; padding: 2px 4px;
|
|
}
|
|
.palette-item {
|
|
display: flex; align-items: center; gap: 6px;
|
|
padding: 5px 8px; border-radius: 4px; cursor: pointer;
|
|
font-size: 11px; color: var(--text); transition: all 0.1s;
|
|
}
|
|
.palette-item:hover { background: var(--surface2); }
|
|
.palette-item .p-icon { font-size: 14px; width: 20px; text-align: center; }
|
|
.palette-item .p-name { font-weight: 500; }
|
|
.palette-item .p-cat { font-size: 9px; color: var(--text2); margin-left: auto; }
|
|
|
|
/* ===== Status Bar ===== */
|
|
.status-bar {
|
|
height: 24px; background: var(--panel); border-top: 1px solid var(--border);
|
|
display: flex; align-items: center; padding: 0 12px; gap: 16px;
|
|
font-size: 10px; color: var(--text2); flex-shrink: 0; z-index: 10;
|
|
}
|
|
.status-bar .status-accent { color: var(--accent); }
|
|
|
|
/* ===== Preset Modal ===== */
|
|
.modal-overlay {
|
|
position: fixed; inset: 0; background: rgba(0,0,0,0.7);
|
|
display: flex; align-items: center; justify-content: center; z-index: 100;
|
|
}
|
|
.modal {
|
|
background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
|
|
padding: 20px; min-width: 360px; max-width: 500px;
|
|
box-shadow: 0 24px 64px rgba(0,0,0,0.6);
|
|
}
|
|
.modal h2 { font-size: 15px; color: var(--accent); margin-bottom: 12px; }
|
|
.modal input {
|
|
width: 100%; padding: 8px 10px; background: var(--bg);
|
|
border: 1px solid var(--border); border-radius: 4px;
|
|
color: var(--text); font-size: 13px; font-family: inherit;
|
|
}
|
|
.modal input:focus { outline: none; border-color: var(--accent); }
|
|
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
|
|
.modal-actions button { padding: 6px 14px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; }
|
|
.modal-actions .primary { background: var(--accent); color: #000; border-color: var(--accent); }
|
|
|
|
.preset-list { max-height: 200px; overflow-y: auto; margin: 8px 0; }
|
|
.preset-item {
|
|
padding: 6px 10px; cursor: pointer; border-radius: 4px;
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
font-size: 12px;
|
|
}
|
|
.preset-item:hover { background: var(--surface2); }
|
|
.preset-item .preset-date { color: var(--text2); font-size: 10px; }
|
|
|
|
/* ======================================================
|
|
GAME MODE — SynthQuest
|
|
====================================================== */
|
|
|
|
/* ===== World Map ===== */
|
|
.gm-worldmap {
|
|
height: 100vh; overflow-y: auto;
|
|
background: linear-gradient(180deg, #08080f 0%, #0a0a1a 50%, #08080f 100%);
|
|
padding: 0 24px 40px;
|
|
}
|
|
|
|
.gm-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px;
|
|
}
|
|
|
|
.gm-logo { display: flex; align-items: center; gap: 12px; }
|
|
.gm-logo-icon {
|
|
font-size: 36px; color: var(--accent);
|
|
width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
|
|
border: 2px solid var(--accent); border-radius: 12px; background: rgba(0,229,255,0.05);
|
|
}
|
|
.gm-title { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: 1px; }
|
|
.gm-tagline { font-size: 12px; color: var(--text2); margin-top: 2px; }
|
|
|
|
.gm-header-right { display: flex; align-items: center; gap: 16px; }
|
|
.gm-total-stars { font-size: 16px; color: var(--yellow); font-weight: 700; }
|
|
.gm-sandbox-btn {
|
|
padding: 8px 16px; border: 1px solid var(--border); border-radius: 6px;
|
|
background: var(--surface); color: var(--text2); cursor: pointer;
|
|
font-size: 12px; font-weight: 600; font-family: inherit; transition: all 0.15s;
|
|
}
|
|
.gm-sandbox-btn:hover { border-color: var(--accent); color: var(--text); }
|
|
|
|
/* World sections */
|
|
.gm-world-section { margin-bottom: 32px; }
|
|
.gm-locked-world { opacity: 0.4; }
|
|
.gm-world-header {
|
|
display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
|
|
}
|
|
.gm-world-icon { font-size: 28px; }
|
|
.gm-world-name { font-size: 16px; font-weight: 700; color: var(--text); }
|
|
.gm-world-sub { font-size: 11px; color: var(--text2); margin-top: 2px; }
|
|
|
|
/* Level grid */
|
|
.gm-level-grid {
|
|
display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.gm-level-card {
|
|
display: flex; align-items: center; gap: 12px;
|
|
padding: 14px 16px; border-radius: 10px; cursor: pointer;
|
|
background: var(--surface); border: 1px solid var(--border);
|
|
transition: all 0.2s; position: relative; overflow: hidden;
|
|
}
|
|
.gm-level-card.unlocked:hover {
|
|
border-color: var(--accent); transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(0,229,255,0.1);
|
|
}
|
|
.gm-level-card.locked { cursor: default; opacity: 0.5; }
|
|
.gm-level-card.boss { border-color: var(--yellow); }
|
|
.gm-level-card.boss .gm-level-number { background: var(--yellow); color: #000; }
|
|
.gm-level-card.perfect { border-color: var(--green); }
|
|
|
|
.gm-level-number {
|
|
width: 36px; height: 36px; border-radius: 50%;
|
|
background: var(--surface2); display: flex; align-items: center; justify-content: center;
|
|
font-weight: 800; font-size: 14px; color: var(--accent); flex-shrink: 0;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.gm-level-info { flex: 1; min-width: 0; }
|
|
.gm-level-title { font-size: 13px; font-weight: 600; color: var(--text); }
|
|
.gm-level-subtitle { font-size: 10px; color: var(--text2); margin-top: 2px; }
|
|
|
|
.gm-stars { display: flex; gap: 2px; }
|
|
.gm-stars .star { font-size: 16px; }
|
|
.gm-stars .star.filled { color: var(--yellow); }
|
|
.gm-stars .star.empty { color: var(--border); }
|
|
|
|
.gm-lock { font-size: 18px; }
|
|
.gm-lock-overlay {
|
|
position: absolute; inset: 0; background: rgba(8,8,15,0.3);
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ===== Puzzle View ===== */
|
|
.gm-puzzle { display: flex; flex-direction: column; height: 100vh; }
|
|
|
|
.gm-puzzle-bar {
|
|
height: 48px; background: var(--panel); border-bottom: 1px solid var(--border);
|
|
display: flex; align-items: center; padding: 0 16px; gap: 12px;
|
|
flex-shrink: 0; z-index: 10;
|
|
}
|
|
|
|
.gm-puzzle-title { display: flex; align-items: center; gap: 8px; }
|
|
.gm-puzzle-num {
|
|
font-size: 10px; color: var(--text2); background: var(--surface);
|
|
padding: 2px 8px; border-radius: 4px; font-weight: 600;
|
|
}
|
|
.gm-puzzle-name { font-size: 14px; font-weight: 700; color: var(--text); }
|
|
.gm-puzzle-actions { margin-left: auto; display: flex; gap: 8px; }
|
|
|
|
/* Buttons */
|
|
.gm-btn {
|
|
padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px;
|
|
background: var(--surface); color: var(--text); cursor: pointer;
|
|
font-size: 12px; font-weight: 600; font-family: inherit; transition: all 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
.gm-btn:hover { border-color: var(--accent); }
|
|
.gm-btn.icon { padding: 6px 10px; }
|
|
.gm-btn.primary { background: var(--accent); color: #000; border-color: var(--accent); }
|
|
.gm-btn.primary:hover { background: #33ecff; }
|
|
.gm-btn.secondary { background: var(--surface2); }
|
|
.gm-btn.target { border-color: var(--yellow); color: var(--yellow); }
|
|
.gm-btn.target:hover { background: rgba(255,204,0,0.1); }
|
|
.gm-btn.check { border-color: var(--green); color: var(--green); }
|
|
.gm-btn.check:hover { background: rgba(68,255,136,0.1); }
|
|
.gm-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
|
|
.gm-btn.danger { border-color: var(--red); color: var(--red); }
|
|
.gm-btn.danger:hover { background: rgba(255,68,102,0.1); }
|
|
|
|
/* Puzzle layout */
|
|
.gm-puzzle-content { flex: 1; display: flex; overflow: hidden; }
|
|
|
|
.gm-puzzle-sidebar {
|
|
width: 280px; flex-shrink: 0; background: var(--panel);
|
|
border-right: 1px solid var(--border); overflow-y: auto;
|
|
padding: 12px; display: flex; flex-direction: column; gap: 12px;
|
|
}
|
|
|
|
.gm-puzzle-canvas-wrap {
|
|
flex: 1; position: relative; overflow: hidden;
|
|
}
|
|
|
|
/* Concept panel */
|
|
.gm-concept-panel {
|
|
background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
.gm-concept-header {
|
|
padding: 10px 12px; cursor: pointer; display: flex; justify-content: space-between;
|
|
align-items: center; font-size: 12px; font-weight: 600; color: var(--yellow);
|
|
}
|
|
.gm-concept-body { padding: 0 12px 12px; }
|
|
.gm-concept-desc { font-size: 11px; color: var(--text); line-height: 1.5; margin-bottom: 8px; }
|
|
.gm-concept-tip {
|
|
font-size: 10px; color: var(--text2); line-height: 1.5;
|
|
padding: 8px; background: var(--bg); border-radius: 4px;
|
|
border-left: 3px solid var(--accent);
|
|
}
|
|
|
|
/* Objectives */
|
|
.gm-objectives {
|
|
background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
|
|
padding: 10px 12px;
|
|
}
|
|
.gm-obj-title {
|
|
font-size: 10px; font-weight: 700; color: var(--text2);
|
|
text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
|
|
}
|
|
.gm-obj {
|
|
display: flex; align-items: center; gap: 8px; padding: 6px 0;
|
|
border-bottom: 1px solid var(--border); font-size: 11px;
|
|
}
|
|
.gm-obj:last-child { border-bottom: none; }
|
|
.gm-obj-star { color: var(--yellow); font-size: 12px; flex-shrink: 0; width: 30px; }
|
|
.gm-obj-name { flex: 1; color: var(--text2); }
|
|
.gm-obj.passed .gm-obj-name { color: var(--green); }
|
|
.gm-obj.failed .gm-obj-name { color: var(--text2); }
|
|
.gm-obj-check { color: var(--green); font-weight: 700; }
|
|
.gm-obj-x { color: var(--red); font-weight: 700; }
|
|
.gm-obj.capped .gm-obj-name { color: var(--text2); text-decoration: line-through; }
|
|
.gm-obj-locked { color: var(--text2); font-size: 10px; }
|
|
|
|
.gm-hint-warning {
|
|
margin-top: 8px; padding: 6px 8px; background: rgba(255,204,0,0.08);
|
|
border-radius: 4px; font-size: 10px; color: var(--yellow); line-height: 1.4;
|
|
}
|
|
|
|
/* Hint panel */
|
|
.gm-hint-panel { }
|
|
.gm-hint-btn {
|
|
width: 100%; display: flex; align-items: center; gap: 8px;
|
|
padding: 10px 12px; border: 1px dashed var(--yellow); border-radius: 8px;
|
|
background: rgba(255,204,0,0.04); cursor: pointer;
|
|
font-family: inherit; transition: all 0.15s;
|
|
}
|
|
.gm-hint-btn:hover { background: rgba(255,204,0,0.1); border-style: solid; }
|
|
.gm-hint-icon { font-size: 16px; }
|
|
.gm-hint-label { font-size: 12px; font-weight: 600; color: var(--yellow); flex: 1; text-align: left; }
|
|
.gm-hint-penalty {
|
|
font-size: 9px; color: var(--red); background: rgba(255,68,102,0.15);
|
|
padding: 2px 6px; border-radius: 3px; font-weight: 700;
|
|
}
|
|
|
|
.gm-hint-revealed {
|
|
background: var(--surface); border: 1px solid var(--yellow); border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
.gm-hint-header {
|
|
padding: 8px 12px; display: flex; justify-content: space-between; align-items: center;
|
|
font-size: 12px; font-weight: 600; color: var(--yellow);
|
|
background: rgba(255,204,0,0.06);
|
|
}
|
|
.gm-hint-penalty-tag {
|
|
font-size: 9px; color: var(--red); background: rgba(255,68,102,0.15);
|
|
padding: 2px 6px; border-radius: 3px; font-weight: 700;
|
|
}
|
|
.gm-hint-text {
|
|
padding: 8px 12px 12px; font-size: 11px; color: var(--text); line-height: 1.5;
|
|
}
|
|
|
|
.gm-hint-penalty-msg {
|
|
font-size: 11px; color: var(--yellow); margin-bottom: 16px;
|
|
}
|
|
|
|
.gm-big-star.locked {
|
|
color: var(--border); font-size: 36px;
|
|
}
|
|
|
|
/* Module palette (game) */
|
|
.gm-module-palette {
|
|
background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
|
|
padding: 10px 12px;
|
|
}
|
|
.gm-palette-title {
|
|
font-size: 10px; font-weight: 700; color: var(--text2);
|
|
text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
|
|
}
|
|
.gm-palette-item {
|
|
display: flex; align-items: center; gap: 8px;
|
|
padding: 8px; border-radius: 6px; cursor: pointer;
|
|
transition: all 0.15s; font-size: 12px; color: var(--text);
|
|
}
|
|
.gm-palette-item:hover { background: var(--surface2); }
|
|
.gm-palette-icon { font-size: 16px; width: 24px; text-align: center; }
|
|
.gm-palette-name { flex: 1; font-weight: 500; }
|
|
.gm-palette-add {
|
|
width: 22px; height: 22px; border-radius: 50%;
|
|
background: var(--surface2); display: flex; align-items: center; justify-content: center;
|
|
font-size: 14px; color: var(--accent); font-weight: 700;
|
|
}
|
|
|
|
/* Canvas hint */
|
|
.gm-canvas-hint {
|
|
position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
|
|
padding: 8px 16px; background: rgba(0,0,0,0.7); border-radius: 8px;
|
|
font-size: 11px; color: var(--text2); pointer-events: none;
|
|
border: 1px solid var(--border); z-index: 10;
|
|
}
|
|
|
|
/* ===== Level Complete Overlay ===== */
|
|
.gm-complete-overlay {
|
|
position: fixed; inset: 0; background: rgba(8,8,15,0.85);
|
|
display: flex; align-items: center; justify-content: center;
|
|
z-index: 200; animation: fadeIn 0.3s;
|
|
}
|
|
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
|
|
|
.gm-complete-card {
|
|
background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
|
|
padding: 32px 40px; text-align: center; min-width: 400px;
|
|
box-shadow: 0 32px 64px rgba(0,0,0,0.5);
|
|
animation: slideUp 0.4s ease-out;
|
|
}
|
|
@keyframes slideUp {
|
|
from { transform: translateY(40px); opacity: 0; }
|
|
to { transform: translateY(0); opacity: 1; }
|
|
}
|
|
|
|
.gm-complete-title { font-size: 20px; font-weight: 800; color: var(--green); margin-bottom: 4px; }
|
|
.gm-complete-level { font-size: 13px; color: var(--text2); margin-bottom: 20px; }
|
|
|
|
.gm-complete-stars { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
|
|
.gm-big-star {
|
|
font-size: 48px; transition: all 0.4s ease-out;
|
|
}
|
|
.gm-big-star.empty { color: var(--border); transform: scale(0.8); }
|
|
.gm-big-star.earned {
|
|
color: var(--yellow); transform: scale(1);
|
|
filter: drop-shadow(0 0 12px rgba(255,204,0,0.4));
|
|
animation: starPop 0.4s ease-out;
|
|
}
|
|
@keyframes starPop {
|
|
0% { transform: scale(0.3); opacity: 0; }
|
|
60% { transform: scale(1.3); }
|
|
100% { transform: scale(1); opacity: 1; }
|
|
}
|
|
|
|
.gm-complete-msg { font-size: 13px; color: var(--text2); margin-bottom: 20px; font-style: italic; }
|
|
|
|
.gm-checks {
|
|
margin-bottom: 24px; text-align: left;
|
|
background: var(--surface); border-radius: 8px; padding: 12px;
|
|
}
|
|
.gm-check {
|
|
display: flex; align-items: center; gap: 8px; padding: 6px 0;
|
|
font-size: 12px; border-bottom: 1px solid var(--border);
|
|
}
|
|
.gm-check:last-child { border-bottom: none; }
|
|
.gm-check-icon { font-size: 14px; width: 20px; text-align: center; }
|
|
.gm-check.passed .gm-check-icon { color: var(--green); }
|
|
.gm-check.failed .gm-check-icon { color: var(--red); }
|
|
.gm-check-name { flex: 1; color: var(--text); }
|
|
.gm-check-star { color: var(--yellow); }
|
|
|
|
.gm-complete-actions { display: flex; gap: 8px; justify-content: center; }
|