/* 색채타로 — 모던 미니멀 스타일 */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0efeb;
  --ink: #16161d;
  --ink-2: #33333d;
  --muted: #5f5f6b;
  --line: #e6e4df;
  --radius: 20px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ring: conic-gradient(#d8363f, #ee7a2b, #f2bf26, #2f9e5b, #16a9a1, #2f6fdb, #243a7a, #7a4bc2, #e8649a, #d8363f);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111117; --surface: #1a1a22; --surface-2: #23232d; --ink: #f1f0f6; --ink-2: #d9d8e1; --muted: #a8a7b5; --line: #2c2c37; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.8 var(--font); letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 .4em; }
h2 { font-size: 1.3rem; margin: 0 0 .7em; }
h3 { font-size: 1.08rem; margin: 1.4em 0 .4em; }
p { margin: .75em 0; color: var(--ink-2); }
ul, ol { color: var(--ink-2); padding-left: 1.2em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.center { text-align: center; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hd { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.04em; text-decoration: none; }
.logo-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--ring); -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%); mask: radial-gradient(circle, transparent 38%, #000 40%); }
.streak { font-size: .78rem; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); padding: 3px 10px; border-radius: 99px; }
.gnb-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.gnb-in::-webkit-scrollbar { display: none; }
.gnb a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 12px; border-radius: 99px; font-size: .94rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background .15s, color .15s; }
.gnb a:hover { background: var(--surface-2); color: var(--ink); }
.gnb a.on { background: var(--ink); color: var(--bg); }
.gnb a[href="/red/"] { --dot: #d8363f; } .gnb a[href="/orange/"] { --dot: #ee7a2b; } .gnb a[href="/yellow/"] { --dot: #f2bf26; }
.gnb a[href="/green/"] { --dot: #2f9e5b; } .gnb a[href="/turquoise/"] { --dot: #16a9a1; } .gnb a[href="/blue/"] { --dot: #2f6fdb; }
.gnb a[href="/navy/"] { --dot: #243a7a; } .gnb a[href="/purple/"] { --dot: #7a4bc2; } .gnb a[href="/pink/"] { --dot: #e8649a; }
.gnb a[href="/brown/"] { --dot: #8a5a36; } .gnb a[href="/white/"] { --dot: #eeeae2; } .gnb a[href="/black/"] { --dot: #1d1d24; }

/* ---------- 레이아웃 ---------- */
.layout { padding-top: 22px; padding-bottom: 56px; }
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; }
  .layout.no-side { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
}
.side { display: none; }
@media (min-width: 1024px) { .side { display: block; } .side-in { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; } }
.side .widget + .widget { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
main { min-width: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs i { font-style: normal; margin: 0 6px; opacity: .5; }

/* ---------- 섹션 카드 ---------- */
.card, .prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; margin: 16px 0; }
@media (min-width: 640px) { .card, .prose { padding: 30px 32px; } }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.8em; }

/* ---------- 히어로 ---------- */
.hero { padding: 26px 2px 10px; margin-bottom: 8px; }
.hero h1 span { display: block; margin-top: 8px; font-size: .56em; font-weight: 600; color: var(--ink-2); letter-spacing: -.02em; }
.eyebrow { margin: 0 0 10px; font: 600 .78rem/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.lead { font-size: 1.1rem; line-height: 1.8; color: var(--ink-2); max-width: 44em; }
.palette { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 22px; height: 10px; }
.palette i { border-radius: 99px; }
.hero-color { position: relative; padding: 28px 24px 24px; border-radius: 26px; background: color-mix(in srgb, var(--c1) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c1) 22%, var(--line)); }
.hero-color h1 { font-size: clamp(1.5rem, 4.6vw, 2.1rem); }
.hero-color .lead { margin-top: 18px; }
.card-intro { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center; }
@media (min-width: 640px) { .card-intro { grid-template-columns: 150px 1fr; gap: 28px; } }
.card-intro .ccard-wrap { width: 100%; }

/* ---------- 칩·키워드 ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.kw span, .kw a { font-size: .88rem; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.kw a:hover { border-color: var(--ink); color: var(--ink); }
.swatch-lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }

/* ---------- 본문 블록 ---------- */
.sec { padding: 16px 0; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; padding-top: 0; }
.sec h2, .sec h3 { margin: 0 0 4px; }
.case { padding: 14px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; }
.case h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; }
.case h3 a { text-decoration: none; }
.tarot-detail h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.grid { display: grid; gap: 12px; }
.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .2s; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile b { display: block; font-weight: 700; }
.tile .one { display: block; font-size: .88rem; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.ctile { padding: 8px 8px 14px; }
.ctile-sw { display: block; height: 64px; border-radius: 11px; margin-bottom: 10px; background: radial-gradient(130% 90% at 15% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), linear-gradient(165deg, var(--c2) -20%, var(--c1) 55%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.ctile b, .ctile .one { padding: 0 6px; }

.next { display: grid; margin: 12px 0 24px; border-top: 1px solid var(--line); }
.next a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; transition: padding .2s; }
.next a::after { content: "→"; color: var(--muted); transition: transform .2s; }
.next a:hover { padding-left: 10px; }
.next a:hover::after { transform: translateX(4px); color: var(--ink); }
.pager { display: flex; justify-content: space-between; gap: 10px; margin: 20px 0; }
.pager a { flex: 1; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: .9rem; font-weight: 600; text-decoration: none; }
.pager a:hover { border-color: var(--ink); }

/* ---------- 버튼 ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.btns .btn { flex: 1 1 160px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 50px; padding: 12px 22px; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; transition: transform .15s, opacity .15s; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- 표 ---------- */
.table-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { font-size: .84rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.tbl a { text-decoration: none; font-weight: 600; }

/* ---------- 공유 ---------- */
.share { margin: 22px 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.share-h { margin: 0 0 12px; font-weight: 700; color: var(--ink); }
.share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sb { min-height: 42px; padding: 9px 18px; border: 0; border-radius: 99px; font: 600 .88rem var(--font); cursor: pointer; }
.sb-kakao { background: #fee500; color: #191600; }
.sb-band, .sb-naver { background: #06c755; color: #fff; }
.sb-copy { background: var(--surface-2); color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-size: .9rem; z-index: 99; }

/* ---------- FAQ ---------- */
.faq h2 { margin-top: 32px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 2px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }

/* ---------- 광고 (높이 확보로 CLS 방지, 위·아래 간격 10px) ---------- */
.ad { margin: 10px auto; text-align: center; min-height: 100px; clear: both; }
/* 상단·중단: 반응형 디스플레이가 336×280 또는 300×250 으로 나오도록 폭을 336px 로 잡고 높이를 확보한다.
   화면이 좁으면 본문 폭(화면 − 좌우 여백 40px)까지, 그래도 300px 아래로는 줄이지 않는다. 카드 안(안쪽 여백)에 있어도 가운데에 그 폭을 유지한다.
   ins 에는 min-height 를 주지 않는다: 애드센스가 그 높이에 맞춰 고르므로 250px 이면 300×250 만 나온다. */
.ad-top, .ad-inArticle { width: clamp(300px, calc(100vw - 40px), 336px); margin-left: calc(50% - clamp(150px, calc(50vw - 20px), 168px)); margin-right: 0; min-height: 250px; }
/* 로컬 미리보기(localhost)에서만: 광고 자리를 점선 상자로 보여 준다. 실제 도메인에서는 적용되지 않는다 */
.ads-preview .ad { position: relative; outline: 2px dashed #e5484d; outline-offset: -2px; background: rgba(229, 72, 77, .06); }
.ads-preview .ad::after { content: "광고 자리 · 상단/중단 (336×280 · 300×250)"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #e5484d; pointer-events: none; }
.ads-preview .ad-multiplex::after { content: "광고 자리 · 하단 멀티플렉스"; }
/* 채워지지 않은 자리는 애드센스가 바깥 상자의 높이를 인라인으로 지우므로, 표시용 상자를 직접 세운다 */
.ads-preview .ad:has(ins[data-ad-status="unfilled"])::after { position: static; height: 250px; }
.ads-preview .ad ins[data-ad-status="unfilled"] { display: none !important; }
.ad-bottom { min-height: 120px; }
.ad-multiplex { min-height: 320px; }
/* 광고 바로 앞뒤 요소의 바깥 여백도 10px로 맞춘다 (카드의 16px 여백과 합쳐져 벌어지지 않게) */
*:has(+ .ad) { margin-bottom: 10px; }
.ad + * { margin-top: 10px; }
.ad-ph { display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 16px; color: var(--muted); font: 500 .75rem var(--mono); letter-spacing: .06em; }

/* ---------- 사이드바 ---------- */
.widget h2 { font: 600 .78rem/1 var(--mono); letter-spacing: .14em; color: var(--muted); margin: 6px 0 12px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li a { display: flex; align-items: center; padding: 7px 0; font-size: .98rem; text-decoration: none; color: var(--ink-2); }
.widget li a:hover { color: var(--ink); }

/* ---------- 푸터 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 96px; font-size: .9rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot-links a { text-decoration: none; color: var(--ink-2); }
.disclaimer, .copy { color: var(--muted); font-size: .86rem; line-height: 1.7; }

/* ---------- 색채타로 도구 ---------- */
#ct-app { padding-top: 26px; }
#ct-guide { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.cdeck { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
@media (min-width: 640px) { .cdeck { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; } }
.cpick { position: relative; padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 5/7; border-radius: 14px; transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .3s, filter .3s; }
.cpick:hover:not([disabled]) { transform: translateY(-4px); }
.cpick:hover:not([disabled]) .ccard-face { box-shadow: 0 2px 4px rgba(15, 15, 30, .06), 0 14px 28px -10px rgba(15, 15, 30, .35); }
.cpick:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cpick.picked { transform: translateY(-6px); }
.cpick.picked .ccard-face { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink), 0 14px 28px -10px rgba(15, 15, 30, .4); }
.cpick[disabled]:not(.picked) { opacity: .35; filter: saturate(.4); cursor: default; }
.cpick .pick-no { position: absolute; top: 8px; right: 8px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 .72rem/1 var(--mono); display: grid; place-items: center; }

/* 색 카드 (페인트 칩) */
.ccard-face {
  --ink-on: #fff;
  position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: #fff;
  display: grid; grid-template-rows: 1fr auto; text-align: left;
  box-shadow: 0 1px 2px rgba(15, 15, 30, .06), 0 8px 22px -10px rgba(15, 15, 30, .28);
  transition: box-shadow .25s;
}
.ccard-face.light { --ink-on: rgba(20, 20, 30, .7); }
.cc-swatch { position: relative; margin: 6px 6px 0; border-radius: 10px; background: radial-gradient(130% 90% at 15% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), linear-gradient(165deg, var(--c2) -20%, var(--c1) 55%); }
.ccard-face.light .cc-swatch { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07); }
.cc-no { position: absolute; top: 9px; left: 10px; color: var(--ink-on); font: 700 .72rem/1 var(--mono); letter-spacing: .06em; opacity: .9; }
.cc-label { padding: 9px 11px 11px; display: grid; gap: 2px; color: #16161d; }
.cc-label b { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.cc-label span { display: flex; justify-content: space-between; gap: 6px; font: 600 .64rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #5f5f6b; white-space: nowrap; }
.cc-label em { font: 500 .64rem/1.3 var(--mono); font-style: normal; letter-spacing: .02em; }
.ccard-face.mini .cc-swatch { margin: 5px 5px 0; border-radius: 9px; }
.ccard-face.mini .cc-no { top: 7px; left: 8px; font-size: .6rem; }
.ccard-face.mini .cc-label { padding: 7px 8px 8px; }
.ccard-face.mini .cc-label b { font-size: .86rem; }
.ccard-face.mini .cc-label span { font-size: .56rem; letter-spacing: .05em; }
.ccard-face.mini .cc-label em, .card-intro .cc-label em, .lucky-color .cc-label em { display: none; }
@media (prefers-color-scheme: dark) {
  .ccard-face { background: #24232e; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px -10px rgba(0, 0, 0, .6); }
  .cc-label { color: #f1f0f6; }
  .cc-label span { color: #a8a7b5; }
}
.ccard-wrap { width: 150px; aspect-ratio: 5/7; margin: 0 auto; }

/* 카드 뒷면 + 뒤집기 */
.cback { display: grid; place-items: center; align-content: center; gap: 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(15, 15, 30, .06), 0 8px 22px -10px rgba(15, 15, 30, .28), inset 0 0 0 1px var(--line); }
.cback i { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--ring); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.cback span { font: 600 .56rem/1 var(--mono); letter-spacing: .28em; color: var(--muted); }
.spread { display: flex; justify-content: center; gap: 12px; flex-wrap: nowrap; margin: 26px 0 8px; }
.spread-slot { display: grid; justify-items: center; gap: 10px; }
.spread-slot .chip { white-space: nowrap; }
.tflip { width: 100px; aspect-ratio: 5/7; perspective: 1000px; }
@media (min-width: 640px) { .tflip { width: 150px; } .spread { gap: 22px; } }
.tflip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: tflip .9s cubic-bezier(.3, .7, .3, 1) both; }
.tflip-in > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tflip-back { transform: rotateY(180deg); }
@keyframes tflip { from { transform: rotateY(180deg); } to { transform: rotateY(0); } }
.spread .ccard-face .cc-label b { font-size: .86rem; }
.spread .ccard-face .cc-label em { display: none; }
@media (min-width: 640px) { .spread .ccard-face .cc-label b { font-size: 1rem; } .spread .ccard-face .cc-label em { display: inline; } }
#ct-result { scroll-margin-top: 130px; }
#ct-result .card, #ct-result .share { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; padding: 24px 2px; animation: rise .5s ease both; }
#ct-result .share { text-align: left; }
#ct-result .share-btns { justify-content: flex-start; }
#ct-result .spread + .card { margin-top: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 오늘의 행운 컬러 */
.lucky-color { display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: center; }
.lucky-color .ccard-wrap { width: 104px; }
.lucky-color p:first-child { margin-top: 0; color: var(--ink); }

/* ---------- 메뉴: 색 메뉴에만 색 점 ---------- */
.gnb a.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

/* ---------- MBTI ---------- */
.tbadge { display: grid; align-content: space-between; aspect-ratio: 5/7; width: 100%; padding: 12px; border-radius: 16px; color: #fff; background: radial-gradient(130% 90% at 15% 0%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), linear-gradient(165deg, var(--c2) -20%, var(--c1) 60%); box-shadow: 0 8px 22px -10px rgba(15, 15, 30, .35); text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.tbadge b { font: 800 1.35rem/1 var(--mono); letter-spacing: .02em; }
.tbadge span { font-size: .78rem; font-weight: 600; line-height: 1.35; opacity: .95; }
.tbadge.big b { font-size: 1.7rem; }
@media (min-width: 640px) { .tbadge.big b { font-size: 2.1rem; } .tbadge.big span { font-size: .9rem; } }
.tbadge.light, .mt-type.light { color: #1d1d24; text-shadow: none; }
.tbadge.light { box-shadow: 0 8px 22px -10px rgba(15, 15, 30, .35), inset 0 0 0 1px rgba(0, 0, 0, .08); }
.two { display: grid; gap: 4px 24px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sw-type { position: absolute; left: 10px; bottom: 8px; font: 800 1rem/1 var(--mono); font-style: normal; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.ctile-sw { position: relative; }
.celebs { list-style: none; padding: 0; margin: 12px 0 0; }
.celebs li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.celebs li b { color: var(--ink); }
.celebs li span { color: var(--ink-2); font-size: .92rem; }
.celebs li a, .celebs li em { font-size: .8rem; color: var(--muted); font-style: normal; white-space: nowrap; }
@media (max-width: 520px) { .celebs li { grid-template-columns: 1fr auto; } .celebs li span { grid-column: 1 / -1; order: 3; } }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pchip { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.pchip b { font: 800 1.05rem/1.2 var(--mono); color: var(--ink); }
.pchip span { font-size: .84rem; color: var(--ink-2); }
.pchip.hi { border-color: color-mix(in srgb, #2f9e5b 45%, var(--line)); }
.pchip.lo { border-color: color-mix(in srgb, #d8363f 35%, var(--line)); }
.pchip:hover { border-color: var(--ink); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; max-width: 440px; margin-top: 22px; }
.vs .tbadge { aspect-ratio: 4/3; padding: 12px 14px; }
.vs-score { display: grid; justify-items: center; gap: 2px; }
.vs-score b { font: 800 2.2rem/1 var(--mono); color: var(--ink); }
.vs-score span { font-size: .84rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pick2 { display: flex; align-items: center; gap: 10px; }
.pick2 span { font-weight: 700; color: var(--muted); }
select { flex: 1; min-height: 50px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1rem var(--font); }
.matrix { font: 600 .8rem var(--mono); min-width: 640px; }
.matrix th, .matrix td { text-align: center; padding: 7px 4px; }
.matrix td a { text-decoration: none; display: block; border-radius: 6px; padding: 2px 0; }
.matrix td.hi a { background: color-mix(in srgb, #2f9e5b 18%, transparent); }
.matrix td.mid a { background: color-mix(in srgb, #f2bf26 18%, transparent); }
.matrix td.lo a { background: color-mix(in srgb, #d8363f 14%, transparent); }
.mbti-list { display: grid; grid-template-columns: 1fr 1fr; }
.mbti-list li a { font-family: var(--mono); font-size: .88rem; }

/* 색채타로 도구의 MBTI 선택 */
.ct-mbti { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.ct-mbti label { font-weight: 700; }
.ct-mbti label small { font-weight: 500; color: var(--muted); }
.ct-mbti select { flex: 0 1 170px; min-height: 44px; }

/* 컬러 MBTI 테스트 */
.mt-progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 22px; }
.mt-progress i { display: block; height: 100%; border-radius: 99px; background: var(--ring); transition: width .3s; }
.mt-q { font-size: 1.35rem; margin-bottom: 18px; }
.mt-options { display: grid; gap: 10px; }
.mt-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1rem/1.5 var(--font); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.mt-opt:hover { border-color: var(--ink); transform: translateY(-1px); }
.mt-sw { flex: none; width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.mt-back { border: 0; background: none; color: var(--muted); font: 500 .9rem var(--font); cursor: pointer; text-decoration: underline; margin-top: 14px; }
#mt-app { scroll-margin-top: 130px; }
.mt-result { text-align: center; padding: 8px 0; }
.mt-type { display: inline-block; margin: 6px 0 10px; padding: 14px 26px; border-radius: 20px; font: 800 2.6rem/1 var(--mono); color: #fff; background: var(--c1); box-shadow: 0 12px 28px -12px var(--c1); }
.mt-nick { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0; }
.mt-result .share { text-align: center; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.ad-guard { margin: 14px 0 6px; font-size: .95rem; line-height: 1.7; color: var(--ink-2); }
