@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  --night: #090b1a;
  --night-soft: #11152f;
  --indigo: #1a1e43;
  --violet: #7566e8;
  --violet-light: #a89df4;
  --moon: #f4efe4;
  --paper: #fbf8f1;
  --gold: #d8b66c;
  --gold-pale: #f0dca7;
  --silver: #ececf4;
  --muted: #aaaec4;
  --ink: #29273a;
  --line: rgba(216, 182, 108, .22);
  --wood: #62a982;
  --fire: #d86b65;
  --earth: #be9560;
  --metal: #d7dce5;
  --water: #5779bc;
  --serif: "Gowun Batang", serif;
  --sans: "Noto Sans KR", sans-serif;
  --shadow: 0 28px 80px rgba(1, 2, 12, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--silver);
  font-family: var(--sans);
  line-height: 1.7;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--moon); color: var(--ink); padding: .7rem 1rem; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(7,8,22,.62), transparent);
}
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: var(--gold); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 700; letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: .92rem; color: #d6d6e2; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-pale); }
.nav-cta { border: 1px solid rgba(216,182,108,.5); border-radius: 999px; padding: .62rem 1.1rem; }
.menu-button { display: none; background: transparent; color: white; border: 0; font-size: 1.35rem; }

.starfield { position: relative; overflow: hidden; isolation: isolate; }
.starfield::before, .starfield::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.starfield::before {
  background:
    radial-gradient(circle at 16% 24%, rgba(255,255,255,.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 18%, rgba(216,182,108,.8) 0 1px, transparent 1.7px),
    radial-gradient(circle at 84% 62%, rgba(255,255,255,.6) 0 1px, transparent 1.6px),
    radial-gradient(circle at 37% 72%, rgba(117,102,232,.8) 0 1px, transparent 1.8px);
  background-size: 180px 170px, 270px 230px, 210px 260px, 320px 290px;
  opacity: .7;
}
.starfield::after { background: radial-gradient(ellipse at 50% 20%, rgba(92,73,196,.25), transparent 48%), radial-gradient(ellipse at 82% 60%, rgba(47,78,153,.2), transparent 38%); }

.hero { min-height: 860px; padding: 170px 0 110px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.hero-copy h1 { margin: 1rem 0 1.4rem; font-family: var(--serif); font-size: clamp(2.9rem, 5.5vw, 5.3rem); line-height: 1.18; font-weight: 400; letter-spacing: -.04em; }
.hero-copy h1 em { color: var(--gold-pale); font-style: normal; }
.hero-copy p { max-width: 590px; color: #c4c6d6; font-size: 1.05rem; }
.trust-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.trust-chip { padding: .55rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); color: #cfd0df; font-size: .8rem; }

.birth-card { position: relative; padding: clamp(1.4rem, 4vw, 2.25rem); border: 1px solid rgba(216,182,108,.25); border-radius: 28px; background: linear-gradient(145deg, rgba(30,34,75,.82), rgba(10,12,30,.91)); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.birth-card::before { content: ""; position: absolute; width: 150px; height: 150px; right: -35px; top: -45px; border: 1px solid rgba(216,182,108,.17); border-radius: 50%; box-shadow: inset 0 0 40px rgba(216,182,108,.04); }
.card-kicker { display: flex; align-items: center; gap: .75rem; color: var(--gold-pale); font-family: var(--serif); }
.card-kicker::before { content: "✦"; color: var(--gold); }
.birth-card h2 { margin: .7rem 0 .4rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
.birth-card .sub { margin: 0 0 1.6rem; color: var(--muted); font-size: .86rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { font-size: .78rem; color: #bfc1d1; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: .85rem 1rem;
  color: white; background: rgba(4,6,19,.55); outline: none; color-scheme: dark;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet-light); box-shadow: 0 0 0 3px rgba(117,102,232,.14); }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); padding: 4px; background: rgba(4,6,19,.5); border-radius: 12px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; border-radius: 9px; padding: .62rem; color: var(--muted); font-size: .84rem; }
.segmented input:checked + span { background: rgba(117,102,232,.24); color: white; }
.primary-button { width: 100%; margin-top: 1.25rem; border: 0; border-radius: 13px; padding: 1rem 1.25rem; cursor: pointer; color: #19162a; font-weight: 700; background: linear-gradient(135deg, var(--gold-pale), var(--gold)); box-shadow: 0 12px 30px rgba(216,182,108,.15); }
.primary-button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.privacy-note { margin: .85rem 0 0; text-align: center; color: #8f92aa; font-size: .72rem; }

.paper-section { background: var(--paper); color: var(--ink); padding: 110px 0; }
.section-heading { max-width: 700px; margin-bottom: 3rem; }
.section-heading h2 { margin: .65rem 0 1rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.3; font-weight: 400; }
.section-heading p { color: #716e7d; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step-card { position: relative; min-height: 280px; padding: 2rem; border: 1px solid #e6dfd0; border-radius: 22px; background: #fffdf8; overflow: hidden; }
.step-no { color: var(--violet); font-family: var(--serif); font-size: .8rem; letter-spacing: .12em; }
.step-card h3 { margin: 2.4rem 0 .8rem; font-family: var(--serif); font-size: 1.42rem; }
.step-card p { color: #777382; font-size: .92rem; }
.step-orbit { position: absolute; width: 110px; height: 110px; border: 1px solid rgba(117,102,232,.16); border-radius: 50%; top: -35px; right: -24px; }
.step-orbit::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); left: 5px; top: 54px; }

.pillars-section { padding: 110px 0; background: linear-gradient(180deg, #0d1025, #121630); }
.pillars-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: center; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.pillar { padding: 1.5rem .6rem; text-align: center; border: 1px solid rgba(216,182,108,.22); border-radius: 80px 80px 18px 18px; background: rgba(255,255,255,.035); }
.pillar small { color: var(--muted); font-size: .68rem; }
.pillar strong { display: block; margin: 1.5rem 0 .6rem; color: var(--gold-pale); font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.pillar span { color: #b8bbcf; font-size: .72rem; }
.pillars-copy h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
.pillars-copy p { color: #afb2c6; }
.reason-list { margin-top: 2rem; display: grid; gap: 1rem; }
.reason { display: flex; gap: 1rem; align-items: flex-start; }
.reason i { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(216,182,108,.36); border-radius: 50%; color: var(--gold); font-style: normal; font-size: .72rem; }
.reason strong { display: block; margin-bottom: .15rem; color: #e9e7ef; }
.reason span { color: #999db5; font-size: .86rem; }

.teacher-section { background: #eee7d9; color: var(--ink); padding: 110px 0; }
.teacher-card { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 520px; overflow: hidden; border-radius: 28px; background: #f9f5ec; box-shadow: 0 24px 70px rgba(59,46,31,.12); }
.teacher-visual { position: relative; min-height: 400px; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, #626094, #29294d 56%, #17182d); overflow: hidden; }
.moon-disc { width: min(70%, 330px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #fff9e9, #d8cba9 65%, #a89468); box-shadow: 0 0 90px rgba(240,220,167,.22); }
.teacher-symbol { position: absolute; font-family: var(--serif); color: rgba(10,11,26,.75); font-size: clamp(3rem, 8vw, 6rem); }
.teacher-copy { padding: clamp(2.2rem, 6vw, 5rem); align-self: center; }
.teacher-copy h2 { margin: .7rem 0 1.3rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
.teacher-copy p { color: #696675; }
.career { display: flex; gap: 2rem; margin: 2rem 0; padding: 1.25rem 0; border-block: 1px solid #dfd6c5; }
.career strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: #453f65; }
.career span { color: #817c87; font-size: .76rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; color: #554c87; font-weight: 700; font-size: .9rem; }

.library-section { padding: 100px 0; }
.library-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; }
.library-head h2 { margin: .5rem 0 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.article-card { display: block; padding: 1.7rem; min-height: 250px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.035); transition: .2s ease; }
.article-card:hover { border-color: rgba(216,182,108,.42); transform: translateY(-3px); }
.article-card .tag { color: var(--gold); font-size: .72rem; }
.article-card h3 { margin: 2.6rem 0 .75rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.article-card p { color: var(--muted); font-size: .86rem; }

.site-footer { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,.08); color: #85899f; font-size: .78rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; }
.footer-links { display: flex; gap: 1.4rem; }

.sub-hero { min-height: 440px; padding: 160px 0 80px; display: grid; align-items: center; }
.sub-hero h1 { margin: .8rem 0 1rem; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 400; }
.sub-hero p { max-width: 680px; color: #b6b9cc; }
.content-page { background: var(--paper); color: var(--ink); }
.content-wrap { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 110px; }
.content-wrap h2 { margin: 3rem 0 1rem; font-family: var(--serif); font-size: 1.8rem; }
.content-wrap p, .content-wrap li { color: #5f5b69; }
.content-note { padding: 1.4rem 1.5rem; border-left: 3px solid var(--violet); background: #eeebf7; border-radius: 0 12px 12px 0; }
.ad-slot { min-height: 110px; margin: 2.5rem 0; border: 1px dashed #d8d1c5; color: #aaa3a0; display: grid; place-items: center; font-size: .72rem; }

.analysis-shell { min-height: 100vh; padding: 140px 0 90px; }
.analysis-card { padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid rgba(216,182,108,.22); border-radius: 28px; background: rgba(17,21,47,.86); }
.analysis-card h1 { font-family: var(--serif); font-weight: 400; }
.status-panel { margin-top: 2rem; padding: 1.5rem; border: 1px solid rgba(117,102,232,.3); border-radius: 16px; background: rgba(117,102,232,.08); }

.consult-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 2rem; align-items: start; }
.consult-info, .consult-form { padding: 2rem; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: rgba(255,255,255,.035); }
.consult-info h2, .consult-form h2 { font-family: var(--serif); font-weight: 400; }
.check { display: flex; gap: .65rem; align-items: flex-start; margin-top: 1rem; color: #c4c6d6; font-size: .8rem; }
.check input { margin-top: .35rem; }
.form-status { min-height: 1.7rem; margin-top: .8rem; font-size: .82rem; }
.form-status.success { color: #9fd8b6; }
.form-status.error { color: #ef9b96; }
.honeypot { position: absolute; left: -9999px; }

.leap-option { display: flex; align-items: center; gap: .55rem; color: #c4c6d6; font-size: .82rem; }
.birth-date-direct { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: .55rem; }
.birth-date-direct label span { display: block; margin-bottom: .35rem; color: #9da1b6; font-size: .7rem; }
.birth-date-direct input { width: 100%; text-align: center; }
.calendar-option { margin-top: .65rem; }
.calendar-option summary { width: fit-content; color: #d9c37f; cursor: pointer; font-size: .76rem; }
.calendar-option input { margin-top: .55rem; width: 100%; }
.date-help { margin: .45rem 0 0; color: #898da3; font-size: .68rem; }
.leap-option[hidden], [hidden] { display: none !important; }
.manse-test { display: grid; gap: 1.25rem; margin-top: 2rem; }
.result-section { padding: 1.35rem; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.035); }
.result-title { margin: 0 0 1rem; color: #e6d39e; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.manse-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.manse-pillar { padding: 1rem .7rem; text-align: center; border: 1px solid rgba(216,182,108,.18); border-radius: 15px; background: rgba(9,12,31,.62); }
.manse-pillar.is-day { border-color: rgba(216,182,108,.58); box-shadow: inset 0 0 0 1px rgba(216,182,108,.1); }
.manse-pillar small { display: block; color: #9498ad; }
.gan-zhi { margin: .45rem 0; color: #f2e7c7; font-family: var(--serif); font-size: 1.9rem; letter-spacing: .08em; }
.pillar-detail { color: #b9bdcf; font-size: .72rem; line-height: 1.65; }
.warning-list { margin: 0; padding-left: 1.15rem; color: #e8c68e; font-size: .8rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem 1.2rem; }
.detail-grid div { padding-bottom: .65rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.detail-grid span { display: block; color: #8f93aa; font-size: .7rem; }
.detail-grid strong { font-weight: 400; }
.element-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .65rem; }
.element-item { padding: .9rem .45rem; text-align: center; border-radius: 13px; background: rgba(117,102,232,.08); }
.element-item strong { display: block; margin-top: .25rem; color: #efe2bd; font-size: 1.25rem; }
.luck-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.luck-item { padding: .8rem; border-radius: 13px; background: rgba(255,255,255,.04); }
.luck-item strong, .luck-item span { display: block; }
.luck-item span { color: #999db2; font-size: .72rem; }
.test-save textarea { width: 100%; min-height: 90px; padding: .9rem; color: #eef0f8; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(4,7,22,.65); resize: vertical; }
.test-save button { margin-top: .75rem; }
.interpretation-section { border-color: rgba(216,182,108,.28); background: linear-gradient(145deg, rgba(216,182,108,.055), rgba(117,102,232,.045)); }
.interpret-card h3 { margin: .35rem 0 .8rem; color: #f0e2bc; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.interpret-card h4 { margin: 1.4rem 0 .4rem; color: #dfc47e; font-size: .9rem; }
.interpret-card p { color: #c6c8d6; }
.interpret-badge { display: inline-block; padding: .3rem .6rem; color: #ddc785; border: 1px solid rgba(216,182,108,.32); border-radius: 999px; font-size: .66rem; }
.suggestion { padding: .9rem 1rem; border-left: 2px solid var(--gold); background: rgba(216,182,108,.06); }
.evidence-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.evidence-row span { padding: .3rem .55rem; color: #aaaec2; border-radius: 999px; background: rgba(255,255,255,.055); font-size: .68rem; }
.hold-verdict { color: #e6c990 !important; font-size: .8rem; }
.interpret-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.interpret-grid article, .palace-grid article, .topic-grid article { padding: 1rem; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(4,7,22,.28); }
.interpret-grid strong, .interpret-grid span { display: block; }
.interpret-grid strong { color: #f0e2bc; }
.interpret-grid span, .palace-grid span { color: #9196ae; font-size: .69rem; }
.interpret-grid p, .palace-grid p, .topic-grid p { margin-bottom: 0; color: #c5c8d7; font-size: .82rem; }
.palace-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: .75rem; }
.palace-grid small, .topic-grid small { display: block; color: #d6bd7e; }
.palace-grid strong { display: block; margin: .35rem 0; color: #f1e6c9; font-family: var(--serif); font-size: 1.3rem; }
.palace-grid .palace-theme { color: #dfc47e; font-size: .78rem; }
.palace-note { grid-column: 1 / -1; margin: .35rem 0 0; padding: .8rem 1rem; color: #aeb2c5; border-left: 2px solid rgba(216,182,108,.55); font-size: .75rem; }
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.topic-grid article { padding: 1.25rem; }
.topic-grid .topic-method { color: #9ca0b5; font-size: .72rem; }
.topic-grid .topic-reading { color: #d2d4df; font-size: .88rem; line-height: 1.85; }
.topic-grid .topic-check { padding-top: .75rem; color: #e0c88b; border-top: 1px solid rgba(255,255,255,.07); font-size: .75rem; }
.relation-wrap { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.08); }
.relation-wrap h3 { color: #f0e2bc; font-family: var(--serif); font-weight: 400; }
.relation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.relation-grid article { padding: .9rem 1rem; border-radius: 13px; background: rgba(117,102,232,.07); }
.relation-grid strong, .relation-grid small { display: block; }
.relation-grid strong { color: #dfc47e; }
.relation-grid small { margin-top: .2rem; color: #9ca0b5; }
.relation-grid p { margin-bottom: 0; color: #c5c8d7; font-size: .8rem; }
.story-result { display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.story-result .story-lead, .story-result article { padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid rgba(216,182,108,.19); border-radius: 20px; background: linear-gradient(145deg, rgba(216,182,108,.055), rgba(117,102,232,.04)); }
.story-result h2, .story-result h3 { color: #f0e2bc; font-family: var(--serif); font-weight: 400; }
.story-result h2 { margin: .8rem 0 1rem; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.story-result h3 { margin: 0 0 1rem; font-size: 1.45rem; }
.story-result h4 { margin: 1.3rem 0 .55rem; color: #dfc47e; font-size: .9rem; }
.story-result p, .story-result li { color: #ced0dc; line-height: 1.9; }
.story-result ul { display: grid; gap: .4rem; padding-left: 1.25rem; }
.story-result li::marker { color: #d7b967; }
.story-result .mbti-note { padding: 1rem; border-radius: 13px; background: rgba(117,102,232,.1); }
.story-result .mbti-note strong { color: #ddd1ff; }
.inline-perspective { margin: 1.6rem 0 .25rem; padding: clamp(1.05rem, 3vw, 1.6rem); border: 1px solid rgba(155,143,239,.2); border-radius: 18px; background: rgba(8,12,34,.48); }
.inline-perspective-title { margin-bottom: 1rem; }
.inline-perspective-title > span { display: inline-block; margin-bottom: .45rem; color: #d7b967; font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.story-result .inline-perspective-title h4 { margin: 0 0 .45rem; color: #eee2bd; font-family: var(--serif); font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 400; }
.inline-perspective-title small { color: #949ab1; line-height: 1.55; }
.mbti-inline { border-color: rgba(155,143,239,.27); background: linear-gradient(145deg,rgba(117,102,232,.1),rgba(8,12,34,.52)); }
.mbti-visual { position: relative; margin: calc(clamp(1.05rem, 3vw, 1.6rem) * -1) calc(clamp(1.05rem, 3vw, 1.6rem) * -1) 1.35rem; overflow: hidden; border-radius: 18px 18px 0 0; background: #0b1027; }
.mbti-visual::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8,12,34,.96)); pointer-events: none; }
.mbti-visual img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; opacity: .9; }
.mbti-visual figcaption { position: absolute; z-index: 1; right: 1.1rem; bottom: .9rem; left: 1.1rem; display: flex; align-items: baseline; gap: .7rem; color: #eee2bd; }
.mbti-visual figcaption b { color: #d7b967; font-size: 1.05rem; letter-spacing: .08em; }
.mbti-visual figcaption span { color: #d7d9e4; font-family: var(--serif); font-size: clamp(1rem,3vw,1.25rem); }
.story-result .mbti-specific { margin: 0 0 1rem; padding: 1rem 1.05rem; border-left: 2px solid #d7b967; color: #d6d8e3; line-height: 1.8; background: rgba(216,185,103,.055); }
.story-result .mbti-specific strong { display: block; margin-bottom: .35rem; color: #eee2bd; font-family: var(--serif); font-size: 1.05rem; }
.mbti-longread { display: grid; gap: .65rem; }
.story-result .mbti-longread p { margin: 0; }
.story-result .mbti-inline h5 { margin: 1.2rem 0 .55rem; color: #d9ceff; font-size: .9rem; }
.story-result .mbti-inline ul { margin-bottom: 1rem; }
.story-result .mbti-inline .comparison-note { margin-top: 1rem; }
.mbti-guide { margin: 1.1rem 0; padding: 1rem; border: 1px solid rgba(155,143,239,.2); border-radius: 16px; background: rgba(117,102,232,.06); }
.mbti-guide h5 { margin: 0 0 .8rem; color: #eee4ca; }
.mbti-guide > small { display: block; margin-top: .8rem; color: #9298af; line-height: 1.6; }
.mbti-job-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.mbti-job-grid span { padding: .5rem .72rem; border: 1px solid rgba(216,182,108,.22); border-radius: 99px; color: #e3d6af; background: rgba(216,182,108,.055); }
.mbti-match-table { display: grid; gap: .55rem; }
.mbti-match-table > div { display: grid; grid-template-columns: 70px 1fr; gap: .8rem; align-items: start; padding: .72rem; border-radius: 10px; background: rgba(255,255,255,.035); }
.mbti-match-table strong { color: #d9ceff; }
.mbti-match-table p { margin: 0; color: #c8cbd8; line-height: 1.65; }
.balance-verdict { padding: 1rem; border-left: 2px solid var(--gold); color: #f0e2bc; background: rgba(216,182,108,.055); }
.judgment-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem; margin-top: 1rem; }
.judgment-grid article { padding: 1rem; border: 1px solid rgba(216,182,108,.18); border-radius: 14px; background: rgba(255,255,255,.025); }
.judgment-grid small, .judgment-grid strong { display: block; }
.judgment-grid small { color: #b7a46d; }
.judgment-grid strong { margin: .35rem 0; color: #f0e2bc; font-size: 1.05rem; }
.judgment-grid p { margin: 0; color: #bfc3d2; line-height: 1.65; }
.result-action-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.result-action-grid a { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.secondary-button { min-height: 48px; padding: .8rem 1rem; border: 1px solid rgba(216,182,108,.28); border-radius: 12px; color: #e5ca88; background: rgba(216,182,108,.045); }
.relation-note { margin-top: 1rem; color: #aeb3c7; line-height: 1.8; }
.relation-consult { margin-top: 1.1rem; padding: 1.15rem 1.25rem; border: 1px solid rgba(216,182,108,.2); border-radius: 15px; background: linear-gradient(135deg,rgba(216,182,108,.07),rgba(117,102,232,.055)); }
.relation-consult span { color: #ead28f; font-family: var(--serif); font-size: 1.05rem; }
.relation-consult p { margin: .45rem 0 .7rem; color: #c3c7d5; line-height: 1.7; }
.relation-consult a { color: #d9c071; font-weight: 700; text-decoration: none; }
.relation-consult a:hover { text-decoration: underline; }
.tarot-inline { border-color: rgba(216,182,108,.23); background: radial-gradient(circle at 85% 5%,rgba(216,182,108,.08),transparent 32%),rgba(8,12,34,.52); }
.perspective-section { margin: 1.1rem 0 1.5rem; padding: clamp(1.3rem, 4vw, 2.3rem); border: 1px solid rgba(216,182,108,.22); border-radius: 24px; background: radial-gradient(circle at 85% 5%, rgba(117,102,232,.16), transparent 35%), rgba(12,16,40,.72); }
.perspective-heading > span { color: #d7b967; font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.perspective-heading h2 { margin: .6rem 0 .65rem; color: #f0e2bc; font-family: var(--serif); font-size: clamp(1.65rem, 4vw, 2.25rem); font-weight: 400; }
.perspective-heading p { margin: 0; color: #ced0dc; line-height: 1.8; }
.perspective-heading small { display: block; margin-top: .5rem; color: #9399b3; }
.mbti-dimensions { display: grid; grid-template-columns: repeat(4,1fr); gap: .65rem; padding: 0; margin: 1.4rem 0; list-style: none; }
.mbti-dimensions li { display: grid; gap: .25rem; padding: 1rem; border: 1px solid rgba(155,143,239,.2); border-radius: 15px; background: rgba(117,102,232,.07); }
.mbti-dimensions strong { color: #d9ceff; font-size: 1.4rem; }
.mbti-dimensions span { color: #f0e2bc; font-weight: 700; }
.mbti-dimensions small { color: #aeb2c5; line-height: 1.55; }
.mbti-topic-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.mbti-topic-grid article { padding: 1.15rem; border-radius: 16px; background: rgba(255,255,255,.035); }
.mbti-topic-grid small { color: #d7b967; }
.mbti-topic-grid h3 { margin: .35rem 0 .65rem; color: #eee4ca; font-size: 1rem; }
.mbti-topic-grid p, .comparison-note p { margin: 0; color: #c8cbd8; line-height: 1.75; }
.comparison-note { margin-top: .85rem; padding: 1.1rem; border-left: 2px solid #8f7fe8; background: rgba(117,102,232,.07); }
.comparison-note strong { color: #ddd1ff; }
.comparison-note p + p { margin-top: .55rem; color: #9298af; font-size: .88rem; }
.tarot-topics { display: flex; gap: .45rem; margin: 1.2rem 0; }
.tarot-topics button { padding: .55rem 1rem; border: 1px solid rgba(216,182,108,.22); border-radius: 99px; color: #aaaec1; background: transparent; cursor: pointer; }
.tarot-topics button.active { color: #15172a; background: #d7b967; }
.tarot-instruction { text-align: center; color: #c9c2ae; }
.tarot-deck { display: flex; justify-content: center; gap: clamp(.65rem,3vw,1.5rem); margin: 1.3rem auto; }
.tarot-card { position: relative; display: flex; width: min(25vw,150px); aspect-ratio: .62; align-items: center; justify-content: center; flex-direction: column; gap: .5rem; overflow: hidden; border: 1px solid #b69a53; border-radius: 13px; color: #ead99f; background: radial-gradient(circle at 50% 35%, rgba(216,182,108,.2), transparent 22%), repeating-radial-gradient(circle at center, transparent 0 17px, rgba(216,182,108,.12) 18px 19px), linear-gradient(145deg,#242246,#0b102a); box-shadow: 0 12px 30px rgba(0,0,0,.25); cursor: pointer; transition: transform .25s, opacity .25s; }
.tarot-card:hover { transform: translateY(-7px); }
.tarot-card .card-star { font-size: 2rem; }
.tarot-card b { font-size: .63rem; letter-spacing: .14em; }
.tarot-card > small { color: #a99362; }
.tarot-card.revealed { padding: 0; transform: rotateY(360deg); color: #f4e8bf; background: radial-gradient(circle at 50% 25%, rgba(216,182,108,.25), transparent 35%), linear-gradient(160deg,#28204b,#12162d); }
.tarot-card.revealed img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tarot-card.revealed strong { font-family: var(--serif); font-size: clamp(1rem,3vw,1.35rem); }
.tarot-card.dimmed { opacity: .3; transform: scale(.96); }
.tarot-reading { min-height: 1rem; margin-top: 1.2rem; }
.tarot-reading:not(:empty) { padding: 1.3rem; border: 1px solid rgba(216,182,108,.18); border-radius: 16px; background: rgba(216,182,108,.055); }
.tarot-reading > span { color: #d7b967; font-size: .78rem; }
.tarot-reading h3 { margin: .4rem 0 .7rem; color: #f0e2bc; font-family: var(--serif); font-size: 1.35rem; }
.tarot-reading p { color: #ced0dc; line-height: 1.75; }
.tarot-reading small { color: #8f95aa; }
.tarot-deep { display: grid; gap: .35rem; }
.tarot-deep h4 { margin: .8rem 0 0; color: #ddc47d; font-size: .85rem; letter-spacing: .03em; }
.tarot-deep p { margin: 0; }
.tarot-deep blockquote { margin: .9rem 0 1rem; padding: 1rem 1.1rem; border: 0; border-left: 2px solid #8f7fe8; color: #ddd6f2; background: rgba(117,102,232,.08); }
.tarot-deep blockquote strong { display: block; margin-bottom: .35rem; color: #bdb1f3; font-size: .78rem; }
.tarot-caution { padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.07); }
.tarot-caution strong { display: block; color: #d9c98f; }
@media (max-width: 720px) {
  .mbti-dimensions { grid-template-columns: repeat(2,1fr); }
  .mbti-topic-grid { grid-template-columns: 1fr; }
  .tarot-card { width: 29%; }
  .judgment-grid, .result-action-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .menu-button, .result-actions, .tarot-inline, .footer { display: none !important; }
  body { color: #111; background: #fff; }
  .result-section, .interpret-card, .story-result article, .inline-perspective { break-inside: avoid; border-color: #bbb; color: #111; background: #fff; box-shadow: none; }
  .result-section *, .story-result * { color: #111 !important; }
}
.story-advice { margin-top: 1.2rem; padding: 1rem 1.1rem; border-left: 2px solid var(--gold); background: rgba(216,182,108,.055); }
.story-advice strong { display: block; margin-bottom: .35rem; color: #e5ca88; }

@media (max-width: 900px) {
  .hero-grid, .pillars-wrap, .teacher-card, .consult-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .steps, .article-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 220px; }
  .teacher-visual { min-height: 360px; }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav { min-height: 70px; }
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; left: 14px; right: 14px; top: 70px; padding: 1.2rem; flex-direction: column; align-items: stretch; gap: .4rem; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(10,12,30,.98); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .65rem; }
  .hero { padding-top: 130px; }
  .hero-copy h1 { font-size: 2.7rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .paper-section, .pillars-section, .teacher-section, .library-section { padding: 75px 0; }
  .pillars-wrap { gap: 3rem; }
  .library-head, .footer-grid { align-items: flex-start; flex-direction: column; }
  .career { gap: 1rem; }
  .manse-pillars { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .element-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .luck-grid { grid-template-columns: repeat(2, 1fr); }
  .interpret-grid, .palace-grid, .topic-grid, .relation-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
