/* 2026-12-01 상품 표지(첫 화면) 맞춤 — ① 높이는 「지금 보이는 창」 ② 머리띠 로고·메뉴 단추는 한 모양.
   기준: 신년사주 표지. 로고 = 붉은 낙관 + 흰 글씨, 높이 36px, 왼쪽 18px·위 14px. 메뉴 단추 = 44×44, 오른쪽 10px·위 10px, 흰색, 줄 26px·굵기 1.8.
   높이 값은 js/cover-fit-20261201.js 가 재서 html 에 --dohwa-cover-height 로 넣는다(없으면 100dvh 그대로).
   규칙은 표지 상태에만 걸리게 좁혔다(입력·결과 화면은 건드리지 않는다). 타로의 틀 높이만 예외로 모든 화면에 건다. 선택자 앞의 html 은 원래 규칙보다 한 단계 무겁게 하려는 것이다.
   신년사주·직업사주(--ny-cover-height)와 탄생타로(--bt-visible-height)는 이미 스크립트로 잰 높이를 써서 높이 규칙이 없다. */

/* ── ① 높이 ── */
/* 타로(연애·재회·운명)는 한 틀(.love-app) 안에서 화면이 바뀌므로 표지뿐 아니라 카드 뽑기·무료 결과·신청·상세 풀이에서도 틀 높이를 맞춘다.
   입력 칸이 열린 동안(.love-app.is-input …)은 원래 규칙이 더 무거워 그대로 이긴다(자판 높이는 화면 스크립트가 따로 잰다). */
html .love-app{height:var(--dohwa-cover-height,100dvh)}
html body[data-love-saju-view="intro"] .app-shell{min-height:var(--dohwa-cover-height,100dvh)}
html .ls-app.ls-video-intro{min-height:var(--dohwa-cover-height,100svh)}
html .ls-video-intro .ls-intro{height:var(--dohwa-cover-height,100dvh);min-height:var(--dohwa-cover-height,100dvh)}
html .wealth-stage,html .zwl-stage{min-height:var(--dohwa-cover-height,100dvh)}
html .wealth-stage>.wealth-page.ny-page,html .zwl-stage>.zwl-page.ny-page{height:var(--dohwa-cover-height,100dvh)}
html .wealth-dev~.wealth-page.ny-page,html .zwl-dev~.zwl-page.ny-page{height:calc(var(--dohwa-cover-height,100dvh) - 34px)}
html body:has(.bn-page[data-view="intro"]),html body[data-page="baby-name"] .app-shell:has(.bn-page[data-view="intro"]),html .bn-page[data-view="intro"],html body:has(.bn-page[data-view="intro"]) .bn-backdrop{height:var(--dohwa-cover-height,100dvh)}
html body[data-page="zodiac-fortune"][data-zodiac-view="intro"]{height:var(--dohwa-cover-height,100dvh);min-height:var(--dohwa-cover-height,100dvh)}
html body[data-page="zodiac-fortune"][data-zodiac-view="intro"] .app-shell{min-height:var(--dohwa-cover-height,100dvh)}
html body[data-zodiac-view="intro"] .zodiac-page{height:var(--dohwa-cover-height,100dvh)}
html body[data-daily-chrome="guide"],html body[data-daily-chrome="guide"] .app-shell{min-height:var(--dohwa-cover-height,100dvh)}
html body[data-daily-chrome="guide"] .fortune-guide-scene{height:var(--dohwa-cover-height,100dvh)}
html body[data-daily-chrome="boxes"]{height:var(--dohwa-cover-height,100dvh)}

/* ── ② 로고: 밝은 화면에서도 붉은 낙관 + 흰 글씨(연애사주·띠별 운세·오늘의 운세) ── */
html:not([data-theme="dark"]) .ls-video-intro .ls-scene-header .fortune-box-brand img,
html:not([data-theme="dark"]) body[data-zodiac-view="intro"] .zodiac-topbar .zodiac-brand img,
html:not([data-theme="dark"]) body[data-daily-chrome="guide"] .fortune-box-scene>.fortune-box-topbar .fortune-box-brand img,
html:not([data-theme="dark"]) body[data-daily-chrome="boxes"] .fortune-box-scene>.fortune-box-topbar .fortune-box-brand img{object-fit:contain!important;object-position:-9999px 0!important;background:url("/images/brand-20261110/logo-dark-480-240ddede.webp") left center/contain no-repeat!important;mix-blend-mode:normal!important;opacity:1!important;filter:drop-shadow(0 1px 3px rgba(23,16,36,.44))!important}

/* ── ② 로고 그림자: 밝은 그림 위에서도 글씨가 보이게(없던 화면만) ── */
html body[data-page="career-saju"]:is([data-career-view="intro"],[data-career-view="input"]) .career-header .fortune-box-topbar .fortune-box-brand img,
html[data-theme="dark"] body[data-page="birth-tarot"]:not([data-birth-view="result"]):not([data-birth-view="reveal"]) .fortune-box-topbar .fortune-box-brand img,
html[data-theme="dark"] body[data-page="newyear-saju"]:is([data-newyear-view="intro"],[data-newyear-view="input"]) .fortune-box-topbar .fortune-box-brand img,
html[data-theme="dark"] body .ls-video-intro .ls-scene-header .fortune-box-topbar .fortune-box-brand img,
html[data-theme="dark"] body[data-page="baby-name"]:not(:has(.bn-page:is([data-view="results"],[data-view="compare"],[data-view="saved"]))) .bn-scene-header .fortune-box-topbar .fortune-box-brand img,
html[data-theme="dark"] body[data-zodiac-view="intro"] .zodiac-page>.zodiac-topbar .zodiac-brand img,
html[data-theme="dark"] body[data-daily-chrome="guide"] .fortune-box-scene>.fortune-box-topbar .fortune-box-brand img,
html[data-theme="dark"] body[data-daily-chrome="boxes"] .fortune-box-scene>.fortune-box-topbar .fortune-box-brand img{filter:drop-shadow(0 1px 3px rgba(23,16,36,.44))!important}

