/* 여우상회 — 먹색 바탕, 한지 패널, 인주 버튼, 놋쇠 선 */
:root {
  --ink: #16171C; --panel: #1D1E25; --panel2: #1A1B21; --line: #2B2C35; --line2: #3A3B42; --line3: #6A6B74;
  --paper: #F3EEE3; --on-paper: #1E1F24; --paper-line: #8C8676;
  --seal: #C8372D; --seal-d: #B32E25; --seal-l: #E5675C;
  --brass: #B08D57; --brass-l: #C9A46A; --brass-d: #7A5E2E;
  --text: #F3EEE3; --soft: #D8D2C4; --mute: #B9B4A8; --mute-d: #5E5A52;
  --serif: 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
  --sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--brass-l); } a:hover { color: #E0C08A; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--brass-l); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.serif { font-family: var(--serif); }
.hidden { display: none !important; }

/* 머리말 */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 48px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 38px; height: 38px; border: 2px solid var(--seal-l); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--seal-l); }
.nav { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 30px; }
.nav a { min-height: 44px; display: flex; align-items: center; border-top: 2px solid transparent; border-bottom: 2px solid transparent; font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--brass-l); }
.nav a.on { border-bottom-color: var(--seal-l); }
.nav a.my { margin-left: auto; font-size: 15px; font-weight: 400; color: var(--mute); }

/* 버튼 */
.btn { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 4px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; background: transparent; color: var(--text); }
.btn-seal { background: var(--seal); color: #fff; } .btn-seal:hover { background: var(--seal-d); color: #fff; }
.btn-line { border-color: var(--brass-l); color: var(--text); font-weight: 500; } .btn-line:hover { background: #24252D; color: var(--text); }
.btn-ink { border-color: var(--on-paper); color: var(--on-paper); } .btn-ink:hover { background: #E6E0D2; color: var(--on-paper); }
.btn-big { height: 60px; padding: 0 32px; font-size: 18px; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* 메인: 히어로 */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; padding-top: 40px; }
.hero-copy { flex: 1 1 460px; min-width: 0; align-self: center; padding: 24px 0 72px; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.22em; color: var(--brass-l); }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 5vw, 60px); line-height: 1.28; letter-spacing: -0.015em; }
.hero-sub { font-size: 19px; line-height: 1.75; color: var(--soft); max-width: 32em; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { flex: 1 1 420px; min-width: 0; position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 680px; }
.hero-arch { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(380px, 86%); height: 590px; border-radius: 190px 190px 0 0; background: #1F2028; border: 1px solid #6E5A36; border-bottom: 0; }
.hero-art img { position: relative; display: block; width: min(450px, 100%); height: auto; }
.dialog { position: absolute; left: 0; right: 0; bottom: 28px; background: var(--paper); color: var(--on-paper); border-radius: 6px; box-shadow: 0 0 0 1px var(--brass), 0 14px 36px rgba(0, 0, 0, 0.5); padding: 30px 22px 12px; display: flex; flex-direction: column; gap: 14px; min-height: 178px; }
.dialog-name { position: absolute; top: -17px; left: 18px; height: 34px; padding: 0 14px; display: flex; align-items: center; background: var(--seal-d); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; border-radius: 4px; }
.dialog-line { font-size: 18px; line-height: 1.65; font-weight: 500; white-space: pre-line; }
.dialog-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mute-d); }
.dialog-next { min-height: 44px; padding: 0 6px 0 14px; display: flex; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--on-paper); font-size: 15px; font-weight: 600; cursor: pointer; }

/* 메인: 분야 바로가기 */
.tiles { border-bottom: 1px solid var(--line); background: var(--panel2); }
.tiles .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.tile { min-height: 88px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line2); border-radius: 6px; background: var(--panel); color: var(--text); text-decoration: none; }
.tile:hover { border-color: var(--brass); color: var(--text); } .tile.on { border-color: var(--brass-l); }
.tile-mark { flex: none; width: 52px; height: 52px; border: 1px solid var(--brass); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--brass-l); }
.tile b { display: block; font-family: var(--serif); font-size: 18px; } .tile small { display: block; font-size: 14px; line-height: 1.45; color: var(--mute); }

