/* Panel de debug / testing tool: misma estética, más denso */
#debugBtn {
  position: fixed; bottom: 14px; right: 14px; z-index: 60; opacity: .45;
  --b-bg: rgba(241,241,220,.9); --b-line: var(--cream-line);
  font-size: 11px; padding: 4px 10px; letter-spacing: .08em;
}
#debugBtn:hover { opacity: 1; }
body[data-screen="game"] #debugBtn { bottom: 6px; right: 8px; --b-bg: transparent; --b-fg: var(--cream); --b-line: rgba(241,241,220,.35); opacity: .35; }
#debugPanel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 290px; z-index: 50;
  background-image: var(--grain); background-color: var(--cream); padding: 16px;
  overflow: auto; display: none; font-size: 12.5px;
  box-shadow: -10px 0 30px rgba(20,40,20,.25);
}
#debugPanel.visible { display: block; }
#debugPanel h2 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
#debugPanel h4 {
  margin: 16px 0 7px; font-size: 10px; font-weight: 500; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .16em;
  border-bottom: 1px solid var(--cream-line); padding-bottom: 5px;
}
.drow { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; gap: 8px; }
.drow label { flex: 1; }
#dbgDeck .drow, #edDeck .drow { border-radius: 8px; padding: 3px 6px 3px 10px; margin: 3px 0; background: rgba(255,255,255,.55); border-left: 3px solid var(--ink); }
#dbgDeck .drow.orange, #edDeck .drow.orange { border-left-color: var(--accent); }
#debugPanel input[type=number], #debugPanel input[type=text], #debugPanel select {
  background: #fff; color: var(--ink); border: 1px solid var(--cream-line);
  border-radius: 999px; padding: 3px 10px; font-size: 12.5px;
}
#debugPanel input[type=number] { width: 64px; text-align: right; }
#debugPanel select { width: 150px; }
.dbtn { display: flex; width: 100%; margin: 5px 0; font-size: 12.5px; padding: 7px 12px; }
.dbtn.danger { --b-fg: var(--accent-deep); }
#godHint { color: var(--accent-deep); display: none; font-size: 11.5px; line-height: 1.4; padding: 4px 0; }
#dbgState { font-size: 11.5px; color: var(--ink-soft); line-height: 1.55; word-wrap: break-word; }
