/* =========================================================
   debug.css
   ---------------------------------------------------------
   動作検証用デバッグパネル（設定タブ内、?debug=1 のときだけ表示）
   ・不正なスクリーンショット流出防止用の全画面透かし
   ========================================================= */

/* ── デバッグモード中、画面全体に出す「Debug Mode」透かし ── */
/* 通常のUI操作を妨げないようpointer-eventsは無効化しつつ、
   最前面（他のモーダルより上）に表示してスクリーンショットに必ず写るようにする */
.debug-watermark {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
}

.debug-watermark-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250vw;
  height: 250vh;
  transform: translate(-50%, -50%) rotate(-25deg);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.debug-watermark-inner span {
  display: inline-block;
  white-space: nowrap;
  font-size: 26px;
  font-weight: 800;
  font-family: sans-serif;
  color: rgba(128, 128, 128, 0.18);
  padding: 22px 36px;
}

.debug-panel {
  border: 2px dashed #ff6578;
  border-radius: 8px;
  padding: 12px;
}

.debug-group {
  margin-bottom: 14px;
}

.debug-group:last-child {
  margin-bottom: 0;
}

.debug-group-label {
  font-size: 0.8rem;
  font-weight: bold;
  color: #a33;
  margin-bottom: 6px;
}

.debug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.debug-actions button {
  flex: 0 0 auto;
  padding: 8px 10px;
  min-height: 40px;
  border: 2px solid #4b8bea;
  border-radius: 6px;
  background: transparent;
  color: #4b8bea;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  touch-action: manipulation;
}

.debug-actions button:hover { background: rgba(75, 139, 234, 0.1); }
.debug-actions button:active { transform: scale(0.95); }

.debug-actions button.debug-danger {
  border-color: #ff6578;
  color: #ff6578;
}
.debug-actions button.debug-danger:hover { background: rgba(255, 101, 120, 0.1); }

.debug-actions input[type="text"] {
  flex: 0 0 auto;
  width: 140px;
  min-height: 40px;
  padding: 0 8px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 0.85rem;
}
