/* 페이트 — 몽환적 밤하늘 명리 테마 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@500;600;700&display=swap');

:root {
  --void: #08060f;
  --night: #100c1f;
  --night-2: #171029;
  --veil: rgba(255,255,255,.045);
  --veil-2: rgba(255,255,255,.075);
  --edge: rgba(190,175,235,.14);
  --edge-2: rgba(190,175,235,.26);
  --text: #d5cfe6;
  --text-dim: #9c94b8;
  --text-hi: #f4f1fb;
  --gold: #d9b866;
  --gold-2: #f0dba3;
  --violet: #a882e8;
  --violet-2: #c9b0ff;
  --el-목: #4fbf8b;
  --el-화: #f0685e;
  --el-토: #e0b455;
  --el-금: #b8c2d4;
  --el-수: #6aa3e8;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--void); }
body {
  margin: 0; color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.8; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; position: relative; min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 50% -8%, #2a1d4d 0%, transparent 62%),
    radial-gradient(760px 520px at 88% 22%, #1d2a52 0%, transparent 58%),
    radial-gradient(680px 480px at 6% 62%, #331c42 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--void) 46%, #0b0814 100%);
  background-attachment: fixed;
}
/* 별 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .62;
  background:
    radial-gradient(1.4px 1.4px at 8% 12%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 24% 34%, #e8dcff, transparent),
    radial-gradient(1.6px 1.6px at 41% 8%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 57% 27%, #ffeec4, transparent),
    radial-gradient(1.3px 1.3px at 73% 15%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 88% 40%, #dcd0ff, transparent),
    radial-gradient(1.5px 1.5px at 15% 58%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 34% 76%, #ffeec4, transparent),
    radial-gradient(1.1px 1.1px at 52% 63%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 68% 84%, #e8dcff, transparent),
    radial-gradient(1.2px 1.2px at 83% 69%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 95% 90%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 5% 92%, #ffeec4, transparent);
  animation: twinkle 7s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .62; } 50% { opacity: .3; } }
/* 오로라 */
body::after {
  content: ""; position: fixed; inset: -22%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(closest-side, rgba(168,130,232,.19), transparent 72%) 22% 26%/58% 46% no-repeat,
    radial-gradient(closest-side, rgba(217,184,102,.11), transparent 72%) 82% 68%/50% 42% no-repeat;
  filter: blur(38px); animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.09); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

header.site, main, footer.site { position: relative; z-index: 1; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
a { color: var(--violet-2); }

/* ── 헤더 ── */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12,9,22,.72); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--edge);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em;
  color: var(--text-hi); text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
}
.logo .mark {
  width: 22px; height: 22px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 34% 30%, #fff8e2, var(--gold) 52%, #8d6f26);
  box-shadow: 0 0 14px rgba(217,184,102,.55), 0 0 0 4px rgba(217,184,102,.1);
}
.logo .mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 72% 34%, rgba(16,12,31,.92) 34%, transparent 36%);
}
nav.main { display: flex; gap: 2px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a {
  color: var(--text-dim); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: 7px 11px; border-radius: 9px; transition: .18s;
}
nav.main a:hover { background: var(--veil); color: var(--gold-2); }

/* ── 히어로 ── */
.hero { padding: 66px 0 44px; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .83rem; font-weight: 600;
  color: var(--gold-2); border: 1px solid rgba(217,184,102,.3);
  background: rgba(217,184,102,.07); padding: 6px 15px; border-radius: 999px; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(1.95rem, 6vw, 2.75rem); line-height: 1.36;
  margin: 0 0 16px; letter-spacing: -.028em; color: var(--text-hi);
  text-shadow: 0 0 42px rgba(168,130,232,.4);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, var(--violet-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { color: var(--text-dim); font-size: 1.01rem; margin: 0 auto 30px; max-width: 27em; }
.divider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--gold); margin: 40px 0 8px; font-size: .8rem;
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: 62px;
  background: linear-gradient(90deg, transparent, var(--edge-2));
}
.divider::after { background: linear-gradient(90deg, var(--edge-2), transparent); }

/* ── 타이포 ── */
main { padding-bottom: 80px; }
h1 {
  font-family: var(--serif); font-size: clamp(1.6rem, 4.8vw, 2.05rem); line-height: 1.4;
  letter-spacing: -.026em; margin: 0 0 12px; color: var(--text-hi);
}
h2 {
  font-family: var(--serif); font-size: clamp(1.2rem, 3.5vw, 1.4rem); line-height: 1.46;
  letter-spacing: -.02em; margin: 50px 0 16px; padding-bottom: 12px; color: var(--text-hi);
  border-bottom: 1px solid var(--edge); position: relative;
}
h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 54px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 8px rgba(217,184,102,.6);
}
h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 8px; color: var(--gold-2); font-family: var(--serif); }
p { margin: 14px 0; }
ul, ol { padding-left: 1.2rem; }
li { margin: 9px 0; }
li::marker { color: var(--gold); }
strong, b { color: var(--text-hi); font-weight: 700; }
.meta {
  color: var(--text-dim); font-size: .89rem; margin: 0 0 28px;
  padding-bottom: 18px; border-bottom: 1px solid var(--edge);
}
.meta b { color: var(--gold-2); }
.note { font-size: .86rem; color: var(--text-dim); margin-top: 10px; }
.hot { color: var(--el-화); font-weight: 700; }

