#debug-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 5, 5, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  z-index: 30000;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.debug-btn {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  cursor: pointer;
  background: #000;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  transition: all 0.2s;
  min-width: 140px;
}

.debug-btn:hover {
  border-color: var(--accent);
  background: #111;
}
.debug-btn.selected {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.debug-btn span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.debug-btn.selected span {
  color: #000;
}

.debug-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: bold;
  color: var(--accent);
}

.debug-btn.selected .debug-val {
  color: #000;
}


.node-text {
  font-family: var(--font-pixel);
  font-size: 14px;
  fill: #fff;
}
.mono-text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-muted);
}
.ui-text {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  fill: #fff;
}

.debug-btn.selected svg {
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.debug-btn svg {
  width: 120px;
  height: 40px;
  pointer-events: none;
  transition: filter 0.2s;
}

.debug-overlay {
  position: fixed;
  pointer-events: none;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.debug-overlay svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

#debug-msg {
  position: fixed;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
