:root {
  --ink: #171b1e;
  --ink-soft: #40484d;
  --muted: #667077;
  --paper: #f3efe7;
  --surface: #fffdf8;
  --surface-soft: #ebe6dd;
  --line: #cfc8bc;
  --line-dark: #8e8980;
  --accent: #c74632;
  --accent-dark: #9f3022;
  --accent-soft: #f3d7d0;
  --navy: #151a1e;
  --navy-soft: #222a30;
  --green: #2f6a56;
  --yellow: #e5bd56;
  --max: 1180px;
  --reading: 760px;
  --radius: 4px;
  --shadow: 0 20px 60px rgba(23, 27, 30, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: white;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--navy);
  color: white;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 231, .96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-seal {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 2px;
  background: var(--accent);
  color: white;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -1px;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.site-header nav {
  display: flex;
  gap: 34px;
}

.site-header nav a {
  position: relative;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--accent);
  content: "";
  transition: transform .2s ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--accent);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .72fr);
  gap: clamp(56px, 8vw, 110px);
  max-width: var(--max);
  min-height: 680px;
  margin: 0 auto;
  padding: clamp(78px, 10vw, 132px) 24px 96px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

.eyebrow span {
  display: inline-block;
  margin-right: 10px;
  padding: 5px 9px;
  border-radius: 2px;
  background: var(--accent);
  color: white;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(52px, 6.3vw, 82px);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: 1.12;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-description {
  max-width: 670px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.primary-link,
.primary-button,
.next-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.primary-link:hover,
.primary-link:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.next-button:hover,
.next-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-1px);
}

.primary-link span {
  font-size: 20px;
  line-height: 1;
}

.text-link {
  min-height: 44px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  list-style: none;
}

.trust-list li {
  position: relative;
  padding-left: 17px;
  font-size: 14px;
}

.trust-list li::before {
  position: absolute;
  top: .73em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.trust-list b {
  color: var(--ink);
}

.report-index {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.report-index-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.report-index-head span {
  color: var(--muted);
  font-size: 14px;
}

.report-index-head b {
  font-size: 16px;
}

.report-index ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-index li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.report-index li:last-child {
  border-bottom: 0;
}

.report-index li > span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.report-index li div {
  display: grid;
  gap: 2px;
}

.report-index li b {
  font-size: 16px;
}

.report-index li small {
  color: var(--muted);
  font-size: 14px;
}

.calculator-section {
  padding: 104px 24px 120px;
  background: var(--navy);
  color: white;
  scroll-margin-top: 76px;
}

.section-heading {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto 54px;
  align-items: start;
}

.section-index {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  align-self: start;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.2;
}

.section-heading > div > p:last-child {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.calculator-section .section-kicker {
  color: var(--yellow);
}

.calculator-section .section-heading > div > p:last-child {
  color: #b9c0c4;
}

.calculator-shell {
  max-width: 920px;
  margin: 0 auto;
}

.privacy-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #3d474e;
  border-radius: var(--radius);
  background: var(--navy-soft);
}

.privacy-note > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.privacy-note p {
  margin: 0;
  color: #c8ced1;
  font-size: 14px;
  line-height: 1.55;
}

.privacy-note b {
  color: white;
}

.progress-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #272f35;
}

.progress-bar > i {
  height: 1px;
  background: #4c565d;
}

.progress-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  gap: 0 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #939da3;
  text-align: left;
  cursor: pointer;
}

.progress-step > span {
  display: grid;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #5e686f;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.progress-step b {
  color: #c7ced2;
  font-size: 14px;
}

.progress-step small {
  font-size: 13px;
}

.progress-step.active,
.progress-step.complete {
  color: white;
}

