/* ═══ 萬神 디자인 v3 — 레퍼런스 공통 문법: 먹 바탕 · 금빛 실선과 빛 · 단청 모서리 액자 · 명조/한자 · 주사 인장 ═══
   body[data-ms-theme] 는 ms-gold.js 가 화면마다 바꾼다(현재는 홈만 적용, 상세 화면은 순차 적용).
   번들(React) 인라인 스타일은 !important 로 덮는다. 시안: docs/design/mockup_v3.html */
:root{
  --ink:#050403; --gold:#d4ae66; --gold-hi:#f7e3ad; --line:rgba(212,174,102,.42); --line-soft:rgba(212,174,102,.2);
  --ivory:#efe4cc; --dim:#a3957b; --cinnabar:#b5372a;
  --serif:"Nanum Myeongjo","Noto Serif KR",serif; --han:"Noto Serif KR",serif; --latin:"Cormorant Garamond",serif;
  --foil:linear-gradient(176deg,#fff3cc 0%,#ecc777 38%,#b5843a 70%,#f0d48e 100%);
  --c-tl:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%23d4ae66' stroke-width='1.2'%3E%3Cpath d='M1.5 25V7.5Q1.5 1.5 7.5 1.5H25'/%3E%3Cpath d='M5.5 25V10Q5.5 5.5 10 5.5H25' stroke-opacity='.55'/%3E%3Cpath d='M9 9h3.5v3.5H9z' fill='%23d4ae66' stroke='none' transform='rotate(45 10.75 10.75)'/%3E%3C/svg%3E");
  --c-tr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%23d4ae66' stroke-width='1.2'%3E%3Cg transform='matrix(-1 0 0 1 26 0)'%3E%3Cpath d='M1.5 25V7.5Q1.5 1.5 7.5 1.5H25'/%3E%3Cpath d='M5.5 25V10Q5.5 5.5 10 5.5H25' stroke-opacity='.55'/%3E%3Cpath d='M9 9h3.5v3.5H9z' fill='%23d4ae66' stroke='none' transform='rotate(45 10.75 10.75)'/%3E%3C/g%3E%3C/svg%3E");
  --c-bl:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%23d4ae66' stroke-width='1.2'%3E%3Cg transform='matrix(1 0 0 -1 0 26)'%3E%3Cpath d='M1.5 25V7.5Q1.5 1.5 7.5 1.5H25'/%3E%3Cpath d='M5.5 25V10Q5.5 5.5 10 5.5H25' stroke-opacity='.55'/%3E%3Cpath d='M9 9h3.5v3.5H9z' fill='%23d4ae66' stroke='none' transform='rotate(45 10.75 10.75)'/%3E%3C/g%3E%3C/svg%3E");
  --c-br:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%23d4ae66' stroke-width='1.2'%3E%3Cg transform='matrix(-1 0 0 -1 26 26)'%3E%3Cpath d='M1.5 25V7.5Q1.5 1.5 7.5 1.5H25'/%3E%3Cpath d='M5.5 25V10Q5.5 5.5 10 5.5H25' stroke-opacity='.55'/%3E%3Cpath d='M9 9h3.5v3.5H9z' fill='%23d4ae66' stroke='none' transform='rotate(45 10.75 10.75)'/%3E%3C/g%3E%3C/svg%3E");
  --corners:var(--c-tl) left 3px top 3px/22px no-repeat, var(--c-tr) right 3px top 3px/22px no-repeat, var(--c-bl) left 3px bottom 3px/22px no-repeat, var(--c-br) right 3px bottom 3px/22px no-repeat;
}
#mansin-sindang-smoke{ display:none!important; }

/* ── 홈 — 원래 신당 배경 그대로, UI 만 세련되게: 다크 글래스 카드 · 금빛 그라데이션 실선 · 가는 선 아이콘 (2026-10-13) ── */
/* 상단 버튼 — 글래스 */
body[data-ms-theme="home"] #root > div > div > div.z-50 > button{
  background:rgba(14,10,20,.42)!important; border:1px solid rgba(255,240,215,.14)!important; box-shadow:none!important;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
}
body[data-ms-theme="home"] #root > div > div > div.z-50 > button span{ color:#f5ecdc!important; }
/* 타이틀 — 원래 글꼴·배치, 금박만 선명하게 */
body[data-ms-theme="home"] div.text-center.flex-shrink-0 > div:nth-child(1){
  background:var(--foil); -webkit-background-clip:text; background-clip:text; color:transparent!important; -webkit-text-fill-color:transparent;
  text-shadow:none!important; filter:drop-shadow(0 2px 14px rgba(230,180,90,.4)); opacity:1!important;
}
body[data-ms-theme="home"] div.text-center.flex-shrink-0 > div:nth-child(3){ color:rgba(245,236,220,.62)!important; }
/* 메뉴 — 레퍼런스의 오라클·타로 카드: 금빛 이중 실선 + 단청 모서리 + 라인아트 문장 + 명조 제목 (얇은 선 위주로 가볍게) */
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5{ gap:12px!important; padding-left:20px!important; padding-right:20px!important; }
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button{
  aspect-ratio:auto!important; height:160px; padding:6px 0 0!important; border-radius:3px!important; position:relative; overflow:hidden;
  border:1px solid rgba(212,174,102,.5)!important;
  background:var(--corners), radial-gradient(90% 60% at 50% 0%,rgba(255,226,160,.12),transparent 70%), linear-gradient(180deg,rgba(12,9,16,.66),rgba(6,4,10,.78))!important;
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  box-shadow:inset 0 0 0 4px rgba(6,4,10,.55), inset 0 0 0 5px rgba(212,174,102,.22), 0 16px 32px rgba(0,0,0,.5)!important;
  display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important; gap:0;
  animation:none!important; transition:transform .16s ease, box-shadow .2s ease, border-color .2s ease!important;
}
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button > svg, body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button > div.blur-3xl, body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button > div:nth-child(4){ display:none!important; }
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button::before{ content:''; width:44px; height:44px; margin-bottom:10px; background-repeat:no-repeat; background-size:contain; filter:drop-shadow(0 0 8px rgba(230,190,110,.35)); }
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button::after{ content:''; position:absolute; left:50%; bottom:11px; width:60px; height:8px; margin-left:-30px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8' viewBox='0 0 60 8' fill='none' stroke='%23d4ae66' stroke-width='.9'%3E%3Cpath d='M0 4h24M36 4h24'/%3E%3Cpath d='M30 1l3 3-3 3-3-3z' fill='%23d4ae66'/%3E%3C/svg%3E") no-repeat center/contain; opacity:.75; }
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button:nth-child(1)::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23e6c684' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='15'/%3E%3Ccircle cx='24' cy='24' r='9.5'/%3E%3Cpath d='M24 14.5a4.75 4.75 0 0 1 0 9.5a4.75 4.75 0 0 0 0 9.5'/%3E%3Ccircle cx='24' cy='19.25' r='1.1' fill='%23e6c684'/%3E%3Ccircle cx='24' cy='28.75' r='1.1'/%3E%3Cg transform='rotate(0 24.00 4.50)'%3E%3Cpath d='M21.00 2.90h6M21.00 4.50h6M21.00 6.10h6' stroke-width='.9'/%3E%3C/g%3E%3Cg transform='rotate(45 37.79 10.21)'%3E%3Cpath d='M34.79 8.61h6M34.79 10.21h6M34.79 11.81h6' stroke-width='.9'/%3E%3C/g%3E%3Cg transform='rotate(90 43.50 24.00)'%3E%3Cpath d='M40.50 22.40h6M40.50 24.00h6M40.50 25.60h6' stroke-width='.9'/%3E%3C/g%3E%3Cg transform='rotate(135 37.79 37.79)'%3E%3Cpath d='M34.79 36.19h6M34.79 37.79h6M34.79 39.39h6' stroke-width='.9'/%3E%3C/g%3E%3Cg transform='rotate(180 24.00 43.50)'%3E%3Cpath d='M21.00 41.90h6M21.00 43.50h6M21.00 45.10h6' stroke-width='.9'/%3E%3C/g%3E%3Cg transform='rotate(225 10.21 37.79)'%3E%3Cpath d='M7.21 36.19h6M7.21 37.79h6M7.21 39.39h6' stroke-width='.9'/%3E%3C/g%3E%3Cg transform='rotate(270 4.50 24.00)'%3E%3Cpath d='M1.50 22.40h6M1.50 24.00h6M1.50 25.60h6' stroke-width='.9'/%3E%3C/g%3E%3Cg transform='rotate(315 10.21 10.21)'%3E%3Cpath d='M7.21 8.61h6M7.21 10.21h6M7.21 11.81h6' stroke-width='.9'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button:nth-child(2)::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23e6c684' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='13' y='6' width='22' height='36' rx='2'/%3E%3Crect x='15.5' y='8.5' width='17' height='31' rx='1' stroke-opacity='.5'/%3E%3Ccircle cx='24' cy='22' r='4.6'/%3E%3Cpath transform='rotate(0 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(30 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(60 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(90 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(120 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(150 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(180 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(210 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(240 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(270 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(300 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath transform='rotate(330 24 22)' d='M24 15.2v-2.4'/%3E%3Cpath d='M24 31.5l.9 1.9 2 .2-1.5 1.4.4 2-1.8-1-1.8 1 .4-2-1.5-1.4 2-.2z'/%3E%3Cpath d='M8 12l.6 1.4 1.4.6-1.4.6L8 16l-.6-1.4L6 14l1.4-.6z' stroke-width='.9'/%3E%3Cpath d='M40 33l.6 1.4 1.4.6-1.4.6-.6 1.4-.6-1.4-1.4-.6 1.4-.6z' stroke-width='.9'/%3E%3C/svg%3E"); }
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button:nth-child(3)::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23e6c684' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='18'/%3E%3Ccircle cx='24' cy='24' r='14.5' stroke-opacity='.5'/%3E%3Cpath transform='rotate(0 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(30 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(60 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(90 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(120 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(150 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(180 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(210 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(240 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(270 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(300 24 24)' d='M24 4.5v3'/%3E%3Cpath transform='rotate(330 24 24)' d='M24 4.5v3'/%3E%3Cpath d='M24 15q.8 8.2 9 9q-8.2.8-9 9q-.8-8.2-9-9q8.2-.8 9-9z'/%3E%3C/svg%3E"); }
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button:nth-child(4)::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23e6c684' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M27 9a14 14 0 1 0 10 22a11 11 0 1 1-10-22z'/%3E%3Cpath d='M12 35.5h11a3.2 3.2 0 0 0 0-6.4a4.5 4.5 0 0 0-8.6 1.2a2.6 2.6 0 0 0-2.4 5.2z'/%3E%3Cpath d='M36 11l.7 1.6 1.6.7-1.6.7-.7 1.6-.7-1.6-1.6-.7 1.6-.7z' stroke-width='.9'/%3E%3Ccircle cx='40' cy='20' r='.8' fill='%23e6c684'/%3E%3C/svg%3E"); }
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button > div:nth-child(5){
  font-family:var(--serif)!important; font-size:17px!important; font-weight:800!important; letter-spacing:.04em!important;
  color:#f3e6cc!important; text-shadow:0 1px 8px rgba(0,0,0,.6)!important; margin:0!important;
}
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button > div:nth-child(6){
  font-size:11px!important; font-weight:500!important; color:rgba(243,230,204,.55)!important; margin:5px 0 22px!important; letter-spacing:0!important; text-shadow:none!important;
}
/* 누르면 4기둥 레퍼런스처럼 금빛으로 빛난다 */
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button:active{
  transform:scale(.97)!important; border-color:rgba(247,227,173,.85)!important;
  box-shadow:inset 0 0 0 4px rgba(6,4,10,.55), inset 0 0 0 5px rgba(247,227,173,.45), 0 0 0 1px rgba(247,227,173,.3), 0 0 32px rgba(230,180,90,.45), 0 16px 32px rgba(0,0,0,.5)!important;
}
body[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button:active::before{ filter:drop-shadow(0 0 12px rgba(250,215,140,.85)); }
/* 글로벌: 한국어가 아니면 메뉴 이름·부제·태그라인을 사전 값으로 덧씌움(원문 글자는 그대로 — 오버레이가 한글로 홈을 찾는다) */
body:not([data-ms-lang="ko"])[data-ms-theme="home"] :is(.grid.max-w-md.flex-shrink-0.px-5 > button > div:nth-child(5), .grid.max-w-md.flex-shrink-0.px-5 > button > div:nth-child(6), div.text-center.flex-shrink-0 > div:nth-child(3))[data-ms-label]{ font-size:0!important; }
body:not([data-ms-lang="ko"])[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button > div:nth-child(5)[data-ms-label]::after{ content:attr(data-ms-label); font-size:18px; }
body:not([data-ms-lang="ko"])[data-ms-theme="home"] .grid.max-w-md.flex-shrink-0.px-5 > button > div:nth-child(6)[data-ms-label]::after{ content:attr(data-ms-label); font-size:11px; }
body:not([data-ms-lang="ko"])[data-ms-theme="home"] div.text-center.flex-shrink-0 > div:nth-child(3)[data-ms-label]::after{ content:attr(data-ms-label); font-size:12px; letter-spacing:.2em; }
/* 광고 — 위아래 가는 금선 사이 한 줄 */
#mansin-ad-cta{
  width:min(calc(100vw - 40px),420px)!important; height:48px; border-radius:14px!important; overflow:hidden;
  display:flex!important; align-items:center; justify-content:space-between; padding:0 18px!important;
  background:rgba(14,10,20,.5)!important; border:1px solid rgba(255,240,215,.12)!important;
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); box-shadow:0 10px 24px rgba(0,0,0,.4)!important; animation:none!important;
}
#mansin-ad-cta img{ display:none!important; }
#mansin-ad-cta::before{ content:attr(data-ms-ad); font:600 14px/1 Pretendard,sans-serif; color:#f5ecdc; }
#mansin-ad-cta::after{ content:attr(data-ms-ad-once); font:600 11.5px/1 Pretendard,sans-serif; color:#e9c98a; padding:5px 9px; border-radius:999px; background:rgba(233,201,138,.12); }

/* ── 사주 선택(캐릭터 카드) — 오라클 카드: 단청 액자 + 아치형 창 ── */
body[data-ms-theme="saju"] #root > div > div.relative.w-full.h-full,
body[data-ms-theme="saju"] #root div.relative.flex-1.overflow-y-auto.z-10{ background:radial-gradient(70% 35% at 50% 0%,rgba(181,55,42,.14),transparent 70%),var(--ink)!important; }
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 > div > div.relative.w-full > div.absolute.pointer-events-none{ display:none!important; }
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 > div > div.relative.w-full > div.relative.overflow-hidden{
  border:1px solid var(--line)!important; border-radius:2px!important;
  background:var(--corners), linear-gradient(180deg,rgba(26,19,11,.92),rgba(10,8,5,.96))!important;
  box-shadow:inset 0 0 0 4px rgba(5,4,3,.9), inset 0 0 0 5px var(--line-soft), 0 18px 40px rgba(0,0,0,.55)!important;
  padding:12px 12px 4px!important;
}
/* 아치형 창 */
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 div.relative.overflow-hidden > div.relative:first-child{
  border-radius:80px 80px 2px 2px!important; border:1px solid var(--line); overflow:hidden!important;
}
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 div.relative.overflow-hidden > div.relative:first-child > img{ filter:sepia(.22) saturate(.88) contrast(1.04); }
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 div.relative.overflow-hidden > div.relative:first-child > div.absolute:first-child{ display:none!important; }   /* 보라 번짐 */
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 div.relative.overflow-hidden > div.relative:first-child > div.top-3.left-3{ display:none!important; }    /* "사주" 꼬리표 */
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 div.relative.overflow-hidden > div.relative:first-child > div.top-3.right-3 > div{
  background:rgba(5,4,3,.7)!important; border:1px solid var(--line)!important; color:var(--gold-hi)!important; border-radius:2px!important;
}
/* 이름 — 명조 */
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 div.relative.overflow-hidden > div.relative:first-child > div.bottom-0.px-4 > div{
  font-family:var(--serif)!important; font-weight:800!important; font-size:14.5px!important; letter-spacing:-.01em; white-space:nowrap; text-align:center; text-shadow:0 2px 10px rgba(0,0,0,.9)!important; color:var(--ivory)!important;
}
/* 아래 영역: 꼬리표는 가는 금선, 버튼은 금선 위 한 줄 */
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 div.relative.overflow-hidden > div.relative.flex-1{ background:transparent!important; padding:10px 4px 10px!important; }
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 div.relative.flex-1 span.px-2{
  background:transparent!important; border:1px solid var(--line-soft)!important; border-radius:2px!important; color:var(--dim)!important; box-shadow:none!important;
}
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 div.relative.flex-1 span.px-2:first-child{ color:var(--gold-hi)!important; border-color:var(--line)!important; }
body[data-ms-theme="saju"] #root .grid.grid-cols-2.gap-3 div.relative.flex-1 > button{
  background:transparent!important; border:0!important; border-top:1px solid var(--line-soft)!important; border-radius:0!important; box-shadow:none!important;
  color:var(--gold-hi)!important; font-family:var(--serif)!important; font-weight:700!important; letter-spacing:.08em;
}

/* ── 사주 대화 — 먹 바탕 · 단청 액자 말풍선 · 오행 금테 카드 ── */
body[data-ms-theme="saju"] #root div.relative.w-full.h-full.flex.flex-col.overflow-hidden{
  background:radial-gradient(80% 30% at 50% 6%,rgba(181,55,42,.14),transparent 70%),var(--ink)!important;
}
body[data-ms-theme="saju"] #root div.flex.items-center.gap-3.px-4.z-50{
  background:rgba(5,4,3,.92)!important; border-bottom:1px solid var(--line-soft)!important; gap:10px!important;
}
body[data-ms-theme="saju"] #root div.flex.items-center.gap-3.px-4.z-50 > button:first-child{ background:rgba(8,6,4,.6)!important; border:1px solid var(--line)!important; }
body[data-ms-theme="saju"] #root div.flex.items-center.gap-3.px-4.z-50 > div.flex-shrink-0{
  background:transparent!important; border:1px solid var(--line)!important; box-shadow:inset 0 0 0 3px var(--ink),inset 0 0 0 4px var(--line-soft)!important;
  font-family:var(--han)!important; background-image:var(--foil)!important; -webkit-background-clip:text!important; background-clip:text!important; -webkit-text-fill-color:transparent;
}
body[data-ms-theme="saju"] #root div.flex.items-center.gap-3.px-4.z-50 > div.flex-1.min-w-0 > div:first-child{
  font-family:var(--serif)!important; font-style:normal!important; font-weight:800!important; font-size:15.5px!important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block!important;
}
body[data-ms-theme="saju"] #root div.flex.items-center.gap-3.px-4.z-50 > div.flex-1.min-w-0 > div:nth-child(2){ color:var(--dim)!important; opacity:1!important; white-space:nowrap; overflow:hidden; }
body[data-ms-theme="saju"] #root div.z-50 > button[aria-label="다이아 충전"]{ background:rgba(8,6,4,.6)!important; border:1px solid var(--line)!important; }
body[data-ms-theme="saju"] #root div.z-50 > button[aria-label="다이아 충전"] > span:nth-of-type(2){ display:none!important; }
body[data-ms-theme="saju"] #root div.z-50 > button[aria-label="다이아 충전"] img{ filter:none; }
body[data-ms-theme="saju"] #root div.z-50 > button.p-2{ color:var(--gold)!important; }
/* 상대 말풍선 — 단청 모서리 액자 */
body[data-ms-theme="saju"] #root div.flex.justify-start div[style*="linear-gradient"]:is(.max-w-\[75\%\],[class*="px-4"]){
  background:var(--corners), linear-gradient(180deg,rgba(26,19,11,.92),rgba(10,8,5,.95))!important;
  border:1px solid var(--line)!important; border-radius:2px!important; padding:16px 20px!important;
  box-shadow:inset 0 0 0 4px rgba(5,4,3,.9), inset 0 0 0 5px var(--line-soft), 0 14px 30px rgba(0,0,0,.5)!important; color:var(--ivory)!important;
}
/* 내 말풍선 — 옅은 금 */
body[data-ms-theme="saju"] #root div.flex.justify-end div[style*="linear-gradient"]{
  background:rgba(212,174,102,.12)!important; border:1px solid var(--line)!important; border-radius:2px!important; box-shadow:none!important; color:var(--ivory)!important;
}
/* 추천 질문 칩 */
body[data-ms-theme="saju"] #root div.grid.grid-cols-2.gap-1\.5 > button{
  background:rgba(8,6,4,.55)!important; border:1px solid var(--line)!important; border-radius:2px!important; color:var(--ivory)!important; box-shadow:none!important;
}
/* 입력 바 */
body[data-ms-theme="saju"] #root div.relative.px-3.py-3.z-10{ background:linear-gradient(180deg,rgba(5,4,3,.6),var(--ink))!important; border-top:1px solid var(--line-soft)!important; }
body[data-ms-theme="saju"] #root div.relative.px-3.py-3.z-10 textarea{ border:1px solid var(--line-soft)!important; border-radius:2px!important; background:transparent!important; }
body[data-ms-theme="saju"] #root div.relative.px-3.py-3.z-10 button{ background:linear-gradient(160deg,#f3d58f,#b5843a)!important; border-radius:2px!important; color:#2a1d10!important; box-shadow:0 0 16px rgba(230,180,90,.3)!important; }
body[data-ms-theme="saju"] #root div.relative.px-3.py-3.z-10 .rounded-full{ background:var(--gold)!important; box-shadow:0 0 6px var(--gold)!important; }
/* 보라 잔재 → 금 */
body[data-ms-theme="saju"] #root :is([style*="color: rgb(196, 181, 253)"],[style*="color: rgb(167, 139, 250)"],[style*="color: rgb(233, 213, 255)"],[style*="color: rgb(221, 214, 254)"]){ color:var(--gold-hi)!important; }
body[data-ms-theme="saju"] #root [style*="border-bottom: 1.5px solid rgba(139, 92, 246"]{ border-bottom-color:var(--gold)!important; }
/* 사주 원국 판 */
body[data-ms-theme="saju"] #root div[style*="padding: 12px; background: linear-gradient(160deg"]{
  background:var(--corners), linear-gradient(180deg,rgba(26,19,11,.92),rgba(10,8,5,.95))!important;
  border:1px solid var(--line)!important; border-radius:2px!important; padding:16px 14px!important;
  box-shadow:inset 0 0 0 4px rgba(5,4,3,.9), inset 0 0 0 5px var(--line-soft), 0 14px 30px rgba(0,0,0,.5)!important;
}
body[data-ms-theme="saju"] #root div[style*="margin-top: 12px; padding: 10px 12px; background: linear-gradient(135deg, rgba(139, 92, 246"]{ background:transparent!important; border:0!important; border-top:1px solid var(--line-soft)!important; border-radius:0!important; }
/* 오행 카드 — 깊은 오행색 + 금테 */
body[data-ms-theme="saju"] #root div[style*="aspect-ratio: 1 / 1"][style*="linear-gradient(135deg, rgb("]{
  border:0!important; border-radius:2px!important; font-family:var(--han)!important; color:#f6ebd2!important; text-shadow:0 1px 6px rgba(0,0,0,.45)!important;
  box-shadow:inset 0 0 0 1px rgba(247,227,173,.55),inset 0 0 0 3px rgba(0,0,0,.35),inset 0 0 0 4px rgba(247,227,173,.22)!important;
}
body[data-ms-theme="saju"] #root div[style*="aspect-ratio: 1 / 1"][style*="rgb(21, 128, 61)"]{ background:linear-gradient(180deg,#2f5a35,#173322)!important; }
body[data-ms-theme="saju"] #root div[style*="aspect-ratio: 1 / 1"][style*="rgb(185, 28, 28)"]{ background:linear-gradient(180deg,#8f2e22,#4d1611)!important; }
body[data-ms-theme="saju"] #root div[style*="aspect-ratio: 1 / 1"][style*="rgb(161, 98, 7)"]{ background:linear-gradient(180deg,#8a6a2c,#4a3714)!important; }
body[data-ms-theme="saju"] #root div[style*="aspect-ratio: 1 / 1"][style*="rgb(82, 82, 82)"]{ background:linear-gradient(180deg,#7d776a,#3d3a33)!important; }
body[data-ms-theme="saju"] #root div[style*="aspect-ratio: 1 / 1"]:is([style*="rgb(29, 78, 216)"],[style*="rgb(30, 64, 175)"],[style*="rgb(37, 99, 235)"],[style*="rgb(3, 105, 161)"],[style*="rgb(30, 58, 138)"]){ background:linear-gradient(180deg,#24365e,#111b33)!important; }
