/*
 * 화면 돋보기 (2026-08-27) — PC 전용. 동작은 controllers/screen_magnifier_controller.js.
 * ⚠z-index: 모달(1500~8000)·태스크바(9000)·스낵바(9999)·컨텍스트 메뉴(12000) 위에 떠야 한다.
 */
.mgf-lens {
  position: fixed; z-index: 999999; pointer-events: none; overflow: hidden; display: none;
  border: 3px solid #33506e; background: #fff;
  box-shadow: 0 14px 40px #33506e55, 0 0 0 1px #ffffffcc inset;
}
.mgf-lens.is-on { display: block; }
.mgf-lens.is-circle { border-radius: 50%; }
.mgf-lens.is-rect { border-radius: 14px; }
.mgf-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }

/* 렌즈 중앙 = 확대 지점 */
.mgf-cross { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; pointer-events: none; }
.mgf-cross::before, .mgf-cross::after { content: ""; position: absolute; background: #33506e88; }
.mgf-cross::before { left: 50%; top: 0; width: 1px; height: 100%; margin-left: -0.5px; }
.mgf-cross::after { top: 50%; left: 0; height: 1px; width: 100%; margin-top: -0.5px; }

/* 커서 자리 조준 링 — 렌즈가 커서에서 떨어져 있으므로 «지금 보는 지점» 표시 */
.mgf-ring {
  position: fixed; z-index: 999998; pointer-events: none; display: none;
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 2px solid #33506e; box-shadow: 0 0 0 2px #ffffffcc, 0 0 0 6px #33506e22;
}
.mgf-ring.is-on { display: block; }

.mgf-badge {
  position: fixed; z-index: 1000000; pointer-events: none; display: none;
  background: #33506e; color: #fff; font-size: 11.5px; font-weight: 800;
  border-radius: 999px; padding: 3px 10px;
}
.mgf-badge.is-on { display: block; }

/* 터치 기기 = 미사용 (컨트롤러도 pointer:fine 에서만 마운트) */
@media (pointer: coarse) { .mgf-lens, .mgf-ring, .mgf-badge { display: none !important; } }

/* ── 설정 패널 (내 계정 > 테마&UI > 돋보기) ── */
.mgf-set-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid #dbe6f0; border-radius: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mgf-set-row .mgf-lb { font-size: 12.5px; font-weight: 700; color: #3e6187; min-width: 78px; }
.mgf-set-row .mgf-hint { font-size: 11.5px; color: #94a3b8; flex-basis: 100%; }
.mgf-set-row select { border: 1.5px solid #c4d3e2; border-radius: 8px; padding: 7px 10px; font-size: 13px; background: #fcfdfe; color: #0f172a; }
.mgf-set-row select:focus { outline: none; border-color: #3e6187; box-shadow: 0 0 0 3px #3e618722; }
.mgf-set-row input[type=range] { flex: 1; min-width: 140px; accent-color: #3e6187; }
.mgf-set-row .mgf-val { font-size: 12.5px; font-weight: 800; color: #3e6187; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.mgf-seg { display: inline-flex; background: #fff; border: 1px solid #c4d3e2; border-radius: 999px; padding: 3px; }
.mgf-seg button { border: none; background: transparent; padding: 6px 14px; font-size: 12.5px; font-weight: 700; color: #64748b; border-radius: 999px; cursor: pointer; font-family: inherit; }
.mgf-seg button.on { background: #3e6187; color: #fff; }
.mgf-note { font-size: 12px; color: #7c8ba1; background: #f6f9fc; border: 1px solid #e8eef4; border-radius: 10px; padding: 11px 13px; line-height: 1.7; margin-bottom: 12px; }
.mgf-note b { color: #3e6187; }
.mgf-note kbd { background: #33506e; color: #fff; border-radius: 5px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; }
.mgf-warn { font-size: 11.5px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; margin-top: 8px; display: none; }
.mgf-warn.is-on { display: block; }