.progress-step.active > span {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.progress-step.complete > span {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.progress-step.active b,
.progress-step.complete b {
  color: white;
}

.wizard-card {
  position: relative;
  min-height: 590px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.wizard-step {
  animation: reveal .28s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-heading {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.step-heading p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.step-heading h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.045em;
  line-height: 1.28;
}

.step-heading > span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-grid.one-column {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span,
.field legend {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.field > span small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.field > small,
.toggle-field small,
.advanced-toggle small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
select {
  width: 100%;
  min-height: 56px;
  padding: 13px 15px;
  border: 1px solid #a7a198;
  border-radius: var(--radius);
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 70, 50, .14);
}

input:disabled {
  cursor: not-allowed;
}

.choice-group {
  display: grid;
  gap: 10px;
}

.choice-group.two {
  grid-template-columns: 1fr 1fr;
}

.choice-group label {
  cursor: pointer;
}

.choice-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-group span {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid #a7a198;
  border-radius: var(--radius);
  background: white;
  font-size: 16px;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.choice-group input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: inset 0 -3px var(--accent);
}

.choice-group input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(199, 70, 50, .18);
}

.toggle-field {
  display: flex;
  gap: 14px;
  min-height: 72px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f1eb;
  cursor: pointer;
}

.toggle-field.compact {
  min-height: 56px;
}

.toggle-field input {
  position: absolute;
  opacity: 0;
}

.toggle-ui {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: #a7aaa9;
  transition: background .2s ease;
}

.toggle-ui::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: transform .2s ease;
}

.toggle-field input:checked + .toggle-ui {
  background: var(--green);
}

.toggle-field input:checked + .toggle-ui::after {
  transform: translateX(20px);
}

.toggle-field input:focus-visible + .toggle-ui {
  box-shadow: 0 0 0 3px rgba(47, 106, 86, .2);
}

.toggle-field > span:last-child {
  display: grid;
  gap: 2px;
}

.toggle-field strong {
  font-size: 15px;
}

.advanced-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.advanced-toggle {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.advanced-toggle > span {
  display: grid;
  gap: 2px;
}

.advanced-toggle strong {
  font-size: 15px;
}

.advanced-toggle > b {
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
}

.advanced-options {
  display: grid;
  gap: 20px;
  padding: 22px;
  border-top: 1px solid var(--line);
  background: #f4f1eb;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.next-button,
.primary-button {
  min-width: 230px;
  border: 0;
}

.back-button,
.saved-button,
.toolbar-actions button {
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.back-button:hover,
.back-button:focus-visible,
.saved-button:hover,
.saved-button:focus-visible,
.toolbar-actions button:hover,
.toolbar-actions button:focus-visible {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.saved-button {
  position: absolute;
  right: clamp(30px, 5vw, 58px);
  bottom: 16px;
  min-height: 38px;
  padding: 7px 10px;
  border-color: transparent;
  color: var(--muted);
}

.primary-button.loading .button-label {
  opacity: 0;
}

.button-loader {
  display: none;
  width: 21px;
  height: 21px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.primary-button.loading .button-loader {
  display: block;
  position: absolute;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-error {
  min-height: 24px;
  margin: 18px 0 -18px;
  color: #b42e20;
  font-size: 14px;
  font-weight: 700;
}

.result-guide {
  padding: 112px 24px 124px;
  background: var(--surface);
}

.result-guide .section-heading {
  margin-bottom: 62px;
}

.reading-order {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  border-top: 3px solid var(--ink);
  list-style: none;
}

.reading-order li {
  display: grid;
  grid-template-columns: 80px 260px 1fr;
  gap: 28px;
  align-items: center;
  min-height: 112px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.reading-order li > span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.reading-order b {
  font-size: 21px;
  letter-spacing: -.03em;
}

.reading-order p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.result-section {
  padding: 96px 24px 120px;
  background: var(--paper);
  scroll-margin-top: 76px;
}

.result-toolbar {
  display: flex;
  max-width: var(--max);
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin: 0 auto 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
}

.result-toolbar > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  align-items: center;
}

.result-toolbar h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -.055em;
  line-height: 1.1;
}

.result-toolbar p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.result-cover {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 42px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}

.result-compass {
  display: grid;
  grid-row: 1 / 3;
  width: 180px;
  height: 180px;
  place-items: center;
  border-radius: 2px;
  background: var(--accent);
}

.result-compass span {
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
}

.result-cover-copy small {
  color: #d3d9dc;
  font-size: 14px;
  font-weight: 600;
}

.result-cover-copy h3 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -.045em;
  line-height: 1.2;
}

.result-cover-copy p {
  max-width: 760px;
  margin: 0;
  color: #e1e5e7;
  font-size: 17px;
  line-height: 1.8;
}

.premium-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.premium-keywords span,
.profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #505a60;
  border-radius: 99px;
  color: #edf0f1;
  font-size: 13px;
  font-weight: 600;
}

.result-meta {
  grid-column: 2;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #3a444a;
}

.result-meta > p {
  margin: 0 0 12px;
  color: #f0f2f3;
  font-size: 14px;
  font-weight: 600;
}

#profile-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-tabs {
  position: sticky;
  top: 76px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 18px auto 0;
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(12px);
}

.map-tabs a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.map-tabs a:last-child {
  border-right: 0;
}

.map-tabs b {
  color: var(--accent);
  font-size: 13px;
}

.map-tabs a:hover,
.map-tabs a:focus-visible {
  background: var(--surface-soft);
}

.result-overview-grid,
.report-grid,
.luck-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: var(--max);
  margin: 22px auto 0;
  scroll-margin-top: 150px;
}

.report-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.card-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-heading h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.035em;
}

.card-heading > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-number {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.method-tag {
  padding: 5px 8px;
  border-radius: 2px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.daymaster-hero {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  align-items: center;
}

.daymaster-symbol {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  border-radius: 2px;
  color: white;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: 48px;
  font-weight: 700;
}

.daymaster-copy h4,
.reading-intro h4,
.reading-item h4 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -.03em;
}

.daymaster-copy p,
.reading-intro p,
.reading-item p,
.element-summary,
.ten-summary,
.strength-explain,
.empty-state,
.interaction-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.strength-meter {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.meter-label {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.meter-label b {
  color: var(--ink);
  font-size: 14px;
  text-align: center;
}

.meter-label span:last-child {
  text-align: right;
}

.meter-track {
  position: relative;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, #7a9aaa, #d8c79a, #bd6e5f);
}

.meter-pin {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 4px solid white;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.element-bars {
  display: grid;
  gap: 16px;
}

.element-row {
  display: grid;
  grid-template-columns: 70px 1fr 44px;
  gap: 12px;
  align-items: center;
}

.element-label {
  font-size: 14px;
  font-weight: 700;
}

.element-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface-soft);
}

.bar-fill {
  height: 100%;
  border-radius: 2px;
}

.element-value {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.element-summary,
.ten-summary {
  margin-top: 26px;
  padding: 18px;
  background: var(--surface-soft);
}

.reading-card {
  max-width: var(--max);
  margin: 20px auto 0;
  scroll-margin-top: 150px;
}

.reading-intro {
  max-width: 820px;
  margin-bottom: 30px;
}

.reading-intro h4 {
  font-size: 25px;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.reading-item {
  min-width: 0;
  padding: 25px 22px;
  border-right: 1px solid var(--line);
}

.reading-item:last-child {
  border-right: 0;
}

.reading-item > span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.balance-note {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  background: #e3ece7;
  color: #29483c;
  font-size: 15px;
  line-height: 1.75;
}

.current-luck-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 54px);
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
}

.current-luck-card > span {
  font-size: 14px;
  font-weight: 700;
}

.current-luck-card h3 {
  margin: 18px 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.05em;
  line-height: 1.2;
}

.current-luck-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
}

.current-luck-card small {
  margin-top: 22px;
  color: #f7dcd7;
  font-size: 14px;
}

.annual-card {
  min-height: 330px;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.year-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f5ef;
}

.year-card.current {
  border-color: var(--accent);
  box-shadow: inset 4px 0 var(--accent);
}

.year-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.year-card strong {
  display: block;
  margin: 6px 0;
  font-size: 18px;
}

.year-card strong i {
  color: var(--accent);
  font-family: "Noto Serif KR", "Batang", serif;
  font-style: normal;
}

.year-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.professional-details {
  max-width: var(--max);
  margin: 20px auto 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 150px;
}

.professional-details > summary {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
}

.professional-details > summary::-webkit-details-marker {
  display: none;
}

.professional-details > summary span {
  display: grid;
  gap: 4px;
}

.professional-details > summary b {
  font-size: 20px;
}

.professional-details > summary small {
  color: var(--muted);
  font-size: 14px;
}

.professional-details > summary i {
  color: var(--accent);
  font-size: 28px;
  font-style: normal;
}

.professional-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.professional-body {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.pillars-wrap {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pillars-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  min-width: 660px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.pillar-column {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillar-head {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.pillar-head small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.pillar-body {
  padding: 18px 14px;
  text-align: center;
}

.pillar-ten-god,
.pillar-korean,
.pillar-stage {
  color: var(--muted);
  font-size: 13px;
}

.pillar-hanja {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 8px;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
}

.pillar-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px -14px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillar-detail span {
  padding: 10px 5px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.pillar-detail span:last-child {
  border-right: 0;
}

.pillar-detail b {
  color: var(--ink);
  font-size: 13px;
}

.chart-footnotes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chart-footnotes span {
  padding: 7px 10px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 13px;
}

.ten-god-groups {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
}

.ten-group {
  display: grid;
  place-items: center;
  min-height: 90px;
  padding: 12px 6px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.ten-group:last-child {
  border-right: 0;
}

.ten-group strong {
  color: var(--accent);
  font-size: 26px;
}

.ten-group span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ten-detail-list,
.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 16px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ten-detail,
.stage-item {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
}

.ten-detail span,
.stage-item span {
  color: var(--muted);
  font-size: 13px;
}

.stage-grid {
  grid-template-columns: repeat(2, 1fr);
}

.stage-item {
  display: grid;
  justify-content: initial;
}

.stage-item b {
  font-size: 20px;
}

.interaction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.interaction-card {
  padding: 18px;
  border-left: 3px solid var(--green);
  background: #edf2ef;
}

.interaction-card.strong {
  border-left-color: var(--accent);
  background: #f7e9e5;
}

.interaction-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.interaction-card h4 small {
  display: inline-block;
  margin-right: 5px;
  color: var(--muted);
  font-size: 13px;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.luck-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 14px;
}

.luck-table th,
.luck-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.luck-table th {
  background: var(--surface-soft);
  font-size: 13px;
}

.luck-table tr.current td {
  background: #f8e8e4;
}

.luck-pill {
  color: var(--accent);
  font-weight: 800;
}

.result-disclaimer {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  max-width: var(--max);
  margin: 20px auto 0;
  padding: 20px 24px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.result-disclaimer strong {
  font-size: 14px;
}

.result-disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.method-section {
  padding: 112px 24px 124px;
  background: var(--surface);
  scroll-margin-top: 76px;
}

.method-list {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 3px solid var(--ink);
}

.method-list article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  min-height: 120px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.method-list article > b {
  color: var(--accent);
  font-size: 18px;
}

.method-list h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.method-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 36px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid #353e44;
  background: var(--navy);
  color: white;
}

footer .brand-copy small {
  color: #aab2b6;
}

footer p {
  margin: 0;
  color: #aab2b6;
  font-size: 13px;
}

footer > a:last-child {
  justify-self: end;
  color: #d8dddf;
  font-size: 14px;
  font-weight: 600;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: calc(100vw - 40px);
  padding: 13px 17px;
  transform: translateY(20px);
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 64px;
    min-height: auto;
    padding-top: 84px;
  }

  .report-index {
    max-width: 720px;
  }

  .reading-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reading-item:nth-child(2) {
    border-right: 0;
  }

  .reading-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .result-cover {
    grid-template-columns: 140px 1fr;
    gap: 0 30px;
  }

  .result-compass {
    width: 140px;
    height: 140px;
  }

  .result-compass span {
    font-size: 72px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 68px;
  }

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand-seal {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    font-size: 13px;
  }

  .header-cta {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero {
    gap: 52px;
    padding: 58px 20px 72px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(40px, 12.2vw, 52px);
    line-height: 1.16;
  }

  .hero-description {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
  }

  .primary-link {
    width: 100%;
    min-height: 58px;
    justify-content: space-between;
  }

  .text-link {
    justify-self: start;
  }

  .trust-list {
    display: grid;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
  }

  .trust-list li {
    font-size: 14px;
  }

  .report-index li {
    min-height: 74px;
  }

  .calculator-section,
  .result-guide,
  .result-section,
  .method-section {
    padding: 72px 16px 82px;
    scroll-margin-top: 68px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 38px;
  }

  .section-index {
    justify-self: start;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .section-heading > div > p:last-child {
    font-size: 16px;
  }

  .privacy-note {
    padding: 14px;
  }

  .progress-bar {
    grid-template-columns: 1fr 22px 1fr 22px 1fr;
    padding: 16px 12px;
  }

  .progress-step {
    display: flex;
    justify-content: center;
  }

  .progress-step > span {
    width: 34px;
    height: 34px;
  }

  .progress-step b,
  .progress-step small {
    display: none;
  }

  .wizard-card {
    min-height: 0;
    padding: 28px 18px 66px;
  }

  .step-heading {
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .step-heading h3 {
    font-size: 28px;
  }

  .step-heading > span {
    font-size: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .field-wide {
    grid-column: auto;
  }

  input[type="text"],
  input[type="date"],
  input[type="time"],
  input[type="number"],
  select {
    min-height: 56px;
    font-size: 16px;
  }

  .toggle-field {
    min-height: 70px;
  }

  .advanced-options {
    padding: 16px;
  }

  .wizard-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    margin-top: 30px;
  }

  .wizard-actions > span:empty {
    display: none;
  }

  .wizard-actions:has(> span:empty) {
    grid-template-columns: 1fr;
  }

  .next-button,
  .primary-button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
  }

  .back-button {
    min-width: 76px;
  }

  .saved-button {
    right: 14px;
    bottom: 15px;
  }

  .reading-order li {
    grid-template-columns: 42px 1fr;
    gap: 10px 16px;
    min-height: 0;
    padding: 22px 0;
  }

  .reading-order li > div {
    display: grid;
    gap: 6px;
  }

  .reading-order p {
    font-size: 15px;
  }

  .result-toolbar {
    display: grid;
    gap: 22px;
    margin-bottom: 24px;
  }

  .result-toolbar > div:first-child {
    grid-template-columns: 1fr;
  }

  .result-toolbar h2 {
    font-size: 42px;
  }

  .result-toolbar p {
    grid-column: auto;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

  .result-cover {
    grid-template-columns: 86px 1fr;
    gap: 0 18px;
    padding: 24px 20px;
  }

  .result-compass {
    grid-row: 1 / 3;
    width: 86px;
    height: 86px;
  }

  .result-compass span {
    font-size: 48px;
  }

  .result-cover-copy {
    display: contents;
  }

  .result-cover-copy > small {
    grid-column: 2;
    align-self: end;
  }

  .result-cover-copy h3 {
    grid-column: 2;
    margin-top: 4px;
    font-size: 30px;
  }

  .result-cover-copy p {
    grid-column: 1 / -1;
    margin-top: 16px;
    font-size: 15px;
  }

  .premium-keywords {
    grid-column: 1 / -1;
    margin-top: 18px;
  }

  .result-meta {
    grid-column: 1 / -1;
  }

  .map-tabs {
    top: 68px;
    margin-top: 12px;
  }

  .map-tabs a {
    min-height: 50px;
    gap: 4px;
    font-size: 13px;
  }

  .map-tabs b {
    display: none;
  }

  .result-overview-grid,
  .report-grid,
  .luck-dashboard {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
    scroll-margin-top: 130px;
  }

  .report-card {
    padding: 24px 18px;
  }

  .card-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
  }

  .card-heading h3 {
    font-size: 21px;
  }

  .daymaster-hero {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }

  .daymaster-symbol {
    width: 72px;
    height: 72px;
    font-size: 40px;
  }

  .meter-label {
    grid-template-columns: auto 1fr auto;
  }

  .meter-label b {
    font-size: 13px;
  }

  .element-row {
    grid-template-columns: 64px 1fr 40px;
    gap: 8px;
  }

  .reading-card {
    margin-top: 14px;
    scroll-margin-top: 130px;
  }

  .reading-intro h4 {
    font-size: 22px;
  }

  .reading-grid {
    grid-template-columns: 1fr;
  }

  .reading-item {
    padding: 22px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reading-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .reading-item:last-child {
    border-bottom: 0;
  }

  .current-luck-card {
    min-height: 290px;
    padding: 30px 24px;
  }

  .current-luck-card h3 {
    font-size: 34px;
  }

  .year-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 82vw);
    grid-template-columns: none;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 10px;
    scroll-snap-type: x mandatory;
  }

  .year-card {
    scroll-snap-align: start;
  }

  .professional-details {
    margin-top: 14px;
    scroll-margin-top: 130px;
  }

  .professional-details > summary {
    min-height: 88px;
    padding: 18px;
  }

  .professional-details > summary b {
    font-size: 17px;
  }

  .professional-details > summary small {
    font-size: 13px;
  }

  .professional-body {
    padding: 10px;
  }

  .ten-god-groups {
    grid-template-columns: repeat(5, minmax(52px, 1fr));
    overflow-x: auto;
  }

  .ten-detail-list,
  .stage-grid,
  .interaction-grid {
    grid-template-columns: 1fr;
  }

  .result-disclaimer {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
    padding: 18px 4px;
  }

  .method-list article {
    grid-template-columns: 70px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 24px 0;
  }

  .method-list h3 {
    font-size: 18px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 34px 20px;
  }

  footer p,
  footer > a:last-child {
    justify-self: start;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 420px) {
  .brand-copy small {
    display: none;
  }

  .header-cta {
    padding-inline: 10px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .choice-group.two {
    gap: 8px;
  }

  .result-cover {
    grid-template-columns: 74px 1fr;
  }

  .result-compass {
    width: 74px;
    height: 74px;
  }

  .result-compass span {
    font-size: 42px;
  }

  .result-cover-copy h3 {
    font-size: 26px;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .toolbar-actions button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 13px;
  }
}

@media print {
  .site-header,
  .hero,
  .calculator-section,
  .result-guide,
  .method-section,
  footer,
  .toolbar-actions,
  .map-tabs,
  .toast {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .result-section {
    display: block !important;
    padding: 0;
  }

  .professional-details {
    border: 0;
  }

  .professional-details > summary {
    display: none;
  }

  .professional-body {
    display: grid !important;
    padding: 0;
  }

  .report-card,
  .result-cover,
  .current-luck-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .result-cover,
  .current-luck-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

