
/* === 궁합 서비스 전용 스타일 (A3 다크모드 기반) === */
:root {
  --pink: #E8456B;
  --pink-light: #FFF0F3;
  --pink-bg: #FFFBFC;
  --gold: #E8A838;
  --gold-light: #FFF8E8;
  --rose: #F4B8C8;
  --deep: #7B1040;
  --dark: #1A1A2E;
  --dark-card: rgba(255,255,255,0.06);
  --dark-border: rgba(255,255,255,0.1);
  --dark-text: rgba(255,255,255,0.7);
  --text: #2D2D3F;
  --card: #ffffff;
}


/* 네비바 — 다크 투명 */
.nav-bar { background: rgba(26,26,46,0.8); backdrop-filter: blur(8px); color: white; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; position: relative; z-index: 10; }
.nav-bar .logo { font-size: 16px; }
.nav-bar .nav-links { font-size: 11px; opacity: 0.6; }

/* 다크 카드 */
.dk-card { background: var(--dark-card); backdrop-filter: blur(8px); border: 1px solid var(--dark-border); border-radius: 16px; padding: 20px; margin: 12px 16px; }
.dk-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 12px; }

/* 라이트 카드 (상세분석 등) */
.gh-card { background: var(--card); border-radius: 16px; padding: 20px; margin: 12px 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.gh-card h3 { font-size: 15px; font-weight: 700; color: var(--deep); margin: 0 0 12px; }

/* ========== 입력 화면 (A3 시네마) ========== */
.cinema-hero {
  position: relative; height: 420px; overflow: hidden;
  background: url('../img/hero.webp') center 20% / 130% auto no-repeat;
}
.cinema-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(transparent, rgba(26,26,46,0.95));
}
.light-rays {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: conic-gradient(from 180deg at 50% 30%, transparent 0%, transparent 45%, rgba(255,215,0,0.04) 50%, transparent 55%);
  animation: rays-rotate 30s linear infinite;
  pointer-events: none;
}
@keyframes rays-rotate { 100% { transform: rotate(360deg); } }
.cinema-text {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 20px; text-align: center; color: #fff;
}
.cinema-text .ko-title {
  font-size: 11px; letter-spacing: 4px; opacity: 0.6;
}
.cinema-text h2 {
  font-size: 24px; font-weight: 900; line-height: 1.3; margin: 6px 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.cinema-text .sub-line { font-size: 12px; opacity: 0.7; }

.form-dark { background: linear-gradient(180deg, rgba(26,26,46,0.95), var(--dark)); padding: 16px; }
.form-dark .dk-card { margin: 0 0 10px; }
.form-dark .person-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--rose); margin-bottom: 10px; }
.form-dark .person-label .badge { background: var(--pink); color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.form-dark .form-row { display: flex; gap: 6px; margin-bottom: 8px; }
.form-dark .form-row select { flex: 1; padding: 9px 8px; border: 1px solid var(--dark-border); border-radius: 8px; font-size: 13px; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.9); appearance: none; text-align: center; }
.form-dark .cal-toggle { display: flex; gap: 6px; margin-bottom: 8px; }
.form-dark .cal-btn { flex: 1; padding: 8px; border: 1px solid var(--dark-border); border-radius: 8px; text-align: center; font-size: 11px; color: rgba(255,255,255,0.9); background: transparent; cursor: pointer; }
.form-dark .cal-btn.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.form-dark .gender-btns { display: flex; gap: 6px; }
.form-dark .gender-btn { flex: 1; padding: 9px; border: 1px solid var(--dark-border); border-radius: 8px; text-align: center; font-size: 12px; cursor: pointer; background: transparent; color: rgba(255,255,255,0.9); }
.form-dark .gender-btn.active { background: var(--pink); color: white; border-color: var(--pink); }
.form-dark .time-unknown { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.6); margin: 2px 0 8px 2px; cursor: pointer; }

.cta-btn-dark {
  display: block; width: 100%; margin: 12px 0 0; padding: 14px;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 20px rgba(232,69,107,0.3);
  animation: btn-glow 2.5s ease-in-out infinite;
}
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(232,69,107,0.3); }
  50% { box-shadow: 0 4px 32px rgba(232,69,107,0.5), 0 0 48px rgba(232,69,107,0.15); }
}
.dark-counter { text-align: center; font-size: 10px; color: rgba(255,255,255,0.25); margin-top: 8px; }

