.fortune-page {
  --fortune: #43556A;
  background: var(--paper);
}

.fortune-page [lang="en"] {
  display: block;
}

.fortune-page .eyebrow {
  color: var(--fortune);
}

.fortune-page .button {
  border-color: var(--fortune);
  background: var(--fortune);
  color: var(--paper);
}

.fortune-page .button:hover {
  border-color: #D8CCE8;
  background: #D8CCE8;
  color: var(--fortune);
}

.fortune-page .button:focus-visible {
  outline: 0.1875rem solid var(--fortune);
  outline-offset: 0.2rem;
}

.fortune-page .button.button--secondary {
  border-color: var(--fortune);
  background: transparent;
  color: var(--fortune);
}

.fortune-page .button.button--secondary:hover {
  border-color: var(--fortune);
  background: var(--fortune);
  color: var(--paper);
}

.fortune-page .fortune-hero {
  position: relative;
  padding-block: clamp(3rem, 9vw, 7rem);
  overflow: hidden;
  border-block-end: 1px solid var(--line);
}

.fortune-page .fortune-hero__layout,
.fortune-page .fortune-method__layout,
.fortune-page .fortune-chart__panel,
.fortune-page .fortune-contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.fortune-page .fortune-hero__copy {
  position: relative;
  z-index: 1;
}

.fortune-page .fortune-hero h1 {
  max-inline-size: 17ch;
  margin-block: 1rem 1.5rem;
  color: var(--ink);
  font-size: clamp(2.35rem, 8vw, 5.25rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.fortune-page .fortune-hero h1 [lang="en"] {
  max-inline-size: 30ch;
  margin-block-start: 1.25rem;
  color: var(--fortune);
  font-size: 0.4em;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.fortune-page .fortune-hero__copy > p:not(.eyebrow) {
  max-inline-size: 43rem;
}

.fortune-page .fortune-english,
.fortune-page .fortune-heading-row [lang="en"],
.fortune-page .fortune-topic p [lang="en"],
.fortune-page .fortune-method p [lang="en"],
.fortune-page .fortune-chart p[lang="en"],
.fortune-page .fortune-faq p [lang="en"],
.fortune-page .fortune-contact p[lang="en"] {
  margin-block-start: 0.4rem;
  color: var(--muted);
}

.fortune-page .fortune-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 2rem;
}

.fortune-page .fortune-palaces {
  position: relative;
  align-self: center;
  max-inline-size: 31rem;
  inline-size: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
  pointer-events: none;
}

.fortune-page .fortune-palaces__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  inline-size: 100%;
  block-size: 100%;
  border: 1px solid var(--fortune);
  background: var(--paper);
  opacity: 0.78;
}

.fortune-page .fortune-palace {
  background: rgb(216 204 232 / 22%);
  outline: 1px solid rgb(67 85 106 / 48%);
  outline-offset: -1px;
}

.fortune-page .fortune-palace[data-palace-position="top-left"] {
  grid-area: 1 / 1;
}

.fortune-page .fortune-palace[data-palace-position="top-inner-left"] {
  grid-area: 1 / 2;
}

.fortune-page .fortune-palace[data-palace-position="top-inner-right"] {
  grid-area: 1 / 3;
}

.fortune-page .fortune-palace[data-palace-position="top-right"] {
  grid-area: 1 / 4;
}

.fortune-page .fortune-palace[data-palace-position="right-upper"] {
  grid-area: 2 / 4;
}

.fortune-page .fortune-palace[data-palace-position="right-lower"] {
  grid-area: 3 / 4;
}

.fortune-page .fortune-palace[data-palace-position="bottom-right"] {
  grid-area: 4 / 4;
}

.fortune-page .fortune-palace[data-palace-position="bottom-inner-right"] {
  grid-area: 4 / 3;
}

.fortune-page .fortune-palace[data-palace-position="bottom-inner-left"] {
  grid-area: 4 / 2;
}

.fortune-page .fortune-palace[data-palace-position="bottom-left"] {
  grid-area: 4 / 1;
}

.fortune-page .fortune-palace[data-palace-position="left-lower"] {
  grid-area: 3 / 1;
}

.fortune-page .fortune-palace[data-palace-position="left-upper"] {
  grid-area: 2 / 1;
}

.fortune-page .fortune-palaces__center {
  position: relative;
  grid-area: 2 / 2 / 4 / 4;
  border: 1px solid var(--fortune);
  background: #D8CCE8;
}

.fortune-page .fortune-palaces__center::before,
.fortune-page .fortune-palaces__center::after {
  position: absolute;
  background: rgb(67 85 106 / 32%);
  content: "";
}

.fortune-page .fortune-palaces__center::before {
  inset-block: 18%;
  inset-inline-start: 50%;
  inline-size: 1px;
}

.fortune-page .fortune-palaces__center::after {
  inset-block-start: 50%;
  inset-inline: 18%;
  block-size: 1px;
}

.fortune-page h2 {
  margin-block: 0.75rem 1rem;
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.fortune-page h2 [lang="en"] {
  margin-block-start: 0.45rem;
  color: var(--fortune);
  font-size: 0.55em;
  line-height: 1.2;
}

.fortune-page .fortune-heading-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-block-end: 2rem;
}

.fortune-page .fortune-heading-row > p {
  align-self: end;
  margin: 0;
}

.fortune-page .fortune-topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-block-start: 1px solid var(--line);
}