/* 메인: 의뢰 목록 */
.orders { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.sec-title { font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1.35; }
.sec-sub { font-size: 16px; color: var(--mute); margin-top: 10px; }
.filters { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips-label { width: 64px; font-size: 14px; font-weight: 600; color: var(--mute); }
.chip { min-height: 48px; padding: 0 22px; border-radius: 24px; border: 1px solid var(--line3); background: transparent; color: var(--text); font-size: 16px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--on-paper); }
.band { display: flex; flex-direction: column; gap: 16px; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border-bottom: 1px solid var(--line2); padding-bottom: 12px; }
.band-head h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; } .band-head span { font-size: 15px; color: var(--brass-l); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line2); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--mute); } .card-tag.season { color: var(--seal-l); }
.card h4 { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.35; }
.card p { font-size: 15px; line-height: 1.65; color: var(--soft); }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 16px; font-weight: 600; color: var(--brass-l); }
.deep-card { background: var(--paper); color: var(--on-paper); border-radius: 6px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; box-shadow: 0 0 0 1px var(--brass); }
.deep-card > div:first-child { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.deep-card h4 { font-family: var(--serif); font-weight: 900; font-size: 26px; } .deep-card p { color: #3A3B42; }
.deep-side { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; } .deep-side .big { font-family: var(--serif); font-weight: 900; font-size: 30px; }
.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; } .tags li { font-size: 14px; padding: 6px 12px; border: 1px solid var(--paper-line); border-radius: 16px; }
.empty { padding: 28px 22px; border: 1px dashed var(--line3); border-radius: 6px; color: var(--soft); }

/* 한지 패널과 입력 */
.page { padding-top: 48px; padding-bottom: 72px; }
.paper { background: var(--paper); color: var(--on-paper); border-radius: 8px; padding: 40px 36px 34px; box-shadow: 0 0 0 1px var(--brass); display: flex; flex-direction: column; gap: 28px; }
.paper a:not(.btn) { color: var(--brass-d); }
.paper h1 { font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1.3; }
.paper .lead { font-size: 16px; line-height: 1.65; color: var(--mute-d); max-width: 44em; margin-top: 10px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field > .label { font-size: 14px; font-weight: 500; }
.field input[type="text"], .field input[type="date"], .field select, .field textarea { min-height: 52px; background: #fff; border: 1px solid var(--paper-line); border-radius: 4px; color: var(--on-paper); font-size: 17px; padding: 0 14px; min-width: 0; width: 100%; }
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.55; }
.help { font-size: 13px; line-height: 1.5; color: var(--mute-d); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 48px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--paper-line); background: #fff; color: var(--on-paper); font-size: 15px; font-weight: 500; cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--on-paper); border-color: var(--on-paper); color: var(--paper); }
fieldset.more { margin: 0; padding: 24px 0 0; border: 0; border-top: 1px solid #CFC8B8; display: flex; flex-direction: column; gap: 20px; }
fieldset.more legend { padding: 0; font-family: var(--serif); font-weight: 700; font-size: 18px; float: left; width: 100%; margin-bottom: 6px; }
.error { color: var(--seal-d); font-weight: 500; font-size: 15px; }
.notice { padding: 12px 14px; border: 1px solid var(--brass); border-radius: 4px; font-size: 14px; line-height: 1.55; background: #EBE4D3; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.55; } .check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--seal-d); }

/* 결과: 원국표 */
.result-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.result-main { flex: 999 1 620px; min-width: 0; } .result-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.h-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--brass-l); }
.page-title { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.3; margin: 10px 0; }
.scroll-x { overflow-x: auto; }
table.chart { width: 100%; border-collapse: separate; border-spacing: 6px; text-align: center; min-width: 420px; }
table.chart th { font-size: 13px; font-weight: 600; color: var(--mute-d); padding: 2px 4px; }
table.chart th[scope="row"] { text-align: left; white-space: nowrap; width: 64px; }
table.chart td { padding: 8px 4px; font-size: 15px; border-radius: 4px; }
table.chart td.glyph { color: #fff; padding: 12px 4px; } table.chart td.glyph b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1.15; font-weight: 700; } table.chart td.glyph span { font-size: 13px; }
table.chart td.me { font-weight: 700; color: var(--seal-d); }
.el0 { background: #2F6B4F; } .el1 { background: #B32E25; } .el2 { background: #8A6A1F; } .el3 { background: #5E5A52; } .el4 { background: #1F3F6B; }
.sub-title { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px 32px; }
.bars { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 56px 1fr 36px; align-items: center; gap: 10px; font-size: 14px; }
.bar { height: 14px; background: #DDD6C6; border-radius: 7px; overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 7px; }
.yy { display: flex; height: 30px; border-radius: 4px; overflow: hidden; margin-top: 12px; font-size: 13px; font-weight: 600; }
.yy span { display: flex; align-items: center; justify-content: center; min-width: 44px; } .yy .yang { background: #E0C08A; color: var(--on-paper); } .yy .yin { background: #3A3B42; color: #fff; }
.dark-card { background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.guardian-mark { width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--brass); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--brass-l); background: #23242C; }
.bubble { background: var(--paper); color: var(--on-paper); border-radius: 6px; padding: 16px 18px; font-size: 17px; line-height: 1.65; font-weight: 500; }
.small { font-size: 13px; line-height: 1.6; color: var(--mute); }

/* 주문 */
.order-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.order-grid .paper { flex: 999 1 560px; min-width: 0; } .order-side { flex: 1 1 300px; min-width: 0; position: sticky; top: 16px; }
.summary { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; } .summary dt { color: var(--mute-d); } .summary dd { margin: 0; font-weight: 500; }
.total { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--serif); font-weight: 700; font-size: 26px; }

/* 보고서 */
.report { max-width: 780px; margin: 0 auto; }
.report-part { border-top: 1px solid #CFC8B8; padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.report-part h2 { font-family: var(--serif); font-weight: 900; font-size: 24px; }
.report-part h3 { font-family: var(--serif); font-weight: 700; font-size: 19px; margin-top: 8px; }
.report-part p, .report-part li { font-size: 17px; line-height: 1.85; } .report-part ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.progress { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--mute-d); }
.spinner { width: 18px; height: 18px; border: 2px solid #CFC8B8; border-top-color: var(--seal-d); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } html { scroll-behavior: auto; } }
.list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 16px 18px; border: 1px solid var(--paper-line); border-radius: 6px; background: #fff; color: var(--on-paper); text-decoration: none; font-weight: 500; } .list a span { color: var(--mute-d); font-weight: 400; font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); } .site-footer .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-size: 13px; color: var(--mute); } .site-footer a { color: var(--mute); }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } .paper { padding: 28px 20px; } .nav a.my { margin-left: 0; } .order-side { position: static; } }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } .paper { box-shadow: none; } }

/* 회원, 기본 풀이, 수호신 그림, 다른 것도 물어보기 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.nav .nav-right a.my { margin-left: 0; }
.nav-name { font-size: 15px; color: var(--brass-l); }
.nav-btn { min-height: 44px; padding: 0 4px; background: transparent; border: 0; color: var(--mute); font-size: 15px; cursor: pointer; }
.nav-btn:hover { color: var(--text); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.paper-h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.35; margin-top: 6px; }
.basic-sec { display: flex; flex-direction: column; gap: 8px; }
.basic-sec h3 { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.basic-sec p { font-size: 16px; line-height: 1.8; }
.g-art { position: relative; margin: 0 auto; max-width: 100%; }
.g-art img { position: relative; display: block; width: 100%; height: auto; }
.g-halo { position: absolute; left: 50%; top: 45%; width: 82%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0.3; }
.g-row { display: flex; align-items: center; gap: 16px; }
.ask { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }
.tabs-sm { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-sm { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line3); background: transparent; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.tab-sm[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--on-paper); }
.ask-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-item { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--panel); color: var(--text); text-decoration: none; font-size: 15px; }
.ask-item:hover { border-color: var(--brass); color: var(--text); }
.ask-item .price { font-size: 14px; }
.auth { max-width: 520px; margin: 0 auto; }
.field input[type="email"], .field input[type="password"] { min-height: 52px; background: #fff; border: 1px solid var(--paper-line); border-radius: 4px; color: var(--on-paper); font-size: 17px; padding: 0 14px; min-width: 0; width: 100%; }

/* 이용 안내, 계정(회원 탈퇴) */
.policy .report-part p, .policy .report-part li, .policy th, .policy td, .policy .summary { font-size: 15px; line-height: 1.75; }
.policy .report-part h3 { font-size: 17px; margin-top: 12px; }
.policy table { width: 100%; min-width: 520px; border-collapse: collapse; }
.policy th, .policy td { border: 1px solid #CFC8B8; padding: 10px 12px; text-align: left; vertical-align: top; }
.policy thead th { background: #EBE4D3; font-weight: 600; }
.policy tbody th { font-weight: 500; white-space: nowrap; }
mark.todo { background: #F2D98B; color: inherit; padding: 1px 4px; border-radius: 3px; }
.account { border-top: 1px solid #CFC8B8; padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.account form { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }

/* 비밀번호 찾기, 관리자 화면, 하단 사업자 정보 */
.link-btn { padding: 0; min-height: 32px; background: transparent; border: 0; color: var(--brass-d); font-size: 14px; text-decoration: underline; cursor: pointer; }
.biz-line, .foot-note { flex-basis: 100%; line-height: 1.7; }
.foot-note { max-width: 62em; }
.admin { max-width: 1040px; margin: 0 auto; }
.admin table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { border-bottom: 1px solid #CFC8B8; padding: 10px 10px; text-align: left; vertical-align: top; }
.admin thead th { font-weight: 600; color: var(--mute-d); }
.admin .summary { gap: 10px 22px; align-items: center; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.badge.ok { background: #DDE9DD; color: #23513A; } .badge.wait { background: #EBE4D3; color: #6B4E16; }
