/* Universal debug / bug screen */

.universal-debug-screen {
  position: fixed;
  inset: 0;
  z-index: 1300;
  pointer-events: none;
  visibility: hidden;
}

.universal-debug-screen.is-open {
  pointer-events: auto;
  visibility: visible;
}

.universal-debug-screen__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.universal-debug-screen__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 94vw);
  max-height: 85vh;
  overflow: auto;
  box-sizing: border-box;
  padding: 16px 18px 20px;
  border-radius: 12px;
  background: #0c1218;
  border: 1px solid rgba(0, 200, 220, 0.35);
  color: #d8eef8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 0 24px rgba(0, 160, 200, 0.2);
}

.universal-debug-screen__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.universal-debug-screen__header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #7ee7ff;
}

.universal-debug-screen__close {
  border: none;
  background: transparent;
  color: #9ad8ea;
  font-size: 1.5rem;
  cursor: pointer;
}

.universal-debug-screen__note {
  margin: 0 0 12px;
  font-size: 0.75rem;
  color: rgba(180, 210, 225, 0.75);
  font-family: system-ui, sans-serif;
}

.universal-debug-screen__section {
  margin-bottom: 14px;
}

.universal-debug-screen__section h3 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: #9ad8ea;
  font-family: system-ui, sans-serif;
}

.universal-debug-screen__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.universal-debug-screen__section-head h3 {
  margin: 0;
}

#universalDebugRefreshRooms {
  border: 1px solid rgba(0, 200, 220, 0.4);
  background: #1a4a58;
  color: #e8fbff;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.75rem;
}

.universal-debug-screen pre {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow: auto;
}