/* ── 유리 카드 ── */
.card {
  background: var(--veil); border: 1px solid var(--edge); border-radius: 18px;
  padding: 22px; margin: 20px 0; backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -24px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
}
.callout {
  background: linear-gradient(120deg, rgba(217,184,102,.1), rgba(168,130,232,.09));
  border: 1px solid rgba(217,184,102,.24); border-left: 2px solid var(--gold);
  border-radius: 14px; padding: 17px 21px; margin: 24px 0; backdrop-filter: blur(8px);
}
.callout b { color: var(--gold-2); }
.callout a { font-weight: 700; color: var(--gold-2); }

/* ── 표 ── */
.table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem;
  background: var(--veil); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden;
  backdrop-filter: blur(8px);
}
th, td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--edge); }
th { background: rgba(168,130,232,.11); font-weight: 700; color: var(--gold-2); font-size: .88rem; white-space: nowrap; }
td { color: var(--text); }
tr:last-child td { border-bottom: 0; }
td.left, th.left { text-align: left; }
tr.hi td { background: rgba(217,184,102,.12); color: var(--text-hi); font-weight: 600; }

/* ── 칩 ── */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }
.chip {
  display: inline-block; background: var(--veil); color: var(--text);
  border: 1px solid var(--edge); border-radius: 999px; padding: 8px 16px;
  font-size: .9rem; font-weight: 600; text-decoration: none; transition: .18s; backdrop-filter: blur(6px);
}
a.chip:hover {
  border-color: var(--edge-2); color: var(--gold-2); background: var(--veil-2);
  transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(168,130,232,.6);
}
.chip.gold { border-color: rgba(217,184,102,.36); background: rgba(217,184,102,.1); color: var(--gold-2); }

/* ── 타일 ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: 14px; margin: 20px 0; }
a.tile, .tile {
  display: block; background: var(--veil); border: 1px solid var(--edge); border-radius: 18px;
  padding: 22px; text-decoration: none; color: var(--text); transition: .2s;
  backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  text-align: left; position: relative; overflow: hidden;
}
a.tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: .3s;
  background: radial-gradient(400px 140px at 50% 0%, rgba(168,130,232,.22), transparent 70%);
}
a.tile:hover::before { opacity: 1; }
a.tile:hover { transform: translateY(-4px); border-color: var(--edge-2); box-shadow: 0 20px 44px -22px rgba(168,130,232,.7); }
.tile .t {
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--text-hi);
  display: flex; align-items: baseline; gap: 7px; position: relative;
}
.tile .t small { font-weight: 500; color: var(--text-dim); font-size: .78rem; }
.tile .d { font-size: .89rem; color: var(--text-dim); margin-top: 7px; line-height: 1.65; display: block; position: relative; }

/* ── 폼 ── */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 11px; }
label { font-size: .81rem; color: var(--text-dim); font-weight: 600; display: block; margin-bottom: 6px; }
select {
  width: 100%; padding: 12px; border: 1px solid var(--edge); border-radius: 11px;
  font-size: 1rem; font-family: var(--sans); background: rgba(255,255,255,.05); color: var(--text-hi);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%239c94b8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
select option { background: #171029; color: var(--text-hi); }
select:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168,130,232,.2); }
button.go {
  width: 100%; margin-top: 18px; padding: 15px; border: 0; border-radius: 13px; cursor: pointer;
  background: linear-gradient(100deg, #8c62d6, #6f4bb8 55%, #4f3a92);
  color: #fff; font-size: 1.03rem; font-weight: 700; font-family: var(--sans);
  letter-spacing: -.01em; transition: .2s; box-shadow: 0 10px 30px -12px rgba(140,98,214,.85);
}
button.go:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(140,98,214,1); }
button.go:active { transform: translateY(0); }