.fortune-page .fortune-topic {
  padding: 1.5rem 0;
  border-block-end: 1px solid var(--line);
}

.fortune-page .fortune-topic__number {
  margin: 0;
  color: var(--fortune);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.fortune-page .fortune-topic h3 {
  margin-block: 0.45rem;
  font-size: 1.35rem;
}

.fortune-page .fortune-topic h3 [lang="en"] {
  margin-block-start: 0.2rem;
  color: var(--fortune);
  font-size: 0.72em;
}

.fortune-page .fortune-topic p:last-child {
  margin-block-end: 0;
}

.fortune-page .fortune-method,
.fortune-page .fortune-faq {
  background: #D8CCE8;
}

.fortune-page .fortune-method__steps,
.fortune-page .fortune-process {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fortune-page .fortune-method__steps {
  border-block-start: 1px solid rgb(67 85 106 / 40%);
}

.fortune-page .fortune-method__steps li {
  padding-block: 1rem;
  border-block-end: 1px solid rgb(67 85 106 / 40%);
}

.fortune-page .fortune-method__steps strong {
  display: block;
}

.fortune-page .fortune-method__steps [lang="en"] {
  color: var(--fortune);
}

.fortune-page .fortune-chart__panel {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-block: 1px solid var(--fortune);
}

.fortune-page .fortune-chart__link {
  margin-block-start: 1rem;
}

.fortune-page .fortune-consultation {
  border-block-start: 1px solid var(--line);
}

.fortune-page .fortune-process {
  display: grid;
  grid-template-columns: 1fr;
  margin-block-start: 2rem;
  border-block-start: 1px solid var(--line);
}

.fortune-page .fortune-process li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--line);
}

.fortune-page .fortune-process p {
  margin: 0;
}

.fortune-page .fortune-process p [lang="en"] {
  margin-block-start: 0.35rem;
  color: var(--muted);
}

.fortune-page .fortune-process__number {
  color: var(--fortune);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.fortune-page .fortune-faq__list {
  margin-block-start: 2rem;
  border-block-start: 1px solid rgb(67 85 106 / 40%);
}

.fortune-page .fortune-faq details {
  border-block-end: 1px solid rgb(67 85 106 / 40%);
}

.fortune-page .fortune-faq summary {
  padding-block: 1.15rem;
  font-weight: 750;
  cursor: pointer;
}

.fortune-page .fortune-faq summary [lang="en"] {
  color: var(--fortune);
  font-size: 0.9em;
}

.fortune-page .fortune-faq details p {
  max-inline-size: 48rem;
  margin-block: 0 1.35rem;
}

.fortune-page .fortune-disclaimer .container {
  max-inline-size: 52rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 0.2rem solid var(--fortune);
}

.fortune-page .fortune-disclaimer p[lang="en"] {
  color: var(--muted);
}

.fortune-page .fortune-contact {
  background: var(--fortune);
  color: var(--paper);
}

.fortune-page .fortune-contact .eyebrow,
.fortune-page .fortune-contact h2 [lang="en"],
.fortune-page .fortune-contact p[lang="en"] {
  color: #D8CCE8;
}

.fortune-page .fortune-contact__wechat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.8rem;
  margin-block: 1.5rem 0;
  padding-block-start: 1rem;
  border-block-start: 1px solid rgb(243 239 230 / 45%);
}

.fortune-page .fortune-contact__wechat [lang="en"] {
  display: inline;
}

.fortune-page .fortune-contact__wechat strong {
  flex-basis: 100%;
  color: var(--paper);
  font-size: clamp(1.8rem, 7vw, 3rem);
  letter-spacing: 0.04em;
}

@media (min-width: 48rem) {
  .fortune-page .fortune-heading-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .fortune-page .fortune-topic:nth-child(odd) {
    padding-inline-end: 1.5rem;
    border-inline-end: 1px solid var(--line);
  }

  .fortune-page .fortune-topic:nth-child(even) {
    padding-inline-start: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .fortune-page .fortune-hero__layout,
  .fortune-page .fortune-method__layout,
  .fortune-page .fortune-chart__panel,
  .fortune-page .fortune-contact__layout {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .fortune-page .fortune-process {
    grid-template-columns: repeat(4, 1fr);
  }

  .fortune-page .fortune-process li {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    border-inline-end: 1px solid var(--line);
  }

  .fortune-page .fortune-process li:first-child {
    padding-inline-start: 0;
  }

  .fortune-page .fortune-process li:last-child {
    padding-inline-end: 0;
    border-inline-end: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fortune-page .fortune-palaces,
  .fortune-page .fortune-palaces * {
    scroll-behavior: auto;
  }
}