/* ========== 로딩 화면 (E 블러 배경) ========== */
.loading-bg { height: 100%; position: relative; overflow: hidden; }
.loading-img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/hero.png') center / cover; filter: blur(16px) brightness(0.4);
  transform: scale(1.1);
}
.loading-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-bottom: 40px;
}
.heart-loader { font-size: 48px; animation: heartbeat 1s infinite; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.loading-text { color: #fff; font-size: 14px; font-weight: 600; margin-top: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.loading-sub { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 6px; }
.progress-bar { margin-top: 24px; width: 200px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; overflow: hidden; }
.progress-fill {
  width: 65%; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--pink));
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: -100% 0; } 100% { background-position: 100% 0; } }

/* ========== 결과 화면 (A3 다크 + 히어로 이미지) ========== */
.result-hero {
  position: relative; height: 440px; overflow: hidden;
  background: url('../img/hero.webp') center 20% / 130% auto no-repeat;
}
.result-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 250px;
  background: linear-gradient(transparent, rgba(26,26,46,0.7));
}
.score-overlay {
  position: absolute; top: 62%; left: 0; right: 0; text-align: center; z-index: 2;
  transform: translateY(-50%);
}
.score-ring {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto;
  background: conic-gradient(var(--pink) 0% 73%, rgba(255,255,255,0.15) 73% 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(232,69,107,0.4), 0 0 0 4px rgba(232,69,107,0.1);
}
.score-inner {
  width: 108px; height: 108px; border-radius: 50%; background: var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-num { font-size: 40px; font-weight: 900; color: #fff; line-height: 1; }
.score-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.result-grade { text-align: center; margin-bottom: 12px; padding-top: 16px; }
.result-grade .label { font-size: 18px; font-weight: 800; color: #fff; margin: 4px 0; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.result-grade .desc { font-size: 11px; color: rgba(255,255,255,0.7); text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

.couple-card-dark {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--dark-border);
  border-radius: 14px; margin: 12px 0;
  flex-wrap: wrap;
}
.couple-card-dark .character { text-align: center; flex: 1; }
.couple-card-dark .character .emoji { font-size: 36px; }
.couple-card-dark .character .nickname { font-size: 13px; font-weight: 700; color: #fff; margin-top: 4px; }
.couple-card-dark .character .archetype { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.couple-heart { font-size: 28px; animation: heartbeat 1.5s infinite; }

.chemistry-line-dark {
  text-align: center; font-size: 13px; font-weight: 700; color: var(--gold);
  padding: 8px; background: rgba(232,168,56,0.08); border: 1px solid rgba(232,168,56,0.15);
  border-radius: 10px; margin: 8px 0;
}

/* 다크 해석 텍스트 */
.dk-interp-text {
  font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.7;
  padding: 12px; background: rgba(255,255,255,0.03); border-radius: 12px;
  border: 1px solid var(--dark-border);
}

/* 다크 광고 슬롯 */
.ad-slot-dark { margin: 12px 16px; padding: 40px 0; background: rgba(255,255,255,0.02); border-radius: 10px; text-align: center; font-size: 10px; color: rgba(255,255,255,0.15); border: 1px dashed rgba(255,255,255,0.08); }

/* 다크 버튼 */

/* ========== 상세 분석 (다크) ========== */
.radar-item { display: flex; align-items: center; margin-bottom: 10px; }
.radar-label { width: 70px; font-size: 11px; color: rgba(255,255,255,0.8); font-weight: 600; }
.radar-bar-bg { flex: 1; height: 20px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.radar-bar { height: 100%; border-radius: 10px; }
.radar-bar.ilgan { background: linear-gradient(90deg, #FF8A65, #E64A19); }
.radar-bar.ohang { background: linear-gradient(90deg, #66BB6A, #2E7D32); }
.radar-bar.jiji { background: linear-gradient(90deg, #AB47BC, #6A1B9A); }
.radar-bar.cheongan { background: linear-gradient(90deg, #42A5F5, #1565C0); }
.radar-bar.napeum { background: linear-gradient(90deg, #FFD54F, #FF8F00); }
.radar-bar.bonus { background: linear-gradient(90deg, var(--pink), var(--deep)); }
.radar-score { width: 40px; text-align: right; font-size: 11px; font-weight: 700; color: var(--rose); }

/* 다크 해석 섹션 */
.dk-interp-section { margin: 12px 0; }
.dk-interp-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

/* ========== 쌍방향 + 스토리 (다크) ========== */
.perspective-cards { display: flex; gap: 8px; margin: 10px 0; }
.perspective-card { flex: 1; padding: 12px; border-radius: 12px; font-size: 11px; line-height: 1.6; }
.perspective-card.a { background: rgba(66,165,245,0.08); border: 1px solid rgba(66,165,245,0.2); color: rgba(255,255,255,0.7); }
.perspective-card.b { background: rgba(232,69,107,0.08); border: 1px solid rgba(232,69,107,0.2); color: rgba(255,255,255,0.7); }
.perspective-card .p-label { font-size: 10px; font-weight: 700; margin-bottom: 6px; }
.perspective-card.a .p-label { color: #64B5F6; }
.perspective-card.b .p-label { color: var(--rose); }

.story-card-dark {
  padding: 16px; border-radius: 14px; margin: 12px 0;
  background: linear-gradient(135deg, rgba(255,248,225,0.05), rgba(232,69,107,0.05));
  border: 1px solid rgba(232,168,56,0.15);
  position: relative;
}
.story-card-dark::before {
  content: '\201C'; position: absolute; top: 8px; left: 12px;
  font-size: 40px; color: rgba(232,168,56,0.1); font-family: Georgia, serif; line-height: 1;
}
.story-card-dark .story-title { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.story-card-dark .story-text { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* CTA 배너 다크 */
.cta-banner-dark { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin: 12px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--dark-border); border-radius: 14px; text-decoration: none; }
.cta-banner-dark .cta-emoji { font-size: 28px; }
.cta-banner-dark .cta-text { font-size: 12px; color: rgba(255,255,255,0.5); }
.cta-banner-dark .cta-text strong { color: #fff; display: block; font-size: 13px; }

/* ========== 공유 카드 (D1 스타일) ========== */
.share-card-d1 {
  border-radius: 24px; padding: 32px 24px; text-align: center;
  color: #fff; position: relative; overflow: hidden; margin: 12px 16px;
  background: linear-gradient(160deg, #AD1457 0%, #880E4F 40%, #4A148C 100%);
}
.share-card-d1::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/hero.png') center / cover; opacity: 0.12; filter: saturate(0.4);
}
.share-card-d1 .stars {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 80% 40%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 70% 65%, rgba(255,255,255,0.3), transparent);
}
.share-card-d1 > * { position: relative; z-index: 1; }
.share-card-d1 .s-title { font-size: 11px; opacity: 0.7; }
.share-card-d1 .s-score {
  font-size: 68px; font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, #FFF 30%, #FFD54F 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255,215,0,0.3));
}
.share-card-d1 .s-grade { font-size: 18px; font-weight: 700; margin: 8px 0; }
.share-card-d1 .s-couple {
  display: flex; justify-content: center; gap: 12px; font-size: 13px;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15); margin: 12px 0;
}
.share-card-d1 .s-chem { font-size: 12px; opacity: 0.9; }
.share-card-d1 .s-domain {
  display: inline-block; margin-top: 14px; padding: 3px 14px;
  font-size: 9px; letter-spacing: 1px; opacity: 0.5;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 20px;
}

/* 다크 공유 버튼 */
.share-btns-dark { display: flex; gap: 8px; margin: 12px 16px; }
.share-btn-dark { flex: 1; padding: 12px; border-radius: 12px; text-align: center; font-size: 12px; font-weight: 600; border: none; cursor: pointer; }
.share-btn-dark.kakao { background: #FEE500; color: #3C1E1E; }
.share-btn-dark.insta { background: linear-gradient(45deg, #405DE6, #E1306C, #F77737); color: white; }
.share-btn-dark.save { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); border: 1px solid var(--dark-border); }
.share-btn-dark.link { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5); border: 1px solid var(--dark-border); }

/* 다크 FAQ */
.faq-item-dark { margin: 8px 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--dark-border); border-radius: 12px; overflow: hidden; }
.faq-q-dark { padding: 14px 16px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); cursor: pointer; display: flex; justify-content: space-between; }
.faq-a-dark { padding: 0 16px 14px; font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.6; display: none; }

.footer-dark { text-align: center; padding: 20px 16px; font-size: 10px; color: rgba(255,255,255,0.2); }

/* 광고 미로드 시 빈 블록 숨김 */
.ad-slot-dark ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot-dark:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-slot-dark:empty { display: none; }

/* select 드롭다운 option 글씨 (OS 네이티브: 흰 배경) */
.form-dark select option {
  background: #1A1A2E;
  color: rgba(255,255,255,0.9);
}