/* ── 명식 ── */
.myeongsik {
  background: linear-gradient(168deg, rgba(28,20,52,.85), rgba(12,9,24,.9));
  border: 1px solid var(--edge); border-radius: 20px; padding: 24px 16px 20px; margin: 20px 0;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative; overflow: hidden;
}
.myeongsik::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(420px 150px at 50% 0%, rgba(168,130,232,.2), transparent 68%);
}
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; position: relative; }
.pillar { text-align: center; }
.pillar .lab { font-size: .76rem; color: var(--text-dim); font-weight: 600; margin-bottom: 8px; }
.pillar .glyphs {
  background: linear-gradient(170deg, #fdfbf5, #f2ece0); border-radius: 13px; padding: 13px 4px 11px;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.6);
}
.pillar .g { font-family: var(--serif); font-size: clamp(1.65rem, 7.6vw, 2.2rem); font-weight: 700; line-height: 1.16; display: block; }
.pillar .g.el-목 { color: #1f7a52; } .pillar .g.el-화 { color: #bf3b30; }
.pillar .g.el-토 { color: #a3781f; } .pillar .g.el-금 { color: #59636f; } .pillar .g.el-수 { color: #21518f; }
.pillar .kor { font-size: .82rem; color: var(--text-dim); margin-top: 9px; }
.pillar.empty .glyphs { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--edge); }
.pillar.empty .g { color: #4b4467; }
.pillar.day .glyphs { box-shadow: 0 0 0 2px var(--gold), 0 8px 26px -8px rgba(217,184,102,.75); }
.pillar.day .lab { color: var(--gold-2); }
.summary { margin: 18px 0 0; text-align: center; color: var(--text); font-size: .95rem; position: relative; }
.summary b { color: var(--gold-2); }
.el-목 { color: var(--el-목); } .el-화 { color: var(--el-화); } .el-토 { color: var(--el-토); }
.el-금 { color: var(--el-금); } .el-수 { color: var(--el-수); }

.pillar .ss { display: block; font-size: .72rem; font-weight: 700; color: var(--violet-2); text-decoration: none; margin: 3px 0; letter-spacing: .02em; }
.pillar .ss.me { color: var(--gold-2); }
.pillar a.ss:hover { text-decoration: underline; }

/* ── 오행 ── */
.ohaeng { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { width: 134px; height: 134px; border-radius: 50%; position: relative; flex-shrink: 0; box-shadow: 0 0 34px -6px rgba(168,130,232,.45); }
.donut::after { content: ""; position: absolute; inset: 22px; background: #140f26; border-radius: 50%; }
.donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 1; }
.donut .mid .n { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.donut .mid .l { font-size: .71rem; color: var(--text-dim); margin-top: 4px; }
.legend { flex: 1; min-width: 190px; }
.legend .row, .bars .row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: .9rem; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.legend .nm { width: 2.6em; font-weight: 700; }
.legend .track, .bars .track { flex: 1; height: 7px; background: rgba(255,255,255,.09); border-radius: 4px; overflow: hidden; }
.legend .fill, .bars .fill { display: block; height: 100%; border-radius: 4px; transition: width .55s cubic-bezier(.2,.8,.3,1); }
.legend .ct, .bars .ct { width: 2.3em; text-align: right; color: var(--text-dim); font-size: .84rem; }

/* ── 일일 운세 ── */
.reading { background: var(--veil); border: 1px solid var(--edge); border-radius: 18px; padding: 20px 22px; backdrop-filter: blur(10px); margin: 18px 0; }
.reading h3 { margin: 20px 0 6px; font-size: .98rem; }
.reading h3::before { content: "✦ "; color: var(--gold); font-size: .8rem; }
.score-row { display: flex; gap: 18px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--edge); }
.score { width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, rgba(217,184,102,.35), rgba(120,90,200,.25)); border: 2px solid rgba(217,184,102,.5);
  box-shadow: 0 0 26px -4px rgba(217,184,102,.5); }
.score .n { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.score .l { font-size: .68rem; color: var(--text-dim); margin-top: 4px; }
.score-meta { flex: 1; min-width: 0; font-size: .93rem; }
.meter { height: 6px; background: rgba(255,255,255,.09); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--gold)); border-radius: 4px; }

/* ── 타로 카드 ── */
.tdeck { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 20px 0; }
.tcard { width: 150px; text-align: center; }
.tcard .tlab { font-size: .8rem; color: var(--text-dim); font-weight: 700; margin-bottom: 8px; }
.tface { aspect-ratio: 5/8; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 22px 40px -18px rgba(0,0,0,.9), inset 0 0 0 4px rgba(255,255,255,.06), inset 0 0 40px rgba(0,0,0,.35); transition: transform .5s cubic-bezier(.2,.8,.3,1); position: relative; overflow: hidden; }
.tface::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; }
.tcard.fire .tface { background: linear-gradient(160deg, #5a1d2b, #b0452a 60%, #e0a04a); }
.tcard.water .tface { background: linear-gradient(160deg, #142348, #2a4d80 60%, #6aa3e8); }
.tcard.air .tface { background: linear-gradient(160deg, #2b2450, #6d5fb3 60%, #c9b0ff); }
.tcard.earth .tface { background: linear-gradient(160deg, #2e2a14, #6b5a1e 60%, #d9b866); }
.tcard.rev .tface { transform: rotate(180deg); }
.tnum { font-family: var(--serif); font-size: .9rem; color: rgba(255,255,255,.75); letter-spacing: .1em; }
.tglyph { font-size: 2.6rem; color: #fff; text-shadow: 0 0 18px rgba(255,255,255,.6); line-height: 1; }
.tname { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: #fff; }
.ten { font-size: .68rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.tdir { margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--gold-2); }
.tcard.rev .tdir { color: var(--violet-2); }
.tback { background: radial-gradient(circle at 50% 40%, #3a2d66, #14101f 70%); cursor: pointer; }
.tback .tglyph { font-size: 2rem; opacity: .8; }
@keyframes flip { from { transform: rotateY(90deg); opacity: 0; } to { transform: rotateY(0); opacity: 1; } }
.tdeck .tcard { animation: flip .6s ease-out both; }
.tdeck .tcard:nth-child(2) { animation-delay: .15s; } .tdeck .tcard:nth-child(3) { animation-delay: .3s; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.tgrid a { text-decoration: none; }
.tgrid .tcard { width: auto; }
.tgrid .tface { border-radius: 10px; } .tgrid .tglyph { font-size: 1.8rem; } .tgrid .tname { font-size: .9rem; }
.tkw { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tkw span { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--edge); color: var(--text); }
@media (max-width: 560px) { .tcard { width: 128px; } .tglyph { font-size: 2.1rem; } }

/* ── 궁합표 ── */
.gtable th, .gtable td { padding: 7px 4px; font-size: .8rem; }
.gtable td a { text-decoration: none; font-weight: 700; display: block; color: inherit; }
.gtable td.s1 { background: rgba(240,104,94,.18); color: #f0a09a; } .gtable td.s2 { background: rgba(224,180,85,.14); color: var(--gold-2); }
.gtable td.s3 { background: rgba(168,130,232,.22); color: var(--violet-2); } .gtable td.s4 { background: rgba(79,191,139,.24); color: #8fe0b8; }
input.tin { width: 100%; padding: 12px; border: 1px solid var(--edge); border-radius: 11px; font-size: 1rem; font-family: var(--sans); background: rgba(255,255,255,.05); color: var(--text-hi); }
input.tin:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168,130,232,.2); }

.bars { margin: 14px 0 6px; }

/* ── FAQ ── */
.faq details {
  background: var(--veil); border: 1px solid var(--edge); border-radius: 14px;
  margin: 10px 0; overflow: hidden; backdrop-filter: blur(8px);
}
.faq summary {
  font-weight: 700; cursor: pointer; padding: 16px 46px 16px 19px; position: relative;
  list-style: none; color: var(--text-hi); font-size: .97rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "✦"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: .95rem; transition: .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); color: var(--violet-2); }
.faq details[open] summary { border-bottom: 1px solid var(--edge); }
.faq p { padding: 15px 19px 17px; margin: 0; font-size: .95rem; color: var(--text); }

#result { animation: rise .45s cubic-bezier(.2,.8,.3,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── 푸터 ── */
footer.site { border-top: 1px solid var(--edge); background: rgba(8,6,15,.6); padding: 32px 0 50px; backdrop-filter: blur(10px); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; }
footer.site a { color: var(--text-dim); font-size: .89rem; text-decoration: none; font-weight: 600; }
footer.site a:hover { color: var(--gold-2); }
.disclaimer { font-size: .82rem; color: #7a7295; line-height: 1.7; }
.copy { font-size: .82rem; color: #6a6386; margin-top: 12px; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  nav.main a { padding: 7px 8px; font-size: .86rem; }
  .hero { padding: 48px 0 34px; }
  h2 { margin-top: 42px; }
  .card, .tile { padding: 18px; border-radius: 16px; }
  .myeongsik { padding: 20px 12px 16px; }
  .pillars { gap: 6px; }
  .ohaeng { gap: 18px; justify-content: center; }
}
