:root {
  --paper: #f2efe9;
  --paper-deep: #e7e0d6;
  --ink: #24211f;
  --muted: #756e68;
  --line: rgba(53, 47, 43, 0.16);
  --gold: #92764d;
  --white: #fcfbf8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Pretendard", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.72), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.astral-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.brand-mark { font-size: 25px; font-weight: 800; letter-spacing: -.05em; }
.brand-copy { color: var(--muted); font-family: var(--serif); font-size: 16px; font-style: italic; }
.back-link { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-decoration: none; }
.back-link:hover { color: var(--ink); }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { padding: 84px 0 64px; text-align: center; }
.eyebrow, .step-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero h1 { margin: 0; font-size: clamp(58px, 9vw, 112px); line-height: .88; letter-spacing: -.075em; }
.hero h1 em { color: var(--gold); font-family: var(--serif); font-weight: 500; }
.hero-copy { margin: 34px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.principle-row { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.principle-row span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #6b625b; font-size: 11px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(252,251,248,.74);
  box-shadow: 0 28px 80px rgba(51, 43, 37, .08);
}
.form-panel { padding: clamp(30px, 5vw, 66px); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 42px; }
.panel-heading h2, .empty-result h2, .color-result h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.support-badge { padding: 7px 10px; border-radius: 99px; background: #e9e2d7; color: #6c5a42; font-size: 10px; font-weight: 700; white-space: nowrap; }
.field-group { margin: 0 0 27px; padding: 0; border: 0; }
.field-group legend, .field-group > label, .field-label-row > label:first-child, .field-group .field-title { display: block; margin-bottom: 11px; font-size: 12px; font-weight: 700; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented-control label { cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span {
  display: grid; place-items: center; min-height: 46px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 13px;
  transition: .2s ease;
}
.segmented-control input:checked + span { border-color: #4a443f; color: var(--ink); background: #eee9e1; box-shadow: inset 0 0 0 1px #4a443f; }
.date-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 10px; }
.input-wrap span { display: block; margin: 0 0 7px; color: var(--muted); font-size: 10px; }
.input-wrap input, .input-wrap select, .standard-input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; outline: none;
  color: var(--ink); background: var(--white);
}
.input-wrap input:focus, .input-wrap select:focus, .standard-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(146,118,77,.1); }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.check-label { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; color: var(--muted); font-size: 11px !important; cursor: pointer; }
.check-label input { accent-color: #4b433d; }
.field-help { margin: 8px 0 0; color: #918982; font-size: 10px; }
.standard-input:disabled { opacity: .5; background: #e9e6e1; }
.privacy-note { display: flex; gap: 10px; margin: 34px 0 20px; padding: 14px; border-radius: 12px; background: #ece8e1; }
.privacy-dot { width: 7px; height: 7px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: #738171; box-shadow: 0 0 0 4px rgba(115,129,113,.12); }
.privacy-note p { margin: 0; color: #675f59; font-size: 10px; line-height: 1.65; }
.privacy-note strong { color: #3c3835; }
.form-error { margin: 0 0 12px; padding: 11px 13px; border-radius: 9px; background: #f5dfdc; color: #8c423a; font-size: 11px; line-height: 1.5; }
.primary-button, .secondary-button {
  width: 100%; min-height: 54px; border: 0; border-radius: 12px; cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.primary-button { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: white; background: #2e2a27; font-size: 12px; font-weight: 700; }
.primary-button:hover { transform: translateY(-2px); background: #171513; }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }

.preview-panel {
  position: relative; display: grid; place-items: center; padding: clamp(30px, 5vw, 66px);
  background:
    linear-gradient(rgba(39,35,32,.94), rgba(39,35,32,.97)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.03) 18px 19px);
  color: #f4f0e9;
}
.empty-result, .loading-result { text-align: center; }
.empty-result h2 { margin: 15px 0 12px; color: #f7f3ed; }
.empty-result > p:last-child { color: #aaa19a; font-size: 12px; line-height: 1.75; }
.orb { position: relative; width: 190px; height: 190px; margin: 0 auto 38px; border-radius: 50%; background: conic-gradient(from 40deg, #798f88, #b3846d, #d3bf96, #6b8494, #798f88); filter: saturate(.6); box-shadow: 0 30px 70px rgba(0,0,0,.35); animation: float 5s ease-in-out infinite; }
.orb::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.orb span { position: absolute; inset: 34px; border-radius: 50%; background: rgba(37,33,30,.5); backdrop-filter: blur(7px); }
@keyframes float { 50% { transform: translateY(-9px) rotate(3deg); } }
.loading-ring { width: 56px; height: 56px; margin: 0 auto 20px; border: 1px solid rgba(255,255,255,.15); border-top-color: #c8b899; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-result p { color: #bdb4ac; font-size: 12px; }
.color-result { width: min(100%, 430px); }
.color-swatch { position: relative; width: 100%; aspect-ratio: 1.55; margin-bottom: 28px; overflow: hidden; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); transition: background .5s ease; }
.color-swatch::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 11px; }
.swatch-shine { position: absolute; inset: 0; background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.28), transparent 38%), linear-gradient(140deg, transparent 55%, rgba(0,0,0,.14)); }
.result-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.day-master { display: block; margin-bottom: 7px; color: #bfb5ab; font-family: var(--serif); font-size: 14px; font-style: italic; }
.color-result h2 { color: #fff; font-size: 31px; }
.hex-chip { padding: 8px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #ddd5cc; background: transparent; cursor: pointer; font-size: 11px; }
.hex-chip:hover { border-color: rgba(255,255,255,.55); }
.result-description { margin: 22px 0 0; color: #c4bbb3; font-size: 12px; line-height: 1.85; }
.notice-list { display: grid; gap: 7px; margin-top: 20px; }
.notice-list p { margin: 0; padding: 9px 11px; border-left: 2px solid #bba77f; color: #bfb4aa; background: rgba(255,255,255,.04); font-size: 10px; line-height: 1.55; }
.boundary-card { margin-top: 20px; padding: 16px; border: 1px solid rgba(212,187,138,.3); border-radius: 12px; background: rgba(183,144,79,.08); }
.boundary-heading span { display: block; margin-bottom: 5px; color: #c9af7e; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.boundary-heading strong { font-size: 11px; }
.candidate-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); color: #c9c0b7; font-size: 10px; }
.candidate-pillars { color: #f0e8df; letter-spacing: .08em; }
.disclaimer { color: #8f8780; font-size: 9px; line-height: 1.6; }
.secondary-button { min-height: 42px; margin-top: 14px; color: #d8d0c7; border: 1px solid rgba(255,255,255,.16); background: transparent; font-size: 10px; }
.secondary-button:hover { background: rgba(255,255,255,.06); }

.paid-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 120px 7%; }
.paid-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.06em; line-height: 1.08; }
.paid-copy > p:last-child { max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.paid-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.42); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price-row span { color: var(--muted); font-size: 11px; }
.price-row strong { font-size: 23px; }
.paid-card ul { display: grid; gap: 13px; margin: 24px 0; padding: 0; list-style: none; }
.paid-card li { position: relative; padding-left: 18px; color: #5e5751; font-size: 11px; }
.paid-card li::before { content: "·"; position: absolute; left: 3px; color: var(--gold); font-weight: 800; }
.paid-card > button { width: 100%; min-height: 46px; border: 0; border-radius: 9px; color: #fff; background: #2e2a27; font-size: 11px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.paid-card > button:hover:not(:disabled) { transform: translateY(-2px); background: #171513; }
.paid-card > button:disabled { color: #8b827a; background: #ded8cf; cursor: not-allowed; }
.paid-stage-note { margin: 12px 0 0; color: #8d8279; font-size: 9px; line-height: 1.55; text-align: center; }

.paid-report { margin: 0 0 120px; padding: clamp(32px, 6vw, 72px); border-radius: 28px; color: #eee8df; background: #292623; box-shadow: 0 28px 80px rgba(51,43,37,.16); }
.report-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.11); }
.report-heading h2 { margin: 0; font-size: clamp(34px, 4.55vw, 60px); letter-spacing: -.065em; line-height: 1.02; white-space: nowrap; }
.report-heading > div > p:last-child { margin: 18px 0 0; color: #a99f96; font-size: 10px; line-height: 1.7; }
.test-badge { padding: 9px 12px; border: 1px solid rgba(210,181,125,.35); border-radius: 999px; color: #d2b57d; font-size: 9px; white-space: nowrap; }
.pillar-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 34px 0 90px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; overflow: hidden; }
.pillar-strip > div { min-height: 94px; display: grid; place-items: center; align-content: center; gap: 8px; border-right: 1px solid rgba(255,255,255,.11); }
.pillar-strip > div:last-child { border-right: 0; }
.pillar-strip span { color: #938b84; font-size: 9px; letter-spacing: .12em; }
.pillar-strip strong { font-family: var(--serif); color: #f5efe7; font-size: 27px; font-weight: 500; letter-spacing: .1em; }
.report-overview { position: relative; overflow: hidden; padding: 34px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: linear-gradient(135deg, var(--overview-color, #3c3935), rgba(255,255,255,.025)); }
.report-overview::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 72px rgba(255,255,255,.018); }
.report-overview h3 { position: relative; z-index: 1; max-width: 760px; margin: 9px 0 13px; font-size: clamp(24px, 3vw, 39px); letter-spacing: -.045em; }
.report-overview > p:not(.step-label) { position: relative; z-index: 1; max-width: 760px; margin: 0; color: #cec5bc; font-size: 11px; line-height: 1.9; }
.overview-keywords { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.overview-keywords span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #e3d9cf; background: rgba(30,27,24,.26); font-size: 9px; }
.report-section-heading { margin: 80px 0 28px; }
.report-section-heading h3, .pattern-card h3, .fortune-card h3 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.reading-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.reading-grid article { display: flex; flex-direction: column; min-height: 470px; padding: 30px; border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--section-color, rgba(255,255,255,.18)); border-radius: 15px; background: rgba(255,255,255,.025); }
.reading-grid article:last-child { grid-column: 1 / -1; min-height: 390px; }
.reading-number { color: #b69a6b; font-family: var(--serif); font-size: 24px; font-style: italic; }
.reading-grid h4 { min-height: 42px; margin: 25px 0 22px; font-size: 18px; }
.reading-grid p { margin: 0 0 17px; color: #bfb6ad; font-size: 10px; line-height: 1.8; }
.reading-grid p strong { display: block; margin-bottom: 5px; color: #7f766f; font-size: 8px; letter-spacing: .1em; }
.reading-grid .reading-action { margin: auto 0 0; padding: 16px; border-radius: 9px; color: #e5ddd3; background: rgba(183,151,96,.11); }
.element-profile { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(255,255,255,.025); }
.element-bars { display: grid; gap: 13px; }
.element-bar { display: grid; grid-template-columns: 25px 1fr 25px; gap: 10px; align-items: center; color: #cfc5bb; font-size: 10px; }
.element-track { height: 13px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.element-fill { display: block; height: 100%; min-width: 4px; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.element-profile-copy { padding: 12px 8px 12px 22px; border-left: 1px solid rgba(255,255,255,.09); }
.element-profile-copy h4 { margin: 8px 0 15px; font-size: 20px; }
.element-profile-copy > p { color: #b9b0a8; font-size: 10px; line-height: 1.8; }
.element-profile-copy .element-caution { color: #89817a; font-size: 9px; }
.element-solution { position: relative; overflow: hidden; margin-top: 22px; padding: 22px; border: 1px solid color-mix(in srgb, var(--solution-color) 42%, rgba(255,255,255,.08)); border-radius: 13px; background: linear-gradient(145deg, color-mix(in srgb, var(--solution-color) 14%, transparent), rgba(255,255,255,.025)); }
.element-solution::after { content: ""; position: absolute; width: 150px; height: 150px; right: -72px; top: -72px; border-radius: 50%; background: var(--solution-color); opacity: .11; box-shadow: 0 0 0 22px color-mix(in srgb, var(--solution-color) 8%, transparent), 0 0 0 45px color-mix(in srgb, var(--solution-color) 4%, transparent); }
.solution-label { position: relative; z-index: 1; margin: 0 0 8px; color: var(--solution-color); font-size: 8px; letter-spacing: .18em; }
.element-solution h5 { position: relative; z-index: 1; margin: 0 0 9px; color: #e6ddd4; font-size: 15px; line-height: 1.45; }
.element-solution > p:not(.solution-label) { position: relative; z-index: 1; margin: 0; color: #bdb3aa; font-size: 9px; line-height: 1.75; }
.element-solution ul { position: relative; z-index: 1; display: grid; gap: 7px; margin: 16px 0; padding: 0; list-style: none; }
.element-solution li { position: relative; padding-left: 14px; color: #d1c7bd; font-size: 9px; line-height: 1.6; }
.element-solution li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--solution-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--solution-color) 15%, transparent); }
.solution-meta { position: relative; z-index: 1; display: grid; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.solution-meta div { display: grid; grid-template-columns: 58px 1fr; gap: 8px; }
.solution-meta dt { color: #827971; font-size: 8px; }
.solution-meta dd { margin: 0; color: #bdb3aa; font-size: 8px; line-height: 1.55; }
.paid-color-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.paid-color-grid article { display: grid; grid-template-columns: 105px 1fr; column-gap: 20px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.paid-color-swatch { grid-row: 1 / span 6; display: block; width: 105px; height: 100%; min-height: 190px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.color-role { margin: 0 0 6px; color: #a99984; font-size: 9px; letter-spacing: .1em; }
.paid-color-grid h4 { margin: 0; font-size: 17px; }
.paid-color-grid article > p { margin: 10px 0 0; color: #9f968e; font-size: 9px; line-height: 1.65; }
.paid-color-grid .color-guide { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); color: #c8beb4; }
.paid-color-grid .color-caution { color: #7f7770; }
.paid-color-grid code { color: #cfc5bb; font-family: var(--sans); font-size: 9px; }
.pattern-fortune-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; margin-top: 90px; }
.pattern-card, .fortune-card { padding: 22px; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; background: rgba(255,255,255,.025); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.pattern-family { margin: 7px 0 0; color: #9e958d; font-size: 9px; }
.download-button { padding: 10px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #dfd5ca; background: transparent; cursor: pointer; font-size: 9px; }
.download-button:hover { background: rgba(255,255,255,.06); }
#patternCanvas { display: block; width: 100%; height: auto; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #171513; box-shadow: 0 24px 60px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.04); }
.card-note { margin: 16px 0 0; color: #89817a; font-size: 8px; line-height: 1.65; }
.pattern-source-note { margin: 8px 0 0; color: #706a65; font-size: 7px; line-height: 1.6; }
.fortune-card { display: flex; flex-direction: column; }
.fortune-score-row { display: flex; align-items: baseline; gap: 7px; margin: 22px 0 12px; }
.fortune-score-row strong { color: #d2b57d; font-family: var(--serif); font-size: 84px; font-weight: 500; line-height: .8; }
.fortune-score-row span { color: #938b84; font-size: 11px; }
.fortune-score-basis { margin: 2px 0 17px; color: #9d9288; font-size: 8px; line-height: 1.55; }
.fortune-reading { margin: 24px 0; color: #c2b9b0; font-size: 10px; line-height: 1.8; }
.fortune-details { margin: auto 0 0; }
.fortune-details div { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.09); }
.fortune-details dt { margin-bottom: 6px; color: #807871; font-size: 8px; }
.fortune-details dd { margin: 0; color: #d5ccc3; font-size: 10px; line-height: 1.55; }
#fortuneColor::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--today-color); }
.report-footer-note { margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.report-footer-note p { margin: 7px 0; color: #8d857e; font-size: 9px; line-height: 1.7; }

.checkout-dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: var(--white); box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.checkout-dialog::backdrop { background: rgba(25,22,20,.72); backdrop-filter: blur(4px); }
.checkout-card { position: relative; padding: 36px; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #746c65; background: #eeeae4; cursor: pointer; font-size: 20px; }
.checkout-card h2 { margin: 0; font-size: 32px; }
.checkout-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 27px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checkout-price span { color: var(--muted); font-size: 10px; }
.checkout-price strong { font-size: 22px; }
.checkout-card ul { display: grid; gap: 9px; padding: 0; margin: 20px 0; list-style: none; color: #635b55; font-size: 10px; }
.checkout-card li::before { content: "✓"; margin-right: 8px; color: #738171; }
.test-payment-notice { display: grid; gap: 4px; padding: 14px; border-radius: 10px; background: #eee9e1; }
.test-payment-notice strong { color: #63523e; font-size: 10px; }
.test-payment-notice span { color: #776e67; font-size: 9px; line-height: 1.5; }
.checkout-error { padding: 10px; border-radius: 8px; color: #8c423a; background: #f5dfdc; font-size: 9px; }
.test-pay-button { width: 100%; min-height: 50px; margin-top: 18px; border: 0; border-radius: 10px; color: white; background: #2e2a27; cursor: pointer; font-size: 11px; font-weight: 700; }
.test-pay-button:disabled { opacity: .55; cursor: wait; }
.method-note { padding: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.method-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
footer { width: min(1180px, calc(100% - 48px)); min-height: 110px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; color: #888078; font-size: 9px; letter-spacing: .08em; }

[hidden] { display: none !important; }

/* Ivory atelier: readable paper, ink, and compact chromatic palette cards. */
.preview-panel { color: var(--ink); background: radial-gradient(circle at 20% 8%, #fffdf8, transparent 65%), #eee7db; border-left: 1px solid var(--line); }
.empty-result h2, .color-result h2 { color: var(--ink); }
.empty-result > p:last-child, .loading-result p, .result-description { color: #625b53; }
.orb { box-shadow: 0 24px 60px rgba(112,89,63,.16); }
.orb span { background: rgba(252,248,239,.6); }
.loading-ring { border-color: #d5c8b6; border-top-color: #8b6e48; }
.color-swatch { box-shadow: 0 18px 44px rgba(88,69,45,.14); }
.day-master { color: #716352; }
.hex-chip { color: #635847; background: rgba(255,255,255,.62); border-color: #cfc4b3; }
.hex-chip:hover { border-color: #957650; }
.notice-list p { color: #655d51; background: #fffaf0; }
.boundary-card { border-color: #d4b88d; background: #fcf5e7; }
.boundary-heading span { color: #806037; }
.candidate-row { border-color: #e4d8c5; color: #71624e; }
.candidate-pillars { color: #35302a; }
.disclaimer { color: #756c61; font-size: 11px; }
.secondary-button { color: #54493c; border-color: #cfc2b1; background: rgba(255,255,255,.5); }
.secondary-button:hover { background: #fffbf3; }
.paid-report { color: var(--ink); background: #faf7f0; border: 1px solid #e3dbce; box-shadow: 0 24px 64px rgba(102,81,51,.07); }
.report-heading { border-color: #e1d7c7; }
.report-heading h2 { font-size: clamp(24px, 3.3vw, 42px); }
.report-heading > div > p:last-child { color: #756d62; font-size: 12px; }
.test-badge { color: #81633c; border-color: #d9c7ac; background: #f7eddd; }
.pillar-strip { margin-bottom: 60px; border-color: #e2d8c7; background: #fffefa; box-shadow: 0 5px 16px rgba(119,95,61,.04); }
.pillar-strip > div { border-color: #e5dccc; }
.pillar-strip span { color: #796c5a; font-size: 11px; }
.pillar-strip strong { color: #322c25; }
.report-overview { border-color: #ded4c4; background: linear-gradient(130deg, var(--overview-color), #fffdf7 84%); }
.report-overview::after { border-color: rgba(124,105,78,.15); box-shadow: 0 0 0 36px rgba(124,105,78,.025), 0 0 0 72px rgba(124,105,78,.018); }
.report-overview > p:not(.step-label) { color: #5f574d; font-size: 13px; }
.overview-keywords span { color: #635745; border-color: #ddd1be; background: rgba(255,253,247,.74); font-size: 11px; }
.reading-grid article { min-height: 0; padding: 28px; border-color: #e4dccc; background: #fffefa; box-shadow: 0 6px 16px rgba(112,89,56,.025); }
.reading-grid article:last-child { min-height: 0; }
.reading-number { color: #937341; }
.reading-grid h4 { min-height: 0; margin: 20px 0 24px; font-size: 20px; line-height: 1.45; }
.reading-grid p { color: #5a534b; font-size: 13px; line-height: 1.85; }
.reading-grid p strong { color: #8a765a; font-size: 11px; letter-spacing: .04em; }
.reading-grid .reading-action { color: #494034; background: #f5efe3; }
.element-profile { align-items: start; border-color: #e3d9c8; background: #fffefa; }
.element-bars { padding: 10px 0; gap: 19px; }
.element-bar { color: #665b4c; font-size: 13px; }
.element-track { background: #eee8de; height: 16px; }
.element-fill { box-shadow: inset 0 0 0 1px rgba(70,49,25,.08); }
.element-profile-copy { border-color: #e4dacc; }
.element-profile-copy h4 { color: #433a2f; line-height: 1.5; }
.element-profile-copy > p { color: #6a5e4d; font-size: 12px; }
.element-profile-copy .element-caution { color: #7c6d5b; font-size: 11px; }
.element-solution { border-color: #e5d9c4; background: linear-gradient(145deg, color-mix(in srgb, var(--solution-color) 19%, #fffdf7), #fffdf7); }
.solution-label { color: #8b6e43; font-size: 9px; }
.element-solution h5 { color: #493e31; font-size: 16px; }
.element-solution > p:not(.solution-label), .element-solution li { color: #615445; font-size: 12px; }
.solution-meta { border-color: #e6dccd; }
.solution-meta dt { color: #7c6c56; font-size: 10px; }
.solution-meta dd { color: #635847; font-size: 11px; }
.paid-color-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.paid-color-grid article { display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 15px; border: 1px solid #e0d7c8; border-radius: 14px; background: #fffefa; box-shadow: 0 4px 14px rgba(98,76,47,.035); }
.paid-color-grid .color-role { margin: 0 0 10px; color: #8c734f; font-size: 11px; }
.paid-color-swatch { position: relative; grid-row: auto; width: 100%; height: 112px; min-height: 112px; aspect-ratio: auto; padding: 0; border: 1px solid rgba(74,57,36,.13); border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); cursor: pointer; transition: transform .18s; }
.paid-color-swatch:hover { transform: translateY(-2px); }
.swatch-copy-label { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 4px; color: #fffdf6; background: rgba(38,31,23,.58); font-size: 9px; font-weight: 500; }
.paid-color-grid h4 { margin: 14px 0 6px; font-size: 15px; line-height: 1.5; }
.paid-color-grid code { margin: 0 0 13px; color: #7c7060; font-size: 11px; letter-spacing: .03em; }
.color-chip-details { margin-top: auto; border-top: 1px solid #e9e1d4; padding-top: 10px; }
.color-chip-details summary { color: #8b7554; cursor: pointer; font-size: 10px; line-height: 1.6; }
.color-chip-details p { color: #716453; font-size: 11px; line-height: 1.8; }
.paid-color-grid .color-guide { color: #594a38; border-color: #e6dccd; }
.paid-color-grid .color-caution { color: #7a6c5b; }
.pattern-card, .fortune-card { background: #fffefa; border-color: #e2d7c6; }
.pattern-family { color: #7e6e59; font-size: 11px; line-height: 1.6; }
.download-button { border-color: #cdbb9f; color: #6e5430; background: #fbf5e8; font-size: 11px; }
.download-button:hover { background: #f3e8d4; }
#patternCanvas { border-color: #e4d9c7; background: #fffaf1; box-shadow: 0 12px 30px rgba(103,78,42,.1); border-radius: 5px; }
.pattern-area-legend { display: flex; flex-wrap: wrap; gap: 8px 15px; margin: 18px 0 0; }
.pattern-area-legend span { display: flex; gap: 6px; align-items: center; color: #76684f; font-size: 11px; }
.pattern-area-legend i { width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(40,30,20,.14); }
.card-note { color: #756955; font-size: 11px; line-height: 1.8; }
.pattern-source-note { color: #8c7e6a; font-size: 10px; }
.fortune-score-row strong { color: #947445; }
.fortune-score-row span { color: #82735d; }
.fortune-score-basis { color: #85735b; font-size: 10px; }
.fortune-reading { color: #665b4e; font-size: 13px; }
.fortune-details div { border-color: #e5dacc; }
.fortune-details dt { color: #8c7858; font-size: 11px; }
.fortune-details dd { color: #54483a; font-size: 13px; }
.report-footer-note { border-color: #e2d8c8; }
.report-footer-note p { color: #82715b; font-size: 11px; }
button:focus-visible, summary:focus-visible { outline: 2px solid #967348; outline-offset: 4px; }

@media (max-width: 820px) {
  .workspace, .paid-preview { grid-template-columns: 1fr; }
  .preview-panel { min-height: 610px; }
  .paid-preview { gap: 35px; padding: 90px 0; }
  .paid-report { padding: 35px 24px; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-grid article:last-child { grid-column: auto; }
  .reading-grid article { min-height: 300px; }
  .element-profile { grid-template-columns: 1fr; }
  .element-profile-copy { padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.09); border-left: 0; }
  .paid-color-grid { grid-template-columns: 1fr 1fr; }
  .pattern-fortune-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .astral-header, main, footer { width: min(100% - 28px, 1180px); }
  .astral-header { min-height: 70px; }
  .brand-copy { display: none; }
  .hero { padding: 66px 0 50px; }
  .hero h1 { font-size: 57px; }
  .hero-copy br { display: none; }
  .workspace { border-radius: 18px; }
  .form-panel, .preview-panel { padding: 32px 21px; }
  .panel-heading { margin-bottom: 34px; }
  .date-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 7px; }
  .input-wrap input, .input-wrap select { padding: 0 9px; }
  .preview-panel { min-height: 560px; }
  .orb { width: 155px; height: 155px; }
  .paid-preview { padding: 75px 0; }
  .paid-color-grid { grid-template-columns: 1fr; }
  .paid-color-grid article { padding: 13px; }
  .paid-color-swatch { width: 100%; height: 100px; min-height: 100px; }
  .report-heading { display: block; }
  .report-heading h2 { font-size: clamp(18px, 6.1vw, 28px); }
  .test-badge { display: inline-block; margin-top: 20px; }
  .pillar-strip { grid-template-columns: 1fr 1fr; margin-bottom: 65px; }
  .pillar-strip > div:nth-child(2) { border-right: 0; }
  .pillar-strip > div:nth-child(-n+2) { border-bottom: 1px solid #e5dccc; }
  .paid-color-grid { grid-template-columns: 1fr; }
  .paid-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paid-color-grid h4 { font-size: 13px; }
  .preview-panel { border-left: 0; border-top: 1px solid var(--line); }
  .card-topline { align-items: flex-start; flex-direction: column; }
  .checkout-card { padding: 31px 23px 25px; }
  footer { min-height: 90px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; }
}
/* Color-first report: independent spectrum and daily-use cards prevent tall blank columns. */
.section-intro { max-width: 760px; margin: 12px 0 0; color: #786b5b; font-size: 13px; line-height: 1.8; }
.pillar-heading { margin-top: 34px; }
.pillar-strip { gap: 12px; margin: 20px 0 44px; border: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
.pillar-card { padding: 18px 14px 14px; text-align: center; border: 1px solid #ded5c8; border-radius: 13px; background: #fffefa; box-shadow: 0 5px 16px rgba(119,95,61,.045); }
.pillar-card h4 { margin: 0 0 16px; font-size: 13px; color: #887965; font-weight: 500; }
.pillar-day { border-color: #bca382; background: #fffaf0; }
.pillar-letter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; margin: 8px 0; padding: 9px 10px; border-radius: 7px; background: color-mix(in srgb, var(--pillar-color) 20%, #fffefa); }
.pillar-letter small { grid-column: 1 / -1; text-align: left; color: #94836d; font-size: 9px; }
.pillar-letter strong { color: var(--pillar-ink); font-family: var(--sans); font-size: 25px; font-weight: 650; letter-spacing: -.02em; text-align: left; }
.pillar-letter .pillar-element { color: #fffefa; background: var(--pillar-ink); padding: 3px 5px; border-radius: 4px; font-size: 10px; letter-spacing: 0; }
.pillar-card > small { display: block; margin-top: 12px; color: #8a765a; font-size: 10px; }
.pillar-unknown { padding: 40px 0; margin: 0; color: #8c8174; font-size: 18px; }
.reading-grid { gap: 16px; }
.reading-grid article, .reading-grid article:last-child { min-height: 0; padding: 24px; border-top-width: 1px; }
.reading-color-header { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #e9e0d2; }
.reading-color-header > div:last-child { min-width: 0; }
.reading-color-chip { display: grid; place-items: center; flex: 0 0 72px; height: 84px; border-radius: 9px; background: var(--section-color); border: 1px solid rgba(57,44,29,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.reading-color-chip .reading-number { padding: 4px 8px; color: #fffcf5; background: rgba(50,39,26,.45); border-radius: 4px; font-family: var(--serif); font-size: 22px; }
.reading-role { color: #8c7454; font-size: 10px; }
.reading-grid h4 { margin: 7px 0 8px; font-size: 18px; line-height: 1.5; }
.reading-grid .reading-color-name { margin: 0; font-size: 11px; color: #8a7961; }
.reading-grid .reading-possibility { margin: 0 0 18px; font-size: 14px; color: #453d33; }
.reading-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.reading-facts p { margin: 0; padding: 14px; border-radius: 8px; background: #f7f3ec; color: #6c5d4c; font-size: 12px; line-height: 1.8; }
.reading-grid p strong { font-size: 10px; letter-spacing: .04em; }
.reading-grid .reading-action { margin: auto 0 0; border-left: 3px solid var(--section-color); padding: 14px 16px; color: #514330; background: color-mix(in srgb, var(--section-color) 18%, #fffdf7); font-size: 13px; }
.reading-evidence { margin-top: 16px; border-top: 1px solid #ece3d6; padding-top: 11px; }
.reading-evidence summary { color: #887358; font-size: 11px; cursor: pointer; }
.reading-evidence p { margin: 12px 0 0; font-size: 12px; color: #786a59; }
.element-profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 24px; align-items: center; }
.element-spectrum { min-width: 0; margin: 0; }
#elementSpectrum svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; overflow: visible; }
.spectrum-axis { font-family: var(--sans); font-size: 13px; font-weight: 600; }
.spectrum-axis-value { fill: #94836e; font-size: 10px; font-weight: 400; }
.element-spectrum figcaption { max-width: 380px; margin: 8px auto 0; color: #91816b; font-size: 10px; line-height: 1.7; text-align: center; }
.element-profile-copy { padding: 8px 0 8px 24px; }
.element-profile-copy h4 { margin: 8px 0 10px; font-size: 21px; }
.element-profile-copy > p { margin: 0 0 14px; font-size: 12px; }
.spectrum-legend { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 7px; }
.spectrum-legend li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; background: #f8f4ec; color: #68583f; font-size: 12px; }
.spectrum-legend i { width: 15px; height: 15px; flex: 0 0 auto; border: 1px solid rgba(77,57,31,.12); border-radius: 4px; }
.spectrum-legend strong { margin-left: auto; color: #77664d; font-weight: 500; font-size: 11px; }
.element-profile-copy .element-caution { margin: 0; color: #90816d; font-size: 10px; }
.styling-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.styling-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid #e1d7c6; border-radius: 15px; background: #fffefa; box-shadow: 0 6px 16px rgba(93,72,40,.025); }
.styling-card header { display: flex; align-items: center; gap: 16px; }
.styling-swatch { display: block; width: 72px; height: 80px; flex: 0 0 auto; border-radius: 9px; background: var(--styling-color); border: 1px solid rgba(60,43,22,.1); }
.styling-purpose { margin: 0 0 8px; color: #8c7250; font-size: 11px; }
.styling-card h4 { margin: 0 0 7px; font-size: 20px; }
.styling-card code { color: #a18b6c; font-size: 11px; }
.styling-tagline { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #e9dfd0; color: #786346; font-size: 13px; }
.styling-card ul { margin: 16px 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.styling-card li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 8px; background: #f8f5ef; }
.styling-card li span { color: #978165; font-size: 10px; line-height: 1.8; }
.styling-card li p { margin: 0; color: #62523d; font-size: 12px; line-height: 1.7; }
.styling-frequency { margin: auto 0 0; padding: 12px 14px; border-left: 3px solid var(--styling-color); border-radius: 5px; color: #736045; background: color-mix(in srgb, var(--styling-color) 18%, #fffdf7); font-size: 11px; line-height: 1.7; }
.styling-card details { margin-top: 14px; }
.styling-card summary { color: #978163; font-size: 10px; cursor: pointer; }
.styling-card details p { color: #8a775b; font-size: 11px; line-height: 1.8; }
.styling-note { margin: 18px 0 0; color: #91816a; font-size: 11px; line-height: 1.8; }
@media (max-width: 900px) {
  .pillar-letter { grid-template-columns: 1fr; }
  .pillar-letter strong { text-align: center; font-size: 24px; }
  .pillar-letter .pillar-element { justify-self: center; }
}
@media (max-width: 820px) {
  .reading-grid article { min-height: 0; }
  .element-profile { grid-template-columns: 1fr; gap: 22px; }
  .element-profile-copy { padding: 20px 0 0; border-top: 1px solid #e8ddcc; border-left: 0; }
  .styling-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pillar-strip { gap: 10px; margin-bottom: 34px; }
  .pillar-card { padding: 14px 10px; }
  .pillar-letter { grid-template-columns: 1fr auto; padding: 8px; }
  .pillar-letter strong { font-size: 21px; text-align: left; }
  .report-section-heading { margin: 52px 0 22px; }
  .report-section-heading h3 { font-size: 22px; line-height: 1.5; }
  .section-intro { font-size: 12px; }
  .reading-grid article, .reading-grid article:last-child { padding: 18px; }
  .reading-color-header { gap: 12px; }
  .reading-color-chip { flex-basis: 54px; height: 72px; }
  .reading-grid h4 { font-size: 16px; }
  .reading-grid .reading-color-name { font-size: 10px; }
  .reading-facts { grid-template-columns: 1fr; }
  .reading-facts p { padding: 12px; }
  .element-profile { padding: 18px 12px; }
  .element-profile-copy { padding: 20px 5px 0; }
  .styling-card { padding: 18px; }
  .styling-swatch { width: 58px; height: 70px; }
  .styling-card h4 { font-size: 18px; }
  .styling-purpose { font-size: 10px; }
  .styling-card li { grid-template-columns: 49px minmax(0, 1fr); padding: 10px; gap: 8px; }
}
/* Opaque paper backdrops; strong frosted glass belongs to individual cards. */
body {
  background: #f2efe9;
}
.workspace, .paid-report, .checkout-dialog {
  background: #faf7f0;
  border: 1px solid #e0d9ce;
  box-shadow: 0 16px 48px rgba(66,68,77,.065);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.preview-panel { background: #eee9e2; }
.paid-report { background: #ede9e2; }
.pillar-card, .paid-color-grid article, .reading-grid article, .styling-card,
.element-profile, .pattern-card, .fortune-card, .report-overview, .paid-card {
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.94);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,255,255,.35), 0 12px 24px -10px rgba(66,68,77,.16);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}
:is(.pillar-card, .paid-color-grid article, .reading-grid article, .styling-card,
.element-profile, .pattern-card, .fortune-card, .report-overview, .paid-card)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.36), transparent 42%, transparent 72%, rgba(255,255,255,.08));
}
.pillar-day { border-color: #c4ae8a; }
.pillar-letter { background: color-mix(in srgb, var(--pillar-color) 23%, transparent); }
.reading-facts p, .styling-card li { background: rgba(255,255,255,.22); }
.pillar-card, .paid-color-grid article {
  --card-tint: #baa486;
  transform-origin: center bottom;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), box-shadow 420ms ease, border-color 300ms ease;
}
.pillar-card:focus-visible, .paid-color-grid article:focus-within {
  outline: 2px solid #92764d; outline-offset: 4px;
  box-shadow: 0 16px 32px rgba(66,68,77,.15), inset 0 1px 0 #fff;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pillar-card:hover, .paid-color-grid article:hover {
    z-index: 2;
    transform: perspective(900px) translateY(-10px) rotateX(4deg) scale(1.018);
    border-color: white;
    box-shadow: inset 0 1px 0 #fff, 0 22px 36px -12px rgba(53,58,70,.24), 0 0 30px color-mix(in srgb, var(--card-tint) 22%, transparent);
  }
  .paid-color-grid article:hover .paid-color-swatch { transform: translateY(-3px); box-shadow: 0 10px 18px -10px rgba(30,35,40,.4); }
}
.sound-toggle, .sound-toggle-inline, .replay-button {
  border: 1px solid rgba(155,137,111,.3); color: #5f5140;
  background: rgba(255,253,249,.9); border-radius: 999px;
  padding: 10px 15px; font-size: 12px; cursor: pointer;
}
.sound-toggle {
  position: fixed; right: 22px; bottom: 20px; z-index: 30;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(68,63,53,.14);
}
.sound-toggle[aria-pressed="true"], .sound-toggle-inline[aria-pressed="true"] { color: #fffdf6; background: #514b41; }
.sound-toggle-inline { margin: 12px 0 0; font-size: 11px; }
.replay-button { margin-top: 16px; font-size: 11px; background: rgba(255,255,255,.5); }
.replay-button:hover { background: white; }
.sound-toggle:disabled { cursor: default; opacity: .65; }
footer { padding-bottom: 70px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .workspace, .paid-report, .paid-card, .checkout-dialog,
  .pillar-card, .paid-color-grid article, .reading-grid article, .styling-card,
  .element-profile, .pattern-card, .fortune-card, .report-overview { background: #faf8f2; }
}
.styling-trigger { display: flex; flex-direction: column; width: 100%; border: 0; padding: 24px; background: transparent; color: inherit; text-align: left; cursor: pointer; border-radius: inherit; }
.styling-trigger-header { display: flex; align-items: center; gap: 16px; }
.styling-trigger-header > span:last-child { min-width: 0; }
.styling-trigger .styling-purpose { display: block; }
.styling-trigger-name { display: block; margin-bottom: 7px; font-size: 20px; line-height: 1.4; }
.styling-trigger-more { margin-top: 18px; color: #7b6241; font-size: 12px; }
.styling-card { padding: 0; transition: transform 300ms ease, box-shadow 300ms ease; }
.styling-card:focus-within { outline: 2px solid #92764d; outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .styling-card:hover { transform: translateY(-5px); box-shadow: 0 15px 28px rgba(50,45,35,.12); } }
.paid-color-grid .pair-description { margin: 0 0 12px; color: #635747; font-size: 11px; line-height: 1.75; }
.styling-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.styling-dialog .checkout-card { padding: 40px 32px 30px; }
.styling-dialog h2 { margin: 0; padding-right: 25px; font-size: 27px; line-height: 1.4; }
.styling-dialog-intro { color: #78674f; font-size: 13px; line-height: 1.7; }
.styling-dialog-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.styling-dialog-colors .paid-color-swatch { height: 110px; }
.styling-dialog-colors .styling-pair-use { margin: 0; padding-top: 12px; border-top: 1px solid #e0d7c8; color: #584c3e; font-size: 12px; line-height: 1.8; }
.styling-tips-title { margin: 25px 0 12px; font-size: 15px; }
.styling-dialog .styling-dialog-tips { margin: 0; padding: 0; gap: 8px; }
.styling-dialog-tips li { padding: 10px 12px; border-radius: 8px; background: #eee8de; color: #675945; font-size: 12px; line-height: 1.7; }
.styling-dialog-tips li::before { display: none; }
.styling-dialog-frequency { color: #786245; font-size: 12px; line-height: 1.7; }
.styling-dialog-reason { color: #7c705e; font-size: 11px; line-height: 1.8; }
.art-palette-heading h3 { margin:0 0 8px; font-size:23px; letter-spacing:-.04em; }
.art-palette-heading p { margin:0; color:var(--muted); font-size:14px; line-height:1.8; }
.pattern-tone-legend { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:12px; margin:22px 0 28px; }
.art-palette-chip { min-width:0; }
.pattern-tone-legend i { display:block; width:100%; height:72px; margin-bottom:10px; border-radius:10px; border:1px solid rgba(50,40,30,.13); box-shadow:inset 0 1px 0 rgba(255,255,255,.25); }
.art-palette-chip strong { display:block; color:var(--ink); font-size:12px; line-height:1.5; word-break:keep-all; }
.art-palette-chip code { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
@media (max-width:760px) { .pattern-tone-legend { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 10px; } .pattern-tone-legend i { height:64px; } }
@media (max-width: 560px) {
  .styling-trigger { padding: 18px; }
  .styling-trigger-name { font-size: 18px; }
  .styling-dialog .checkout-card { padding: 36px 18px 22px; }
  .styling-dialog h2 { font-size: 21px; }
  .styling-dialog-colors { grid-template-columns: 1fr 1fr; gap: 10px; }
  .styling-dialog-colors article { padding: 12px; }
  .styling-dialog-colors .paid-color-swatch { height: 90px; min-height: 90px; }
}
/* Three-section, single-submit experience. Main backgrounds stay opaque. */
.astral-header { position: sticky; top: 0; z-index: 20; width: 100%; min-height: 76px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: #f2efe9; gap: 24px; box-shadow: 0 2px 12px rgba(50,40,30,.035); }
.section-nav { display: flex; gap: 7px; align-items: center; }
.section-nav a { padding: 11px 16px; border-radius: 999px; color: #736451; text-decoration: none; font-size: 13px; white-space: nowrap; }
.section-nav a:hover, .section-nav a[aria-current="location"] { color: #332d25; background: #e5ded2; }
.hero { padding: 62px 0 46px; }
#birthSection, #resultSection, #bojagiSection { scroll-margin-top: 100px; }
.birth-section { display: block; min-height: 0; overflow: visible; margin-bottom: 36px; }
.birth-section .form-panel { padding: 36px; }
.birth-section .panel-heading { margin-bottom: 28px; }
.birth-section #astralForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.birth-section .field-group { margin: 0; min-width: 0; }
.birth-section .privacy-note, .birth-section .form-error, .birth-section .primary-button { grid-column: 1 / -1; margin: 0; }
.birth-section .primary-button { min-height: 52px; justify-content: center; gap: 14px; }
.birth-section .loading-result { padding: 22px 0 0; min-height: 0; }
.birth-section .loading-ring { width: 30px; height: 30px; margin: 0 auto; }
.result-section, .bojagi-section { margin: 0 0 36px; padding: 36px; }
.result-section .report-heading { margin-bottom: 26px; padding-bottom: 22px; }
.result-section .report-heading h2 { font-size: 32px; }
.result-reset { width: auto; min-height: 38px; padding: 0 14px; white-space: nowrap; }
.section-placeholder { padding: 24px 0; margin: 0; color: #8a7b68; font-size: 14px; line-height: 1.8; }
.report-summary { padding: 24px; }
.report-summary h3 { margin: 7px 0 0; font-size: 24px; }
.result-section .report-section-heading { margin: 32px 0 16px; }
.result-section .pillar-strip { margin-bottom: 32px; }
.spectrum-palette-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.spectrum-card > h3, .result-palette > h3 { margin: 0 0 16px; font-size: 22px; }
.spectrum-card .element-spectrum { margin: 0; padding: 0; }
.spectrum-card .element-spectrum svg { width: 100%; max-width: 460px; display: block; margin: 0 auto; }
.palette-help { margin: -4px 0 16px; color: #8a775b; font-size: 12px; line-height: 1.7; }
.result-palette .styling-grid { gap: 12px; }
.result-palette .styling-trigger { padding: 16px; }
.result-palette .styling-trigger-header { flex-direction: column; align-items: stretch; gap: 12px; }
.result-palette .styling-swatch { width: 100%; height: 92px; }
.result-palette .styling-trigger-name { font-size: 17px; }
.result-palette .styling-tagline { display: none; }
.result-palette .styling-trigger-more { margin-top: 12px; font-size: 10px; }
.fortune-inline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin-top: 30px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.94); border-radius: 14px; background: rgba(255,255,255,.16); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 #fff, 0 9px 22px -12px rgba(50,40,30,.16); }
.fortune-inline-label { color: #756145; font-size: 12px; }
.fortune-inline strong { color: #7e603b; font-size: 24px; }
.fortune-inline-scale { color: #94846b; font-size: 11px; }
.fortune-inline p { flex: 1 1 320px; margin: 0; color: #5f5344; font-size: 13px; line-height: 1.7; }
.fortune-inline time { color: #96866d; font-size: 10px; }
.result-disclaimer { margin: 18px 0 0; color: #91816c; font-size: 10px; line-height: 1.8; }
.result-art-cta { display:flex; justify-content:center; margin-top:34px; padding-top:30px; border-top:1px solid var(--line); }
.result-art-button { width:100%; max-width:390px; justify-content:center; gap:22px; }
.bojagi-section h2 { margin: 0; font-size: 30px; }
.bojagi-section .pattern-card { max-width: 800px; margin: 0 auto; }
.download-button:disabled { opacity: .5; cursor: default; }
.styling-dialog #stylingDialogReading { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
.styling-dialog #stylingDialogReading article { padding: 20px; }
.styling-dialog #stylingDialogReading h4 { font-size: 18px; }
.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; }
@media (max-width: 820px) {
  .spectrum-palette-layout { grid-template-columns: 1fr; gap: 26px; }
  .spectrum-card .element-spectrum svg { max-width: 390px; }
}
@media (max-width: 560px) {
  .astral-header { padding: 0 14px; gap: 12px; min-height: 68px; }
  .section-nav { gap: 0; }
  .section-nav a { padding: 9px 10px; font-size: 12px; }
  .hero { padding: 44px 0 34px; }
  .birth-section .form-panel, .result-section, .bojagi-section { padding: 22px 18px; }
  .birth-section #astralForm { grid-template-columns: 1fr; gap: 24px; }
  .birth-section .panel-heading { flex-wrap: wrap; gap: 12px; }
  .result-section .report-heading { display: flex; flex-wrap: wrap; gap: 15px; }
  .result-section .report-heading h2 { font-size: 26px; }
  .report-summary { padding: 18px; }
  .report-summary h3 { font-size: 19px; line-height: 1.5; }
  .result-palette .styling-trigger { padding: 12px; }
  .result-palette .styling-trigger-name { font-size: 15px; }
  .result-palette .styling-swatch { height: 82px; }
  .fortune-inline { padding: 16px; }
  .bojagi-section h2 { font-size: 25px; }
}
/* Interaction rhythm borrowed from MaC's expanding / receding specimen modal. */
.checkout-dialog { transform-origin: 50% 15%; }
.checkout-dialog[open]::backdrop { animation: checkout-backdrop-in 300ms ease-out both; }
.checkout-dialog.is-closing::backdrop { animation: checkout-backdrop-out 220ms ease-in both; }
.checkout-dialog.is-closing .checkout-card { pointer-events: none; }
.primary-button, .secondary-button, #paidStartButton, .test-pay-button,
.dialog-close, .hex-chip, .download-button, .paid-color-swatch {
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled),
#paidStartButton:active:not(:disabled), .test-pay-button:active:not(:disabled),
.dialog-close:active, .hex-chip:active, .download-button:active, .paid-color-swatch:active {
  transform: translateY(1px) scale(.975);
}
.test-pay-button[aria-busy="true"]::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 9px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: currentColor;
  border-radius: 50%; vertical-align: -2px; animation: spin 800ms linear infinite;
}
#report-title:focus { outline: none; }
#report-title:focus-visible { outline: 2px solid #978165; outline-offset: 6px; }
@keyframes checkout-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes checkout-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
/* Independent views, one-column birth form, raised small glass panels. */
.birth-section { max-width: 780px; margin-inline: auto; }
.birth-section #astralForm { grid-template-columns: minmax(0, 1fr); }
.section-nav a[aria-disabled="true"] { opacity: .38; cursor: default; }
.pillar-card, .styling-card, .paid-color-grid article, .reading-grid article, .report-summary {
  box-shadow: inset 0 2px 2px rgba(255,255,255,.96),
    inset 0 -3px 9px rgba(91,82,65,.09),
    0 18px 32px -12px rgba(66,55,41,.25), 0 4px 9px rgba(66,55,41,.07);
}
.pillar-card { position: relative; }
.pillar-card:hover, .pillar-card:focus-within { z-index: 5; }
.pillar-tooltip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 250px; max-width: 75vw; padding: 14px 16px; margin: 0;
  background: #fffaf1; color: #484136; border: 1px solid #d8cbbb; border-radius: 12px;
  box-shadow: 0 12px 26px rgba(45,36,26,.2); font-size: 13px; line-height: 1.7;
  text-align: left; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 180ms;
}
.pillar-card:hover .pillar-tooltip, .pillar-card:focus-within .pillar-tooltip { visibility: visible; opacity: 1; }
.pillar-card:first-child .pillar-tooltip { left: 0; transform: none; }
.pillar-card:last-child .pillar-tooltip { left: auto; right: 0; transform: none; }
#stylingDialogIntro { line-height: 1.8; padding: 14px 18px; border-left: 3px solid #aa9065; background: rgba(255,255,255,.3); border-radius: 0 10px 10px 0; }
.traditional-artwork { display:block; width:100%; height:auto; aspect-ratio:3/4; object-fit:contain; margin:24px 0; border-radius:12px; box-shadow:0 16px 38px rgba(64,49,31,.14); }
.artwork-open-button { display:block; width:100%; max-width:100%; padding:0; margin:24px 0 8px; scroll-margin-top:100px; overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; cursor:zoom-in; }
.artwork-open-button:disabled { cursor:progress; opacity:1; }
.artwork-open-button:focus-visible { outline:3px solid var(--gold); outline-offset:5px; }
.artwork-open-button svg { display:block; width:100%; height:auto; aspect-ratio:1152/1768; overflow:visible; }
.artwork-scroll-window { transform:scaleY(0); transform-origin:0 0; }
.artwork-scroll-roller { transform:translateY(58px); }
#artworkReveal[data-state="unrolling"] .artwork-scroll-window { animation:artwork-scroll-unroll 2.8s cubic-bezier(.28,.06,.22,1) both; }
#artworkReveal[data-state="unrolling"] .artwork-scroll-roller { animation:artwork-scroll-fall 2.8s cubic-bezier(.28,.06,.22,1) both; }
#artworkReveal[data-state="complete"] .artwork-scroll-window { transform:scaleY(1); }
#artworkReveal[data-state="complete"] .artwork-scroll-roller { transform:translateY(1730px); }
.artwork-view-hint { margin:8px 0 24px; text-align:center; color:var(--muted); font-size:12px; }
.artwork-dialog { width:fit-content; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); padding:0; border:0; border-radius:0; overflow:visible; background:transparent; box-shadow:none; }
.artwork-dialog::backdrop { background:rgba(13,12,10,.84); backdrop-filter:blur(4px); }
.artwork-dialog img { display:block; max-width:calc(100vw - 24px); width:auto; height:auto; max-height:calc(100dvh - 72px); object-fit:contain; border-radius:0; }
.artwork-dialog { cursor:zoom-out; }
.styling-dialog-handle { display:block; width:48px; height:24px; padding:10px; margin:-18px auto 18px; border:0; background:transparent; cursor:pointer; }
.styling-dialog-handle::before { content:""; display:block; width:28px; height:4px; border-radius:999px; background:#8d8379; }
.styling-dialog-handle:focus-visible { outline:2px solid var(--gold); outline-offset:4px; border-radius:12px; }
@keyframes artwork-scroll-unroll { from { transform:scaleY(.033526); } to { transform:scaleY(1); } }
@keyframes artwork-scroll-fall { from { transform:translateY(58px); } to { transform:translateY(1730px); } }
@media (prefers-reduced-motion:reduce) { #artworkReveal .artwork-scroll-window { animation:none !important; transform:scaleY(1); } #artworkReveal .artwork-scroll-roller { animation:none !important; transform:translateY(1730px); } }
.art-status { padding:18px 22px; background:#f5f0e7; border:1px solid #e7ddca; border-radius:14px; color:#746349; line-height:1.8; }
#generateArtButton { width:100%; margin:16px 0; }
.art-explanation { margin:24px 0; padding:28px; border:1px solid rgba(255,255,255,.9); border-radius:20px; background:rgba(255,255,255,.35); box-shadow:0 14px 32px rgba(68,51,28,.13), inset 0 1px 0 #fff; backdrop-filter:blur(14px); }
.art-explanation h3 { margin:8px 0 16px; font-size:clamp(22px,3vw,30px); }
.art-explanation p { line-height:1.9; word-break:keep-all; }
.art-explanation-style { color:#796b56; }
.art-object-stories { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:22px 0; }
.art-object-stories article { padding:18px; background:rgba(255,255,255,.4); border:1px solid rgba(255,255,255,.8); border-radius:14px; box-shadow:0 6px 16px rgba(68,51,28,.07); }
.art-object-stories h4 { margin:0 0 8px; color:#8c704b; }
.art-object-stories p { margin:0; font-size:15px; }
@media (max-width:600px) { .art-explanation { padding:20px; } .art-object-stories { grid-template-columns:1fr; } }

/* MaC atelier intro: warm paper, quiet gold and painting-led breathing room. */
.hero-atelier { position:relative; isolation:isolate; min-height:640px; margin:0 -12px 38px; padding:64px 28px 75px; text-align:left; overflow:hidden; }
.hero-art { position:absolute; z-index:-3; top:-12px; bottom:0; left:24%; width:82%; pointer-events:none; mask-image:linear-gradient(90deg,transparent,black 17%,black 88%,transparent); }
.hero-art svg { width:100%; height:100%; display:block; opacity:.88; }
.hero-reveal-stroke { stroke-dasharray:1400; stroke-dashoffset:0; }
.hero-art[data-reveal="on"] .hero-reveal-stroke { animation:hero-brush-reveal 3.1s cubic-bezier(.2,.55,.3,1) var(--brush-delay) both; }
.hero-art[data-reveal="off"] .hero-reveal-stroke { stroke-dashoffset:1400; }
.hero-veil { position:absolute; z-index:-2; inset:0; pointer-events:none; background:linear-gradient(90deg,var(--paper) 0%,rgba(242,239,233,.98) 23%,rgba(242,239,233,.76) 37%,rgba(242,239,233,.05) 64%),linear-gradient(0deg,var(--paper),transparent 17%,transparent 89%,rgba(242,239,233,.65)); }
.hero-content { position:relative; max-width:520px; }
.hero-content .eyebrow { font-size:10px; letter-spacing:.17em; margin-bottom:28px; color:#8c7042; }
.hero-atelier h1 { font-size:clamp(70px,8vw,110px); line-height:.84; letter-spacing:-.065em; }
.hero-atelier h1 em { display:inline-block; margin-left:52px; font-size:1.12em; letter-spacing:-.055em; }
.hero-tagline { margin:30px 0 0; font-size:clamp(20px,2.3vw,28px); font-weight:600; line-height:1.55; letter-spacing:-.045em; }
.hero-atelier .hero-copy { margin:17px 0 26px; font-size:13px; line-height:1.9; color:#736d63; }
.hero-start { display:inline-flex; align-items:center; gap:32px; padding:16px 21px; background:#292723; border:1px solid #292723; color:#fffdf8; border-radius:4px; font-size:12px; font-weight:600; text-decoration:none; transition:background .2s,transform .2s; }
.hero-start:hover { background:#4e463a; transform:translateY(-2px); }
.hero-start:focus-visible,.hero-replay:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
.hero-service-note { display:block; margin-top:11px; font-size:10px; letter-spacing:.03em; color:#8c8477; }
.hero-footnote { position:absolute; left:28px; right:28px; bottom:16px; display:flex; justify-content:space-between; gap:20px; align-items:center; color:#8a8275; }
.hero-footnote>span { font-size:9px; letter-spacing:.13em; }
.hero-replay { padding:8px 0 8px 12px; border:0; border-bottom:1px solid rgba(140,112,66,.25); background:transparent; color:#716650; font-size:11px; cursor:pointer; }
.hero-replay span { display:inline-block; margin-left:8px; }
.birth-section { scroll-margin-top:28px; }
@keyframes hero-brush-reveal { from { stroke-dashoffset:1400; } to { stroke-dashoffset:0; } }
@media (max-width:760px) {
  .hero-atelier { min-height:700px; padding:55px 12px 70px; margin:0 -4px 26px; }
  .hero-content { max-width:380px; }
  .hero-atelier h1 { font-size:82px; }
  .hero-art { left:15%; width:115%; top:70px; opacity:.68; }
  .hero-veil { background:linear-gradient(90deg,var(--paper),rgba(242,239,233,.9) 24%,rgba(242,239,233,.42) 57%,rgba(242,239,233,.04)),linear-gradient(0deg,var(--paper),transparent 30%,transparent 80%,var(--paper)); }
  .hero-tagline { margin-top:32px; font-size:23px; }
  .hero-footnote { left:12px; right:12px; }
  .hero-footnote>span { max-width:170px; line-height:1.7; font-size:8px; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-art[data-reveal] .hero-reveal-stroke { animation:none !important; stroke-dashoffset:0 !important; }
  .hero-start { transition:none; }
}


/* 전통화 확대 보기: 전역 margin 리셋 때문에 왼쪽 위에 붙는 문제를 해결 */
#artworkDialog {
  position: fixed;
  inset: 0;
  margin: auto;
}