/* 천운록 — warm paper, ink typography, vermilion accents. */
@import url("/assets/fonts/nanum-myeongjo.css");
@font-face {
  font-family: "Wanted Sans";
  src: url("/assets/fonts/WantedSansVariable-v1.0.3.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 1000;
  font-display: swap;
}
:root {
  --paper: #fbf9f5;
  --ink: #211f1d;
  --muted: #77716b;
  --brand: #c84f3b;
  --brand-dark: #a53b2a;
  --blush: #f7eeeb;
  --ivory: #f3eee5;
  --line: #e7e0d8;
  --green: var(--brand);
  --green-light: var(--blush);
  --sans: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* Display face for titles only; body and controls stay Wanted Sans. */
  --display: "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --serif: var(--display);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; min-height: 44px; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .55; }
button:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { word-break: keep-all; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -90px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.initial-loading { padding: 100px 24px; color: var(--muted); text-align: center; }
#main:focus { outline: none; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 25; height: 86px; border-bottom: 1px solid var(--line); background: rgba(251, 249, 245, .97); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; max-width: 1240px; height: 100%; margin: auto; padding: 0 32px; }
.brand { display: inline-flex; align-items: center; gap: 15px; justify-self: start; min-height: 44px; min-width: 0; }
.brand-wordmark { width: 112px; height: auto; flex: 0 0 auto; }
.brand-tagline { font-size: 13px; color: var(--muted); white-space: nowrap; letter-spacing: .04em; }
.brand-name { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: -.05em; line-height: 1.2; }
.brand-sub { display: block; margin-top: 5px; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: .12em; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 34px; }
.desktop-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 1px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a[aria-current=page] { color: var(--ink); font-weight: 700; }
.desktop-nav a[aria-current=page]::after { content: ""; position: absolute; bottom: -5px; left: 50%; width: 18px; height: 2px; background: var(--brand); transform: translateX(-50%); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; justify-self: end; min-width: 0; }
.connection-status { display: inline-flex; align-items: center; gap: 6px; max-width: 140px; margin-right: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.status-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #aa8f6f; }
.connection-status.ready .status-dot { background: #6d8a6c; }
.connection-status.offline .status-dot { background: #ac8b65; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6d6761; }
.icon-button:hover { color: var(--ink); background: var(--ivory); }
.icon-button svg { width: 21px; height: 21px; }
.account-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 11px; border: 0; border-radius: 6px; color: var(--ink); font-size: 13px; white-space: nowrap; }
.account-link:hover { background: var(--ivory); }
.mobile-nav { display: none; }

/* Shared page rhythm */
.page { max-width: 1240px; margin: auto; padding: 36px 32px 80px; }
.page.narrow { max-width: 800px; }
.page.reading-page { max-width: 990px; }
.page.home-page { padding-top: 26px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.page-title { margin: 5px 0 13px; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1.5; letter-spacing: -.06em; }
.page-intro { margin: 0 0 28px; color: var(--muted); font-size: 14px; word-break: keep-all; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.section-heading > div { min-width: 0; }
.section-heading h2 { margin: 0; font-size: 26px; font-weight: 650; line-height: 1.4; letter-spacing: -.055em; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; word-break: keep-all; }
.section-title-row { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.section-index { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 13px; }
.text-link:hover { color: var(--brand); }
.text-link svg { width: 17px; height: 17px; }
.home-section { margin-top: 57px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 20px; padding: 8px 0; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 17px; height: 17px; }

/* Character-led opening */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 510px; overflow: hidden; background: #f5f0e7; border-radius: 3px; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #f5f0e7 0%, rgba(245, 240, 231, .96) 25%, rgba(245, 240, 231, .58) 42%, transparent 63%); }
.hero-art { position: absolute; z-index: 0; right: 0; bottom: 0; width: 69%; height: 100%; max-width: none; object-fit: cover; object-position: 67% 38%; }
.hero-copy { position: relative; z-index: 3; width: 46%; min-width: 0; padding: 40px 8px 44px 40px; }
.hero-kicker { margin-bottom: 24px; color: var(--brand); font-size: 13px; letter-spacing: .12em; }
.hero-kicker::before { display: none; }
.kicker-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.hero h1, .hero-title { margin: 0 0 25px; font-family: var(--serif); font-size: clamp(42px, 4.2vw, 58px); font-weight: 500; line-height: 1.4; letter-spacing: -.065em; word-break: keep-all; }
.hero-title > span { position: relative; display: inline-block; }
.hero-title > span::after { content: ""; position: absolute; bottom: -8px; left: 2px; width: 38px; height: 3px; border-radius: 2px; background: var(--brand); transform: rotate(-4deg); }
.hero p, .hero-description { max-width: 350px; margin: 0 0 29px; color: #746a61; font-size: 13px; line-height: 1.9; word-break: keep-all; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.primary-button, .secondary-button, .hero-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; max-width: 100%; padding: 12px 21px; border: 1px solid var(--ink); border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; transition: color .18s, background .18s, border-color .18s; }
.primary-button { background: var(--ink); color: #fff; }
.primary-button:hover { border-color: #423a33; background: #423a33; }
.primary-button svg { width: 19px; height: 19px; }
.secondary-button { min-height: 44px; padding: 10px 17px; border-color: var(--line); background: var(--surface); color: var(--ink); }
.secondary-button:hover { border-color: #c4b5aa; background: var(--ivory); }
.secondary-button svg { width: 18px; height: 18px; }
.hero-secondary { border-color: #bfb2a4; background: transparent; color: #625951; font-size: 13px; }
.hero-secondary:hover { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, .35); }
.tertiary-button { min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.tertiary-button:hover { color: var(--ink); }
.hero-seal { position: absolute; z-index: 2; top: 30px; right: 25px; padding: 9px 8px; border: 1px solid rgba(168, 53, 37, .6); border-radius: 2px; color: #a13c2b; font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.35; text-align: center; transform: rotate(3deg); }
.hero-caption { position: absolute; z-index: 2; right: 25px; bottom: 20px; max-width: calc(100% - 50px); padding: 4px 0; color: #72655b; font-size: 13px; letter-spacing: .05em; text-align: right; }
.intro-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 49px; margin-top: 0; padding: 23px 10px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.intro-strip span { display: inline-flex; align-items: center; gap: 8px; }
.intro-strip svg { width: 17px; height: 17px; color: #928074; }
.intro-strip .divider { color: #bfb4aa; }

/* Topic links and portrait covers */
.situation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.situation-button { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 90px; padding: 17px 15px; border: 0; border-radius: 4px; background: #f3eee7; color: var(--ink); text-align: left; transition: background .18s; }
.situation-button:hover { background: #eee4d9; }
.situation-button:nth-child(2) { background: #f6ecea; }
.situation-button:nth-child(2):hover { background: #f0e0dc; }
.situation-button:nth-child(3) { background: #f0edf1; }
.situation-button:nth-child(3):hover { background: #e8e2eb; }
.situation-button:nth-child(4) { background: #eeeae3; }
.situation-button:nth-child(4):hover { background: #e7e0d5; }
.situation-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 35px; height: 35px; color: #a77c61; }
.situation-button:nth-child(2) .situation-icon { color: #b77772; }
.situation-button:nth-child(3) .situation-icon { color: #9a839e; }
.situation-button:nth-child(4) .situation-icon { color: #82776a; }
.situation-icon svg { width: 26px; height: 26px; }
.situation-button > span:not(.situation-icon) { min-width: 0; flex: 1; }
.situation-button > svg { width: 15px; height: 15px; color: #ac9d90; }
.situation-title { display: block; font-size: 14px; font-weight: 650; line-height: 1.4; word-break: keep-all; }
.situation-caption { display: block; margin-top: 5px; color: #8a7e74; font-size: 13px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 24px; }
.product-card { display: block; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.product-art { position: relative; display: flex; align-items: center; justify-content: center; height: 236px; overflow: hidden; border-radius: 4px; background: #f1ebe0; }
.product-art > svg { width: 66%; height: 80%; overflow: visible; }
.product-character { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 78% 34%; }
.product-art[class*="portrait-"] { background-image: var(--portrait-image, url('/assets/hero-characters.png')); background-size: var(--portrait-size, 145% auto); background-position: var(--portrait-position, 78% 34%); background-repeat: no-repeat; }
.product-art[class*="portrait-"] .product-character { visibility: hidden; }
.product-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(66, 36, 26, .12), transparent 45%); }
.portrait-overall { --portrait-image: url('/assets/reader.jpg'); --portrait-position: 80% 34%; }
.portrait-love { --portrait-size: 170% auto; --portrait-position: 88% 27%; }
.portrait-compatibility { --portrait-size: 130% auto; --portrait-position: 77% 28%; }
.portrait-money { --portrait-image: url('/assets/reader.jpg'); --portrait-position: 80% 43%; }
.portrait-reunion { --portrait-size: 160% auto; --portrait-position: 60% 24%; }
.portrait-year { --portrait-size: 132% auto; --portrait-position: 80% 30%; }
.portrait-answer { --portrait-image: url('/assets/reader.jpg'); --portrait-position: 78% 38%; }
.product-art .card-tag { position: absolute; z-index: 3; top: 14px; left: 14px; max-width: calc(100% - 28px); padding: 5px 9px; border-radius: 3px; background: rgba(251, 249, 245, .9); color: #625349; font-size: 13px; font-weight: 600; line-height: 1.4; }
.art-symbol { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(251, 249, 245, .84); color: #9d6d54; }
.art-symbol svg { width: 17px; height: 17px; }
.product-art.reader { background-image: none; background-color: #f1ebe0; }
.product-art.rose { background-color: #f6e9e5; }
.product-art.lavender { background-color: #eee8ef; }
.product-art.amber { background-color: #f1e8d8; }
.product-art.blue { background-color: #e9ecee; }
.product-art.peach { background-color: #f4e7db; }
.product-art.mint { background-color: #eef0e8; }
.product-meta { margin: 17px 0 5px; color: #a16f58; font-size: 13px; letter-spacing: .06em; }
.product-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 650; line-height: 1.4; letter-spacing: -.045em; }
.product-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; word-break: keep-all; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; color: #8a776b; font-size: 13px; }
.product-bottom svg { width: 18px; height: 18px; }
.small-label { color: var(--muted); font-size: 13px; }

/* A quieter closing illustration, with an open three-step guide. */
.home-note { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 315px; margin-top: 60px; overflow: hidden; background: #f5efe6; }
.home-note-copy { position: relative; z-index: 2; min-width: 0; padding: 37px 34px; }
.home-note-copy h2 { margin: 0 0 15px; font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1.5; letter-spacing: -.055em; }
.home-note-copy p { margin: 0 0 9px; color: var(--muted); font-size: 13px; line-height: 1.9; word-break: keep-all; }
.home-note-copy .text-link { color: var(--brand); }
.home-note-art { position: absolute; z-index: 0; top: 0; right: 0; width: 57%; height: 100%; overflow: hidden; }
.home-note-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f5efe6, rgba(245, 239, 230, .2) 26%, transparent 52%); }
.home-note-art img { width: 100%; height: 100%; object-fit: cover; object-position: 87% 40%; }
.home-guide { display: grid; grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 53px; padding-top: 35px; border-top: 1px solid var(--line); }
.home-guide h2 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.6; letter-spacing: -.05em; }
.guide-step { min-width: 0; }
.guide-step span { color: var(--brand); font-size: 13px; letter-spacing: .06em; }
.guide-step h3 { margin: 10px 0 7px; font-size: 14px; font-weight: 600; }
.guide-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.site-footer { max-width: 1176px; margin: auto; padding: 27px 0 36px; border-top: 1px solid var(--line); color: #969089; font-size: 13px; }
.site-footer > div { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-wordmark { width: 88px; height: auto; opacity: .78; }
.footer-brand { font-family: var(--serif); font-size: 18px; font-weight: 600; color: #71645a; }
.site-footer p { margin: 12px 0 0; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 32px; width: max-content; max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; text-align: center; overflow-wrap: anywhere; transform: translateX(-50%); box-shadow: none; }

/* Catalog and birth information. */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { min-height: 44px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; }
.filter:hover { border-color: #bdada0; color: var(--ink); }
.filter.selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.product-detail { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 30px; margin-bottom: 28px; }
.product-detail > div { min-width: 0; }
.product-detail .product-art { height: 258px; }
.product-detail h1 { margin: 7px 0 13px; font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1.5; letter-spacing: -.055em; }
.product-detail p { margin: 0 0 17px; color: var(--muted); font-size: 13px; line-height: 1.85; word-break: keep-all; }
.detail-label { color: var(--brand); font-size: 13px; line-height: 1.7; }
.chapter-preview { display: flex; flex-wrap: wrap; gap: 7px; }
.chapter-preview span { padding: 5px 11px; border-radius: 3px; background: var(--ivory); color: var(--muted); font-size: 13px; }
.profile-form { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.profile-form fieldset { min-width: 0; padding: 0; margin: 0 0 29px; border: 0; }
.profile-form legend { margin-bottom: 19px; font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 21px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full, .field-grid .birth-date-field, .field-grid .birth-time-field { grid-column: 1 / -1; }
.field label { color: #5d544c; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea, .followup-form textarea { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid #ded5cb; border-radius: 5px; background: #fffdfa; color: var(--ink); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder, .followup-form textarea::placeholder { color: #a1978e; font-size: 13px; }
.field input:focus, .field select:focus, .field textarea:focus, .followup-form textarea:focus { border-color: #b78874; }
.field textarea { min-height: 104px; line-height: 1.75; resize: vertical; }
.field small { color: var(--muted); font-size: 13px; line-height: 1.7; }
.time-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.time-row input[type=time] { flex: 1; min-width: 0; }
.checkbox-label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 3px 0; white-space: nowrap; font-size: 13px !important; font-weight: 400 !important; }
.checkbox-label input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; flex-shrink: 0; padding: 0; accent-color: var(--brand); }
.birth-date-pickers, .birth-time-pickers { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 8px; min-width: 0; }
.birth-date-pickers select, .birth-time-pickers select { min-width: 0; padding-left: 10px; padding-right: 5px; }
.birth-time-pickers select:disabled, .birth-date-pickers select:disabled { opacity: 1; color: #978e86; background: #f5f1ed; -webkit-text-fill-color: #978e86; }
.field-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 14px; }
.field-heading .checkbox-label { min-height: 44px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-top: 23px; padding-top: 23px; border-top: 1px solid var(--line); }
.form-actions p { max-width: 240px; margin: 0; color: var(--muted); font-size: 13px; word-break: keep-all; }
.form-partner { padding-top: 24px !important; border-top: 1px solid var(--line) !important; }
.time-unknown { color: #91867c; font-size: 13px; }
.profile-submit-note { margin-top: 17px; color: var(--muted); font-size: 13px; text-align: center; }
.inline-error { margin-bottom: 18px; padding: 13px 16px; border-radius: 3px; background: #fbefeb; color: #9c3d2b; font-size: 13px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.inline-notice { margin-bottom: 18px; padding: 13px 16px; border-radius: 3px; background: var(--ivory); color: #75604e; font-size: 13px; line-height: 1.75; word-break: keep-all; }

/* Generation status */
.progress-panel { max-width: 540px; margin: 40px auto; padding: 40px 28px; text-align: center; }
.progress-panel h1 { margin: 25px 0 16px; font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1.55; letter-spacing: -.055em; word-break: keep-all; }
.progress-panel p { color: var(--muted); font-size: 13px; word-break: keep-all; }
.progress-orb { position: relative; display: grid; place-items: center; width: 105px; height: 105px; margin: 0 auto; border-radius: 50%; background: #f2e7df; }
.progress-orb img { width: 55px; height: 55px; border-radius: 11px; object-fit: contain; }
.progress-orb::after { content: ""; position: absolute; inset: -8px; border: 1px solid #c99b86; border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; animation: orbit 3s linear infinite; }
.progress-stage { min-height: 24px; margin-top: 19px; color: var(--brand-dark); font-size: 13px; }
.progress-elapsed { margin: 12px 0 27px; color: #918379; font-size: 13px; }
.loading-line { width: 100%; height: 3px; margin: 25px 0; overflow: hidden; border-radius: 3px; background: #ebe1d7; }
.loading-line::after { content: ""; display: block; width: 30%; height: 100%; background: #bd7861; animation: slide 1.6s ease-in-out infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(440%); } }

/* A readable, quiet result page. */
.reading-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 21px; }
.reading-top .back-link { margin-bottom: 0; }
.reading-meta { color: var(--muted); font-size: 13px; }
.reading-title { margin: 10px 0 19px; font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.5; letter-spacing: -.055em; word-break: keep-all; }
.reading-summary { margin: 23px 0 30px; padding: 25px; border-top: 2px solid #bca48e; border-radius: 3px; background: #f1ece5; }
.summary-name { margin-bottom: 15px; color: #74523e; font-size: 13px; font-weight: 600; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pillar { min-width: 0; padding: 13px 7px; border-radius: 3px; background: #fffdfa; text-align: center; }
.pillar-label { margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.pillar-hanja { font-family: var(--serif); font-size: 27px; line-height: 1.45; letter-spacing: .08em; color: #654e3e; overflow-wrap: anywhere; }
.pillar-korean { margin-top: 5px; color: #8c7969; font-size: 13px; }
.chart-note { margin: 14px 0 0; color: #8c7969; font-size: 13px; line-height: 1.8; }
.chart-details { margin-top: 9px; color: #78685a; font-size: 13px; }
.chart-details summary { display: list-item; width: fit-content; max-width: 100%; min-height: 44px; padding: 12px 0; cursor: pointer; }
.chart-details p { margin: 8px 0 0; line-height: 1.8; }
.elements { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 10px; margin-top: 17px; }
.element { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.element-dot { width: 7px; height: 7px; border-radius: 50%; background: #829a78; }
.element:nth-child(2) .element-dot { background: #c97661; }
.element:nth-child(3) .element-dot { background: #c3a36a; }
.element:nth-child(4) .element-dot { background: #9c9d96; }
.element:nth-child(5) .element-dot { background: #839ba9; }
.reading-layout { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 36px; }
.reading-toc { position: sticky; top: 110px; align-self: start; padding: 2px 0; }
.reading-toc strong { display: block; margin-bottom: 14px; color: #a08b77; font-size: 13px; font-weight: 400; letter-spacing: .08em; }
.reading-toc a { display: flex; align-items: center; min-height: 44px; margin-bottom: 5px; color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.reading-toc a:hover { color: var(--brand); }
.reading-chapter { margin: 0 0 36px; padding: 0 0 25px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.chapter-number { color: #b16e50; font-size: 13px; letter-spacing: .12em; }
.reading-chapter h2 { margin: 9px 0 18px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.5; letter-spacing: -.035em; word-break: keep-all; }
.reading-chapter p { margin: 0 0 16px; color: #514941; font-size: 15px; line-height: 1.95; word-break: keep-all; overflow-wrap: anywhere; }
.reading-subchapter + .reading-subchapter { margin-top: 24px; }
.reading-reference-details { margin: 18px 0 24px; color: var(--muted); font-size: 13px; }
.reading-reference-details > summary { width: fit-content; max-width: 100%; min-height: 44px; padding: 12px 0; cursor: pointer; }
.reading-question { margin: 15px 0 27px; padding: 8px 0; color: #8b6a55; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.reading-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-top: 31px; }
.reading-end .reading-meta { font-size: 13px; }
.reading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.followup-card { margin: 31px 0; padding: 25px; border-top: 1px solid #d9c5b8; border-radius: 3px; background: #f4eee6; }
.followup-card h3 { margin: 0 0 7px; font-size: 17px; font-weight: 600; }
.followup-card > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.followup-form { display: flex; flex-direction: column; gap: 12px; }
.followup-form textarea { min-height: 90px; font-size: 13px; line-height: 1.75; resize: vertical; }
.followup-form button { align-self: flex-end; }
.followup-item { margin-top: 23px; padding-top: 20px; border-top: 1px solid #e3d6ca; }
.followup-item .followup-question { margin: 0 0 12px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.followup-item .followup-answer { color: #6b5b4e; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Library, account, and service settings. */
.library-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.guest-library-note { margin: -12px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.library-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.library-item { display: flex; align-items: center; gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--line); background: transparent; }
.library-item > a { flex-shrink: 0; }
.library-item .product-art { width: 98px; height: 88px; flex-shrink: 0; border-radius: 3px; }
.library-item .product-art > svg { width: 78%; height: 80%; }
.library-item .product-art .card-tag, .library-item .art-symbol { display: none; }
.library-copy { flex: 1; min-width: 0; }
.library-copy h2 { margin: 0 0 5px; font-size: 16px; font-weight: 600; line-height: 1.5; word-break: keep-all; }
.library-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.library-copy a { display: inline-flex; align-items: center; min-height: 44px; }
.library-copy a:hover { color: var(--brand); }
.empty-state { margin-top: 26px; padding: 58px 25px; border-radius: 3px; background: #f2ece3; text-align: center; }
.empty-state > svg { width: 42px; height: 42px; margin-bottom: 14px; color: #ae8d73; }
.empty-state h2 { margin: 0 0 13px; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.5; letter-spacing: -.045em; }
.empty-state p { margin: 0 0 24px; color: var(--muted); font-size: 13px; word-break: keep-all; }
.settings-card { margin: 23px 0; padding: 27px; border: 1px solid var(--line); border-radius: 7px; background: #fffdfa; }
.settings-card h2 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.settings-card p { color: var(--muted); font-size: 13px; line-height: 1.85; word-break: keep-all; }
.settings-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 21px 0 11px; }
.settings-card select { width: 100%; min-width: 0; min-height: 46px; margin: 8px 0 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-size: 13px; }
.settings-card code { padding: 3px 7px; border-radius: 3px; background: #f0e9df; color: #7d654f; font-size: 13px; overflow-wrap: anywhere; }
.settings-table { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; margin-top: 19px; color: var(--muted); font-size: 13px; }
.settings-table dt { color: #9a8776; }
.settings-table dd { margin: 0; overflow-wrap: anywhere; }
.danger-button { min-height: 44px; padding: 10px 15px; border: 1px solid #e7cfc5; border-radius: 5px; background: var(--surface); color: #a23f2c; font-size: 13px; }
.danger-button:hover { background: #fbefeb; }
.offline-help { font-size: 13px; line-height: 1.85; word-break: keep-all; }
.account-page { max-width: 640px !important; }
.account-card { padding-top: 30px; padding-bottom: 30px; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.kakao-login-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 20px; border: 1px solid #ecd532; border-radius: 6px; background: #fee500; color: #332a11; font-size: 14px; font-weight: 600; }
.kakao-login-button:disabled { opacity: .55; cursor: not-allowed; }
.login-remember { margin: 16px 0 20px; }
.login-remember-label { display: flex; align-items: center; gap: 10px; min-height: 44px; width: fit-content; max-width: 100%; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.login-remember-label input[type=checkbox] { flex: 0 0 22px; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: #b94f3a; }
.login-remember-label input:focus-visible { outline: 3px solid #914030; outline-offset: 4px; }
.account-card .login-remember-help { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; word-break: keep-all; }
.account-status { margin: 13px 0 0 !important; }
.account-continue { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 7px; padding: 10px 5px; color: var(--muted); font-size: 13px; text-align: center; }
.account-continue:hover { color: var(--ink); }
.member-gate { max-width: 480px !important; padding-top: clamp(28px, 6vh, 64px); }
.member-gate-intro { text-align: center; }
.member-gate-fox { display: block; width: 136px; height: 136px; object-fit: contain; margin: 0 auto 20px; }
.member-gate .page-title { font-size: clamp(23px, 5.8vw, 30px); word-break: keep-all; }
.member-gate .page-intro { margin: 14px auto 24px; max-width: 300px; word-break: keep-all; }
.member-gate .account-card { margin-top: 12px; }

@media (min-width: 1400px) {
  .hero { min-height: 530px; }
  .hero-copy { padding-left: 48px; }
}
@media (max-width: 1050px) {
  .header-inner { gap: 20px; padding: 0 24px; }
  .brand-tagline { display: none; }
  .connection-status { display: none; }
  .desktop-nav { gap: 27px; }
  .page { padding-left: 24px; padding-right: 24px; }
  .hero { min-height: 470px; }
  .hero-copy { width: 48%; padding-left: 29px; }
  .hero h1, .hero-title { font-size: 43px; }
  .hero p, .hero-description { font-size: 13px; }
  .hero-art { width: 70%; }
  .situation-grid { gap: 10px; }
  .situation-button { gap: 7px; padding: 16px 10px; }
  .situation-icon { width: 29px; }
  .situation-caption { font-size: 13px; }
  .product-grid { gap: 30px 20px; }
  .product-art { height: 212px; }
  .home-guide { gap: 23px; }
  .site-footer { margin: 0 24px; }
}
@media (max-width: 800px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .site-header { height: 74px; }
  .brand-tagline { display: inline; }
  .hero { min-height: 455px; }
  .hero-copy { width: 53%; padding: 30px 8px 34px 24px; }
  .hero h1, .hero-title { font-size: 37px; }
  .hero-kicker { margin-bottom: 20px; font-size: 13px; }
  .hero p, .hero-description { font-size: 13px; }
  .hero-actions { gap: 9px; }
  .hero-actions .primary-button, .hero-secondary { padding-right: 15px; padding-left: 15px; }
  .hero-seal { top: 23px; right: 19px; }
  .intro-strip { gap: 12px 28px; }
  .situation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .situation-button { min-height: 85px; padding: 17px; gap: 11px; }
  .situation-icon { width: 34px; }
  .situation-caption { font-size: 13px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 20px; }
  .product-art { height: 224px; }
  .home-note { min-height: 305px; }
  .home-note-copy { padding-left: 27px; }
  .home-note-copy h2 { font-size: 26px; }
  .home-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .home-guide > h2 { grid-column: 1 / -1; }
  .home-guide > h2 br { display: none; }
  .reading-layout { grid-template-columns: 128px minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 90px; }
  body { font-size: 14px; }
  .site-header { height: 70px; }
  .header-inner { gap: 10px; padding: 0 20px; }
  .brand { gap: 10px; }
  .brand-wordmark { width: 112px; }
  .brand-tagline { font-size: 13px; letter-spacing: 0; }
  .brand-name { font-size: 23px; }
  .brand-sub { font-size: 13px; }
  .header-actions { gap: 0; }
  .account-link { padding: 8px; font-size: 13px; }
  .icon-button { width: 44px; height: 44px; }
  .icon-button svg { width: 20px; height: 20px; }
  .page { padding: 24px 20px 45px; }
  .page.home-page { padding-top: 17px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; border-radius: 3px; }
  .hero::before { background: none; }
  .hero-art { position: relative; order: 2; right: auto; bottom: auto; flex: none; width: 100%; height: 320px; object-fit: cover; object-position: 74% 29%; mask-image: linear-gradient(180deg, transparent 0%, #000 12%); }
  .hero-copy { order: 1; width: 100%; padding: 26px 22px 16px; }
  .hero-kicker { margin-bottom: 15px; font-size: 13px; line-height: 1.6; letter-spacing: .08em; }
  .hero h1, .hero-title { margin-bottom: 22px; font-size: clamp(28px, 8.6vw, 41px); line-height: 1.4; letter-spacing: -.06em; }
  .hero-title > span::after { bottom: -7px; width: 30px; height: 2px; }
  .hero p, .hero-description { max-width: none; margin-bottom: 19px; color: #74695f; font-size: 13px; line-height: 1.9; }
  .hero-actions { gap: 8px; }
  .hero-actions .primary-button, .hero-secondary { min-height: 44px; padding: 10px 12px; gap: 7px; border-radius: 5px; font-size: 13px; }
  .hero-actions .primary-button svg { width: 17px; height: 17px; }
  .hero-seal { top: auto; right: 14px; bottom: 222px; padding: 7px 6px; font-size: 14px; line-height: 1.35; }
  .hero-caption { right: 15px; bottom: 13px; max-width: calc(100% - 30px); font-size: 13px; color: #78645a; letter-spacing: .02em; }
  .intro-strip { justify-content: flex-start; gap: 10px 20px; padding: 18px 2px 20px; font-size: 13px; }
  .intro-strip span { gap: 6px; }
  .intro-strip svg { width: 15px; height: 15px; }
  .intro-strip .divider { display: none; }
  .home-section { margin-top: 37px; }
  .section-heading { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .section-heading h2 { font-size: 22px; line-height: 1.4; letter-spacing: -.05em; }
  .section-heading p { margin-top: 6px; font-size: 13px; line-height: 1.7; }
  .section-title-row { gap: 8px; }
  .section-index { font-size: 13px; }
  .text-link { flex-shrink: 0; gap: 5px; font-size: 13px; }
  .text-link svg { width: 15px; height: 15px; }
  .situation-grid { gap: 10px; }
  .situation-button { min-height: 88px; padding: 15px 12px; gap: 7px; }
  .situation-icon { width: 25px; height: 32px; }
  .situation-icon svg { width: 22px; height: 22px; }
  .situation-button > svg { width: 12px; height: 12px; }
  .situation-title { font-size: 13px; }
  .situation-caption { font-size: 13px; line-height: 1.6; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .product-art { height: clamp(155px, 45vw, 226px); border-radius: 3px; }
  .product-character { object-position: 78% 30%; }
  .product-art[class*="portrait-"] { --portrait-size: auto 140%; }
  .portrait-love { --portrait-size: auto 160% !important; --portrait-position: 89% 24%; }
  .portrait-compatibility { --portrait-size: auto 112% !important; --portrait-position: 79% 24%; }
  .portrait-reunion { --portrait-size: auto 155% !important; --portrait-position: 60% 22%; }
  .portrait-year { --portrait-size: auto 125% !important; --portrait-position: 81% 24%; }
  .product-art .card-tag { top: 10px; left: 10px; max-width: calc(100% - 20px); padding: 4px 7px; font-size: 13px; }
  .art-symbol { right: 10px; bottom: 10px; width: 28px; height: 28px; }
  .art-symbol svg { width: 14px; height: 14px; }
  .product-meta { margin: 13px 0 4px; font-size: 13px; letter-spacing: .02em; }
  .product-card h3 { margin-bottom: 5px; font-size: 16px; line-height: 1.45; letter-spacing: -.04em; }
  .product-card p { font-size: 13px; line-height: 1.75; }
  .product-bottom { margin-top: 11px; gap: 6px; font-size: 13px; }
  .product-bottom svg { width: 15px; height: 15px; }
  .home-note { grid-template-columns: 1fr; min-height: 370px; margin-top: 43px; }
  .home-note-copy { align-self: start; padding: 25px 22px 32px; }
  .home-note-copy .eyebrow { margin-bottom: 11px; font-size: 13px; }
  .home-note-copy h2 { max-width: 75%; margin-bottom: 12px; font-size: 24px; }
  .home-note-copy p { max-width: 66%; font-size: 13px; line-height: 1.8; }
  .home-note-copy .text-link { max-width: 70%; margin-top: 3px; color: var(--brand-dark); font-size: 13px; }
  .home-note-art { top: auto; bottom: 0; width: 100%; height: 265px; }
  .home-note-art img { object-position: 94% 25%; }
  .home-note-art::after { background: linear-gradient(90deg, #f5efe6 0%, rgba(245, 239, 230, .92) 25%, rgba(245, 239, 230, .28) 47%, transparent 70%); }
  .home-guide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 15px; margin-top: 38px; padding-top: 27px; }
  .home-guide > h2 { grid-column: 1 / -1; font-size: 25px; }
  .guide-step span { font-size: 13px; letter-spacing: 0; }
  .guide-step h3 { margin-top: 8px; font-size: 13px; line-height: 1.6; }
  .guide-step p { font-size: 13px; line-height: 1.8; }
  .site-footer { margin: 0 20px; padding: 25px 0 calc(98px + env(safe-area-inset-bottom)); }
  .site-footer > div { gap: 12px; font-size: 13px; }
  .footer-wordmark { width: 80px; }
  .footer-brand { font-size: 16px; }
  .site-footer p { font-size: 13px; }
  .mobile-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: flex; align-items: stretch; justify-content: space-around; height: calc(67px + env(safe-area-inset-bottom)); padding: 6px 12px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(251, 249, 245, .98); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 30%; min-width: 0; min-height: 44px; border-radius: 5px; color: #94897f; font-size: 13px; line-height: 1.4; }
  .mobile-nav a[aria-current=page] { color: var(--brand-dark); background: #f4e9e3; }
  .mobile-nav svg { width: 21px; height: 21px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); padding: 12px 17px; font-size: 13px; }
  .page-title { font-size: 29px; }
  .page-intro { margin-bottom: 23px; font-size: 13px; }
  .filters { gap: 7px; margin-bottom: 23px; }
  .filter { min-height: 44px; padding: 9px 14px; font-size: 13px; }
  .back-link { margin-bottom: 16px; }
  .product-detail { grid-template-columns: 105px minmax(0, 1fr); align-items: start; gap: 18px; margin-bottom: 24px; }
  .product-detail .product-art { height: 137px; }
  .product-detail .card-tag, .product-detail .art-symbol { display: none; }
  .product-detail .product-art > svg { width: 85%; }
  .product-detail h1 { margin: 3px 0 9px; font-size: 23px; }
  .product-detail p { margin: 0; font-size: 13px; line-height: 1.85; }
  .detail-label { font-size: 13px; }
  .chapter-preview { gap: 6px; }
  .chapter-preview span { font-size: 13px; }
  .profile-form { padding: 23px 18px; border-radius: 6px; }
  .profile-form legend { margin-bottom: 16px; font-size: 16px; }
  .field-grid { gap: 17px 13px; }
  .field label { font-size: 13px; }
  .field input, .field select, .field textarea, .followup-form textarea { min-height: 46px; padding: 10px; font-size: 16px; }
  .field input::placeholder, .field textarea::placeholder, .followup-form textarea::placeholder { font-size: 13px; }
  .field small { font-size: 13px; }
  .birth-date-pickers select, .birth-time-pickers select { padding-left: 8px; padding-right: 3px; }
  .time-row { gap: 12px; }
  .checkbox-label { font-size: 13px !important; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .form-actions .primary-button { width: 100%; min-height: 48px; font-size: 13px; }
  .form-actions p { max-width: none; font-size: 13px; text-align: center; }
  .profile-submit-note { font-size: 13px; }
  .progress-panel { margin: 26px auto; padding: 39px 10px; }
  .progress-panel h1 { font-size: 26px; }
  .progress-panel p { font-size: 13px; }
  .reading-title { font-size: 28px; }
  .reading-top { align-items: center; gap: 8px; }
  .reading-top .secondary-button { min-height: 44px; padding: 9px 12px; font-size: 13px; }
  .reading-meta { font-size: 13px; }
  .reading-summary { padding: 21px 16px; }
  .summary-name { font-size: 13px; }
  .pillars { gap: 7px; }
  .pillar { padding: 11px 4px; }
  .pillar-label { font-size: 13px; }
  .pillar-hanja { font-size: 23px; letter-spacing: .04em; }
  .pillar-korean { font-size: 13px; }
  .elements { gap: 7px; }
  .element { gap: 4px; font-size: 13px; }
  .chart-note { font-size: 13px; }
  .chart-details { font-size: 13px; }
  .reading-layout { display: block; }
  .reading-toc { position: static; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
  .reading-toc strong { display: none; }
  .reading-toc a { min-height: 44px; margin: 0; padding: 9px 11px; border-radius: 3px; background: #f1eae2; font-size: 13px; }
  .reading-chapter { margin-bottom: 29px; padding-bottom: 23px; scroll-margin-top: 90px; }
  .reading-chapter h2 { margin-top: 8px; font-size: 23px; }
  .reading-chapter p { font-size: 14px; line-height: 1.95; }
  .chapter-number { font-size: 13px; }
  .reading-question { padding-left: 0; font-size: 13px; }
  .reading-end { align-items: flex-start; flex-direction: column; }
  .reading-actions { width: 100%; }
  .reading-actions button { flex: 1 1 120px; padding: 10px; font-size: 13px; }
  .followup-card { padding: 22px 17px; }
  .followup-form .primary-button { font-size: 13px; }
  .library-item { gap: 13px; padding: 16px 0; }
  .library-item .product-art { width: 75px; height: 82px; }
  .library-copy h2 { font-size: 14px; }
  .library-copy p { font-size: 13px; }
  .library-item .icon-button { width: 44px; height: 44px; }
  .guest-library-note { margin-top: -9px; font-size: 13px; }
  .empty-state { padding: 45px 21px; }
  .empty-state h2 { font-size: 24px; }
  .empty-state p { font-size: 13px; }
  .settings-card { padding: 23px 18px; }
  .settings-card select { font-size: 16px; }
  .settings-card p { font-size: 13px; }
  .settings-card h2 { font-size: 16px; }
  .kakao-login-button { font-size: 13px; }
}
@media (max-width: 360px) {
  .header-inner { padding: 0 16px; }
  .brand { gap: 7px; }
  .brand-tagline { display: none; }
  .page { padding-left: 16px; padding-right: 16px; }
  .hero { min-height: 0; }
  .hero-copy { padding: 24px 18px 16px; }
  .hero h1, .hero-title { font-size: 28px; }
  .hero p, .hero-description { font-size: 13px; }
  .hero-art { height: 300px; object-position: 77% 28%; }
  .hero-actions .primary-button, .hero-secondary { padding-right: 10px; padding-left: 10px; font-size: 13px; }
  .hero-seal { bottom: 214px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading { gap: 7px; }
  .text-link { gap: 3px; font-size: 13px; }
  .situation-button { gap: 6px; padding: 14px 9px; }
  .situation-button > svg { display: none; }
  .situation-icon { width: 23px; }
  .situation-title { font-size: 13px; }
  .situation-caption { font-size: 13px; }
  .product-grid { gap: 25px 12px; }
  .product-art { height: 153px; }
  .product-card h3 { font-size: 15px; }
  .product-card p { font-size: 13px; }
  .product-meta { font-size: 13px; }
  .product-bottom { font-size: 13px; }
  .home-note-copy { padding-left: 18px; padding-right: 18px; }
  .home-note-copy h2 { max-width: 80%; font-size: 22px; }
  .home-note-copy p { font-size: 13px; }
  .home-guide { gap: 20px 12px; }
  .guide-step h3 { font-size: 13px; }
  .product-detail { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
  .product-detail .product-art { height: 126px; }
  .product-detail h1 { font-size: 21px; }
  .birth-date-pickers, .birth-time-pickers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .birth-date-pickers select:first-child, .birth-time-pickers select:first-child { grid-column: 1 / -1; }
  .settings-table { grid-template-columns: 85px minmax(0, 1fr); }
  .site-footer { margin-right: 16px; margin-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  button:active { transform: none; }
}
@media print {
  body { background: var(--surface); color: #211f1d; }
  .site-header, .site-footer, .mobile-nav, .reading-top, .reading-toc, .followup-card, .reading-end, .toast { display: none !important; }
  .page { max-width: none; padding: 0; }
  .reading-layout { display: block; }
  .reading-chapter { break-inside: avoid; }
  .reading-title { font-size: 26px; }
  .reading-chapter p { font-size: 13px; }
  .reading-summary { border: 1px solid #ddd; background: var(--surface); }
  .page:not(.reading-page) { display: none; }
}
