/* CLDEQ-8 — 히트 영역 시각화·위치 미세조절 (body.cldeq8-hit-debug 일 때 표시) */

.cldeq8-hit-debug-board {
  position: fixed;
  right: max(8px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 14px;
  font-family: system-ui, 'Segoe UI', 'Malgun Gothic', sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: #fff;
  background: rgba(20, 22, 28, 0.92);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  max-width: min(320px, calc(100vw - 16px));
}

.cldeq8-hit-debug-board__title {
  font-weight: 600;
  margin: 0;
}

.cldeq8-hit-debug-board__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cldeq8-hit-debug-board__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.cldeq8-hit-debug-board__toggle {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.cldeq8-hit-debug-board__slider-label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  opacity: 0.9;
}

.cldeq8-hit-debug-board__slider {
  width: 100%;
  margin: 0 0 6px;
  cursor: pointer;
}

.cldeq8-hit-debug-board__values {
  margin: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.cldeq8-hit-debug-board__reset {
  margin: 4px 0 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  background: #e5e7eb;
  cursor: pointer;
}

.cldeq8-hit-debug-board__reset:hover {
  background: #d1d5db;
}

.cldeq8-hit-debug-board__hint {
  margin: 0;
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.35;
}

/* ---------- 설문: 옵션·다음 ---------- */
body.cldeq8-hit-debug .cldeq8-survey-hits .cldeq8-survey-opt[data-cldeq-hit-label] {
  outline: 2px dashed rgba(90, 130, 255, 0.95);
  background: rgba(90, 130, 255, 0.12);
  overflow: visible;
  z-index: 4;
}

body.cldeq8-hit-debug .cldeq8-survey-hits .cldeq8-survey-opt[data-cldeq-hit-label]::after {
  content: attr(data-cldeq-hit-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  max-width: min(200px, 40vw);
  overflow: hidden;
  text-overflow: ellipsis;
  color: #124;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

body.cldeq8-hit-debug .cldeq8-survey-hits .cldeq8-survey-prev[data-cldeq-hit-label] {
  outline: 2px dashed rgba(50, 180, 255, 0.95);
  background: rgba(50, 180, 255, 0.18);
  opacity: 1;
  overflow: visible;
  z-index: 4;
}

body.cldeq8-hit-debug .cldeq8-survey-hits .cldeq8-survey-prev[data-cldeq-hit-label]::after {
  content: attr(data-cldeq-hit-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: #124;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.cldeq8-hit-debug .cldeq8-survey-hits .cldeq8-survey-next[data-cldeq-hit-label] {
  outline: 2px dashed rgba(255, 130, 50, 0.95);
  background: rgba(255, 150, 70, 0.22);
  opacity: 1;
  overflow: visible;
  z-index: 4;
}

body.cldeq8-hit-debug .cldeq8-survey-hits .cldeq8-survey-next[data-cldeq-hit-label]::after {
  content: attr(data-cldeq-hit-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: #421;
  background: rgba(255, 248, 220, 0.96);
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ---------- 랜딩: 시작·아코디언 ---------- */
body.cldeq8-hit-debug .cldeq8-landing-index .cldeq8-hitbox .cldeq8-hit-start[data-cldeq-hit-label] {
  outline: 2px dashed rgba(0, 170, 255, 0.95);
  background: rgba(0, 170, 255, 0.16);
  overflow: visible;
  z-index: 4;
}

body.cldeq8-hit-debug .cldeq8-landing-index .cldeq8-hitbox .cldeq8-hit-start[data-cldeq-hit-label]::after {
  content: attr(data-cldeq-hit-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: #042;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

body.cldeq8-hit-debug .cldeq8-landing-index .cldeq8-hitbox .cldeq8-hit-acc[data-cldeq-hit-label] {
  outline: 2px dashed rgba(180, 90, 255, 0.95);
  background: rgba(180, 90, 255, 0.14);
  overflow: visible;
  opacity: 1;
  z-index: 4;
}

body.cldeq8-hit-debug .cldeq8-landing-index .cldeq8-hitbox .cldeq8-hit-acc[data-cldeq-hit-label]::after {
  content: attr(data-cldeq-hit-label);
  position: absolute;
  left: 8px;
  top: calc(100% + 4px);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  color: #214;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ---------- 홈(투명 히트 — 디버그 시에만 보이게) ---------- */
body.cldeq8-hit-debug a.cldeq8-home[data-cldeq-hit-label] {
  opacity: 1;
  outline: 2px dashed rgba(120, 220, 80, 0.95);
  background: rgba(120, 220, 80, 0.2);
  overflow: visible;
  z-index: 40;
}

body.cldeq8-hit-debug a.cldeq8-home[data-cldeq-hit-label]::after {
  content: attr(data-cldeq-hit-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: #042;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
