/* ============================================================
   커플/친구 사주 궁합 데이트 — 페이지 전용 스타일.
   saju.css의 다크 명리 테마 토큰(.sj-stage/.sj-app/.sj-btn-gold/.sj-select 등)을
   그대로 쓰고, 여긴 이 페이지에만 필요한 조각만 담당한다.
   ============================================================ */

@keyframes beat {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.18); }
    45% { transform: scale(1); }
    60% { transform: scale(1.12); }
}

/* ── 랜딩: 甲 + ❤ + 丙 엠블럼 ────────────────────────────── */
.sj-date-landing { padding: 60px 30px 40px; }
.sj-date-emblem {
    position: relative;
    width: 200px;
    height: 150px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.sj-date-emblem .glow {
    position: absolute;
    inset: -10px 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 179, 106, .22) 0%, transparent 70%);
    animation: pulseGlow 5s ease-in-out infinite;
}
.sj-date-stamp {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 20px;
    border: 1.5px solid;
    background: rgba(255, 255, 255, .04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif KR', serif;
    font-size: 40px;
}
.sj-date-heart { font-size: 26px; color: #E27396; animation: beat 2.6s ease-in-out infinite; z-index: 2; }
.sj-date-heart-glyph { font-size: 44px; animation: beat 2.2s ease-in-out infinite; }
.sj-date-loader .lr1 { border-top-color: #D4B36A; }

/* ── 입력: 사람 탭 · 성별 ────────────────────────────────── */
.sj-person-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.sj-person-tab {
    position: relative;
    flex: 1 1 44%;
    min-width: 130px;
    text-align: left;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(212, 179, 106, .15);
    color: #9A926F;
}
.sj-person-tab.active { background: rgba(212, 179, 106, .12); border-color: rgba(212, 179, 106, .42); color: #EDE4CC; }
.sj-person-tab-label { font-size: 11.5px; opacity: .8; margin-bottom: 3px; }
.sj-person-tab-summary { font-size: 13px; font-weight: 600; }
.sj-person-tab-remove {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 13px;
    color: #8A815F;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
}
.sj-add-person { border-style: dashed; }

.sj-text-input {
    width: 100%;
    padding: 15px 14px;
    border-radius: 13px;
    border: 1px solid rgba(212, 179, 106, .22);
    background: rgba(255, 255, 255, .04);
    color: #EDE4CC;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
}
.sj-text-input:focus { outline: none; border-color: rgba(212, 179, 106, .55); }
.sj-text-input::placeholder { color: #6E664B; }

.sj-gender-row { display: flex; gap: 20px; padding: 15px 0 5px; }
.sj-gender-opt { display: inline-flex; align-items: center; gap: 6px; color: #DCD3B6; font-size: 14px; cursor: pointer; }
.sj-gender-opt input { accent-color: #D4B36A; width: 16px; height: 16px; }

/* ── 결과: 커플 히어로 (일간 타일 2개 + 관계 심볼) ──────────── */
.sj-couple-hero { text-align: center; margin-bottom: 8px; animation: riseIn .7s ease both; }
.sj-couple-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; }
.sj-couple-person { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sj-couple-stamp {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    border: 1.5px solid;
    background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif KR', serif;
    font-size: 42px;
    animation: stampIn .8s ease both;
}
.sj-couple-person:last-child .sj-couple-stamp { animation-delay: .15s; }
.sj-couple-person-label { font-size: 12px; color: #B8AE8C; }

/* ── 결과: 12간지 캐릭터 카드 (오행 테마 타일) ─────────────── */
.sj-avatar-card {
    width: 118px;
    height: 118px;
    border-radius: 20px;
    overflow: hidden;
    animation: stampIn .8s ease both;
}
.sj-couple-person:last-child .sj-avatar-card { animation-delay: .15s; }
.sj-avatar-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sj-avatar-card-sm { width: 88px; height: 88px; border-radius: 16px; }
.sj-couple-rel-symbol { font-family: 'Noto Serif KR', serif; font-size: 30px; color: #E7D6A2; text-shadow: 0 0 18px rgba(212, 179, 106, .5); }

/* ── 결과: 친구 히어로 (스탬프 N개) ─────────────────────────── */
.sj-friends-hero { text-align: center; margin-bottom: 8px; animation: riseIn .7s ease both; }
.sj-friends-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 12px; margin-bottom: 22px; }
.sj-friend-stamp-wrap { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.sj-friend-stamp {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    border: 1.5px solid;
    background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif KR', serif;
    font-size: 34px;
    animation: stampIn .8s ease both;
}
.sj-friend-stamp-label { font-size: 11px; color: #B8AE8C; }

/* ── 결과: 점수 + 관계 뱃지 + 설명 ───────────────────────────── */
.sj-score-big {
    font-family: 'Noto Serif KR', serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(100deg, #F0E0AE, #D4B36A, #EBD9A6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sj-score-big span { font-size: 24px; }
.sj-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(212, 179, 106, .12);
    border: 1px solid rgba(212, 179, 106, .28);
    font-size: 13px;
    color: #E7D6A2;
    margin-top: 14px;
}
.sj-compat-desc { font-size: 14.5px; line-height: 1.85; color: #C4BB9E; max-width: 320px; margin: 16px auto 0; text-wrap: pretty; }
.sj-daystem-rel { font-size: 13.5px; color: #DCD3B6; margin-top: 12px; }
.sj-daystem-rel-symbol {
    font-family: 'Noto Serif KR', serif;
    font-size: 18px;
    color: #E7D6A2;
    margin-right: 6px;
}

.sj-factors-toggle {
    display: block;
    margin: 14px auto 0;
    background: none;
    border: none;
    color: #8A815F;
    font-size: 12.5px;
    text-decoration: underline;
    text-decoration-style: dotted;
    cursor: pointer;
}
.sj-factors-list { margin-top: 14px; text-align: left; }

/* ── 결과: 지금 흐르는 기운 (대운/세운/월운 3카드) ─────────────── */
.sj-luck3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 28px; }
.sj-luck3-card {
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    padding: 15px 6px;
    text-align: center;
}
.sj-luck3-card.month {
    position: relative;
    border: 1.5px solid var(--month-color, #D4B36A);
    background: linear-gradient(160deg, rgba(212, 179, 106, .12), rgba(255, 255, 255, .01));
    box-shadow: 0 0 22px var(--month-glow, rgba(212, 179, 106, .3));
}
.sj-luck3-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    letter-spacing: 1px;
    color: #1a1206;
    background: #D4B36A;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.sj-luck3-label { font-size: 10.5px; color: #8A815F; margin-bottom: 8px; }
.sj-luck3-card.month .sj-luck3-label { color: #C9B27A; }
.sj-luck3-hanja { font-family: 'Noto Serif KR', serif; font-size: 26px; }
.sj-luck3-name { font-size: 11px; color: #B8AE8C; margin-top: 6px; }
.sj-luck3-card.month .sj-luck3-name { color: #DCD3B6; }

/* ── 결과: 이 달의 동네 카드 + 목업 지도 ─────────────────────── */
.sj-nbh-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(212, 179, 106, .2);
    background: linear-gradient(165deg, rgba(212, 179, 106, .1), rgba(255, 255, 255, .01));
    margin-bottom: 16px;
}
.sj-nbh-body { padding: 22px 22px 18px; }
.sj-nbh-kicker { font-size: 11.5px; letter-spacing: 2px; color: #B39B63; margin-bottom: 12px; }
.sj-nbh-title-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sj-nbh-name { font-family: 'Noto Serif KR', serif; font-size: 30px; font-weight: 600; color: #F2ECDA; }
.sj-nbh-tag { font-size: 13px; color: var(--month-color, #D4B36A); }
.sj-nbh-why { font-size: 13.5px; line-height: 1.8; color: #B8AE8C; margin: 0; text-wrap: pretty; }

.sj-mock-map {
    position: relative;
    height: 214px;
    background: linear-gradient(160deg, #20242b, #171a20);
    border-top: 1px solid rgba(255, 255, 255, .06);
    overflow: hidden;
}
.sj-mock-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(58deg, transparent 0 26px, rgba(255, 255, 255, .045) 26px 28px),
        repeating-linear-gradient(-42deg, transparent 0 34px, rgba(255, 255, 255, .04) 34px 36px);
}
.sj-mock-map .land1 { position: absolute; top: -30px; left: -20px; width: 150px; height: 120px; transform: rotate(18deg); background: rgba(88, 120, 150, .28); border-radius: 40%; }
.sj-mock-map .land2 { position: absolute; bottom: -24px; right: -10px; width: 120px; height: 90px; background: rgba(90, 140, 100, .2); border-radius: 45%; }
.sj-mock-map .glowspot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--month-glow, rgba(212, 179, 106, .3)) 0%, transparent 70%);
}
.sj-map-pin { position: absolute; transform: translate(-50%, -100%); }
.sj-map-pin-diamond {
    width: 26px;
    height: 26px;
    border-radius: 50% 50% 50% 2px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sj-map-pin-diamond span { transform: rotate(-45deg); font-size: 12px; font-weight: 700; color: #1a1206; }
.sj-map-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sj-map-badge-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(12, 10, 22, .72);
    backdrop-filter: blur(4px);
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
}
.sj-map-badge-k {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #FEE500;
    color: #3A1D1D;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sj-map-badge-text { font-size: 11.5px; color: #DCD3B6; }
.sj-map-credit { position: absolute; bottom: 12px; right: 12px; font-size: 9.5px; color: rgba(255, 255, 255, .35); }

.sj-sample-notice {
    font-size: 11.5px;
    color: #9A926F;
    background: rgba(255, 255, 255, .03);
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 10px 22px;
}

/* ── 결과: 장소 카드 ─────────────────────────────────────── */
.sj-places-wrap { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.sj-place-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
    padding: 15px;
    animation: riseIn .5s ease both;
}
.sj-place-diamond {
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 2px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #F0E0AE, #D4B36A);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.sj-place-diamond span { transform: rotate(-45deg); font-size: 13px; font-weight: 700; color: #1a1206; }
.sj-place-body { flex: 1; min-width: 0; }
.sj-place-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.sj-place-name { font-size: 15.5px; font-weight: 700; color: #F2ECDA; }
.sj-place-cat { font-size: 10.5px; color: #C9B27A; padding: 2px 8px; border-radius: 6px; background: rgba(212, 179, 106, .12); }
.sj-place-blurb { font-size: 12.5px; color: #9A926F; margin-bottom: 8px; }
.sj-place-meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: #8A815F; }
.sj-place-meta .stars { color: #E7D6A2; }
.sj-place-btn {
    align-self: center;
    flex-shrink: 0;
    border: 1px solid rgba(212, 179, 106, .3);
    background: rgba(255, 255, 255, .03);
    color: #DCD3B6;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.sj-place-locked { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); }
.sj-place-locked-skeleton { display: flex; flex-direction: column; gap: 11px; padding: 15px; filter: blur(3px); opacity: .5; }
.sj-place-locked-row { display: flex; gap: 14px; align-items: center; }
.sj-place-locked-diamond { width: 28px; height: 28px; border-radius: 50% 50% 50% 2px; transform: rotate(45deg); background: #3a352a; flex-shrink: 0; }
.sj-place-locked-bar1 { height: 12px; width: 55%; background: rgba(255, 255, 255, .14); border-radius: 4px; margin-bottom: 8px; }
.sj-place-locked-bar2 { height: 10px; width: 75%; background: rgba(255, 255, 255, .08); border-radius: 4px; }
.sj-place-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 18, .5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.sj-place-locked-overlay .ic { font-size: 26px; margin-bottom: 8px; }
.sj-place-locked-overlay .t1 { font-size: 14.5px; color: #EDE4CC; margin-bottom: 3px; font-weight: 600; }
.sj-place-locked-overlay .t2 { font-size: 12px; color: #9A926F; margin-bottom: 15px; }

@media (max-width: 640px) {
    .sj-luck3-grid { gap: 6px; }
}

/* ── 초대 완성 페이지: 호스트 확인 카드 + 게스트 강조 (계획 13) ─────── */
.sj-invite-host {
    display: flex; align-items: center; gap: 14px;
    max-width: 320px; margin: 4px auto 18px; padding: 12px 16px;
    background: rgba(212, 179, 106, .07);
    border: 1px solid rgba(212, 179, 106, .25);
    border-radius: 16px;
}
.sj-invite-host-card { position: relative; flex: 0 0 auto; opacity: .96; }
.sj-invite-host-check {
    position: absolute; right: -4px; bottom: -4px;
    width: 26px; height: 26px; border-radius: 50%;
    background: #5FB784; color: #0B1020; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.sj-invite-host-text { display: flex; flex-direction: column; gap: 3px; }
.sj-invite-host-name { font-size: 16px; font-weight: 700; color: #EDE4CC; }
.sj-invite-host-status { font-size: 12.5px; color: #5FB784; }

.sj-invite-turn { text-align: center; margin: 0 0 6px; }
.sj-invite-turn-badge {
    display: inline-block; padding: 5px 14px; border-radius: 999px;
    background: linear-gradient(135deg, #D4B36A, #B48F4A);
    color: #1A1206; font-size: 13px; font-weight: 700;
    box-shadow: 0 0 18px rgba(212, 179, 106, .4);
}
.sj-invite-turn-sub { margin: 8px 0 2px; text-align: center; color: #B8AE8C; font-size: 13px; }

/* 게스트 입력 강조: 초대 화면의 폼을 골드 테두리로 감싸 "여기 채워요"를 명확히 */
.sj-screen[data-screen="invite"] .sj-fields {
    border: 1px solid rgba(212, 179, 106, .22);
    border-radius: 16px; padding: 4px 14px 10px; margin-top: 4px;
    background: rgba(255, 255, 255, .015);
}

.sj-invite-summary {
    min-height: 18px; margin: 12px 4px 0; text-align: center;
    font-size: 13px; color: #C9B27A;
}

/* ── 결과 → 내 사주 재사용: 사람 선택 칩 (계획 13) ─────────────── */
.sj-saju-picker {
    margin: 4px 0 2px; padding: 12px; border-radius: 14px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(212, 179, 106, .18);
}
.sj-saju-picker-title { text-align: center; font-size: 13px; color: #B8AE8C; margin-bottom: 10px; }
.sj-saju-picker-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sj-saju-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    background: rgba(212, 179, 106, .1);
    border: 1px solid rgba(212, 179, 106, .3);
    color: #EDE4CC; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.sj-saju-chip:hover { background: rgba(212, 179, 106, .2); }
.sj-saju-chip:active { transform: scale(.96); }
.sj-saju-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* ── 데이트 동네: 실지도(Leaflet) + 식당/카페 토글 (요청: 지도 고도화) ─── */
.sj-date-map {
    width: 100%; height: 240px; border-radius: 16px; overflow: hidden;
    margin: 4px 0 12px; border: 1px solid rgba(212, 179, 106, .25);
    background: #0e1120; z-index: 0;
}
.sj-date-map .leaflet-control-attribution {
    background: rgba(11, 16, 32, .7); color: #9A926F; font-size: 9px;
}
.sj-date-map .leaflet-control-attribution a { color: #B8AE8C; }

/* 커스텀 골드 핀(마커 이미지 없이 DivIcon) */
.sj-leaflet-pin {
    width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, #F0E0AE, #D4B36A);
    border: 2px solid #8a6d34; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    display: flex; align-items: center; justify-content: center;
}
.sj-leaflet-pin span { transform: rotate(45deg); color: #2A1E08; font-weight: 800; font-size: 14px; line-height: 1; }
.sj-leaflet-pin.active { background: linear-gradient(135deg, #FFF0C4, #E7C36A); transform: rotate(-45deg) scale(1.15); }

.sj-cat-toggle {
    display: flex; gap: 8px; margin: 0 0 12px; padding: 4px;
    background: rgba(255, 255, 255, .03); border-radius: 12px;
}
.sj-cat-tab {
    flex: 1; padding: 9px 0; border: 0; border-radius: 9px;
    background: transparent; color: #B8AE8C; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .15s ease, color .15s ease;
}
.sj-cat-tab.active {
    background: linear-gradient(135deg, #D4B36A, #B48F4A);
    color: #1A1206; box-shadow: 0 0 14px rgba(212, 179, 106, .35);
}

/* 카드 클릭 → 지도 마커 이동, 선택 카드 강조 */
.sj-place-card { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.sj-place-card.active {
    border-color: rgba(212, 179, 106, .6);
    background: rgba(212, 179, 106, .08);
}
.sj-place-btn { cursor: pointer; border: 0; }
