@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: #f5f6f8; color: #111827; min-height: 100vh; -webkit-text-size-adjust: 100%; }

.container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px; }

/* 브랜드 */
.brand { text-align: center; margin-bottom: 28px; }
.brand .logo-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand .logo-icon { width: 36px; height: 36px; background: #111827; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.brand .logo-icon svg { width: 18px; height: 18px; }
.brand .logo-text { font-size: 17px; font-weight: 800; color: #111827; letter-spacing: -0.5px; }
.brand .logo-sub { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #9ca3af; margin-top: 6px; }

/* 카드 */
.card { background: #ffffff; border-radius: 16px; padding: 32px 28px; width: 100%; max-width: 400px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 30px rgba(0,0,0,0.06); border: 1px solid #f0f0f3; }
.card h1 { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 2px; color: #111827; letter-spacing: -0.4px; }
.card .desc { text-align: center; color: #6b7280; font-size: 13px; margin-bottom: 20px; font-weight: 400; }

/* 에러 */
.error-card { text-align: center; border-color: #fde8e8; }
.error-card .icon { font-size: 40px; margin-bottom: 14px; }
.error-card h1 { color: #b91c1c; }
.error-card p { color: #6b7280; font-size: 13px; line-height: 1.7; }

/* 상태 표시줄 */
.status-bar { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; background: #f0fdf4; border: 1px solid #dcfce7; border-radius: 8px; margin-bottom: 20px; }
.status-bar .dot { width: 6px; height: 6px; background: #16a34a; border-radius: 50%; animation: blink 2s infinite; }
.status-bar span { font-size: 11px; color: #166534; font-weight: 600; letter-spacing: 0.3px; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* 개인정보 */
.privacy-notice { background: #fafafa; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.privacy-notice p { font-size: 11px; color: #6b7280; line-height: 1.7; text-align: center; }
.privacy-notice strong { color: #374151; }

/* 카메라 */
.camera-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #111; aspect-ratio: 4/3; margin-bottom: 16px; }
.camera-wrap video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face-guide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.face-guide::after { content: ''; width: 160px; height: 210px; border: 2px solid rgba(255,255,255,0.25); border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0,0,0,0.35); }

/* 안내 */
.info-box { border-radius: 10px; padding: 0; margin-bottom: 20px; }
.info-box p { font-size: 12px; color: #9ca3af; padding: 3px 0; line-height: 1.5; }
.info-box p::before { content: ''; display: inline-block; width: 4px; height: 4px; background: #d1d5db; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* 버튼 */
.btn-group { display: flex; gap: 8px; }
.btn { flex: 1; padding: 14px; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.12s; letter-spacing: -0.2px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: #111827; color: #fff; }
.btn-primary:active { background: #1f2937; transform: scale(0.97); }
.btn-secondary { background: #f3f4f6; color: #6b7280; }
.btn-secondary:active { background: #e5e7eb; transform: scale(0.97); }
.btn-success { background: #111827; color: #fff; }
.btn-success:active { background: #1f2937; transform: scale(0.97); }

/* 결과 */
.result { margin-top: 20px; padding: 16px; border-radius: 10px; font-size: 13px; text-align: center; line-height: 1.7; }
.result-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.result-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* 하단 */
.footer { text-align: center; margin-top: 24px; }
.footer p { font-size: 10px; color: #c4c4c4; letter-spacing: 0.2px; }
.footer .sep { margin: 0 6px; color: #e0e0e0; }

::-webkit-scrollbar { width: 0; }
