/* ───────────────────────────────────────────────────────────────────────────
   통합 디자인 (2026-11-14, 사용자 요청) — 모든 페이지 맨 마지막에 불러온다.
   · 배경: 운명치유연구소 블루 #002AA0 를 불투명도 20%(투명도 80%)로 — 우주 배경 그림이 그대로 비친다.
   · 글자: 완전한 흰색 #FFFFFF / 완전한 노랑 #FFFF00, 모든 글자에 완전한 검정 #000000 테두리.
   · 테두리선: 완전한 노랑.  색 토큰만 바꿔도 대부분의 카드 · 표 · 상자가 따라온다.
   고칠 때는 이 파일의 토큰(--u-*)만 바꿀 것.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  --u-blue: rgba(0, 42, 160, .2);
  --u-blue-2: rgba(0, 42, 160, .34);      /* 마우스를 올리거나 선택했을 때 */
  --u-blue-field: rgba(0, 18, 76, .62);   /* 입력칸: 글을 쓰는 곳이라 조금 더 짙게 */
  --u-blue-pop: rgba(0, 24, 110, .92);    /* 팝업 · 말풍선: 뒤의 글자와 섞이면 안 되므로 거의 불투명 */
  --u-white: #fff;
  --u-yellow: #ff0;
  --u-black: #000;
  --u-outline: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000,
               0 -1.5px 0 #000, 0 1.5px 0 #000, -1.5px 0 0 #000, 1.5px 0 0 #000, 0 2px 5px rgba(0, 0, 0, .85);
  --u-line: #ff0;

  /* 기존 토큰을 같은 값으로 맞춤 — style.css · components.css · 작명 앱 · 상점이 이 이름을 쓴다 */
  --surface: var(--u-blue);
  --surface-2: var(--u-blue);
  --accent-soft: var(--u-blue-2);
  --paper: transparent;
  --ink: #fff;
  --muted: #ff0;
  --accent: #ff0;
  --brand: #ff0;
  --line: rgba(255, 255, 0, .7);
  --field-bg: var(--u-blue-field);
  --field-border: #ff0;
  --field-ph: #fff;
  --shadow: none;
  color-scheme: dark;
}
html:root body { color: #fff; }

/* ── 1. 바탕이 되는 상자 · 카드 · 메뉴 버튼 · 표: 파랑 20% + 노란 테두리 ── */
html:root body:not(.u0) :is(
  .card, .unse_info, .card.confirm, details, .box, .tbl-wrap, .mini, .note,
  .bk-card, .sp-card, .rb-intro, .pp-box, .bk-opts,
  .lt-hero, .lt-card, .lt-freebox, .lt-deep, .lt-pro,
  #homeCal, .hc-box, .foot.wrap, .decide_cta, .cat_bar,
  .cat_btn, .menu_li a, .menu_li li.on a, .cat_btn.on,
  .ns-t, .ns-fl, .ns-box, .rf-card, .cm-card, .zw-card, .ic-res, .fc-res
) {
  background-color: var(--u-blue) !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 1.5px solid #ff0 !important;
}
html:root body:not(.u0) :is(.cat_btn:hover, .menu_li a:hover, .cat_btn.on, .menu_li li.on a) { background-color: var(--u-blue-2) !important; }
html:root body:not(.u0) .cat_btn.on, html:root body:not(.u0) .menu_li li.on a { box-shadow: 0 0 0 3px rgba(255, 255, 0, .35) !important; }
/* 메뉴 타일의 이름표(예전엔 흰 종이색) */
html:root body:not(.u0) .menu_tit { background: transparent !important; border: 0 !important; }
/* 메뉴 줄 · 하단 탭 바 */
html:root body:not(.u0) :is(.menu_area, .menu_area[data-bg]) { background: transparent !important; background-image: none !important; box-shadow: none !important; }
html:root body:not(.u0) .bnav { background: var(--u-blue-pop) !important; border-top: 1.5px solid #ff0 !important; box-shadow: none !important; }
/* 카드 안에 또 들어간 칸 · 표 머리 · 줄무늬 */
html:root body:not(.u0) :is(th, thead td, .ms-sum, .cm-q, .lt-chip) { background-color: var(--u-blue) !important; background-image: none !important; }
html:root body:not(.u0) :is(table, th, td) { border-color: rgba(255, 255, 0, .55) !important; }

/* ── 2. 글자: 흰색 + 노랑, 검정 테두리 ── */
html:root body:not(.u0) :is(main, #menu, .foot, .top, .bk-card, .rb-intro, .pp-box, .sp-card, .bnav, #lt, .menu_pop, .menu_tipbox) {
  color: #fff; text-shadow: var(--u-outline);
}
html:root body:not(.u0) :is(main, #menu, .foot, .top, .bk-card, .rb-intro, .pp-box, .sp-card, .bnav, #lt, .menu_pop)
  :is(p, li, td, dd, dt, label, small, span, div, em, i, figcaption, .small, .muted, .lead, .txt, .menu_tit, .cat_name):not(.ms-t *, .ms-t, .sbar *, .sbar, .gz *, .gz, .ball *, .ball, .cm-k *, .cm-k, .lk-color *, .lk-color, .ms-cnt span, .cpg, .cell *, .sgb, .cpk, button *, .btn *, [class*="el"][class*="ob"], .el0, .el1, .el2, .el3, .el4) {
  color: #fff;
}
/* 제목 · 강조 · 링크 = 노랑 */
html:root body:not(.u0) :is(main, #menu, .foot, .top, .bk-card, .rb-intro, .pp-box, .sp-card, .bnav, #lt, .menu_pop)
  :is(h1, h2, h3, h4, h5, h6, summary, legend, b, strong, th, .eyebrow, .txt_purple, .hc-t, .pill, a:not(.btn):not(.menu_li a):not(.cat_btn)) {
  color: #ff0;
}
/* 글자가 올라간 색 칸(오방색 · 점수 막대 · 번호 공 · 달력 칸)은 칸 자신의 색을 지키고 테두리만 제거 */
html:root body:not(.u0) :is(.ms-t, .ms-t *, .sbar, .sbar *, .gz, .gz *, .ball, .ball *, .cm-k, .cm-k *, .lk-color, .lk-color *, .ms-cnt span, .ms-cnt span *, .cpg, .cell *, .sgb, .cpk, svg text, option, input, select, textarea) { text-shadow: none !important; }

/* ── 3. 버튼: 파랑 20% + 노란 테두리 + 노란 글자 ── */
html:root body:not(.u0) :is(.btn, button.btn, .btn.primary, .btn.ghost, .btn.secondary, .nav-btn, .tab, .tab-btn, .chip, .lt-btn, .bk-btn, .sp-btn, a.btn, .join-link, .menu_pop_x, #modeBtn, .i18n-btn) {
  background: var(--u-blue) !important;
  background-image: none !important;
  color: #ff0 !important;
  border: 2px solid #ff0 !important;
  box-shadow: none !important;
  text-shadow: var(--u-outline) !important;
  font-weight: 700;
}
html:root body:not(.u0) :is(.btn, .tab, .chip, .lt-btn, .bk-btn, .sp-btn, .join-link, .i18n-btn):hover { background: var(--u-blue-2) !important; }
html:root body:not(.u0) :is(.tab.on, .tab[aria-selected="true"], .chip.on, .btn.on) { background: var(--u-blue-2) !important; box-shadow: 0 0 0 3px rgba(255, 255, 0, .4) !important; }
html:root body:not(.u0) :is(.btn, button.btn)[disabled] { opacity: .5; }

/* ── 4. 입력칸 ── */
html:root body:not(.u0) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  background-color: var(--u-blue-field) !important;
  color: #fff !important;
  border: 2px solid #ff0 !important;
  text-shadow: none !important;
}
html:root body:not(.u0) :is(input, textarea)::placeholder { color: rgba(255, 255, 255, .72) !important; }
html:root body:not(.u0) option { background: #00184f; color: #fff; }

/* ── 5. 팝업 · 말풍선 · 확인창: 뒤의 글자와 섞이지 않도록 거의 불투명한 파랑 ── */
html:root body:not(.u0) :is(.menu_tipbox, .menu_pop_box, .tzoom-box, .i18n-help, .modal, .modal-box, .dlg, #pdfBox > div, #shopPop > div) {
  background: var(--u-blue-pop) !important;
  border: 2px solid #ff0 !important;
  color: #fff !important;
  text-shadow: var(--u-outline) !important;
}

/* ── 6. 링크 밑줄 · 구분선 · 포커스 ── */
html:root body:not(.u0) hr { border-color: rgba(255, 255, 0, .6); }
html:root body:not(.u0) :focus-visible { outline: 3px solid #ff0 !important; outline-offset: 2px; }

/* ── 7. 별도 페이지(작명 · 감명 · 상점 · 퀴즈 · 시간 찾기)도 같은 우주 배경 위에 ── */
html:root body:not(.u0).u-sub { background: linear-gradient(rgba(0, 8, 40, .25), rgba(0, 8, 40, .35)), url(../img/bg-cosmos.webp) center / cover fixed no-repeat !important; min-height: 100vh; }
html.framed body.u-sub { background: transparent !important; }

/* 인쇄(PDF)는 각 페이지의 기존 인쇄 규칙을 그대로 쓴다 — 여기서는 건드리지 않음 */

/* ── 9. 마무리: 앞 규칙을 이기지 못한 곳 ── */
html:root body:not(.u0) :is(.cat_name, .menu_tit, .menu_tit *) { color: #fff !important; text-shadow: var(--u-outline) !important; }
html:root body:not(.u0) .ms-nb { color: #ff0 !important; background: var(--u-blue) !important; border: 2px solid #ff0 !important; text-shadow: var(--u-outline) !important; }
html:root body:not(.u0) .ms-t:not(.el0, .el1, .el2, .el3, .el4), html:root body:not(.u0) .ms-t:not(.el0, .el1, .el2, .el3, .el4) * { color: #fff !important; text-shadow: var(--u-outline) !important; }

/* ── 10. 별도 페이지 머리의 메뉴 줄(js/subnav.js) — 메인 화면의 메뉴와 똑같이 ── */
html:root body:not(.u0) .sn-area { background: transparent !important; background-image: none !important; box-shadow: none !important; border-color: transparent !important; }
html:root body:not(.u0) .sn-li a { background: var(--u-blue) !important; border: 1.5px solid #ff0 !important; box-shadow: none !important; color: #fff !important; text-shadow: var(--u-outline) !important; }
html:root body:not(.u0) .sn-li a:hover, html:root body:not(.u0) .sn-li li.on a { background: var(--u-blue-2) !important; }
html:root body:not(.u0) .sn-tit { background: var(--u-blue) !important; color: #ff0 !important; border: 1.5px solid #ff0 !important; box-shadow: none !important; text-shadow: var(--u-outline) !important; }
html:root body:not(.u0) .sn-x { background: var(--u-blue) !important; color: #ff0 !important; border: 2px solid #ff0 !important; }

/* ── 11. 작명 · 감명 앱의 위쪽 막대(스크롤하면 내용 위에 떠 있으므로 조금만 짙게) ── */
html:root body:not(.u0) .topbar { background: rgba(0, 24, 110, .6) !important; border-bottom: 1.5px solid #ff0 !important; backdrop-filter: blur(6px); }
html:root body:not(.u0) .topbar :is(a, .nav a, .nav button) { color: #ff0 !important; text-shadow: var(--u-outline) !important; }
html:root body:not(.u0) .topbar .nav :is(a.on, a.active, a[aria-current]) { background: var(--u-blue-2) !important; border: 1.5px solid #ff0 !important; }

/* ── 12. 페이지 안 탭 · 클래스 없는 단추 ── */
html:root body:not(.u0) main :is(.tabbar, .tabs, nav.tabs, .seg, .pg-tabs) button, html:root body:not(.u0) main button:not([class]) {
  background: var(--u-blue) !important; background-image: none !important; color: #ff0 !important; border: 2px solid #ff0 !important; box-shadow: none !important; text-shadow: var(--u-outline) !important; font-weight: 700;
}
html:root body:not(.u0) main :is(.tabbar, .tabs, nav.tabs, .seg, .pg-tabs) button:is(.on, [aria-selected="true"], [aria-current]) { background: var(--u-blue-2) !important; box-shadow: 0 0 0 3px rgba(255, 255, 0, .4) !important; color: #fff !important; }

/* ── 13. 천간 · 지지 글자 칸은 어디서든 오방색(목 청 · 화 적 · 토 황 · 금 백 · 수 흑)을 그대로 ── */
html:root body:not(.u0) .lt-g { text-shadow: none !important; border: 1.5px solid rgba(0, 0, 0, .45); }
html:root body:not(.u0) :is(.ms-t, .ms-cnt span, .gz, .lt-g, .gzt).el0 { background: var(--ob0, #145a74) !important; color: var(--ob0-t, #fff) !important; }
html:root body:not(.u0) :is(.ms-t, .ms-cnt span, .gz, .gzt).el1 { background: var(--ob1, #a52a1d) !important; color: var(--ob1-t, #fff) !important; }
html:root body:not(.u0) :is(.ms-t, .ms-cnt span, .gz, .gzt).el2 { background: var(--ob2, #f2c230) !important; color: var(--ob2-t, #2a2008) !important; }
html:root body:not(.u0) :is(.ms-t, .ms-cnt span, .gz, .gzt).el3 { background: var(--ob3, #fff) !important; color: var(--ob3-t, #1d1a15) !important; }
html:root body:not(.u0) :is(.ms-t, .ms-cnt span, .gz, .gzt).el4 { background: var(--ob4, #1b1b1f) !important; color: var(--ob4-t, #fff) !important; }
/* 지장간(숨은 천간) 글자 — 작은 오방색 칸 */
html:root body:not(.u0) .ms-hz { display: inline-block; min-width: 1.35em; padding: 0 .2em; margin: 0 1px; border-radius: 4px; line-height: 1.35; text-align: center; text-shadow: none !important; border: 1px solid rgba(0, 0, 0, .45); }
html:root body:not(.u0) .ms-hz.el0 { background: var(--ob0, #145a74) !important; color: var(--ob0-t, #fff) !important; }
html:root body:not(.u0) .ms-hz.el1 { background: var(--ob1, #a52a1d) !important; color: var(--ob1-t, #fff) !important; }
html:root body:not(.u0) .ms-hz.el2 { background: var(--ob2, #f2c230) !important; color: var(--ob2-t, #2a2008) !important; }
html:root body:not(.u0) .ms-hz.el3 { background: var(--ob3, #fff) !important; color: var(--ob3-t, #1d1a15) !important; }
html:root body:not(.u0) .ms-hz.el4 { background: var(--ob4, #1b1b1f) !important; color: var(--ob4-t, #fff) !important; }

/* ── 14. 쉬운 모드 첫 화면: 고민 갈래 · 세부 고민 칩 · 큰 버튼도 같은 원칙 ── */
html:root body:not(.u0) #lt :is(.lt-pick, .lt-groups .lt-pick.lt-grp, .lt-subs .lt-pick) {
  background: var(--u-blue) !important; background-image: none !important; border: 2px solid #ff0 !important; box-shadow: none !important;
  color: #fff !important; text-shadow: var(--u-outline) !important;
}
html:root body:not(.u0) #lt :is(.lt-pick, .lt-subs .lt-pick):hover { background: var(--u-blue-2) !important; }
html:root body:not(.u0) #lt :is(.lt-pick, .lt-groups .lt-pick.lt-grp, .lt-subs .lt-pick)[aria-pressed="true"] {
  background: var(--u-blue-2) !important; border: 3px solid #ff0 !important; color: #ff0 !important; box-shadow: 0 0 0 3px rgba(255, 255, 0, .35) !important; font-weight: 800;
}
html:root body:not(.u0) #lt .lt-car { color: #ff0 !important; }
html:root body:not(.u0) #lt .lt-subpanel { background: var(--u-blue) !important; border: 2px solid #ff0 !important; }
html:root body:not(.u0) #lt .lt-subpanel::before { background: #0a2a8c !important; border-left: 2px solid #ff0 !important; border-top: 2px solid #ff0 !important; }
html:root body:not(.u0) #lt :is(.lt-btn, .lt-go, .lt-btn.sm, .lt-freebox .lt-btn[data-lt="free"], .lt-deep .lt-go, .lt-pro .lt-btn[data-lt="pro"]) {
  background: var(--u-blue) !important; background-image: none !important; border: 2px solid #ff0 !important; box-shadow: none !important; color: #ff0 !important; text-shadow: var(--u-outline) !important; animation: none !important;
}
html:root body:not(.u0) #lt :is(.lt-btn, .lt-go):hover { background: var(--u-blue-2) !important; }

/* ── 15. 쉬운 모드 명식 카드: 네 기둥 칸 · 기운 무리 칩 · 오행 막대 바탕도 파랑 20% ── */
html:root body:not(.u0) #lt :is(.lt-pl, .lt-chip) { background: var(--u-blue) !important; background-image: none !important; box-shadow: none !important; border: 1.5px solid #ff0 !important; }
html:root body:not(.u0) #lt .lt-pl.me { border: 3px solid #ff0 !important; background: var(--u-blue-2) !important; }
html:root body:not(.u0) #lt .lt-bar { background: var(--u-blue) !important; border: 1.5px solid #ff0 !important; }
html:root body:not(.u0) #lt .lt-pl :is(small, span, b) { color: #fff !important; text-shadow: var(--u-outline) !important; }

/* ── 16. 쉬운 모드 결과 단계(번호 · 현실 한 걸음 · 접는 칸) ── */
html:root body:not(.u0) #lt :is(.lt-real, .lt-tipbox, .lt-note, .lt-quote, .lt-say) { background: var(--u-blue) !important; background-image: none !important; border: 1.5px solid #ff0 !important; border-left: 4px solid #ff0 !important; box-shadow: none !important; }
html:root body:not(.u0) #lt :is(.lt-real, .lt-real *) { color: #fff !important; text-shadow: var(--u-outline) !important; }
html:root body:not(.u0) #lt .lt-real b { color: #ff0 !important; }
html:root body:not(.u0) #lt .lt-step > :is(.lt-n, .lt-no, .lt-num, i, span:first-child):first-child { background: var(--u-blue-2) !important; background-image: none !important; color: #ff0 !important; border: 2px solid #ff0 !important; text-shadow: var(--u-outline) !important; box-shadow: none !important; }
html:root body:not(.u0) #lt details { background: var(--u-blue) !important; border: 1.5px solid #ff0 !important; }

/* ── 17. 카드 안에서 색 토큰을 다시 정하는 규칙(royal.css 등)을 눌러, 안쪽 상자도 같은 파랑 20% · 노란 테두리 ── */
html:root body:not(.u0) :is(.card, .bk-card, .sp-card, .rb-intro, .pp-box, .unse_info) {
  --surface: var(--u-blue); --surface-2: var(--u-blue); --accent-soft: var(--u-blue-2);
  --ink: #fff; --muted: #ff0; --accent: #ff0; --brand: #ff0; --line: rgba(255, 255, 0, .7);
  --field-bg: var(--u-blue-field); --field-border: #ff0; --paper: transparent;
}
html:root body:not(.u0) main :is(.tqtype, .tq-field, .tsel-sp, .seg, .ttabs, .tpick, .tspread, .tcmp-row) {
  background-color: var(--u-blue) !important; background-image: none !important; border: 1.5px solid #ff0 !important; box-shadow: none !important;
}
html:root body:not(.u0) main .tqtype:hover { background-color: var(--u-blue-2) !important; }
html:root body:not(.u0) main :is(.tqtype, .tqtype *, .tsel-sp small, .tqtype small) { color: #fff !important; text-shadow: var(--u-outline) !important; }
html:root body:not(.u0) main .tq-field input { background: var(--u-blue-field) !important; border: 2px solid #ff0 !important; color: #fff !important; }
/* 작은 알약(장 수 · 태그 · 칩)의 테두리와 바탕 */
html:root body:not(.u0) main :is(span, i, em)[class*="pill"], html:root body:not(.u0) main :is(.tag, .badge, .tcount, .tn) { background-color: var(--u-blue) !important; border: 1.5px solid #ff0 !important; color: #ff0 !important; }

/* 타로 단계 번호 · 배열 고르기 라벨 · 질문 입력칸 */
html:root body:not(.u0) main :is(.tsteps li > span, .tspreads label > span) { background: var(--u-blue) !important; border: 1.5px solid #ff0 !important; color: #ff0 !important; box-shadow: none !important; }
html:root body:not(.u0) main div.tq-field input:not(#u0) { background: var(--u-blue-field) !important; background-image: none !important; border: 2px solid #ff0 !important; color: #fff !important; }

/* ── 18. 로열 블루 상자(.rb · 채팅 말풍선 · 정통사주 카드)가 다시 정하는 색 토큰을 눌러 같은 원칙으로 ── */
html:root body:not(.u0) :is(#pageHead, #panel > .card, main > .card, #panel > [id] > .card, .msg.bot, .msg.me, .tmsg, .tstory, .rb, .rb-deep, .rb-glass, .rb-soft) {
  --surface: var(--u-blue); --surface-2: var(--u-blue); --accent-soft: var(--u-blue-2);
  --ink: #fff; --muted: #ff0; --brand: #ff0; --accent: #ff0; --line: rgba(255, 255, 0, .7);
  --field-bg: var(--u-blue-field); --field-border: #ff0; --paper: transparent; --paper-hi: transparent;
}
html:root body:not(.u0) :is(.msg.bot, .msg.me, .tmsg, .tstory, .rb, .rb-deep, .rb-glass, .rb-soft, #pageHead) {
  background: var(--u-blue) !important; background-image: none !important; border: 1.5px solid #ff0 !important; box-shadow: none !important; color: #fff;
}
/* 카드 안 링크 타일 · 라벨 · 동의 상자 · 카드 칸 */
html:root body:not(.u0) main :is(a.dm-cat, a.dsj-card, .dsj-card, label.chk, .ai-consent, .og-say, .cp-mode, .zw-cell, .rf-list li.rf-info, .tmsg .timg) {
  background-color: var(--u-blue) !important; background-image: none !important; border: 1.5px solid #ff0 !important; box-shadow: none !important;
}
html:root body:not(.u0) main :is(.cp-mode.on, a.on) { background-color: var(--u-blue-2) !important; border: 2.5px solid #ff0 !important; }

/* 남은 비슷한 노랑(#ffd84a)을 완전한 노랑으로, 시 상자 */
html:root body:not(.u0) input[type="checkbox"] { border-color: #ff0 !important; }
html:root body:not(.u0) input.fb-nick { border-color: #ff0 !important; }
html:root body:not(.u0) main :is(.tj-verse, .animal) { background-color: var(--u-blue) !important; background-image: none !important; border-color: #ff0 !important; }

/* ── 19. 선택 단추 묶음(.seg): 고른 항목도 노란 바탕이 아니라 파랑 + 노란 테두리 ── */
html:root body:not(.u0) .seg span { border: 2px solid transparent; }
html:root body:not(.u0) .seg input:checked + span { background: var(--u-blue-2) !important; color: #ff0 !important; border: 2px solid #ff0 !important; box-shadow: 0 0 0 2px rgba(255, 255, 0, .3); text-shadow: var(--u-outline); font-weight: 800; }

/* ── 20. id 가 붙은 입력칸(#icN0 …)의 따로 정한 진한 파랑도 같은 입력칸 색으로 ── */
html:root body:not(.u0) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):not(#u0) {
  background-color: var(--u-blue-field) !important; background-image: none !important; color: #fff !important; border: 2px solid #ff0 !important; text-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   21. 버튼 입체 디자인 (2026-11-14, 사용자 요청)
   주메뉴 버튼(.cat_btn · .menu_li a · .sn-li a) 은 제외. 나머지 모든 버튼:
   · 바탕 = 청색 #002AA0 불투명도 40%(투명도 60%) 위에 위쪽 빛 · 아래쪽 그늘의 그라데이션
   · 튀어나온 모양 = 위 안쪽 흰 줄 · 아래 안쪽 어두운 줄 · 아래로 떨어진 두께(그림자 막대)
   · 행동 버튼(누르면 실행) = 노란 글자 · 노란 테두리
   · 고르는 버튼(탭 · 칩 · 선택지)  안 고름 = 흰 글자 · 옅은 노란 테두리, 고름 = 눌려 들어간 모양 + 노란 글자 + 노란 빛
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --u-btn: rgba(0, 42, 160, .4);
  --u-btn-hi: rgba(130, 170, 255, .34);
  --u-btn-lo: rgba(0, 16, 90, .5);
  --u-raise: inset 0 2px 0 rgba(255, 255, 255, .38), inset 0 -3px 0 rgba(0, 0, 40, .45), 0 4px 0 rgba(0, 8, 56, .9), 0 7px 12px rgba(0, 0, 0, .45);
  --u-raise-hover: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 40, .45), 0 5px 0 rgba(0, 8, 56, .9), 0 9px 14px rgba(0, 0, 0, .5);
  --u-press: inset 0 4px 10px rgba(0, 0, 30, .75), inset 0 -1px 0 rgba(255, 255, 255, .15), 0 1px 0 rgba(0, 8, 56, .9);
}

/* 21-1. 모든 버튼의 바탕과 입체 */
html:root body:not(.u0) :is(
  .btn, button.btn, a.btn, .btn.primary, .btn.ghost, .btn.secondary, .lt-btn, .lt-go, .bk-btn, .sp-btn, .join-link, #modeBtn, .i18n-btn, .menu_pop_x, .sn-x, .ms-nb,
  .tab, .tab-btn, .nav-btn, .chip, .lt-pick, .tqtype, .cp-mode, .seg span, .cat_bar [data-home],
  main :is(.tabbar, .tabs, nav.tabs, .pg-tabs) button, main button:not([class])
):not(#u0):not(#u1) {
  background: linear-gradient(180deg, var(--u-btn-hi) 0%, var(--u-btn) 48%, var(--u-btn-lo) 100%) !important;
  border: 2px solid #ff0 !important;
  box-shadow: var(--u-raise) !important;
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, background .12s ease;
}
html:root body:not(.u0) :is(.btn, button.btn, a.btn, .lt-btn, .lt-go, .bk-btn, .sp-btn, .join-link, #modeBtn, .i18n-btn, .menu_pop_x, .sn-x, .ms-nb, .cat_bar [data-home], main button:not([class])):not(#u0):not(#u1) {
  color: #ff0 !important; text-shadow: var(--u-outline) !important; font-weight: 700;
}

/* 21-2. 고르는 버튼: 안 고른 상태 = 흰 글자 · 옅은 노란 테두리 */
html:root body:not(.u0) :is(.tab, .tab-btn, .nav-btn, .chip, .lt-pick, .tqtype, .cp-mode, .seg span, main :is(.tabbar, .tabs, nav.tabs, .pg-tabs) button):not(#u0):not(#u1) {
  color: #fff !important; border: 2px solid rgba(255, 255, 0, .5) !important; text-shadow: var(--u-outline) !important; font-weight: 600;
}

/* 21-3. 마우스를 올리면 살짝 떠오르고, 누르는 순간 눌려 들어감 */
html:root body:not(.u0) :is(.btn, button.btn, a.btn, .lt-btn, .lt-go, .bk-btn, .sp-btn, .join-link, #modeBtn, .i18n-btn, .tab, .tab-btn, .nav-btn, .chip, .lt-pick, .tqtype, .cp-mode, .ms-nb, main button:not([class]), main :is(.tabbar, .tabs, nav.tabs, .pg-tabs) button):not(#u0):not(#u1):hover:not(:disabled) {
  transform: translateY(-1px); box-shadow: var(--u-raise-hover) !important; border-color: #ff0 !important;
}
html:root body:not(.u0) :is(.btn, button.btn, a.btn, .lt-btn, .lt-go, .bk-btn, .sp-btn, .join-link, #modeBtn, .i18n-btn, .menu_pop_x, .sn-x, .ms-nb, .tab, .tab-btn, .nav-btn, .chip, .lt-pick, .tqtype, .cp-mode, main button:not([class]), main :is(.tabbar, .tabs, nav.tabs, .pg-tabs) button):not(#u0):not(#u1):active:not(:disabled) {
  transform: translateY(3px); box-shadow: var(--u-press) !important;
}

/* 21-4. 고른 버튼: 눌려 들어간 모양 + 더 진한 파랑 + 굵은 노란 테두리 + 노란 글자 + 노란 빛 */
html:root body:not(.u0) :is(
  .tab, .tab-btn, .nav-btn, .chip, .lt-pick, .lt-grp, .tqtype, .cp-mode, .btn, button.btn, .lt-btn, .bk-btn, main :is(.tabbar, .tabs, nav.tabs, .pg-tabs) button, #lt .lt-subs .lt-pick, #lt .lt-groups .lt-pick.lt-grp
):is(.on, .active, .is-on, .sel, [aria-pressed="true"], [aria-selected="true"], [aria-current]:not([aria-current="false"])):not(#u0):not(#u1),
html:root body:not(.u0) .seg input:checked + span:not(#u0):not(#u1) {
  background: linear-gradient(180deg, rgba(0, 10, 70, .92) 0%, rgba(0, 38, 150, .88) 100%) !important;
  border: 3px solid #ff0 !important;
  color: #ff0 !important; font-weight: 800 !important; text-shadow: var(--u-outline) !important;
  box-shadow: var(--u-press), 0 0 0 3px rgba(255, 255, 0, .32), 0 0 16px rgba(255, 255, 0, .5) !important;
  transform: translateY(2px);
}

/* 21-5. 못 누르는 버튼 */
html:root body:not(.u0) :is(.btn, button, .lt-btn, .bk-btn):disabled:not(#u0):not(#u1) { opacity: .5; box-shadow: var(--u-raise) !important; filter: grayscale(.4); cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════════════════
   22. 타로 카드 마우스 올림 설명 팝업(.tstudy · .tpeek) — 바탕이 비쳐 글씨가 안 읽히던 것을
       거의 불투명한 사이트 기본 파랑으로 (2026-11-15, 사용자 요청)
   ═══════════════════════════════════════════════════════════════════════════ */
html:root body:not(.u0) :is(.tstudy, .tpeek):not(#u0):not(#u1) {
  background: linear-gradient(180deg, #0a2f9e 0%, #00237f 100%) !important;
  border: 2px solid #ff0 !important; color: #fff !important;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .5) !important;
  --ink: #fff; --muted: #fff; --accent: #ff0; --line: rgba(255, 255, 0, .7); --surface-2: rgba(0, 8, 56, .6); --accent-soft: rgba(255, 255, 0, .2);
}
html:root body:not(.u0) .tstudy :is(p, li, span, h4, b, div, summary):not(.tst-mk):not(.tst-pos):not(.tst-dir) { color: #fff; text-shadow: var(--u-outline); }
html:root body:not(.u0) .tstudy :is(h4, .tst-head b, .kw, .tst-ud span, li::marker) { color: #ff0; }
html:root body:not(.u0) .tstudy .tst-list li.on, html:root body:not(.u0) .tstudy .tst-ud.now { background: rgba(255, 255, 0, .22); outline: 1px solid rgba(255, 255, 0, .6); }
html:root body:not(.u0) .tstudy .tst-list li::marker { color: #ff0; }
