/* The debug panel */

/* ---- Debug panel (New game (debug)): plain and compact, above everything ---- */
.debug-toggle {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 60;
  padding: 3px 10px;
  font: 0.85rem/1.4 system-ui, sans-serif;
  color: #f1e8cf;
  background: rgba(120, 40, 30, 0.85);
  border: 1px solid rgba(241, 232, 207, 0.5);
  border-radius: 4px;
  cursor: pointer;
}

.debug-panel {
  position: absolute;
  top: 48px;
  left: 16px;
  z-index: 60;
  width: 250px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 10px 12px 12px;
  font: 0.85rem/1.3 system-ui, sans-serif;
  color: #f1e8cf;
  background: rgba(14, 18, 14, 0.94);
  border: 1px solid rgba(241, 232, 207, 0.3);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.debug-heading {
  margin: 0 0 4px;
  font-weight: 700;
}

.debug-title {
  margin: 10px 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(241, 232, 207, 0.6);
}

.debug-commands {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.debug-commands button {
  padding: 3px 8px;
  font: inherit;
  color: inherit;
  background: rgba(241, 232, 207, 0.08);
  border: 1px solid rgba(241, 232, 207, 0.25);
  border-radius: 4px;
  cursor: pointer;
}

.debug-commands button:hover,
.debug-commands button:focus-visible {
  background: rgba(241, 232, 207, 0.2);
  outline: none;
}

/* Debug: a spirit's whole conversation, with labels between its ideas */
.dialogue-log .debug-label {
  max-width: none;
  margin: 0;
  text-align: left;
  font-family: system-ui, sans-serif;
  color: #f1e8cf;
}


.dialogue-log .debug-label.is-idea {
  margin-bottom: -20px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sunlight);
}

.dialogue-log .debug-label.is-missing {
  align-self: flex-end;
  font-style: italic;
  color: var(--sunlight);
}

.dialogue-log .debug-label.is-note {
  margin: -20px 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--stone);
}
