/* ── 모니터 불량화소 검사기 ── */
:root {
  --ink:    #1e293b;
  --muted:  #64748b;
  --line:   #e2e8f0;
  --bg:     #f8fafc;
  --blue:   #2563eb;
  --radius: 14px;
  --radius2:10px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif; }

.wrap { max-width: 100%; padding: 0 0 60px; }

.top { padding: 20px 0 16px; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 48px; height: 48px; border-radius: var(--radius2);
  background: linear-gradient(135deg, #1e293b, #475569);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.brand h1 { font-size: 22px; font-weight: 700; }
.brand .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── 카드 ── */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }

/* ── 색상 버튼 그리드 ── */
.color-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px;
  margin-bottom: 14px;
}
.color-btn {
  height: 56px; border: 2px solid transparent; border-radius: var(--radius2);
  cursor: pointer; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: transform .1s, box-shadow .1s;
}
.color-btn:hover { transform: scale(1.04); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.color-btn.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.25); }

/* ── 전체화면 오버레이 ── */
#fullOverlay {
  display: none; position: fixed; inset: 0;
  cursor: pointer; z-index: 99999;
  transition: background .1s;
}
#fullOverlay.active { display: block; }
#overlayHint {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: #fff;
  border-radius: 100px; padding: 10px 20px;
  font-size: 13px; font-weight: 600;
  pointer-events: none; z-index: 100000;
}
#overlayHint kbd {
  background: rgba(255,255,255,.2); border-radius: 4px;
  padding: 2px 7px; font-family: monospace;
}

/* ── 그라데이션 테스트 ── */
.gradient-preview {
  height: 80px; border-radius: var(--radius2); margin-bottom: 10px;
  background: linear-gradient(to right, #000, #fff);
}

/* ── 격자 테스트 ── */
.grid-preview {
  height: 120px; border-radius: var(--radius2); margin-bottom: 10px;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 9px, #fff 9px, #fff 10px),
    repeating-linear-gradient(90deg, transparent, transparent 9px, #fff 9px, #fff 10px);
  background-color: #000;
}

/* ── 커스텀 색상 ── */
.custom-row {
  display: flex; gap: 8px; align-items: center;
}
.custom-row input[type=color] {
  width: 44px; height: 44px; border: none; border-radius: var(--radius2);
  cursor: pointer; padding: 2px;
}
.custom-row input[type=text] {
  flex: 1; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius2);
  font-size: 14px; font-family: monospace; outline: none;
}
.custom-row input[type=text]:focus { border-color: var(--blue); }
.btn-apply {
  height: 44px; padding: 0 18px;
  background: var(--ink); border: none; border-radius: var(--radius2);
  color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-apply:hover { background: var(--blue); }

/* ── 안내 ── */
.tip-box {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: var(--radius2); padding: 14px 16px;
  font-size: 13px; color: #1e40af; line-height: 1.7;
}
.tip-box strong { display: block; margin-bottom: 4px; }

/* ── 사용 안내 ── */
.guide-section {
  margin-top: 24px; background: rgba(246,248,255,.6);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.guide-section h2 { font-size: 15px; font-weight: 800; margin: 0 0 10px; color: var(--ink); }
.guide-section h2:not(:first-child) { margin-top: 18px; }
.guide-steps, .guide-features, .guide-usecase {
  margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.8;
}
.guide-steps li, .guide-features li, .guide-usecase li { margin-bottom: 4px; }
.guide-steps strong, .guide-features strong { color: var(--ink); }
.guide-privacy {
  margin-top: 16px; background: #eff6ff; border: 1px solid rgba(37,99,235,.22);
  border-radius: 12px; padding: 12px 14px; font-size: 12px; color: #1e40af; line-height: 1.55;
}