/* ── ② 로고·단추 자리: 직업사주·재물사주·자미두수(조금 크고 안쪽이던 것) ── */
html body[data-page="career-saju"]:is([data-career-view="intro"],[data-career-view="input"]) .career-header .fortune-box-topbar{height:64px;min-height:64px;padding:0 10px 0 18px}
html body[data-page="career-saju"]:is([data-career-view="intro"],[data-career-view="input"]) .career-header .fortune-box-brand img{width:auto!important;height:36px!important;max-width:none!important}
html .wealth-header,html .zwl-header{height:64px;min-height:64px;padding:0 10px 0 18px}
html .wealth-brand img,html .zwl-brand img{width:auto;height:36px;max-width:none;filter:drop-shadow(0 1px 3px rgba(23,16,36,.44))}
html .wealth-menu-toggle svg,html .zwl-menu-toggle svg{width:26px;height:26px;stroke-width:1.8}
html .wealth-video-toggle,html .zwl-video-toggle{top:72px;right:10px;left:auto}

/* ── ② 메뉴 단추 색: 흰색 + 옅은 그림자(밝은 그림 위에서도 보이게) ── */
html body[data-page="career-saju"]:is([data-career-view="intro"],[data-career-view="input"]) .career-header .fortune-box-topbar button[data-menu-open],
html body[data-page="birth-tarot"]:not([data-birth-view="result"]):not([data-birth-view="reveal"]) .fortune-box-topbar button[data-menu-open],
/* 아이 이름: 표지뿐 아니라 밤 그림 위의 다음 화면(질문 등)에서도 — 흰 종이 결과 화면(results·compare·saved)은 빼고 */
html body[data-page="baby-name"]:not(:has(.bn-page:is([data-view="results"],[data-view="compare"],[data-view="saved"]))) .bn-scene-header .fortune-box-topbar button[data-menu-open],
html body[data-zodiac-view="intro"] .zodiac-topbar .zodiac-menu,
html body[data-daily-chrome="guide"] .fortune-box-scene .fortune-box-topbar button[data-menu-open],
html body[data-daily-chrome="boxes"] .fortune-box-scene .fortune-box-topbar button[data-menu-open],
html .wealth-menu-toggle,html .zwl-menu-toggle{color:#fff!important;filter:drop-shadow(0 1px 3px rgba(17,14,32,.5))!important}
/* 상자 고르기 화면의 메뉴 단추에만 남아 있던 어두운 네모 바탕을 없앤다(다른 표지와 같게) */
html body[data-daily-chrome="boxes"] .fortune-box-scene .fortune-box-topbar button[data-menu-open]{background:transparent!important;border-color:transparent!important;box-shadow:none!important}

/* ── ③ 띠별 운세의 읽는 화면(전체 띠별 운세 목록 등): 표지와 같은 로고·메뉴 단추 ──
   밤하늘 그림 위의 머리띠라 표지와 같은 붉은 낙관 + 흰 글씨를 쓴다. 머리띠를 1px 내려 로고 위 14px·단추 위 10px 에 맞춘다(아래 내용 자리는 그대로). */
html body[data-page="zodiac-fortune"] .zodiac-reading-page>.zodiac-topbar{position:relative;top:1px}
html body[data-page="zodiac-fortune"] .zodiac-reading-page>.zodiac-topbar .zodiac-brand img{height:36px!important;width:auto!important;max-width:none!important;opacity:1!important}
html:not([data-theme="dark"]) body[data-page="zodiac-fortune"] .zodiac-reading-page>.zodiac-topbar .zodiac-brand img{object-fit:contain!important;object-position:-9999px 0!important;background:url("/images/brand-20261110/logo-dark-480-240ddede.webp") left center/contain no-repeat!important;mix-blend-mode:normal!important;filter:drop-shadow(0 1px 3px rgba(23,16,36,.44))!important}
html[data-theme="dark"] body[data-page="zodiac-fortune"] .zodiac-reading-page>.zodiac-topbar .zodiac-brand img{filter:drop-shadow(0 1px 3px rgba(23,16,36,.44))!important}
html body[data-page="zodiac-fortune"] .zodiac-reading-page>.zodiac-topbar .zodiac-menu{color:#fff!important;filter:drop-shadow(0 1px 3px rgba(17,14,32,.5))!important}
/* 폭 360px 아래에서는 그 화면의 옆 여백이 11px 로 줄어, 로고 왼쪽 18px·단추 오른쪽 10px 가 되게 머리띠 여백을 다시 잡는다 */
@media(max-width:360px){html body[data-page="zodiac-fortune"] .zodiac-reading-page>.zodiac-topbar{margin-left:7px!important;margin-right:-1px!important}}
