/* Painel de debug (v0.24): só existe com ?debug (js/ui/debug-panel.js). Neon contido, fora do jogo. */
.debug-toggle {
  position: fixed;
  right: var(--s-3);
  bottom: var(--s-3);
  z-index: 9000;
  padding: 6px 12px;
  border: 1px dashed var(--surface-4);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.debug-toggle:hover,
.debug-toggle[aria-expanded="true"] {
  border-color: var(--r-epic);
  color: var(--text);
  box-shadow: 0 0 10px color-mix(in srgb, var(--r-epic) 35%, transparent);
}

.debug-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 8999;
  width: min(380px, 100vw);
  overflow-y: auto;
  padding: var(--s-4, 16px);
  border-left: 1px solid color-mix(in srgb, var(--r-epic) 45%, var(--surface-4));
  background: var(--surface-1);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.45);
  color: var(--text);
}

.debug-panel.hidden {
  display: none;
}

.debug-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.debug-panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.debug-panel-note,
.debug-hint {
  margin: var(--s-2, 8px) 0;
  color: var(--text-2);
  font-size: 13px;
}

.debug-section {
  margin-top: var(--s-4, 16px);
  padding-top: var(--s-3);
  border-top: 1px solid var(--surface-3);
}

.debug-section h3 {
  margin: 0 0 var(--s-2, 8px);
  font-size: 14px;
  color: var(--text-2);
}

.debug-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2, 8px);
  margin-bottom: var(--s-2, 8px);
}

.debug-row-wrap {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.debug-row-actions {
  display: flex;
  gap: 6px;
}

.debug-panel button:focus-visible,
.debug-toggle:focus-visible {
  outline: 2px solid var(--r-epic);
  outline-offset: 2px;
}

.debug-panel button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.debug-danger {
  border-color: var(--r-mythic);
  color: var(--r-mythic);
}

.debug-row-label {
  flex: 1 1 auto;
  min-width: 0;
}

.debug-row-actions {
  flex: 0 0 auto;
}
