/* styles/debug.css
   DEV-ONLY debug bar. Visible only when the URL has ?debug=1.
   Remove this file's <link> and the #debug-bar markup before launch. */

#debug-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(200, 152, 88, 0.4);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(248, 232, 192, 0.75);
  user-select: none;
}
#debug-bar.visible { display: flex; flex-wrap: wrap; }

#debug-bar button {
  background: transparent;
  border: 1px solid rgba(200, 152, 88, 0.4);
  color: rgba(248, 232, 192, 0.85);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
#debug-bar button:hover {
  background: rgba(200, 152, 88, 0.15);
  border-color: rgba(200, 152, 88, 0.9);
  color: #f8e8c0;
}
#debug-bar button.active {
  background: rgba(200, 152, 88, 0.25);
  border-color: rgba(200, 152, 88, 0.9);
}

#debug-bar .debug-label {
  letter-spacing: 0.3em;
  color: rgba(248, 232, 192, 0.4);
  font-size: 0.6rem;
  padding: 0 4px;
}
#debug-bar .debug-sep {
  color: rgba(248, 232, 192, 0.2);
  padding: 0 4px;
}

#debug-bar input[type="range"] {
  width: 120px;
  accent-color: #c89858;
}
#debug-bar #debug-timer-value {
  min-width: 40px;
  color: #c89858;
  text-align: right;
}

/* FAST mode — collapse all transitions to 100ms for fast dev iteration.
   Prose hold times (driven by `wait` calls in JS) are not affected; for
   that, the JS reads the data-fast attribute on body. */
body[data-fast="1"] *,
body[data-fast="1"] *::before,
body[data-fast="1"] *::after {
  transition-duration: 80ms !important;
  animation-duration: 200ms !important;
}
