/* NIGHT ENTRY — 첫 화면 아래 · 입력 화면(2026-09-30, 사용자 선택 「추천 조합」).
   보호 파일(entry-v5.css · app.js · free-result-v4.js)은 그대로 두고, 이 층이 마지막에 얹힌다. 입력 로직은 건드리지 않는다.
   1) 바탕: 첫 화면의 밤하늘을 아래까지(느린 빛 셋 + 별먼지)
   2) 주인공: 사주단자 카드 = 옻칠 네이비 바탕 · 금박 글자의 물건(채워질 때 금박 광택이 한 번, 데스크톱은 포인터에 따라 살짝 기울기)
   3) 유리는 떠 있는 조작 요소에만: 머리 막대 · 첫 화면 단추 · 성별 렌즈 · 스위치 · 도시 결과 시트
   4) 입력판은 불투명한 묶음(잘 읽히게), 대신 포커스 · 누름 반응을 정교하게
   금색 테두리는 쓰지 않는다(D5) — 테는 아이보리 머리카락 선만. 투명도 줄이기 · 고대비 · 움직임 줄이기면 조용한 불투명 모습 */

/* ── 1. 밤하늘(결과가 열리지 않은 동안만) ───────────────────────────── */
html:not(:has(#result:not([hidden]))) { background: #05080f; overflow-anchor: none; } /* 입력칸 제자리 맞춤은 entry-night.js가 한다 */
html:not(:has(#result:not([hidden]))) body { background: transparent !important; }
.ne-sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(140% 100% at 50% 0%, #0e1b37 0%, #080f20 45%, #04070e 100%); }
html:has(#result:not([hidden])) .ne-sky { display: none; }
.ne-sky i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.ne-sky .ne-a { width: 72vmax; height: 72vmax; left: -26vmax; top: 22vh; background: radial-gradient(closest-side, rgba(217,184,120,.2), rgba(217,184,120,.06) 50%, transparent 74%); animation: ne-a 84s ease-in-out infinite alternate; }
.ne-sky .ne-b { width: 66vmax; height: 66vmax; right: -28vmax; top: 46vh; background: radial-gradient(closest-side, rgba(70,98,190,.28), rgba(70,98,190,.08) 50%, transparent 74%); animation: ne-b 100s ease-in-out infinite alternate; }
.ne-sky .ne-c { width: 54vmax; height: 54vmax; left: 24vw; top: 76vh; background: radial-gradient(closest-side, rgba(244,239,228,.09), transparent 72%); animation: ne-c 92s ease-in-out infinite alternate; }
.ne-sky .ne-dust { inset: 0; border-radius: 0; opacity: .55; background-image:
  radial-gradient(1px 1px at 8% 14%, rgba(244,239,228,.8), transparent 60%), radial-gradient(1px 1px at 22% 62%, rgba(244,239,228,.55), transparent 60%),
  radial-gradient(1.4px 1.4px at 37% 28%, rgba(244,239,228,.9), transparent 60%), radial-gradient(1px 1px at 51% 83%, rgba(244,239,228,.5), transparent 60%),
  radial-gradient(1px 1px at 64% 9%, rgba(244,239,228,.7), transparent 60%), radial-gradient(1.2px 1.2px at 73% 47%, rgba(244,239,228,.6), transparent 60%),
  radial-gradient(1px 1px at 86% 71%, rgba(244,239,228,.75), transparent 60%), radial-gradient(1px 1px at 93% 22%, rgba(244,239,228,.5), transparent 60%),
  radial-gradient(1px 1px at 30% 93%, rgba(244,239,228,.6), transparent 60%), radial-gradient(1.3px 1.3px at 57% 55%, rgba(241,223,178,.7), transparent 60%);
  background-size: 560px 560px; }
@keyframes ne-a { to { transform: translate(20vw, -14vh) scale(1.14); } }
@keyframes ne-b { to { transform: translate(-18vw, 12vh) scale(.9); } }
@keyframes ne-c { to { transform: translate(-12vw, -20vh) scale(1.2); } }

/* 첫 화면 사진은 아래로 갈수록 투명해져 밤하늘로 이어진다(바탕색 띠 · 경계선 없음) */
html:not(:has(#result:not([hidden]))) body .s2-hero-media { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
html:not(:has(#result:not([hidden]))) body .s2-hero::after { background: none !important; }

/* ── 2. 유리: 떠 있는 조작 요소 ─────────────────────────────────────── */
/* 금빛 단추: 금속 광택. 첫 화면 「무료로 시작」은 단추 자체, 머리 막대의 금 알약은 알약을 그리는 ::before에(결과 화면에서는 원래 알약 — D5 규칙) */
html body .s2-hero .s2-btn-gold {
  background: linear-gradient(180deg, #f6e8c6 0%, #e4c78b 44%, #cfa65e 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), inset 0 -2px 6px rgba(110,78,24,.28), 0 10px 28px rgba(217,184,120,.24) !important; border: 0 !important;
}
html:not(:has(#result:not([hidden]))) body .s2-bar .s2-bar-cta::before { background: linear-gradient(180deg, #f6e8c6 0%, #e4c78b 44%, #cfa65e 100%) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 5px rgba(0,0,0,.14), 0 6px 18px rgba(217,184,120,.2); }
/* 유리 단추(첫 화면 「리포트 예시」) */
html body .s2-hero .s2-btn-glass {
  background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.05)) !important; color: #fff !important; border: 0 !important;
  -webkit-backdrop-filter: blur(22px) saturate(185%); backdrop-filter: blur(22px) saturate(185%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 0 0 .5px rgba(255,255,255,.26), 0 12px 30px rgba(0,0,0,.3) !important;
}

/* ── 3. 첫 화면 아래 타일 셋: 불투명한 카드 + 유리 아이콘 ─────────────── */
html body .s2-bento .s2-tile { background: linear-gradient(180deg, #111b31, #0b1325) !important; border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 .5px rgba(255,255,255,.09), 0 22px 54px rgba(0,0,0,.34) !important; }
html body .s2-bento .s2-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #f3e2b8;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 .5px rgba(255,255,255,.18); }
html body .s2-bento .s2-ico svg { width: 22px; height: 22px; stroke: currentColor; }
@media (min-width: 720px) { html body .s2-bento .s2-tile-text { grid-template-columns: 44px minmax(0, 1fr) !important; column-gap: 16px !important; } }
@media (max-width: 719px) { html body .s2-bento .s2-tile-text { grid-template-columns: 44px minmax(0, 1fr) !important; } }

/* ── 4. 주인공: 사주단자 카드 ─────────────────────────────────────── */
html:not(:has(#result:not([hidden]))) body #formCard#formCard#formCard .s2-card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 30px !important; padding: 30px 26px 24px !important;
  background:
    radial-gradient(90% 70% at var(--ne-lx, 18%) var(--ne-ly, -12%), rgba(255,255,255,.1), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.014) 0 2px, transparent 2px 7px),
    radial-gradient(130% 100% at 15% 0%, #1f2c4b 0%, #111b33 42%, #0a1122 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.17), inset 0 0 0 1px rgba(244,239,228,.08), 0 40px 90px rgba(0,0,0,.55), 0 2px 12px rgba(0,0,0,.35) !important;
  transform: perspective(1000px) rotateX(var(--ne-rx, 0deg)) rotateY(var(--ne-ry, 0deg));
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
/* 안쪽 두 줄 테(전통 문서의 틀, 아이보리 머리카락 선) */
html body #formCard#formCard#formCard .s2-card::before { content: ""; position: absolute; inset: 10px; z-index: 0; border-radius: 22px; pointer-events: none; box-shadow: inset 0 0 0 .75px rgba(244,239,228,.1); }
/* 채워질 때 한 번 지나가는 금박 광택 */
html body #formCard#formCard#formCard .s2-card::after { content: ""; position: absolute; inset: -40% -80%; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 42%, rgba(243,226,184,.1) 47.5%, rgba(255,255,255,.18) 50%, rgba(243,226,184,.1) 52.5%, transparent 58%); transform: translateX(-60%); }
html body #formCard#formCard#formCard .s2-card.ne-sweep::after { animation: ne-sweep 1.5s cubic-bezier(.25,.7,.2,1) both; }
@keyframes ne-sweep { 0% { opacity: 0; transform: translateX(-60%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(60%); } }
html body #formCard#formCard#formCard .s2-card > * { position: relative; z-index: 1; }
/* 제목: 금박 글자 */
html body #formCard#formCard#formCard .s2-card-title span { font-family: var(--s-hanja, sans-serif) !important; font-weight: 400 !important; letter-spacing: .34em !important;
  background: linear-gradient(100deg, #b98f4c 0%, #f3e2b8 28%, #d9b878 52%, #fff2cf 68%, #c79d57 100%); background-size: 220% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent !important; }
html body #formCard#formCard#formCard .s2-card.ne-sweep .s2-card-title span { animation: ne-foil 1.5s cubic-bezier(.25,.7,.2,1) both; }
@keyframes ne-foil { to { background-position: 100% 0; } }
html body #formCard#formCard#formCard .s2-card-title small { color: rgba(244,239,228,.5) !important; }
html body #formCard#formCard#formCard :is(.s2-card-empty, .v4-preview-place) { color: rgba(244,239,228,.55) !important; }
/* 채우기 전: 새겨진 자리 */
html body #formCard#formCard#formCard .s2-card-cols li { background: rgba(255,255,255,.028) !important; border: 0 !important; border-radius: 16px !important; box-shadow: inset 0 0 0 .5px rgba(244,239,228,.08) !important; transition: background-color .4s ease, box-shadow .4s ease; }
html body #formCard#formCard#formCard .s2-card-cols .s2-card-hj { font-family: var(--s-hanja, sans-serif) !important; font-weight: 300 !important; color: rgba(244,239,228,.42) !important; transition: color .4s ease; }
html body #formCard#formCard#formCard .s2-card-cols li.is-filled { background: rgba(255,255,255,.05) !important; box-shadow: inset 0 0 0 .5px rgba(244,239,228,.16) !important; }
html body #formCard#formCard#formCard .s2-card-cols li.is-filled .s2-card-hj { color: #f4efe4 !important; }
html body #formCard#formCard#formCard .s2-card-cols li.is-filled .s2-card-v { color: #f3e2b8 !important; }
/* 계산된 네 기둥: 가는 고딕 한자, 일간은 금박 */
html body #formCard#formCard#formCard .v4-preview .report-birthmap-hanja { font-family: var(--s-hanja, sans-serif) !important; font-weight: 300 !important; font-size: 38px !important; color: #f4efe4 !important; }
html body #formCard#formCard#formCard .v4-preview .is-day .report-birthmap-hanja:not(.report-birthmap-branch) {
  background: linear-gradient(180deg, #fff2cf 0%, #e7cb8f 45%, #c79d57 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
html body #formCard#formCard#formCard .v4-preview .is-day::after { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important; border: 0 !important; box-shadow: inset 0 0 0 .75px rgba(244,239,228,.2), inset 0 1px 0 rgba(255,255,255,.14) !important; }
html body #formCard#formCard#formCard .v4-preview :is(.report-birthmap-pillar-position) { color: rgba(244,239,228,.62) !important; letter-spacing: .04em; }
html body #formCard#formCard#formCard .v4-preview :is(.report-birthmap-ten-god, .report-birthmap-korean) { color: rgba(244,239,228,.46) !important; }
html body #formCard#formCard#formCard .v4-preview-chart { border-top: .5px solid rgba(244,239,228,.12) !important; }
html body #formCard#formCard#formCard .v4-preview-chart > summary { color: #f4efe4 !important; }

/* 카드 안의 작은 글자는 산세리프(한자만 가는 고딕) */
html body #formCard#formCard#formCard :is(.s2-card-title small, .s2-card-empty, .v4-preview-place, .v4-bigthree span, .s2-card-v, .v4-preview-chart > summary) { font-family: var(--s-font, sans-serif) !important; }
/* 구역 제목: 흰색에서 샴페인으로 내려가는 티타늄 같은 글자 */
html body #formCard#formCard#formCard .danja-title { background: linear-gradient(180deg, #ffffff 35%, #e3d2ac 120%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
@media (forced-colors: active) { html body #formCard#formCard#formCard .danja-title { background: none; color: CanvasText !important; } }

/* ── 5. 입력판: 불투명한 묶음, 칸은 살짝 들어간 홈 ─────────────────── */
@media (min-width: 900px) {
  html:not(:has(#result:not([hidden]))) body #formCard#formCard#formCard #birthForm { padding: 32px 32px 28px !important; border-radius: 30px !important; background: rgba(8,13,26,.9) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 .5px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.42) !important; }
}
html body #formCard#formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input, details.adv select) {
  background-color: #0d1528 !important; border: 0 !important; border-radius: 14px !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.13) !important;
  transition: box-shadow .25s ease, background-color .25s ease !important;
}
html body #formCard#formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input, details.adv select):hover { background-color: #101a31 !important; }
html body #formCard#formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input, details.adv select):focus-visible {
  background-color: #121d36 !important; outline: none !important;
  box-shadow: inset 0 0 0 1.5px rgba(244,239,228,.62), 0 0 0 4px rgba(244,239,228,.07) !important; }
html body #formCard#formCard#formCard #birthForm :is(.birth-date-parts input, input#time, input#placeSearch, .coord-grid input)[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #ff6961 !important; }
/* 성별: 불투명한 홈 위를 미끄러지는 유리 렌즈(조금 출렁이며 멈춤) */
html body #formCard#formCard#formCard #birthForm #genderSeg.seg { padding: 4px !important; border-radius: 15px !important; background: #0d1528 !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.13) !important; }
html body #formCard#formCard#formCard #birthForm #genderSeg.seg > button { color: rgba(244,239,228,.66) !important; transition: color .3s ease; }
html body #formCard#formCard#formCard #birthForm #genderSeg.seg > button[aria-pressed="true"] { color: #fff !important; }
html body #formCard#formCard#formCard #birthForm #genderSeg .s-seg-thumb {
  top: 4px !important; bottom: 4px !important; border-radius: 11px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.27), rgba(255,255,255,.1)) !important;
  -webkit-backdrop-filter: blur(10px) saturate(185%); backdrop-filter: blur(10px) saturate(185%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), inset 0 0 0 1px rgba(255,255,255,.3), 0 6px 18px rgba(0,0,0,.36) !important;
  transition: transform .55s cubic-bezier(.34,1.35,.5,1), width .55s cubic-bezier(.34,1.35,.5,1), opacity .2s ease !important;
}
/* 시각 모름 스위치: 유리 손잡이, 누르는 동안 길게 늘어난다 */
html body #formCard#formCard#formCard #birthForm input#timeUnknown { background: #1a2335 !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.4), inset 0 0 0 .5px rgba(255,255,255,.14) !important; transition: background-color .3s ease !important; }
html body #formCard#formCard#formCard #birthForm input#timeUnknown:checked { background: linear-gradient(180deg, #ecd39f, #c9a35f) !important; }
html body #formCard#formCard#formCard #birthForm input#timeUnknown::before { background: linear-gradient(180deg, #ffffff, #e8ebf1) !important; box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(0,0,0,.36), 0 0 0 .5px rgba(0,0,0,.08) !important; transition: transform .38s cubic-bezier(.34,1.35,.5,1), width .2s ease !important; }
html body #formCard#formCard#formCard #birthForm input#timeUnknown:active::before { width: 33px !important; }
html body #formCard#formCard#formCard #birthForm input#timeUnknown:checked:active::before { transform: translateX(14px) !important; }
/* 기기 저장 · 진태양시: 고르면 금빛에 옅은 빛 번짐 */
html body #formCard#formCard#formCard #birthForm :is(input#saveOnDevice, input#tst):checked { box-shadow: 0 0 0 4px rgba(217,184,120,.16) !important; }
/* 도시 결과: 떠 있는 유리 시트 */
html body #formCard#formCard#formCard #birthForm .place-results {
  background: linear-gradient(180deg, rgba(34,46,74,.7), rgba(16,24,44,.8)) !important; border: 0 !important; border-radius: 18px !important;
  -webkit-backdrop-filter: blur(28px) saturate(185%) !important; backdrop-filter: blur(28px) saturate(185%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 .5px rgba(255,255,255,.16), 0 24px 60px rgba(0,0,0,.5) !important;
}
/* 시작 단추: 금속 광택, 올리면 빛이 한 번 지나간다 */
html body #formCard#formCard#formCard #birthForm #submitBtn.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #f6e8c6 0%, #e4c78b 42%, #cfa65e 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -2px 8px rgba(110,78,24,.3), 0 14px 36px rgba(217,184,120,.24), 0 2px 6px rgba(0,0,0,.3) !important;
  transition: transform .2s ease, box-shadow .3s ease !important;
}
html body #formCard#formCard#formCard #birthForm #submitBtn.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 8px rgba(110,78,24,.3), 0 18px 46px rgba(217,184,120,.34), 0 2px 6px rgba(0,0,0,.3) !important; }
html body #formCard#formCard#formCard #birthForm #submitBtn.btn-primary:active { transform: scale(.985); }
html body #formCard#formCard#formCard #birthForm #submitBtn.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html body #formCard#formCard#formCard #birthForm #submitBtn.btn-primary:hover::after { animation: ne-cta 1.1s cubic-bezier(.25,.7,.2,1); }
}
@keyframes ne-cta { to { transform: translateX(120%); } }

/* ── 6. 스크롤 등장(한 번만): 타일 · 카드 · 입력판 ───────────────────── */
html.ne-fx :is(.s2-bento .s2-tile, #formCard .s2-card, #formCard #birthForm) { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1), translate .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--ne-i, 0) * 90ms); }
html.ne-fx :is(.s2-bento .s2-tile, #formCard #birthForm):not(.ne-in) { opacity: 0; translate: 0 28px; }
html.ne-fx #formCard .s2-card:not(.ne-in) { opacity: 0; translate: 0 36px; }

/* ── 7. 조용한 모습 ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ne-sky i { animation: none !important; }
  html body #formCard#formCard#formCard .s2-card { transform: none !important; }
  html body #formCard#formCard#formCard .s2-card.ne-sweep::after, html body #formCard#formCard#formCard .s2-card.ne-sweep .s2-card-title span { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  html body .s2-hero .s2-btn-glass, html body #formCard#formCard#formCard #birthForm :is(.place-results, #genderSeg .s-seg-thumb) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body .s2-hero .s2-btn-glass { background: #1a2436 !important; }
  html body #formCard#formCard#formCard #birthForm .place-results { background: #16203a !important; }
  html body #formCard#formCard#formCard #birthForm #genderSeg .s-seg-thumb { background: #3b4a66 !important; }
}
@media (forced-colors: active) {
  .ne-sky { display: none; }
  html body #formCard#formCard#formCard .s2-card { background: Canvas !important; box-shadow: none !important; border: 1px solid CanvasText !important; transform: none !important; }
  html body #formCard#formCard#formCard .s2-card-title span, html body #formCard#formCard#formCard .v4-preview .is-day .report-birthmap-hanja:not(.report-birthmap-branch) { color: CanvasText !important; background: none !important; }
  html body #formCard#formCard#formCard #birthForm #genderSeg .s-seg-thumb { background: Highlight !important; }
}

/* ── 입력하는 동안 사주 · 천궁도가 늘 보이게(2026-10-01 사용자 제보: 생년월일을 넣으면 사주 · 천궁도가 잘려 보임) ──
   PC: 왼쪽 카드는 원래(entry-v5) 화면에 붙어 따라오는 자리인데, 이 층의 position: relative가 그걸 덮어 카드가 84px 아래로 밀리고
   천궁도가 화면 밖으로 잘렸다. 붙임을 되살리고, 카드 전체가 한 화면에 들어오게 화면 높이에 맞춰 천궁도 크기를 줄인다 */
@media screen and (min-width: 1024px) {
  html:not(:has(#result:not([hidden]))) body #formCard#formCard#formCard .s2-card { position: sticky; top: calc(var(--s2-bar-h, 52px) + 24px); }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard#formCard .s2-card .v4-preview-chart .v4-chart { width: clamp(180px, calc(100svh - 560px), 280px); max-width: none; margin-left: auto; margin-right: auto; }
  html:not(:has(#result:not([hidden]))) body #formCard#formCard#formCard .s2-card .v4-preview-chart .v4-chart svg { display: block; width: 100%; height: auto; }
  .ne-mini { display: none !important; }
}
/* 폰: 카드가 입력칸 위라 계산되며 커지면 여덟 글자가 화면 위로 나간다 — 그때 헤더 아래에 요약 알약(기둥 넷 · 작은 문자판 · ↑). 누르면 카드로 */
.ne-mini { position: fixed; z-index: 60; left: 50%; top: calc(var(--s2-bar-h, 52px) + 16px); display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 7px 14px 7px 10px; border: 0; border-radius: 999px;
  background: rgba(12, 18, 32, .74); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: inset 0 0 0 .5px rgba(244, 239, 228, .16), 0 12px 32px rgba(0, 0, 0, .38);
  color: #f4efe4; cursor: pointer; opacity: 0; pointer-events: none; transform: translate(-50%, -10px) scale(.96); transition: opacity .28s ease, transform .4s cubic-bezier(.2, .8, .2, 1); -webkit-tap-highlight-color: transparent; }
.ne-mini.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.ne-mini-cols { display: flex; gap: 3px; }
.ne-mini-col { display: grid; place-items: center; gap: 2px; width: 26px; padding: 4px 0; border-radius: 9px; font: 400 15px/1 var(--s-hanja, serif); color: #f4efe4; }
.ne-mini-col b { font-weight: 400; }
.ne-mini-col.is-day { background: radial-gradient(100% 90% at 50% 62%, rgba(217, 184, 120, .34), rgba(217, 184, 120, .08) 70%); }
.ne-mini-dial { flex: none; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, #1a2233 0 50%, rgba(217, 184, 120, .55) 51% 54%, #111827 55% 78%, rgba(217, 184, 120, .7) 79% 83%, transparent 84%); }
.ne-mini-up { font-size: 14px; color: rgba(244, 239, 228, .7); }
@media (prefers-reduced-motion: reduce) { .ne-mini { transition: opacity .2s ease; transform: translate(-50%, 0); } }

/* ── 폰: 입력이 끝난 칸은 접히고 명식 · 천궁도가 떠오른다(entry-night.js 7번, 2026-10-01) ──
   처음 입력하는 동안 천궁도는 감춘다(.ne-hold) → 생년월일 · 시각이 접히면 카드가 늘어나며 떠오른다(.ne-rise).
   요약 줄은 입력칸과 같은 들어간 홈 재질, 위 작은 제목 「출생 정보」 · 아래 값 한 줄, 오른쪽 「수정」(44px 누름 영역). PC는 쓰지 않는다 */
html body #formCard#formCard#formCard #birthForm > .ne-sum { display: none; }
@media (max-width: 1023px) {
  html body #formCard#formCard#formCard #birthForm > .ne-gone { display: none !important; }
  html body #formCard .s2-card.ne-hold details.v4-preview-chart { display: none !important; }
  html body #formCard#formCard#formCard #birthForm > .ne-sum:not(.ne-gone) { display: flex; align-items: center; gap: 12px; margin: 0 0 32px; padding: 12px 8px 12px 18px; border-radius: 16px;
    background: #0d1528; box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.13); }
  html body #formCard#formCard#formCard #birthForm > .ne-sum .ne-sum-t { flex: 1; min-width: 0; margin: 0; display: grid; gap: 4px; }
  html body #formCard#formCard#formCard #birthForm > .ne-sum .ne-sum-t small { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: rgba(244,239,228,.56); }
  html body #formCard#formCard#formCard #birthForm > .ne-sum .ne-sum-v { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: #f5f5f7; word-break: keep-all; overflow-wrap: anywhere; }
  html body #formCard#formCard#formCard #birthForm > .ne-sum .ne-sum-edit { flex: none; min-width: 64px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255,255,255,.08); color: #f5f5f7; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em; transition: background-color .2s ease; }
  html body #formCard#formCard#formCard #birthForm > .ne-sum .ne-sum-edit:active { background: rgba(255,255,255,.14); }
  html body #formCard#formCard#formCard #birthForm > .ne-sum .ne-sum-edit:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px rgba(244,239,228,.62), 0 0 0 4px rgba(244,239,228,.07); }
}
/* 움직임(Apple 결). 스프링 곡선과 길이는 entry-night.js 7번이 :root 변수로 넣는다(--ne-sp-* · --ne-sd-*), 없으면 감속 곡선.
   사라지는 칸 내용: 살짝 흐려지며 작아짐(.ne-out) · 나타나는 내용: 흐림에서 또렷해지며 떠오름(.ne-in2) · 요약 줄 새 조각: 오른쪽에서 스며듦(.ne-new)
   천궁도: 흐림 · 아래에서 떠오르고(.ne-rise), 원판은 살짝 돌며 자리 잡는다 */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  html body #formCard#formCard#formCard #birthForm > .ne-out > * { animation: ne-dissolve .24s cubic-bezier(.4, 0, 1, 1) both; }
  html body #formCard#formCard#formCard #birthForm > .ne-sum.ne-in2 { animation: ne-fade .32s ease var(--ne-dl, 0ms) both; }
  html body #formCard#formCard#formCard #birthForm > .ne-sum.ne-out { animation: ne-fade .22s ease reverse both; } /* 요약 줄 바탕도 글자와 함께(빈 막대가 먼저 보이지 않게) */
  html body #formCard#formCard#formCard #birthForm > .ne-in2 > * { animation: ne-materialize var(--ne-sd-pop, .55s) var(--ne-sp-pop, cubic-bezier(.2, .8, .2, 1)) var(--ne-dl, 0ms) both; }
  html body #formCard#formCard#formCard #birthForm > .ne-sum .ne-new { display: inline-block; white-space: pre; animation: ne-seep var(--ne-sd-pop, .55s) var(--ne-sp-pop, cubic-bezier(.2, .8, .2, 1)) var(--ne-dl, 0ms) both; }
  html body #formCard .s2-card.ne-rise details.v4-preview-chart { animation: ne-rise var(--ne-sd-expand, .9s) var(--ne-sp-expand, cubic-bezier(.2, .8, .2, 1)) 40ms both; }
  html body #formCard .s2-card.ne-rise details.v4-preview-chart .v4-chart > svg { animation: ne-dial calc(var(--ne-sd-expand, .9s) + 350ms) var(--ne-sp-expand, cubic-bezier(.2, .8, .2, 1)) 90ms both; }
}
@keyframes ne-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ne-dissolve { to { opacity: 0; filter: blur(6px); transform: scale(.985); } }
@keyframes ne-materialize { from { opacity: 0; filter: blur(8px); transform: translateY(10px) scale(.985); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes ne-seep { from { opacity: 0; filter: blur(6px); transform: translateX(10px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes ne-rise { from { opacity: 0; filter: blur(10px); transform: translateY(32px) scale(.95); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes ne-dial { from { transform: rotate(-18deg) scale(.94); } to { transform: none; } }
/* 네 기둥 알약: Dynamic Island처럼 — 작은 캡슐이 스프링으로 늘어나고, 그 안 글자는 조금 늦게 떠오른다. 사라질 땐 반대로 빠르게 */
@media (prefers-reduced-motion: no-preference) {
  .ne-mini { transform: translate(-50%, -4px) scale(.62, .7); transition: opacity .2s ease, transform var(--ne-sd-pill, .45s) var(--ne-sp-pill, cubic-bezier(.2, .8, .2, 1)); }
  .ne-mini.is-on { transform: translate(-50%, 0) scale(1); }
  .ne-mini > * { opacity: 0; transition: opacity .16s ease; }
  .ne-mini.is-on > * { opacity: 1; transition: opacity .3s ease .1s; }
}

/* 입장 동의 창(2026-10-03, PROPOSAL): 밤하늘 위 유리 판 하나 — 넓은 화면은 가운데, 폰은 아래에서 올라오는 시트.
   체크는 둥근 상자, 고르면 금빛으로 채움(D5: 금은 채움으로만). 필수 꼬리표는 회색, 「동의하고 시작하기」는 필수를 다 골라야 켜진다 */
dialog.ne-consent { width: min(520px, calc(100vw - 32px)); max-height: min(86vh, 760px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: rgba(18, 24, 38, .86); color: #f5f5f7; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 .5px rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3); overflow: auto; }
dialog.ne-consent::backdrop { background: rgba(4, 7, 14, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.ne-consent .ne-consent-card { position: relative; display: grid; gap: 0; margin: 0; padding: 34px 30px 26px; font: inherit; }
dialog.ne-consent .ne-consent-x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); cursor: pointer; }
dialog.ne-consent .ne-consent-x::before, dialog.ne-consent .ne-consent-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; border-radius: 1px; background: #f5f5f7; transform: rotate(45deg); }
dialog.ne-consent .ne-consent-x::after { transform: rotate(-45deg); }
dialog.ne-consent .ne-consent-kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #a1a8b5; }
dialog.ne-consent h2 { margin: 6px 0 0; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: #f5f5f7; }
dialog.ne-consent .ne-consent-lede { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: #c9ced8; word-break: keep-all; }
dialog.ne-consent label { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 12px; cursor: pointer; }
dialog.ne-consent input[type="checkbox"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
dialog.ne-consent .ne-consent-box { position: relative; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px rgba(255, 255, 255, .38); transition: background .2s ease, box-shadow .2s ease; }
dialog.ne-consent input:checked + .ne-consent-box { background: #d9b878; box-shadow: none; }
dialog.ne-consent input:checked + .ne-consent-box::after { content: ""; position: absolute; left: 8.5px; top: 5px; width: 5px; height: 10px; border: solid #10141f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
dialog.ne-consent input:focus-visible + .ne-consent-box { outline: 2px solid rgba(244, 239, 228, .9); outline-offset: 3px; }
dialog.ne-consent .ne-consent-all { margin: 22px 0 0; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
dialog.ne-consent .ne-consent-all b { font-size: 16px; font-weight: 700; }
dialog.ne-consent .ne-consent-list { display: grid; gap: 4px; margin: 10px 0 0; padding: 4px 18px; }
dialog.ne-consent .ne-consent-item { padding: 12px 0; }
dialog.ne-consent .ne-consent-item + .ne-consent-item { border-top: 1px solid rgba(255, 255, 255, .08); }
dialog.ne-consent .ne-consent-t { font-size: 15px; line-height: 1.45; color: #e9ecf2; word-break: keep-all; }
dialog.ne-consent .ne-consent-t em { margin-right: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-style: normal; font-size: 11.5px; font-weight: 700; color: #c9ced8; vertical-align: 1px; }
dialog.ne-consent details { margin: 8px 0 0 36px; }
dialog.ne-consent summary { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 13px; font-weight: 600; color: #a1a8b5; cursor: pointer; list-style: none; }
dialog.ne-consent summary::-webkit-details-marker { display: none; }
dialog.ne-consent summary::after { content: ""; width: 6px; height: 6px; margin-left: 4px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-2px) rotate(45deg); }
dialog.ne-consent details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
dialog.ne-consent details ul { display: grid; gap: 6px; margin: 6px 0 4px; padding: 14px 16px 14px 30px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
dialog.ne-consent details li { font-size: 13px; line-height: 1.55; color: #c9ced8; word-break: keep-all; }
dialog.ne-consent .ne-consent-go { min-height: 52px; margin: 18px 0 0; border: 0; border-radius: 999px; background: #f5f5f7; color: #10141f; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: opacity .2s ease, transform .15s ease; }
dialog.ne-consent .ne-consent-go:disabled { opacity: .35; cursor: default; }
dialog.ne-consent .ne-consent-go:not(:disabled):active { transform: scale(.98); }
dialog.ne-consent .ne-consent-go:focus-visible { outline: 2px solid rgba(244, 239, 228, .9); outline-offset: 3px; }
dialog.ne-consent .ne-consent-foot { margin: 12px 0 0; font-size: 12.5px; text-align: center; color: #8b93a3; }
@media (max-width: 599px) {
  dialog.ne-consent { width: 100vw; max-width: 100vw; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  dialog.ne-consent .ne-consent-card { padding: 30px 22px calc(22px + env(safe-area-inset-bottom)); }
  dialog.ne-consent h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.ne-consent[open] { animation: ne-consent-in .42s cubic-bezier(.2, .9, .25, 1); }
  @keyframes ne-consent-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
}
/* 입장 동의 v3(2026-10-04): 창 안을 끝까지 스크롤해도 뒤 페이지가 따라 움직이지 않게 */
dialog.ne-consent { overscroll-behavior: contain; }
/* Pro FN-08(2026-10-04): <dialog>가 없는 브라우저용 동의 판 — 화면을 덮고, 뒤 페이지 스크롤은 잠근다 */
.ne-consent-shim { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 7, 14, .72); overflow-y: auto; }
.ne-consent-shim[hidden] { display: none; }
.ne-consent-shim .ne-consent-card { position: relative; width: min(100%, 480px); max-height: calc(100% - 32px); overflow-y: auto; margin: auto; padding: 30px 24px 24px; border-radius: 24px; background: #121826; color: #f5f5f7; font: inherit; }
.ne-consent-shim h2 { margin: 6px 0 0; font-size: 22px; line-height: 1.3; color: #f5f5f7; }
.ne-consent-shim :is(.ne-consent-kicker, .ne-consent-lede, .ne-consent-foot, li) { color: #a1a8b5; }
.ne-consent-shim .ne-consent-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #f5f5f7; font-size: 22px; }
.ne-consent-shim .ne-consent-x::before { content: "×"; }
.ne-consent-shim .ne-consent-box { display: none; }
.ne-consent-shim label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ne-consent-shim input[type="checkbox"] { width: 20px; height: 20px; margin: 0; }
.ne-consent-shim .ne-consent-go { width: 100%; min-height: 50px; margin-top: 16px; border: 0; border-radius: 999px; background: #d9b878; color: #0b1222; font-weight: 700; }
.ne-consent-shim .ne-consent-go:disabled { opacity: .45; }
html.ne-consent-lock, html.ne-consent-lock body { overflow: hidden; }

/* ── 8. 양력 · 음력(청사진 NU-01, 2026-10-05) — entry-night.js 8번 ───────────────────────
   제목 줄: 「생년월일 *」 왼쪽, 고르기 오른쪽(성별 고르기와 같은 홈 · 유리 손잡이, 한 단 작게 — 누르는 자리는 44px).
   폰 접기(.ne-gone)를 덮지 않게 :not(.ne-gone) 일 때만 grid */
html body #formCard#formCard#formCard #birthForm > .birth-date-field:not(.ne-gone) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
html body #formCard#formCard#formCard #birthForm > .birth-date-field > * { grid-column: 1 / -1; min-width: 0; }
html body #formCard#formCard#formCard #birthForm > .birth-date-field > label:first-child { grid-column: 1; grid-row: 1; }
html body #formCard#formCard#formCard #birthForm > .birth-date-field > #calSeg { grid-column: 2; grid-row: 1; justify-self: end; margin: 0 0 12px; }
html body #formCard#formCard#formCard #birthForm #calSeg { position: relative; display: inline-flex; width: auto; padding: 3px; border: 0; border-radius: 12px; background: #0d1528; box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.13); }
html body #formCard#formCard#formCard #birthForm #calSeg > button {
  position: relative; z-index: 1; flex: none; min-width: 0; min-height: 32px !important; height: 32px; margin: 0; padding: 0 15px !important;
  border: 0 !important; border-radius: 9px !important; background: none !important; box-shadow: none !important; transform: none !important;
  color: rgba(244,239,228,.66) !important; font: inherit; font-size: 15px !important; font-weight: 500 !important; line-height: 1; cursor: pointer; transition: color .3s ease;
}
html body #formCard#formCard#formCard #birthForm #calSeg > button::before { content: none !important; display: none !important; }
html body #formCard#formCard#formCard #birthForm #calSeg > button::after { content: "" !important; position: absolute; inset: -6px 0; display: block !important; background: none !important; }
html body #formCard#formCard#formCard #birthForm #calSeg > button[aria-pressed="true"] { color: #fff !important; font-weight: 600 !important; }
html body #formCard#formCard#formCard #birthForm #calSeg > button:focus-visible { outline: 2px solid var(--s-gold-hi, #ecd39f); outline-offset: -2px; }
html body #formCard#formCard#formCard #birthForm #calSeg > .ne-cal-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0; z-index: 0; width: 0; opacity: 0; border-radius: 9px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.27), rgba(255,255,255,.1));
  -webkit-backdrop-filter: blur(10px) saturate(185%); backdrop-filter: blur(10px) saturate(185%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), inset 0 0 0 1px rgba(255,255,255,.3), 0 6px 18px rgba(0,0,0,.36);
  transition: transform .55s cubic-bezier(.34,1.35,.5,1), width .55s cubic-bezier(.34,1.35,.5,1), opacity .2s ease;
}
/* 양력이면 음력 칸 묶음을, 음력이면 원래 칸 · 원래 안내 · 원래 오류를 감춘다(원래 칸은 바꾼 양력 값을 들고 있다) */
html body #formCard#formCard#formCard #birthForm > .birth-date-field:not(.ne-lunar) > :is(.ne-lunar-parts, .ne-leap, .ne-lunar-hint, .ne-lunar-out, .ne-lunar-error) { display: none !important; }
html body #formCard#formCard#formCard #birthForm > .birth-date-field.ne-lunar > :is(.birth-date-parts:not(.ne-lunar-parts), #birthDateHint, #birthDateError) { display: none !important; }
html body #formCard#formCard#formCard #birthForm > .birth-date-field > :is(.ne-lunar-hint, .ne-lunar-out, .ne-lunar-error)[hidden] { display: none !important; }
html body #formCard#formCard#formCard #birthForm > .birth-date-field > .ne-leap { justify-self: start; margin: 12px 0 0 !important; }
/* 바꾼 양력 줄: 안내보다 한 단 밝게, 날짜는 또렷하게(entry-v5 의 :has(#result…) 안내 규칙이 ID 하나를 더 세서 #lunarOut 으로 올린다) */
html body #formCard#formCard#formCard #birthForm > .birth-date-field > #lunarOut { color: rgba(244,239,228,.74) !important; }
html body #formCard#formCard#formCard #birthForm > .birth-date-field > #lunarOut b { color: #f4efe4; font-weight: 600; }
/* 윤달: 제출과 함께 보내는 선택처럼 둥근 금빛 체크(기기 저장 · 진태양시와 같은 모양) */
html body #formCard#formCard#formCard #birthForm input#lunarLeap {
  -webkit-appearance: none; appearance: none; position: relative; display: block; flex: none; width: 22px !important; height: 22px !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important; background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--e-text-3, rgba(244,239,228,.5)) !important; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}
html body #formCard#formCard#formCard #birthForm input#lunarLeap::after { content: none !important; display: none !important; }
html body #formCard#formCard#formCard #birthForm input#lunarLeap:checked { background: var(--e-gold, #d9b878) var(--s-check) center / 13px 13px no-repeat !important; box-shadow: 0 0 0 4px rgba(217,184,120,.16) !important; }
html body #formCard#formCard#formCard #birthForm input#lunarLeap[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #ff6961 !important; }
html body #formCard#formCard#formCard #birthForm input#lunarLeap:focus-visible { outline: 2px solid var(--s-gold-hi, #ecd39f); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html body #formCard#formCard#formCard #birthForm #calSeg > .ne-cal-thumb { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  html body #formCard#formCard#formCard #birthForm #calSeg > .ne-cal-thumb { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #3b4a66 !important; }
}
@media (forced-colors: active) {
  html body #formCard#formCard#formCard #birthForm #calSeg > .ne-cal-thumb { display: none !important; }
  html body #formCard#formCard#formCard #birthForm #calSeg > button { border: 1px solid ButtonText !important; }
  html body #formCard#formCard#formCard #birthForm #calSeg > button[aria-pressed="true"] { outline: 2px solid CanvasText !important; outline-offset: -4px !important; }
  html body #formCard#formCard#formCard #birthForm input#lunarLeap { -webkit-appearance: auto !important; appearance: auto !important; width: 24px !important; height: 24px !important; }
}
@media print {
  html body #formCard#formCard#formCard #birthForm #calSeg > .ne-cal-thumb { display: none !important; }
}

/* ── 9. 출생지 확인(청사진 IN-02, 2026-10-05) — entry-night.js 9번 ───────────────────────
   확인 질문 · 「태어난 곳」 줄은 입력 칸과 같은 홈(어두운 면 · 가는 테). 「맞아요」는 성별 손잡이와 같은 유리, 「다른 곳이에요」는 테만.
   고르기 전 · 고른 뒤에는 검색 칸 · 안내 · 넓게 검색 · 좌표 입력을 감추고, 「다른 곳이에요」 · 「바꾸기」를 누르면 그대로 펼친다 */
html body #formCard#formCard#formCard #birthForm .place-field:is(.ne-place-asking, .ne-place-picked) > :is(.place-search, #placeHint, .geo-actions, details.coord-manual) { display: none !important; }
html body #formCard#formCard#formCard #birthForm .place-field > :is(#placeAsk, #placeDone, #placeAskError)[hidden] { display: none !important; }
html body #formCard#formCard#formCard #birthForm #placeAsk,
html body #formCard#formCard#formCard #birthForm #placeDone {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; box-sizing: border-box; min-height: 56px; margin: 0;
  border-radius: 14px; background: #0d1528; box-shadow: inset 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(255,255,255,.13);
}
html body #formCard#formCard#formCard #birthForm #placeAsk { padding: 12px 12px 14px 18px; }
html body #formCard#formCard#formCard #birthForm #placeDone { padding: 6px 8px 6px 18px; }
html body #formCard#formCard#formCard #birthForm :is(.ne-place-q, .ne-place-v) { display: flex; align-items: baseline; gap: 8px; margin: 0; min-width: 0; }
html body #formCard#formCard#formCard #birthForm :is(.ne-place-q, .ne-place-v) small { font-size: 14px; color: var(--e-text-3, rgba(244,239,228,.5)); }
html body #formCard#formCard#formCard #birthForm :is(.ne-place-q, .ne-place-v) b { font-size: 17px; font-weight: 600; color: #f4efe4; overflow-wrap: anywhere; }
html body #formCard#formCard#formCard #birthForm .ne-place-btns { display: flex; gap: 8px; margin-left: auto; }
html body #formCard#formCard#formCard #birthForm :is(.ne-place-btns button, .ne-place-change) {
  min-height: 44px; margin: 0; padding: 0 16px !important; border: 0 !important; border-radius: 999px !important; font: inherit; font-size: 15px !important; font-weight: 600 !important;
  line-height: 1; white-space: nowrap; cursor: pointer; transform: none; transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
html body #formCard#formCard#formCard #birthForm .ne-place-btns [data-place="yes"] {
  background: linear-gradient(180deg, rgba(255,255,255,.27), rgba(255,255,255,.1)) !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), inset 0 0 0 1px rgba(255,255,255,.3), 0 6px 18px rgba(0,0,0,.36) !important;
}
html body #formCard#formCard#formCard #birthForm :is(.ne-place-btns [data-place="other"], .ne-place-change) { background: none !important; color: rgba(244,239,228,.86) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2) !important; }
html body #formCard#formCard#formCard #birthForm :is(.ne-place-btns button, .ne-place-change):focus-visible { outline: 2px solid var(--s-gold-hi, #ecd39f); outline-offset: 2px; }
html body #formCard#formCard#formCard #birthForm #placeAsk > .ne-place-note { flex-basis: 100%; margin: 2px 0 0 !important; }
html body #formCard#formCard#formCard #birthForm .place-field > #placeAskError { margin: 10px 0 0 !important; }
html body #formCard#formCard#formCard #birthForm .place-field.ne-place-searching > #placeAskError { margin: 0 0 10px !important; }
/* 도시 목록의 좌표 숫자는 감춘다(값은 그대로 쓴다, NU-02) */
html body #formCard#formCard#formCard #birthForm .place-results .place-option > b { display: none !important; }
@media (prefers-reduced-transparency: reduce) {
  html body #formCard#formCard#formCard #birthForm .ne-place-btns [data-place="yes"] { background: #3b4a66 !important; }
}
@media (forced-colors: active) {
  html body #formCard#formCard#formCard #birthForm :is(#placeAsk, #placeDone) { border: 1px solid CanvasText; }
  html body #formCard#formCard#formCard #birthForm :is(.ne-place-btns button, .ne-place-change) { border: 1px solid ButtonText !important; }
}

/* ── 11. 입력 카드의 기둥 글자(청사진 NU-08, 2026-10-05) — 입력 화면만, 결과 페이지는 그대로 ─────────────
   A안(기본): 한글 읽기를 크게, 한자는 작게(지금의 반대). 칸 순서를 order 로 바꾼다 — 기(크게) · 己(작게) · 미(크게) · 未(작게).
   운영자가 A안을 골랐다(2026-10-05). B안(한글만) 규칙은 뺐다.
   html[data-nu08] 은 entry-night.js 11번이 붙인다 */
html[data-nu08] body #formCard#formCard#formCard .v4-preview .report-birthmap-pillar > .report-birthmap-pillar-position { order: 1; }
html[data-nu08] body #formCard#formCard#formCard .v4-preview .report-birthmap-pillar > .report-birthmap-ten-god { order: 2; }
html[data-nu08] body #formCard#formCard#formCard .v4-preview .report-birthmap-pillar > .report-birthmap-hanja:not(.report-birthmap-branch) + .report-birthmap-korean { order: 3; }
html[data-nu08] body #formCard#formCard#formCard .v4-preview .report-birthmap-pillar > .report-birthmap-hanja:not(.report-birthmap-branch) { order: 4; }
html[data-nu08] body #formCard#formCard#formCard .v4-preview .report-birthmap-pillar > .report-birthmap-branch + .report-birthmap-korean { order: 5; }
html[data-nu08] body #formCard#formCard#formCard .v4-preview .report-birthmap-pillar > .report-birthmap-branch { order: 6; }
html[data-nu08] body #formCard#formCard#formCard .v4-preview .report-birthmap-pillar > .report-birthmap-hidden { order: 7; }
html[data-nu08] body #formCard#formCard#formCard .v4-preview .report-birthmap-pillar > .report-birthmap-element-mark { order: 8; }
html[data-nu08] body #formCard#formCard#formCard .v4-preview .report-birthmap-korean { font-family: var(--s-font, inherit) !important; font-size: 30px !important; font-weight: 500 !important; line-height: 1 !important; letter-spacing: -.02em; color: #f4efe4 !important; }
html[data-nu08] body #formCard#formCard#formCard .v4-preview .is-day .report-birthmap-hanja:not(.report-birthmap-branch) + .report-birthmap-korean {
  background: linear-gradient(180deg, #fff2cf 0%, #e7cb8f 45%, #c79d57 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
html[data-nu08="a"] body #formCard#formCard#formCard .v4-preview .report-birthmap-hanja { font-size: 13px !important; font-weight: 300 !important; line-height: 1 !important; color: rgba(244,239,228,.5) !important; }
html[data-nu08="a"] body #formCard#formCard#formCard .v4-preview .is-day .report-birthmap-hanja:not(.report-birthmap-branch) { background: none !important; color: rgba(231,203,143,.8) !important; }
/* 요약 알약(5번)도 한글 */
html[data-nu08] .ne-mini-col { font-family: var(--s-font, inherit) !important; font-size: 13px !important; font-weight: 600; }
@media (forced-colors: active) {
  html[data-nu08] body #formCard#formCard#formCard .v4-preview .is-day .report-birthmap-hanja:not(.report-birthmap-branch) + .report-birthmap-korean { color: CanvasText !important; background: none !important; }
}

/* ── 12. 첫 화면(청사진 MF-01 · NU-08, 2026-10-05) ───────────────────────────────────────
   받침 줄은 예전 배지 자리를 쓰지만 상태 점은 뺀다. 예전 세 칸 자리에는 구체적인 풀이 하나(카드) + 믿을 근거 한 줄. 카드 제목은 한글이라 한자용 넓은 자간을 줄인다 */
html body .s2-hero-meta.ne-hero-sub::before { content: none; display: none; }
html body .s2-bento.ne-example { display: grid; justify-items: center; gap: 14px; padding-top: 48px; text-align: center; }
html body .s2-bento.ne-example .ne-ex-card { box-sizing: border-box; width: min(100%, 560px); padding: 22px 24px 24px; border-radius: 24px; text-align: left;
  background: linear-gradient(180deg, #111b31, #0b1325); box-shadow: inset 0 0 0 .5px rgba(244,239,228,.14), 0 24px 48px -28px rgba(0,0,0,.6); }
html body .s2-bento.ne-example .s2-eyebrow { font-size: 13px; color: rgba(244,239,228,.56); }
html body .s2-bento.ne-example .s2-h2 { margin: 10px 0 0; padding: 0; font-size: 19px; line-height: 1.4; letter-spacing: -.015em; color: #f4efe4; }
html body .s2-bento.ne-example .ne-ex-a { margin: 6px 0 0; font-size: 17px; line-height: 1.6; color: rgba(244,239,228,.86); word-break: keep-all; }
html body .s2-bento.ne-example .ne-ex-trust { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(244,239,228,.56); word-break: keep-all; }
html body #formCard#formCard#formCard .s2-card-title span { font-family: var(--s-font, inherit) !important; font-weight: 600 !important; letter-spacing: .06em !important; }
@media (forced-colors: active) {
  html body .s2-bento.ne-example .ne-ex-card { border: 1px solid CanvasText; }
}

/* ── 13. 입력 중 미리보기 한 줄(청사진 IN-01, 2026-10-05) — entry-night.js 7번 ─────────────────
   폰 · 태블릿: 필수 입력(생년월일 · 시각 · 출생지)이 끝나기 전에는 카드를 제목 한 줄로(.ne-line) — 「사주단자 · 다 적으면 여기에 펼쳐져요」.
   다 넣으면 펼치고 기둥이 흐림에서 떠오른다(.ne-rise). 천궁도는 접힌 줄(누르면 펼침) */
html body #formCard .s2-card .ne-line-note { display: none; }
@media (max-width: 1023px) {
  html body #formCard#formCard#formCard .s2-card.ne-line > :not(.s2-card-title) { display: none !important; }
  html body #formCard#formCard#formCard .s2-card.ne-line .s2-card-title > small:not(.ne-line-note) { display: none !important; }
  html body #formCard#formCard#formCard .s2-card.ne-line .s2-card-title > .ne-line-note { display: inline; font-size: 12px; font-weight: 500; color: rgba(244,239,228,.5); }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  html body #formCard .s2-card.ne-rise .v4-preview-pillars { animation: ne-materialize var(--ne-sd-expand, .9s) var(--ne-sp-expand, cubic-bezier(.2, .8, .2, 1)) 60ms both; }
}

/* ── 12. 입력 미리보기 경계 표시 · 출생지 「그대로 두기」(Codex CS-02 · CR-03, 2026-10-05) ───────────── */
html body #formCard#formCard#formCard .v4-preview .report-birthmap-pillar-position .ne-pos-tag { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0; white-space: nowrap; color: rgba(244,239,228,.62) !important; }
.ne-mini .ne-mini-col.is-edge { position: relative; }
.ne-mini .ne-mini-col.is-edge::after { content: ""; position: absolute; top: -3px; right: -4px; width: 5px; height: 5px; border-radius: 50%; background: rgba(217,184,120,.9); }
html body #formCard#formCard#formCard #birthForm .ne-place-keep { min-height: 44px; margin: 8px 0 0; padding: 0 16px !important; border: 0 !important; border-radius: 999px !important; background: none !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2) !important; color: rgba(244,239,228,.86) !important; font: inherit; font-size: 15px !important; font-weight: 600 !important; line-height: 1; cursor: pointer; }
html body #formCard#formCard#formCard #birthForm .ne-place-keep:focus-visible { outline: 2px solid var(--s-gold-hi, #ecd39f); outline-offset: 2px; }
@media (forced-colors: active) { html body #formCard#formCard#formCard #birthForm .ne-place-keep { border: 1px solid ButtonText !important; } }

/* 입력 완료 상태(entry-night.js 7번 enterDone, 2026-10-06): 폰에서 다 쓰면 사주단자 · 천궁도 · 수정 줄 · 「무료로 내 풀이 보기」만 한 화면에.
   안내 제목 · 저장 선택 · 고급 설정 · 예시 링크는 「수정」을 누르면 다시 보인다 */
@media (max-width: 1023px) {
  html.ne-done body #formCard .s2-entry-intro > :not(.s2-card) { display: none !important; }
  /* 저장 · 고급 설정 · 예시 링크는 entry-night.js 가 칸 접기와 같은 스프링으로 접는다(.ne-gone) — 여기서 한 번에 감추지 않는다 */
  html.ne-done body #formCard#formCard#formCard .s2-card .v4-preview-chart .v4-chart { width: var(--ne-done-chart, 220px) !important; }
  /* 한 화면에 들어가게 사이를 좁힌다. 카드 안 출생지 줄은 아래 요약 줄과 겹쳐 감춘다 */
  html.ne-done body #formCard#formCard .s2-card { margin-top: 0 !important; margin-bottom: 14px !important; padding-top: 22px !important; padding-bottom: 18px !important; }
  html.ne-done body #formCard#formCard .s2-card .v4-preview-place { display: none !important; }
  html.ne-done body #formCard#formCard #birthForm { margin-top: 0 !important; }
  html.ne-done body #formCard#formCard .ne-sum { margin-bottom: 12px !important; }
  html.ne-done body #formCard#formCard .s2-card .v4-bigthree { margin-top: 10px !important; }
  /* 짧은 화면(375×667 등): 천궁도를 170px까지 줄여도 넘치면 기둥 표를 조금 작게 */
  html.ne-done.ne-done-tight body #formCard#formCard .s2-card .v4-preview-pillars { zoom: .74; }
  html.ne-done.ne-done-tight body #formCard#formCard .s2-card .v4-bigthree { display: none !important; }
}

/* 친구 라운드 B-01(2026-10-07): 날짜 칸에서 바로 다른 것을 누르는 동안에는 날짜 오류 · 음력 안내 줄이 자리를 차지하지 않게(누른 자리가 밀리지 않게).
   클릭이 끝나면 entry-night.js 3b가 ne-pressing을 떼고, 줄은 원래 자리에 보인다 */
html.ne-pressing body #formCard :is(#birthDateError, #lunarError, #lunarOut):not([hidden]) { position: absolute !important; visibility: hidden !important; }

/* 친구 라운드 B-06(2026-10-07): 입력이 끝나 칸이 접히고 카드가 펼쳐지는 동안(약 1초)은 분석 단추만 누를 수 있다(entry-night.js 7번 busyOn · busyEnd).
   움직이는 중에 천궁도 · 수정 · 칸을 잘못 누르지 않게 */
html.ne-done-busy body #formCard * { pointer-events: none !important; }
html.ne-done-busy body #formCard :is(#submitBtn, #submitBtn *) { pointer-events: auto !important; }
